Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

IBM C2090-312

Question #1
Which component is NOT shared between DB2 data sharing members?

A. SCA

B. IRLM

C. DB2 catalog

D. DB2 directory

Question #2
Which group of DB2 ACCOUNTING trace CLASSES must be started to collect
accounting
information for PLANS and PACKAGES?

A. CLASS(2,7,8)

B. CLASS(1,2,3)

C. CLASS(1,5,10)

D. CLASS(1, 2,3,7,8)

Question #3
Which table characteristic is a good attribute for the exploitation of hash access?

A. At least 20 rows fit on a data page.

B. DB2 uses range scans to access rows in the table.

C. The size of individual rows in the table vary greatly.

D. DB2 uses sequential lookups to access data in the table.


Question #4
Index versions are created when certain schema changes are committed. Which
schema
change results in a new index version being created?

A. Issue the ALTER INDEX REGENERATE statement.

B. Use the ALTER INDEX statement to add a column to an index that was built
with DEFINE NO.

C. Add a new column to both a table and an index in the same commit operation
when the table is in a partition-by-growth table space and the index is built with
DEFINE YES.

D. When you extend the length of a varying-length character (VARCHAR data


type) or varying-length graphic (VARGRAPHIC data type) column that is
contained in one or more indexes that are defined with the NOT PADDED option.

Question #5
What is necessary in order to enable optimization hints?

A. ASYSIBM.PLAN_TABLEtable.

B. INSERT authority on SYSIBM.SYSQUERY table.

C. A required index on the PLAN_TABLE used for optimization hints.

D. ADSN USERQUERY TABLE table under the schema in which hints will be
created.

Question #6
What is the minimum buffer pool page size for a compressed index?

A. 4K

B. 8K

C. 16K

D. 32K
Question #7
The data of a critical table space seems inconsistent. It is suspected that someone
has
accidentally issued a DB2 command to start the object with MODE(FORCE).
Where can this be verified?

A. In the DSN1PRNT job output of the header page.

B. In the DB2 MSTR address space joblog as all DB2 commands are shown there.

C. In the DB2 recovery log as all DB2 commands are written to the DB2 recovery
log.

D. In the z/OS system log (SYSLOG), as all commands including DB2 commands
are written to the z/OS system log.

Question #8
Which statement is true regarding table-controlled partitioned table spaces without
a
MAXVALUE specified?

A. If the partitioning key is ascending, DB2 prevents the INSERT of a row with a
null value for the key column.

B. If the partitioning key is descending, DB2 prevents the INSERT of a row with a
null value for the key column.

C. If the partitioning key is ascending, DB2 allows the INSERT of a row with a
null value for the key column. The row is inserted into the first partition.

D. If the partitioning key is descending, DB2 allows the INSERT of a row with a
null value for the key column. The row is inserted into the last partition.

Question #9
Assuming you are the SYSADM, what is the effect of executing the EXPLAIN
STMTCACHE ALL statement?

A. The table DSN_STATEMENT_CACHE_TABLE table contains a row for each


SQL statement in the Local Dynamic Statement Cache.
B. The PLAN_TABLE contains the access path of each SQL statement in the
Local Dynamic Statement Cache.

C. The PLAN_TABLE contains the access path of each SQL statement in the
Global Dynamic Statement Cache.

D. The table DSN_STATEMENT_CACHE_TABLE table contains a row for each


SQL statement in the Global Dynamic Statement Cache.

Question #10
When defining a check constraint on a populated table and the value of the special
register
CURRENT RULES is 'DB2.
What is the result of executing the DDL statement?

A. It is rejected by the database system.

B. The table space is placed in CHKP status.

C. It is checked against only all existing rows in the table.

D. It is checked against only new rows as they are added to the table.

Question #11
DB2 will not allow certain processing to occur when the soft limit of RBA
TFF800000000'x
is reached and an object's RBA remains in basic 6-byte format.
What processing is NEVER allowed?

A. Changes to the BSDS.

B. RECOVER to CURRENT.

C. REORGwith RBALRSN_CONVERSION EXTENDED.

D. SQL update activities (INSERT. UPDATE, DELETE, MERGE).

