Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

IBM C2090-616 DB2 11.1 Fundamentals for LUW Exam Practice Test

Demo: 9 questions
Total 63 questions

DB2 11.1 Fundamentals for LUW Questions and Answers

Question 1

: 40

Which of the following set operators can be used to find all rows that are common in 2 queries?

Options:

A.

UNION

B.

UNION ALL

C.

EXCEPT ALL

D.

INTERSECT ALL

Question 2

The DDL statement is used to create table T1:

CREATE TABLEt1 (

c1 INTEGER,

c2 INTEGER NOT NULL,

c1 DECIMAL(11,2),

c4 TIMESTAMP WITH DEFAULT CURRENT TIMESTAMP

)

Which of the following INSERT statements will execute successfully?

Options:

A.

INSERT INTO t1 VALUES (100)

B.

INSERT INTO t1 (c1, c2) VALUES (100)

C.

INSERT INTO t1 (c1, c3) VALUES (‘100’, ‘100.00’)

D.

INSERT INTO t1 (c2, c3) VALUES (100, 100.00), (101, 101)

Question 3

The following statements are executed:

GRANT CREATETAB, DATAACCESS, ON DATABASE TO ROLE role A;

GRANT CREATETAB, BINDADD ON DATABASE TO ROLE role B;

GRANT ROLE role A to USER db2inst3;

GRANT ROLE role B to USER db2inst3;

Which of the following is TRUE if this statement is executed later?

REVOKE ROLE roleB FROM USER db2inst3;

Options:

A.

This statement will succeed and DB2 INST3 will still be able to create in the database

B.

This statement will succeed and DB2 INST3 only retains DATAACCESS privileges on the database

C.

This statement will fail as CREATETAB is granted to two different roles and must be revoked at the same time

D.

This statement will succeed with a warning since CREATETAB cannot be totally revoked. DB2INST3 will retain both roles

Question 4

Which DB2 object is associated with PREVIOUS VALUE and NEXT VALUE expressions?

Options:

A.

Sequence

B.

Row Identifier

C.

Identity Column

D.

Insert time clustering table

Question 5

Which of the following is TRUE regarding user switching in a trusted context?

Options:

A.

You cannot switch user id in a trusted context

B.

You can issue a switch-user request within a transaction

C.

The new user must have the connect-privilege on the database for it to succeed

D.

No password is ever required for the new user as an authentication is established in the trusted connection

Question 6

Which of the following SQL statements will remove all rows from the table T1? (Choose two.)

Options:

A.

DELETE FROM t1

B.

DELETE* FROM t1

C.

DELETE* TABLE t1

D.

TRUNCATE TABLE t1 IMMEDIATE

E.

TRUNCATE TABLE t1

Question 7

Consider the following sequence of events:

Eddie grants SELECT WITH GRANT OPTION privilege to Mike.

Mike grants SELECT privilege to Jeff.

Eddie revokes SELECT privilege from Mike.

What will happen to Jeff’s SELECT privilege?

Options:

A.

Jeff’s SELECT privilege will be revoked

B.

Jeff’s SELECT privilege will be retained

C.

Jeff’s SELECT privilege will be retained only if he has ACCESSCTRL authority

D.

Jeff’s SELECT privilege will be retained only if Eddie has ACCESSCTRL authority

Question 8

Consider the following SQL statement:

SELECT workdept, empno, lastname, salary,

RANK() OVER (PARTITION BY workdept ORDER BY salary) AS rank_salary

FROM employee

ORDER BY workdept, lastname

What does the RANK() OVER (PARTITION BY workdept ORDER BY salary) clause do?

Options:

A.

It ranks the rows in each WORKDEPT by SALARY

B.

It groups all rows by WORKDEPT, then ranks all rows in the complete result set by SALARY

C.

It generates a blank output line after each group of rows with the same WORKDEPT, and ranks these groups by SALARY

D.

It tells the optimizer to physically partition the EMPLOYEE table by the WORKDEPT column for runtime execution, and ranks each WORKDEPT by SALARY

Question 9

Which of the following is designed for continuous availability, increased throughput of many concurrent short queries, and easy scalability?

Options:

A.

DB2 HADR

B.

DB2 pureScale

C.

DB2 Express-C

D.

DS2 Database Partitioning Feature

Demo: 9 questions
Total 63 questions