IBM Associate Certified DBA - Db2 12 for z/OS Fundamentals Exam Prep
Free practice questions

Free Db2 12 for z/OS Fundamentals Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

These 10 free Db2 12 for z/OS Fundamentals questions are organized by exam domain, so you can see how each part of the IBM Associate Certified DBA - Db2 12 for z/OS Fundamentals blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Planning 11% of exam

Question 1

Two members of a Db2 12 for z/OS data-sharing group have cached the same data page in their local buffer pools. One member changes the page and commits. What prevents the other member from satisfying a later read with its outdated cached copy?

Show answer & explanation

Correct answer: A - The group buffer pool's directory and cross-invalidation mechanism

Domain 2: Working with SQL and XML 21% of exam

Question 2

A customer-service report must show every customer and the number of open orders, including zero when none are open. ORDER_ID is a non-null primary key. This Db2 query omits both customers with no orders and customers whose orders are all closed: SELECT c.CUST_ID, COUNT(o.ORDER_ID) AS OPEN_ORDERS FROM APP.CUSTOMER c LEFT JOIN APP.ORDERS o ON o.CUST_ID = c.CUST_ID WHERE o.STATUS = 'O' GROUP BY c.CUST_ID; What change makes the report satisfy both requirements?

Show answer & explanation

Correct answer: C - Move o.STATUS = 'O' into the ON condition, remove the WHERE clause, and keep COUNT(o.ORDER_ID).

Question 3

APP.SUPPLIER has a non-null primary key, SUPPLIER_ID. APP.BLOCKED_SUPPLIER contains blocked IDs, but an upstream feed can also leave its SUPPLIER_ID column NULL. A supplier must be excluded only when an actual matching ID appears in the blocked table. In the following query, choose the predicate that remains correct when the feed contains NULL: SELECT s.SUPPLIER_ID FROM APP.SUPPLIER s WHERE <predicate>;

Show answer & explanation

Correct answer: B - NOT EXISTS (SELECT 1 FROM APP.BLOCKED_SUPPLIER b WHERE b.SUPPLIER_ID = s.SUPPLIER_ID)

Domain 3: Security 8% of exam

Question 4

A security administrator creates HR.EMP_DIRECTORY as a view containing only EMPNO and DEPTNO from HR.EMPLOYEE; SALARY is excluded. Reporting ID RPT01 has no existing access to either object and no broader authority. Under Db2 SQL authorization, RPT01 alone must gain query access to the directory, without access to SALARY or permission to pass the privilege to others. The administrator has the necessary grant authority. Select the grant that meets these limits.

Show answer & explanation

Correct answer: A - GRANT SELECT ON TABLE HR.EMP_DIRECTORY TO RPT01;

Domain 4: Operations 16% of exam

Question 5

After a large load, a newly prepared dynamic report performs poorly. The DBA finds: Catalog table-cardinality estimate (CARDF): 20,000 rows Current SELECT COUNT(*) result: 2,000,000 rows Last statistics collection: before the load Index integrity checks: no errors Lock waits and restrictive object states: none The evidence points first to which maintenance action?

Show answer & explanation

Correct answer: B - Collect current table and index statistics with RUNSTATS, then prepare the report again.

Question 6

A local application on Db2 12 for z/OS fails to PREPARE a valid SELECT containing LISTAGG, receiving SQLCODE -4743. The required maintenance is installed. Investigation shows: Activated function level: V12R1M505 Executing package APPLCOMPAT: V12R1M505 CURRENT APPLICATION COMPATIBILITY: V12R1M500 What is the smallest change that enables this statement in the current environment?

Show answer & explanation

Correct answer: D - Set CURRENT APPLICATION COMPATIBILITY to 'V12R1M505' in this session, then prepare the SELECT again.

Domain 5: Data Concurrency 11% of exam

Question 7

During a production correction in a local Db2 session, a DBA successfully updates one shipment's dispatch date and then establishes savepoint BEFORE_CLEANUP. A subsequent DELETE accidentally removes every row from APP.SHIPMENT. Autocommit is off, the table space is LOGGED, the DELETE succeeds, and no commit follows. The earlier dispatch-date correction must remain pending. Select the statement that undoes only the accidental deletion.

Show answer & explanation

Correct answer: D - ROLLBACK TO SAVEPOINT BEFORE_CLEANUP;

Domain 6: Application Design 21% of exam

Question 8

An insurer sometimes records corrections weeks after a policy change took effect. Its auditors ask two different questions: 'Which premium was valid for the policy on July 15?' and 'What premium did the database show on July 20, before the correction was entered on August 3?' Both timelines must be retained using Db2's temporal-table facilities. Which design supports that requirement?

Show answer & explanation

Correct answer: C - A bitemporal table with both SYSTEM_TIME and BUSINESS_TIME periods

Question 9

A reconciliation program loads SESSION.WORK_IDS, a declared global temporary table defined with ON COMMIT DELETE ROWS. It must commit changes to permanent tables between two processing phases, but the second phase still needs the work IDs on the same connection. No cursor is open across the commit. How can the program retain these rows without making them visible to other connections?

Show answer & explanation

Correct answer: B - Declare SESSION.WORK_IDS with ON COMMIT PRESERVE ROWS for each application connection.

Domain 7: Working with Database Objects 12% of exam

Question 10

APP.ORDERS and ARCHIVE.ORDERS both exist in a Db2 subsystem. APP.ORDERS has ORDER_ID, CUSTOMER_ID, and ORDER_DATE in that defined order. A deployment check needs the column names, data types, and nullability for APP.ORDERS only, preserving that order. Which catalog query produces the requested inventory?

Show answer & explanation

Correct answer: D - SELECT NAME, COLTYPE, NULLS FROM SYSIBM.SYSCOLUMNS WHERE TBCREATOR = 'APP' AND TBNAME = 'ORDERS' ORDER BY COLNO;

That's 10 of 1,030

The full bank has 1,020 more Db2 12 for z/OS Fundamentals questions with explanations.

Continue in the free practice test →

View plans