Reference:http://www-
01.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.admin/src/tpc/
db2z_rbalrsnlimitsreached.dita
Question #12
A table space is successfully recovered by using RECOVER TABLESPACE db.ts
TOLASTFULLCOPY. This table space is referenced by an index.
Which statement is true?

A. The index has now a status of REFP.

B. The index has now a status of RECP.

C. The index has now a status of CHKP.

D. The index has now a status of RBDP.

Question #13
When performing several inserts into a table defined with an identity column,
which
attribute could be ALTERed to help with the performance?

A. RESET

B. CACHE

C. MAXVALUE

D. INCREMENT

Question #14
Which technique can be utilized for the reporting of real-time statistics?

A. Call stored procedure SYSPROC.DSNACCOX.

B. Call stored procedure SYSPROC.ADMINJNFOJHOST.

C. Query the SYSI BM.SYSTABSTATS system catalog table.

D. Query the SYSIBM.SYSTABLES_PROFILES system catalog table.


Question #15
Consider a logical data model that includes an Employees entity and a Projects
entity. In this model, employees work on many projects and projects are worked on
by many employees.

The Employees and Projects entity is considered what kind of relationship?

A. A one-to-one relationship.

B. A one-to-many relationship.

C. A many-to-one relationship.

D. A many-to-many relationship.

Question #16
An application receives an 00C90110 reason code. See the following manual
explanation of the code.

" 00C90110Explanation:The data manager detected an inconsistent data condition.


This may be caused by an inconsistency in either the DB2P' catalog or the DB2
directory. In this case, the OBD for the requested OBID cannot be located in the
database descriptor (DBD).
The DBD in storage may be inconsistent. Specifically, the OBDDMAP(OBID)
array element should contain an offset into the DBD where the OBD should be
located. However, in this case the OBD expected was not at the indicated offset.To
prevent further damage and possible loss of data, the inconsistency must be
corrected before any further SQL access is attempted to this database."
Even though the problem cannot be recreated, you still want to find out what
caused this and you want to collect additional information for the IBM support
team.
Which utilities and service aids CANNOT help to provide useful additional info to
diagnose
the problem?
A. REPAIR
B. REPORT
C. DIAGNOSE
D. DSN1LOGP
Answer: C
Question #17
If the OPTHINTS subsystem parameter is set to YES, and you issue the following
DB2 command relating to optimization parameter hints:
BIND QUERY LOOKUP (YES)
what is the result of the execution of this command?

A. A list of queries that are in error is produced.

B. Updated values are placed in SYSIBM.SYSQUERY and


SYSIBM.SYSQUERYPLAN tables.

C. New values are inserted into the SYSIBM.SYSQUERY and


SYSIBM.SYSQUERYPLAN tables.

D. Messages containing only the status of rows in catalog tables


SYSIBM.SYSQUERY and SYSIBM.SYSQUERYPLAN.

Reference:http://www-
01.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.comr
ef/src/tpc/db2z_cmd_bindquery.dita?cp=SSEPEK_11.0.0%2F10-1-1-0-0-2

Question #18
Arrays are based on a built-in data type. On which built-in data type can an array
NOT be based?

A. XML

B. CLOB

C. DBCLOB

D. VARBINARY

Question #19
What does the UNLOAD utility allow you to unload?

A. Index entries from an index image copy.

B. Rows from an image copy after the table has been dropped.
C. Rows from an image copy after columns have been dropped.

D. Rows from a sequential image copy created by the COPYTOCOPY utility.

Question #20
What is required before you begin your installation of DB2 11?

A. Data sets for catalog and directory tables must be user-managed.

B. Data sets for only the catalog tables must be SMS-managed and include a data
class for allocating the data sets in extended format.

C. Data sets for only the directory tables must be SMS-managed and include a data
class for allocating the data sets in extended format.

D. Data sets for catalog and directory tables must be SMS-managed and include a
data class for allocating the data sets in extended format.

Question #21
Which statement is true for data in columns defined with data type XML?

A. Data stored in XML columns cannot be indexed.

B. It is possible to define the XML column with an INLINEJ.ENGTH.

C. You can partially UPDATE, DELETE from, and INSERT into an XML
document.

D. If you want to change an existing XML document, you have to replace the
whole document in the XML column.

