DB2 Security: Sample Questions
DB2 Security: Sample Questions
DB2 Security: Sample Questions
1 Family Fundamentals
1) Which of the following authority can be granted to the dba group using the
GRANT statement?
a. SYSADM
b. SYSCTRL
c. SYSMAINT
d. DBADM
2) Which of the following authority can access data in the database? Choose all that
apply.
a. DBADM
b. SYSMAINT
c. SYSCTRL
d. SYSADM
3) Which of the following DB2 command can be used to change bob’s password?
a. CHANGE PASSWORD USER bob OLD bobpass NEW newpass
b. CONNECT TO sample USER bob USING bobpass NEW newpass
c. CONNECT TO sample USER bob USING bobpass NEW newpass
CONFIRM newpass
d. No DB2 command can be used to change the password of a user ID
5) Which of the following statement will fail? Choose all that apply.
a. GRANT USE OF TABLESPACE syscatspace TO db2admin
b. GRANT USE OF TABLESPACE tempspace1 TO PUBLIC
c. GRANT UPDATE (salary, bonus) ON employee TO PUBLIC
d. GRANT ALL PRIVILEGES ON TABLE employee TO user1
What privileges on table employee does db2user retain? Choose all that apply.
a. CONTROL
b. UPDATE
c. SELECT
d. ALTER
e. db2user does not have any privilege on the employee table
9) Which of the following system catalog view contains the grantee information of
the REFERENCE privilege on a view?
a. SYSCAT.VIEWS
b. SYSCAT.TABLES
c. SYSCAT.DBAUTH
d. SYSCAT.TABAUTH
e. SYSCAT.REFERENCES
10) Which of the following statement will NOT allow db2user to grant the privileges
specified in the statement to others?
a. GRANT INDEX ON employee TO db2user WITH GRANT OPTION
b. GRANT UPDATE (salary, bonus) ON employee TO PUBLIC WITH
GRANT OPTION
c. GRANT CONTROL ON employee TO PUBLIC WITH GRANT
OPTION
d. GRANT ALTERIN, CREATEIN, DROPIN ON schema1 TO db2user
WITH GRANT OPTION
Answers:
1. d
2. a,d
3. c
4. b
5. a,b
6. e
7. d
8. b,c,d
9. d
10. c