Sei sulla pagina 1di 3

1.

Which statement allows you to view the AUTHENTICATION type of a DB2


instance?
a. GET DB CFG or GET DATABASE CONFIGURATION
b. GET DBM or GET DATABASE MANAGER CONFIGURATION
c. UPDATE DB CFG USING AUTHENTICATION
d. UPDATE DBM CFG USING AUTHENTICATION
-----------------------------------------D
2. Which of the following is true about buffer pools?
a. A buffer pool is the area of the harddisk used to cache table and index data
b. A table space does not need to be associated to a buffer pool
c. A buffer pool can be dropped
d. A database does not need a buffer pool
-----------------------------------------C
3. Which of the following is true about a buffer pool?
a. Allocated memory in units of 4GB, 8GB, 16GB and 32GB
b. Each database may have one or more buffer pool
c. Area of hard disk to cache table and index data
d. There is no default bufferpool in DB2
-----------------------------------------B
4.Which of the following DB2 configuration can be set using db2set command?
a. Database manager configuration file (dbm cfg)
b. Environment Variables
c. DB2 profile registry
d. Database configuration file (db cfg)
-----------------------------------------C
5. A table named DEPARTMENT has the following columns :
DEPT_ID
DEPT_NAME
MANAGER
AVG_SALARY
Which of the following is the best way to prevent most users from viewing
AVG_SALARY data?
a. Encrypt the table's data
b. Store AVG_SALARY data in a separate and grant SELECT privilege for that table to
the appropriate users.
c. Revoke SELECT access for the AVG_SALARY column from users who should not
see AVG_SALARY data
d. Create a view that does not contain the AVG_SALARY column.
-----------------------------------------D

6. A sequence was created with the DDL statement shown below :


CREATE SEQUENCE my_seq START WITH 10 INCREMENT BY 10 CACHE 10
User USER1 successfully executes the following statements in the order shown :
VALUES NEXT VALUE FOR my_seq INTO :hvar,
VALUES NEXT VALUE FOR my_seq INTO :hvar,
User USER2 successfully executes the following statements in the oder shown:
ALTER SEQUENCE my_seq RESTART WITH 10 INCREMENT BY 2 CACHE 5; VALUES
NEXT VALUE FOR my_seq INTO :hvar,
USER 2 disconnected and after a while reconnected to the database and issued the
following statement:
SELECT NEXT VALUE FOR my_seq FROM sysibm.sysdummy1
What value will be returned by the query?
a. 20
b. 12
c. 10
d. 5
-----------------------------------------A
7. Which of the following describes authentication?
a. determining that who are who you say you are
b. making users responsible for their action
c. verifying if a user has sufficient privileges to perform the desired database
operation
d. logging the activities of a user
-----------------------------------------A
8. Which of the following DB2 editions is for free?
a. DB2 Workgroup
b. DB2 Express-c
c. DB2 Enterprise
d. DB2 Express
-----------------------------------------B
9. Which of the following allows you to add records in a table?
a. SELECT
b. DELETE
c. INSERT
d. UPDATE
-----------------------------------------C

10. Which of the following DOES NOT REFER TO a foreign key?


a. Can be null
b. Defines the relationship between two tables
c. Is required
d. Attribute in one relation whose values match a primary key of another relation
-----------------------------------------C
11. Which of the following is NOT true about domains and data types?
a. A domain defines the smallest unit of data than can be stored
(answer)
b. A data type is the set of all possible values for the specific attribute
c. Data type is the counterpart of Domains in the Relational Model
d. Data types in columns are required
-----------------------------------------

12. Which of the following is NOT a component of a relational data model?


a. table
b. relation
c. attribute
d. tuple
-----------------------------------------A
13. Which of the following command/syntax displays the database setting?
a. db2 update dbm cfg using
b. db2 update db cfg using
c. db2 get dbm cfg
d. db2 get db cfg
-----------------------------------------D

Potrebbero piacerti anche