Question #22
Which address space should be classified with the highest priority WLM service
class?

A. DIST

B. IRLM

C. DBM1
D. MSTR

Question #23
Which statement is true?

A. Unicode and EBCDIC have a different collating sequence.

B. The collating sequence for ASCII and EBCDIC is identical.

C. The collating sequence for Unicode and EBCDIC is identical.

D. If you use BETWEEN in your SQL statement, the collating sequence does not
matter for the predicate evaluation.

Reference:http://www-
01.ibm.com/support/knowledgecenter/SS4LQ8_3.1.0/com.ibm.datatools.aqt3.doc/
gui/conc
epts/c_idaa_inconsistencies.html(first bulleted point on the page)

Question #24
An Audit report shows that data on the CUSTOMER table was successfully
updated by an unknown USERID.
What other DB2 supplied information could be reviewed to learn more about the
updated data?

A. BSDS

B. SYSIBM.SYSPACKDEP

C. DB2 Active and Archive Logs

D. SYSIBM.SYSAUDITPOLICIES

Question #25
You want to convert a segmented table space into a partition-by-growth table
space. You execute the following ALTER statement:
ALTER TABLESPACE DB1TS1 MAXPARTITIONS 5;
What should be your next step?

A. COPY the table space.


B. REORG the table space.

C. REBUILD all of the indexes.

D. DROP the segmented table space.

Question #26
Which is NOT a valid privilege/authority for executing CREATE TYPE (array)?

A. SYSADM

B. SYSOPR

C. SYSCTRL

D. CREATEIN on the schema

Question #27
The TCP/IP Already Verified (TCPALVER) DB2 system parameter controls
whether DB2
accepts a TCP/IP connection requests. Which statement is NOT a valid value?

A. TCPALVER=NO

B. TCPALVER=YES

C. TCPALVER=SERVER_SECURE

D. TCPALVER=SERVERENCRYPT

Question #28
Which type ofstored procedures do NOT require a WLM-managed stored
procedure
address space?

A. External stored procedures.

B. Native SQL stored procedure.

C. External SQL stored procedures.


D. DB2 supplied stored procedures.

Question #29
What keyword establishes the maximum partition size of a partition-by-growth
universal
table space?

A. PART

B. DSSIZE

C. SEGSIZE

D. MAXPARTITIONS

Question #30
From where does the cross-loader function allow you to load data?

A. From an input file including all columns.

B. From a cursor including LOB columns but not including XML columns.

C. From a cursor including XML columns but not including LOB columns.

D. From a cursor including all LOB and XML columns except the ROWID
column.

Question #31
Which statement about an array data type is true?

A. User-defined data types are allowed in an array.

B. An array is a built-in data type and can only be numeric.

C. Arrays can be used as direct input to a select-statement predicate.

D. Associative arrays can only use INTEGER and VARCHAR data types as
indexes.
Question #32
You want to create a table space without actually creating the underlying data sets
until rows are inserted into the corresponding table.
Which CREATE TABLESPACE statement option and value should you use?

A. PRIQTYO

B. PRIQTY-1

C. DEFINE NO

D. DEFER YES

Question #33
You are having problems accessing SYSIBM.SYSTABLES in your data sharing
environment and you want to know who is using the table space
DSNDB06.SYSTSTAB.
How would you find this information?

