Db2cert6v8 Sample

download Db2cert6v8 Sample

of 3

Transcript of Db2cert6v8 Sample

  • 8/14/2019 Db2cert6v8 Sample

    1/3

    DB2 UDB 8.1 Family Fundamentals

    DB2 Concurrency: Sample Questions

    1) Which isolation level would lock the most data?a. Uncommitted Readb. Repeatable Readc. Cursor Stabilityd. Read Stability

    2) An application is bound using repeatable read. You notice that there are a largenumber of locks being held at any given time, what should you do to decrease thenumber of locks?

    a. Increase the size of the locklist parameterb. Use the BIND option to change the isolation level to read stabilityc. Increase the size of the log filesd. Alter the table in question to row level locking

    3) If you want to maximize concurrency without seeing uncommitted data valuesand high data stability is not required. Which isolation level would you choose?

    a. Uncommitted Readb. Read Stabilityc. Cursor Stabilityd. Repeatable Read

    4) If you are executing queries and do not want to see changes made to the resultdata sets produced. Which isolation level would you choose?

    a. Uncommitted Readb. Read Stabilityc. Cursor Stabilityd. Repeatable Read

    5) Mary from HR is revising salary of all the staff in the XYZ company. Herapplication is designed to commit the transaction only after the salary updates

    from the employee table are made for every employee.

    At the same time, Peter from the Accounting department uses CS isolation level

    to query the employee. However, due to Marys update, Peters application washung.

    Which of the following can be set to cause Peters application to fail with an error

    so that he doesnt have to wait forever?

    a. Alter the employee table to use locksize TABLEb. Increase the value of locklistc. Update the locktimeout parameter to finite numberd. Decrease the value of maxlock

    DB2 Concurrency: Sample Questions 1

  • 8/14/2019 Db2cert6v8 Sample

    2/3

    DB2 UDB 8.1 Family Fundamentals

    6) What is the possible cause of a lock escalation? Choose all that apply.a. When lock storage space is fullb. An application with too frequent COMMIT and/or ROLLBACK requestsc. An application has exceeded the threshold of how much lock storage

    space each application can holdd. All of the above7) Which of the following isolation level will avoid phantom reads?

    a. Uncommitted Readb. Cursor Stabilityc. Read Stabilityd. Repeatable Read

    8) What does SQL0911N with reason code 2 means?a. The application is timed out due to excessive lock waitb.

    The application is terminated due to deadlockc. Row locks held by the application are escalated

    d. The lock storage space is fulle. db2user does not have any privilege on the employee table

    9) Which of the following object can be explicitly locked by a DB2 command?a. Viewsb. Buffer poolsc. Columnsd. Tables

    10)Isolation level can be specified for which of the following?a. A sessionb. A database connectionc. A cursord. All of the above

    DB2 Concurrency: Sample Questions 2

  • 8/14/2019 Db2cert6v8 Sample

    3/3

    DB2 UDB 8.1 Family Fundamentals

    Answers:

    1. b2. b3. c4. d5.

    c6. a,c

    7. d8. b9. d10.d (You can declare a cursor for a select statement which specifies the isolation

    level)

    DB2 Concurrency: Sample Questions 3