• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
DB2_Cert700_QuestionsPage 1 of 14
1. With DBADM authority on the database and given the statements:CREATE TABLE t1 (c1 CHAR(1))INSERT INTO t1 VALUES ('b')CREATE VIEW v1 AS SELECT c1 FROM t1 WHERE c1='a' WITH CHECK OPTIONINSERT INTO v1 VALUES ('a')INSERT INTO v1 VALUES ('b')How many rows would be returned from the statement, SELECT c1 FROM t1?(Select the correct response)A.0B.1C.2D.32. Which of the following Control Center features can be used to update information for the optimizer to choose the best path to data?(Select the correct response)A Show RelatedB. Generate DDLC. Run StatisticsD. Reorganize Table3. Given the tables:TABLEA TABLEBEmpid name empid weeknumber paycheck1 JOE 1 1 1000.002 BOB 1 2 1000.002 1 1000.00TABLEB was defined as follows:CREATE TABLE tableb (empid CHAR(3), weeknumber CHAR(3), paycheckDECIMAL(6,2),CONSTRAINT const1 FOREIGN KEY (empid)REFERENCES tablea (empid) ON DELETE SET NULL)How many rows would be deleted from tableb if the following command is issued:DELETE FROM tablea WHERE empid = '2'?(Select the correct response)A.0B.1C.2D.34. Which of the following DB2 UDB isolation levels will NOT lock any rows during read processing?(Select the correct response)A. Read StabilityB. Repeatable ReadC. Uncommited ReadD. Cursor Stability5. Which of the following processing can occur for a unit of work using an isolation level of Read Stability and scanning through the table more than oncewithin the unit of work?
 
DB2_Cert700_QuestionsPage 2 of 14
(Select the correct response)A. Access uncommitted changes made by other processesB. Update uncommitted changes made by other processesC. Rows added to a result set by other processes from one scan to the nextD. Rows changed in a result set by other processes from one scan to the next6. Which of the following describes when indexes can be explicitly referencedby name within an SQL statement?(Select the correct response)A. When dropping the indexB. When updating the indexC. When selecting on the indexD. When inserting using the index7. Given an embedded SQL program with a single connection, two threads and the following actions:Thread 1: INSERT INTO mytab VALUES (...)Thread 2: INSERT INTO mytab VALUES (...)Thread 1: COMMITThread 2: INSERT INTO mytab VALUES (...)Thread 1: ROLLBACKHow many records will be successfully inserted and retained in the table mytab?(Select the correct response)A.0B.1C.2D.38. A user creates the table TABLE1. Which of the following statements would explicitly give USER1 the ability to read rows from the table?(Select the correct response)A. GRANT VIEW TO user1 ON TABLE table1B. GRANT READ TO user1 ON TABLE table1C. GRANT SELECT ON TABLE table1 TO user1D. GRANT ACCESS ON TABLE table1 TO user19. Given the following:TAB1 TAB2C1 C2 CX CY--- --- --- ---A 11 A 21B 12 C 22C 13 D 23The following results are desired:C1 C2 CX CY-- -- -- --A 11 A 21B 12 -- --C 13 C 22Which of the following joins will yield the desired results?(Select the correct response)A. SELECT * FROM tab1, tab2 WHERE c1=cx
 
DB2_Cert700_QuestionsPage 3 of 14
B. SELECT * FROM tab1 INNER JOIN tab2 ON c1=cx]C. SELECT * FROM tab1 FULL OUTER JOIN tab2 ON c1=cxD. SELECT * FROM tab1 LEFT OUTER JOIN tab2 ON c1=cx10. Given the following scenario: An application uses a 15 digit value to uniquely identify customer transactions. This number is also used for arithmeticoperations. Which of the following is the most efficient DB2 data type for the column definition for this purpose?(Select the correct response)A. CHARB. CLOBC. INTEGERD. NUMERIC(15,2)E. DECIMAL(15,0)11. Given the table T1 created by:CREATE TABLE t1(id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY,c1 CHAR(10) NOT NULL,c2 CHAR(10))Which of the following INSERT statements will succeed?(Select the correct response)A. INSERT INTO t1 VALUES (1, 'abc', NULL)B. INSERT INTO t1 VALUES (1, NULL, 'def')C. INSERT INTO t1 (c1, c2) VALUES ('abc', NULL)D. INSERT INTO t1 (c1, c2) VALUES (NULL, 'def')12. Which of the following tools allows the DBA to set limits, and be alertedif these limits are exceeded?(Select the correct response)A. DB2 Index WizardB. DB2 Script CenterC. DB2 Command CenterD. DB2 Performance Monitor13. To set up a client that can access DB2 UDB through DB2 Connect EnterpriseEdition, which of the following is the minimum software client that must beinstalled?(Select the correct response)A DB2 Runtime ClientB. DB2 Personal EditionC. DB2 Administration ClientD. DB2 Application Developer's Client14. Which of the following describes why savepoints are NOT allowed inside anatomic unit of work?(Select the correct response)A. Atomic units of work span multiple databases, but savepoints are limited to units of work which operate on a single database.B. A savepoint implies that a subset of the work may be allowed to succeed, while atomic operations must succeed or fail as a unit.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...