A. -DIS THREAD (') TYPE(SYSTEM)

B. -DIS DB(DSNDB06) SP(SYSTSTAB) USE

C. -DIS GROUPBUFFERPOOL(GBPO) CONNLIST(YES)

D. -DIS BUFFERPOOL (BPO) DB(DSNDB06) SP(SYSTSTAB) LIST(ACTIVE)

Question #34
The degree of parallelism can vary for the REBUILD INDEX utility.
What action should be taken to limit the use of real memory using the REBUILD
INDEX utility?

A. Increase the value of the PARALLEL option.

B. Decrease the value of the PARALLEL option.

C. Increase the value in the CURRENT DEGREE special register.

D. Decrease the value in the CURRENT DEGREE special register.


Question #35
Which DB2 subsystem parameter is used to control the number of concurrent
inbound DDF connections?

A. MAXDBAT

B. CTHREAD

C. CONDBAT

D. CONTSTOR

Question #36
A statement-level access path hintcan be applied to which type of SQL statement?

A. Static SQL statements only.

B. Dynamic SQL statements only.

C. Both static and dynamic SQL statements.

D. Statements included in a CREATE PROCEDURE statement only.

Question #37
When would DB2 NOT use list prefetch?

A. Fast log apply operations.

B. Reading leaf pages of a disorganized index.

C. RUNSTATS TABLESPACE without table sampling.

D. Incremental image copies of a table space defined with TRACKMOD YES.

Question #38
Given this statement:
RUNSTATS TABLESPACE DB1 TS1 RESET ACCESSPATH HISTORY
ACCESSPATH Which statement is FALSE?
A. It resets all real-time statistics (RTS) for DB1TS1.

B. It resets all access path statistics for DB1TS1 in the catalog.

C. It invalidates the dynamic statement cache for table space DB1TS1.

D. It externalizes current access paths statistics for DB1 TS1 to HIST catalog
tables.

Question #39
In order to use a literal replacement for a dynamic SQL caching statement what
must be true about the statement?

A. It cannot be a join.

B. The authids do not have to match.

C. It must include more than one literal.

D. It cannot have both literals and parameter markers.

Question #40
What is the least disruptive way of externalizing real-time statistics for table space
DB1TS1?

A. -SET LOG LOGLOAD(O)

B. -DISPLAY DB(DB1)SPACENAM(TS1)

C. RUNSTATS TABLESPACE DB1TS1

D. -ACCESS DB(DB1) SPACENAM(TSI) MODE(STATS)

Question #41
What is a general recommendation for when to rebind?

A. After a backup is taken.

B. After a subsystem restart.


C. Before maintenance is applied.

D. After a major change in data volume.

Question #42
Which statement is true if a table space is created using the "FOR UPDATE nn"
(where nn is a number) clause?

A. The first nn UPDATE operation(s) will use an indirect reference.

B. Only the first nn UPDATE operation(s) on the table will be processed.

C. nn% space is reserved per page for future UPDATE operations to reduce
indirect reference.

D. nn row locations per page are kept for future UPDATE operations to reduce
indirect reference.

Question #43
Which DB2-supplied stored procedure captures statistics and DDL for DB2
objects,
extracts subsystem parameters and explain information for queries and
applications, and returns the results in a data set or as a result set?

A. ADMIN_INFO_SQL

B. ADMIN_JOB_QUERY

C. ADMIN_INFO_SYSPARM

D. ADMIN UPDATESYSPARM

Reference:
http://www.redbooks.ibm.com/redbooks/pdfs/sg248151.pdf (page 72, see the
table)

Question #44
You analyze an accounting report. You see a high "NOT ACCOUNTED" time.
Which two events can contribute to this high value?
A. CPU wait time.

B. I/O read wait time.

C. Log write wait time.

D. Real storage paging wait time.

E. Execution unit switch wait time.

Question #45
Which is NOT a valid value for the KEYWORDS column in the
DSN_PROFILES_ATTRIBUTES table?

A. MONITOR THREAD

B. MONITOR IDLE THREADS

C. MONITOR CONNECTIONS

D. MONITOR ACTIVE THREADS

Question #46
Which global variables statement is true?

A. A global variable is a synonym for special registers.

B. Like for special registers, the access to global variables cannot be granted or
revoked.

C. A global variable is a created DB2 object, which can be instantiated and used by
applications.

D. Global variables can only be used in native SQL stored procedures and user-
defined functions.

Question #47
Which DB2 subsystem parameter limits the number of concurrent active TSO
requests?
A. IDBACK

B. IDFORE

C. MAXDBAT

D. CONDBAT

Question #48
Given the following output:
DSNV4011 _DB2D DISPLAY THREAD REPORT FOLLOWS -
DSNV402I _DB2D ACTIVE THREADS -
NAME ST A REQ ID AUTHID PLAN ASID TOKEN
DB2CALL T 17039 BBISS BBISS 00AF 19855
TSO T * 3 KSTTEST KSTTEST 0135 20172
A51OTEST N* 13 CICSTEST 0125 19625
You receive a call that user KSTTEST is holding resources and needs to be
canceled.
Which command should be issued?

A. -CANCEL THREAD( 3)

B. -CANCEL THREAD(20172)

C. -CANCEL USER(KSTTEST)

D. User KSTTEST does not hold an active connection, no way he blocks anything.

Question #49
You want to determine which objects of your database DB1 are in LPL. What
command should be used?

A. -DIS DB(DB1) SP(') ADVISORY(LPL) LIMIT(')

B. -DIS DB(DB1) SP(') RESTRICT(LPL) LIMIT(')

C. -DIS DB(DB1) SP(') ADVISORY(LPL) LIMIT(") SCOPE(GROUP)

D. -DIS DB(DB1) SP(') RESTRICT(LPL) LIMIT(') SCOPE(GROUP)


Question #50
You have defined the array type PHONENUMBERS using the following DDL:
CREATE TYPE PHONENUMBERS AS DECIMAL(10,0) ARRAY[50];
You also defined a variable named RECENT_CALLS based on this new array type
as follows:
CREATE VARIABLERECENT_CALLS PHONENUMBERS:
Which SQL statement would you use to set the variable LIST_SIZE to the
maximum array size allowed for the variable RECENT_CALLS?

A. SET LIST_SIZE = MAX(RECENT_CALLS)

B. SET LIST_SIZE = ARRAY_MAX(RECENT_CALLS)

C. SET LIST_SIZE = ARRAY_LAST(RECENT_CALLS)

D. SET LIST_SIZE = MAX_CARDINALITY(RECENT_CALLS)

Question #51
Prefetch l/Os are executed under a service request block in which address space?

A. IRLM

B. DBM1

C. MSTR

D. User address space

Question #52
You must be able to process recoveries for DB2 objects to any point in time
between now
and two weeks ago.
What is the recommended amount of recovery data needed?

A. One set of SHRLEVEL(CHANGE) full image copies every two weeks that are
kept for at least two weeks.

B. One set of SHRLEVEL(CHANGE) full image copy at least every week that are
kept for at least three weeks as well as the active/archive logs during that time.
C. One set of SHRLEVEL(CHANGE) full images copies at least every week that
are kept for at least two weeks as well as the active/archive logs during that time.

D. One set of SHRLEVEL(CHANGE) full images copies during week#1 and one
set of SHRLEVEL(REFERENCE) incremental images copies during week #2, all
are kept for at least two weeks.

Reference:http://www.gsebelux.com/system/files/GSE%20backup%20and%20rec
overy%20%20at%20KBC.pdf(page 10)

Question #53
Which command populates the EXPLAIN tables but does not create a package?

A. REBINDCOPY

B. REBINDEXPLAIN(NO)

C. REBINDEXPLAIN(YES)

D. REBIND EXPLAIN(ONLY)

Reference:http://www-
01.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.comr
ef/src/tpc
/db2z_bindoptexplain.dita

Question #54
Which statement regarding triggers is true?

A. A trigger can use global variables and change their contents.

B. A trigger can use global variables but cannot change their contents.

C. A trigger cannot use global variables but can change their contents.

D. A trigger cannot use global variables and cannot change their contents.
Question #55
Which DB2 Client command can be used to identify the Client's version?

A. db2fm

B. db2look

C. db2level

D. db2ldcfg

Question #56
Which SQL statement can be used to create a data type that will represent possible
speed
limit values, with valid values not greater than 99, and to create a table that
contains route
numbers and the maximum speed limit for each route?

A. CREATE TYPE SPEEDJJMIT AS SMALLINT; CREATE TABLE


STATE_HIGHWAYS (ROUTE_NO SMALLINT, MAX_SPEED SPEEDJJMIT);

B. CREATE TYPE SPEEDJJMIT AS DECIMAL(2.0); CREATE TABLE


STATEJHIGHWAYS (ROUTE_NO SMALLINT. MAX_SPEED SPEEDJJMIT);

C. CREATE TYPE SPEEDJJMIT AS DECIMAL(2.0); CREATE TABLE


STATEJHIGHWAYS (ROUTE_NO SMALLINT. SPEED_LIMIT);

D. CREATE TYPE SPEEDJJMIT USING DECIMAL(2.0); CREATE TABLE


STATE_HIGHWAYS (ROUTE_NO SMALLINT. MAX_SPEED
SPEED_LIMIT);

Question #57
Which two options can be specified in order to access a system-period temporal
table for a
specific point in time guaranteeing accurate results?

A. A period-specification placed in the FROM clause of a subselect.

B. A period-specification placed in the WHERE clause of a subselect


C. A SELECT statement predicate against the transaction start ID of the base table.

D. A predicate against the start and end columns of the base table placed in the
WHERE clause of a subselect.

E. A SET of the CURRENT TEMPORAL SYSTEM_TIME special register to a


non-null value prior to a SELECT against the temporal table.

Question #58
A hotel prices its rooms differently at different times of the year. For example,
Room 101 rents for $100 per night January through March, $150 per night April
through September, and $80 per night October through December.
Which type of table could be used to implement the time-based rate changes?

A. A rate-period temporal table

B. A range-based temporal table

C. A system-period temporal table

D. An application-period temporal table

Question #59
What is the maximum partition size for a table space created with NUMPARTS
128, a page size of 8K, and a default DSSIZE of 4G?

A. 1G

B. 2G

C. 4G

D. 8G

Question #60
As part of a health check, it is determined that the statistics feedback should be
externalized more frequently. Optimizer statistics recommendations can be
immediately externalized to the DB2 catalog by performing what action?

A. Issue the ACCESS command with appropriate keywords.


B. Issue the ARCHIVE command with the appropriate keywords.

C. Issue the STOP command for the appropriate set of statistics.

D. Issue the ALTER command with the appropriate memory location.

Question #61
DB2 AUDIT policies are defined by inserting rows into what DB2 Catalog table?

A. SYSIBM.SYSDBAUTH

B. SYSIBM.SYSAUTOALERTS

C. SYSIBM.SYSAUDITPOLICIES

D. SYSIBM.SYSTABLESPROFILES

Reference:http://www-
01.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.seca/s
rc/tpc/db2z_secadmauthority.dita(9th bullet)

Question #62
Which type of column can be dropped from a table via the ALTER TABLE ...
DROP COLUMN ... SQL statement?

A. XML column

B. LOB column

C. DOCID column

D. Hidden ROWID column

Question #63
When we use multilevel-security using a security label column, which sentence is
true?

A. A unique constraint is allowed on a security label column.

B. A check constraint is not allowed on a security label column.


C. A referential constraint is not allowed on a security label column.

D. Multilevel security with row-level checking is enforced when DB2 checks a


referential constraint.

Question #64
What subsystem parameter in DDF specifies the maximum number of inactive or
new
connections queued that can be waiting for a DBAT to process the request?

A. IDTHTOIN

B. MAXDBAT

C. CONDBAT

D. MAXCONQN

Question #65
What catalog table provides the information about missing or conflicting catalog
statistics for SQL statements?

A. SYSIBM.SYSGUERYSEL

B. SYSIBM.SYSTATFEEDBACK

C. SYSIBM.SYSVARIABLES_TEXT

D. SYSIBM.SYSOUERYPREDICATE

Question #66
You are trying to reduce the transaction CPU cost by using
KEEPDYNAMIC(YES). Which subsystem parameter would you increase to
improve Local Dynamic Cache Hit Ratio and reduce the number of short prepares?

A. MAXRBLK

B. MAXKEEPD

C. MAXTEMPS
D. CONTSTOR

Question #67
What can you accomplish with the stored procedure ADMIN_UTL_MONITOR?

A. This stored procedure helps you monitor currently running threads.

B. You can create a detailed report of currently running and stopped utilities.

C. This stored procedure materializes SYSIBM.SYSSTATFEEDBACK for the


page sets you specify as input parameter.

D. You can create RUNSTATS profiles and RUNSTATS recommendations for


DB2 tables in your DB2 subsystem.

Reference:http://www-
01.ibm.com/support/knowledgecenter/SSEPEK_11.0.0/com.ibm.db2z11.doc.perf/s
rc/tpc/db2z_sp_adminutlmonitor.dita?cp=SSEPEK_11.0.0%2F6-0-6-1-4-5

You might also like