Sie sind auf Seite 1von 23

IBM 000-546

DB2 9.7 Database Administrator for Linux UNIX or Windows Upgrade Q1 Click on the Exhibit button

Given the following DDL statements:

If COL2 contains XML documents similar to the one shown in the scenario, what is the end result of the CREATE INDEX statement? A. An error will be returned because it is not possible to create an index for an XML column like COL2. B. TBSP11 and TBSP12 will each contain one local index for XML_INDEX since the local indexes will physically reside in the same table space as the related data. C. An error will be returned because it is not possible to include more than one column as part of the CREATE INDEX statement when one of the columns is of type XML. D. A non-partitioned index will be created in table space TBSP21 since the INDEX IN clause of the table definition is ignored and XML_INDEX will automatically be created within the first index partition listed in the create table statement.

Answer: C Explanation: Q2 When storing XML data in a DB2 database, which statement is valid? A. A table with an XML column can be defined in a non-Unicode database. B. A table with an XML column can only be defined in a Unicode database. C. A table with an XML column can be defined in a non-Unicode database but the table containing the XML column will be stored in Unicode. D. A table with an XML column can be defined in a non-Unicode database but the database must be converted to Unicode before the XML columns can be used. Answer: A Explanation: Q3 If table TAB_A is created as follows:

Assuming the cardinality of the columns is the same, which statement will create an index that will benefit the most from compression? A. CREATE INDEX taba_idx ON tab_a (c2) B. CREATE INDEX taba_idx ON tab_a (c4) C. ALTER TABLE tab_a ADD PRIMARY KEY (c1) D. CREATE UNIQUE INDEX taba_idx ON tab_a (c2) Answer: A Explanation: Q4 Which of following is true when decomposing multiple XML documents? A. It is possible to decompose multiple XML documents stored in a binary column or in an XML column. B. It is not possible to decompose multiple XML documents stored in a binary column or in an XML column. C. It is possible to decompose multiple XML documents stored in a binary column but not in an XML column. D. It is possible to decompose multiple XML documents stored in a XML column but not in an binary column. Answer: A Explanation: Q5 If table TAB_A has just been created as follows:

Which command will create a compression dictionary for table TAB_A? A. DELETE FROM tab_a B. REORG TABLE tab_a C. UPDATE tab_a SET c1 = c1*1.1 D. LOAD FROM data.del OF DEL INSERT INTO tab_a Answer: D Explanation: Q6 Which is true regarding collecting distribution statistics for XML data? A. XML distribution statistics are collected for indexes over XML data of type VARCHAR. B. XML distribution statistics are collected for indexes over XML data of type VARCHAR HASHED. C. XML distribution statistics are collected when collecting index statistics during index creation. D. XML distribution statistics are collected for partitioned indexes over XML data defined on a data partitioned table. Answer: A Explanation: Q7 Table TAB_A and index TABA_IDX were created by executing these SQL statements:

If this SQL statement is executed after 100,000 records have been inserted into table TAB_A: ALTER INDEX taba_idx COMPRESS NO; Which statement correctly describes what will happen to index TABA_IDX? A. The index will be uncompressed immediately. B. The index will remain compressed until it is REORGed. C. The index will remain compressed until the COMPRESS attribute for table TAB_A has been set to NO. D. The index will remain compressed until the COMPRESS attribute for table TAB_A has been set to NO and both the table and the index have been REORGed. Answer: B Explanation: Q8 Index INDEX1 has been created as follows: CREATE INDEX index1 ON table_x (cola) Which of the

following actions can be done through an ALTER INDEX statement? A. Add a column to the index key. B. Change the PCTFREE specification. C. Make the COMPRESS attribute YES or NO. D. Make this index the clustering index. Answer: C Explanation: Q9 Given the following DDL statements:

What is the end result of the CREATE INDEX statement? A. TBSP21 and TBSP22 will each contain one local index. B. INDEX_TS will contain one non-partitioned index since the create index command is missing the PARTITION keyword. C. TBSP11 and TBSP12 will each contain one local index since the local indexes will physically reside in the same table space as the related data. D. TBSP21 will contain one index because NEW_IDX is not partitioned and will automatically go into the first index partition listed in the create table statement. Answer: A Explanation: Q10 Which of the following SQL statements will return monitoring information of tables in the DB2USER schema that begin with the letter 'A'? A. SELECT * FROM mon_get_table('DB2USER','A%',-2) B. SELECT * FROM TABLE(mon_get_table('DB2USER','A%',-2)) C. SELECT * FROM mon_get_table('DB2USER',",-2) WHERE TABNAME LIKE 'A%' D. SELECT * FROM TABLE(mon_get_table('DB2USER','',-2)) WHERE TABNAME LIKE 'A%' Answer: D Explanation: Q11 A DBA wants to use XQuery on a XML document to determine the number of lock waits for a particular workload. Which of the following table functions should be used? A. MON_GET_WORKLOAD

B. MON_GET_LOCKS C. MON_GET_WORKLOAD_DETAILS D. MON_GET_LOCKS_DETAILS Answer: C Explanation: Q12 You have created a Trusted Context by using following command:

What is the ENCRYPTION type for the '9.26.146.201' address, the AUTHENTICATION type for PUBLIC, and is MYCTX enabled? A. None, WITH AUTHENTICATION, No B. High, WITH AUTHENTICATION, Yes C. High, WITHOUT AUTHENTICATION, No D. None, WITHOUT AUTHENTICATION, Yes Answer: D Explanation: Q13 Which statements about Explain administration authority (EXPLAIN) are true? A. EXPLAIN authority allows a user to explain query plans without gaining access to data for a specific database. SECADM can grant this authority and this authority can be granted to PUBLIC. B. EXPLAIN authority allows a user to explain query plans by gaining limited access to data for a specific database. DBADM can grant this authority and this authority can be granted to PUBLIC. C. EXPLAIN authority allows a user to explain query plans by gaining limited access to data for a specific database. SECADM can grant this authority and this authority cannot be granted to PUBLIC. D. EXPLAIN authority allows a user to explain query plans without gaining access to data for a specific database. SECADM and DBADM can grant this authority and this authority cannot be granted to PUBLIC. Answer: A Explanation: Q14 When a database is created who is granted SECADM by default? A. The database creator. B. Members of the SECADM_GROUP. C. Members of the SYSADM_GROUP. D. The database creator and members of the SYSADM_GROUP. Answer: A

Explanation: Q15 What is the minimum privilege required to run the audit stored procedures and table functions (AUDIT_LIST_LOGS and AUDIT_ARCHIVE)? A. SECADM authority on database. B. EXECUTE privilege on the audit stored procedures and table functions. C. DATAACCESS privilege on the audit stored procedures and table functions. D. ACCESSCTR privilege on the audit stored procedures and table functions. Answer: B Explanation: Q16 The following trusted context has been defined:

Which statement is correct? A. If APP1 connects from address 9.26.113.204, it will have role CONTEXT_ROLE associated with the connection. B. If APP1 connects from address 9.26.113.204 and no role has been granted to APP1, then and only then will role CONTEXT_ROLE be used. C. If USER1 connects to the database from address 9.26.113.204 without providing a password, the connection will run under userid APP1. D. If APP1 establishes a connection to the database, a connection to the database server at address 9.26.113.204 will be enabled using a role of CONTEXT_ROLE. Answer: A Explanation: Q17 Which category is used to audit the running of SQL statements? A. CONTEXT B. EXECUTE C. OBJMAINT D. SQLMAINT Answer: B Explanation: Q18 What authority is required to grant SECADM authority to roles and groups? A. System Administrator B. Security Administrator C. Database Administrator

D. Database Administrator with DATAACCESS and ACCESSCTRL privileges Answer: B Explanation: Q19 Given the following GRANT commands:

Assuming that user BOB belongs to the group STAFF and STAFF has no other privileges aside from what is defined above, what is the highest level of privilege that BOB has on the database? A. DBADM B. CONNECT C. ACCESSCTRL D. DATAACCESS Answer: D Explanation: Q20 Which SQL statement must be executed in order to give a user named USER1 the ability to query the system catalog tables and views? A. GRANT WLMADM ON DATABASE TO user1 B. GRANT SQLADM ON DATABASE TO user1 C. GRANT DATAACCESS ON DATABASE TO user1 D. GRANT ACCESSCTRL ON DATABASE TO user1 Answer: C Explanation: Q21 What DB2 feature must NOT be activated in order to enable Secure Sockets Layer (SSL) support? A. Kerberos Authentication B. Connection Concentrator C. Work Load Manager (WLM) D. High Availability Disaster Recovery (HADR) Answer: B Explanation: Q22 Which command will enable Oracle applications to work within a DB2 9.7 environment? A. db2set DB2_COMPATIBILITY=ORA B. db2set DB2_COMPATIBILITY_VECTOR=ORA

C. db2set DB2_COMPATIBILITY_VECTOR=ORACLE D. db2set DB2_COMPATIBILITY=ORACLE Answer: B Explanation: Q23 When the DIAGSIZE database manager configuration parameter is set to 10 on a Linux or Unix OS, what behavior will occur? A. DB2 rotates through 10 db2diag.log files that are 10 MB in size. B. DB2 rotates through 10 db2diag.log and 10 <instance>.nfy files that are 10 MB in size. C. DB2 rotates through 10 db2diag.log and 10 <instance>.nfy files and limits the total size of the 20 files to 10 MB. D. DB2 limits the size of the db2diag.log and <instance>.nfy files to 10 MB, and purges the old records when the limit is reached. Answer: C Explanation: Q24 Which statement describes the state of the DMS table space TBS_1 after the successful execution of the following script? ALTER TABLESPACE tbs_1 MANAGED BY AUTOMATIC STORAGE A. The table space TBS_1 is managed by automatic storage, online and still using its old containers. B. The table space TBS_1 is managed by automatic storage and in a rebalance pending state waiting for the REBALANCE command. C. The table space TBS_1 is managed by automatic storage, online and all its containers are relocated to the database assigned automatic storage paths. D. The table space TBS_1 is managed by automatic storage, in a backup pending state and all its containers are relocated to the database assigned automatic storage paths. Answer: A Explanation: Q25 After executing the following statement: ALTER TABLESPACE tbsp1 LOWER HIGH WATER MARK What is the expected result? A. The high water mark is lowered without moving any extents of TBSP1. B. The extents of TBSP1 are moved around to lower the high water mark. C. The high water mark for TBSP1 is lowered and the unused space is automatically reclaimed by the system. D. The high water mark for TBSP1 is lowered and the unused space is automatically reclaimed by the system if TBSP1 is an automatic storage table space. Answer: B Explanation: Q26 A database administrator wants to load XML data into the table DB2USER.T1 from the delimited ASCII file /home/user/xml/data1.del. Which command will load the XML data and validate it against a XML schema?

A. LOAD FROM data1.del OF DEL XML FROM /home/user/xml INSERT INTO db2user.t1 B. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLSCHEMA USING XDS INSERT INTO db2user.t1 C. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLVALIDATE USING XDS INSERT INTO db2user.t1 D. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLVALIDATE USING XMLSCHEMA INSERT INTO db2user.t1 Answer: C Explanation: Q27 Which parameter can be used to compress XML data being LOADed into a table that recently had an XML column added to it? A. XMLCOMPRESS B. XMLVALIDATE C. KEEPDICTIONARY D. RESETDICTIONARY Answer: D Explanation: Q28 Which db2val option will create a log file? A. -o B. -f C. -l D. -r Answer: C Explanation: Q29 A table named HR.PAYROLL resides in table space TS4 and has a page size of 4K. You want to change the page size of this table to 16K without taking the table offline. Assuming a table space named TS16 with a page size of 16K exists, which command can be used to accomplish this goal? A. CALL ADMIN_MOVE_TABLE (R? AYROLL? S16? S16?, , , , ,OVE?CALL ADMIN_MOVE_TABLE (?R? ?AYROLL? ?S16? ?S16??, ?, ?, ?, ?,?OVE? B. CALL ADMIN_MOVE_TABLE (R? AYROLL? S16? S16?, , , , ,OPY?CALL ADMIN_MOVE_TABLE (?R? ?AYROLL? ?S16? ?S16??, ?, ?, ?, ?,?OPY? C. CALL ADMIN_COPY_TABLE (R? AYROLL? S16? S16?, , , , ,OPY?CALL ADMIN_COPY_TABLE (?R? ?AYROLL? ?S16? ?S16??, ?, ?, ?, ?,?OPY? D. CALL ADMIN_COPY_TABLE (R? AYROLL? S16? S16?, , , , ,OVE?CALL ADMIN_COPY_TABLE (?R? ?AYROLL? ?S16? ?S16??, ?, ?, ?, ?,?OVE? Answer: A Explanation: Q30 You have created a table using the INLINE LENGTH option. Which function is used to determine if XML documents or LOB data is being stored in the base table?

A. ADMIN_INLINED B. STORED_INLINE C. INLINE_IS_ENABLE D. ADMIN_IS_INLINED Answer: D Explanation: Q31 How would you set the client information for a particular activity in a database using Workload Manager (WLM)? A. Use the WLM_SET_CLIENT_INFO audit function B. Use the WLM_SET_CLIENT_INFO table function C. Use the WLM_SET_CLIENT_INFO special register D. Use the WLM_SET_CLIENT_INFO stored procedure Answer: D Explanation: Q32 After using the lock event monitor to capture binary lock event data in an unformatted event table, you can convert the data into an XML or text document using which of the following Java-based tools? A. db2fmtevmon B. db2evmonfmt C. db2exportevm D. db2convertevm Answer: B Explanation: Q33 Which of the following is NOT a valid workload name? A. DBA_WKLOAD B. SYS_WKLOAD C. #WKLOAD D. &WKLOAD Answer: B Explanation: Q34 Which two registry variables that are normally used to delay or avoid acquiring locks are affected by Currently Committed (CC) semantics when the Cursor Stability (CS) isolation level are used? (Choose two.) A. DB2_SKIPUPDATED Extended Option: B. DB2_SKIPINSERTED Extended Option: C. DB2_EVALCOMMITTED Extended Option: D. DB2_WAITFOROUTCOME Extended Option:

E. DB2_EVALUNCOMMITTED Extended Option: Answer: B,E Explanation: Q35 Which two of the following can now be monitored with DB2 v9.7? (Choose two.) A. Unit of work total CPU usage. B. Unit of work total memory usage. C. Deadlocks, lock timeouts, and lock waits. D. Memory consumption by static SQL statements. E. Memory consumption by static and dynamic SQL statements. Answer: A,C Explanation: Q36 If the statement concentrator is enabled and dynamic SQL is running, which statement is correct? A. The statement concentrator only works with JDBC and CLI connections. B. The statement concentrator is disabled when REOPT ALWAYS is specified. C. The statement concentrator can only be used with OLTP workloads or applications. D. The statement concentrator can only be used with DWH or DSS workloads or applications. Answer: B Explanation: Q37 A database administrator wants to prune the Recovery History file for the SAMPLE database so that all objects older than February 1, 2008 (including those marked DB2HISTORY_STATUS_DO_NOT_DELETE) are removed from the file. Which commands will ensure all related recovery objects are automatically removed by DB2? A. UPDATE DB CFG FOR sample USING AUTO_DEL_REC_OBJ OFF; PRUNE HISTORY 200801 WITH FORCE OPTION AND DELETE; B. UPDATE DB CFG FOR sample USING AUTO_DEL_REC_OBJ ON; PRUNE HISTORY 20080101 AND DELETE; C. UPDATE DB CFG FOR sample USING AUTO_DEL_REC_OBJ OFF; PRUNE HISTORY 200801 WITH FORCE OPTION; D. UPDATE DB CFG FOR sample USING AUTO_DEL_REC_OBJ ON; PRUNE HISTORY 200801 WITH FORCE OPTION AND DELETE; Answer: D Explanation: Q38 Which command will enable reads on an High Availability and Disaster Recovery (HADR) standby server? A. db2set DB2_HADR=ROS B. db2set DB2_HADR_ROS=ON C. db2set DB2_HADR=STANDBY D. db2set DB2_HADR_READ=STANDBY

Answer: B Explanation: Q39 The SAMPLE database is backed up and the recovery logs are included in the backup image. Which of the following actions is required to restore the database to the end of the backup? A. RECOVER DB sample TO END OF BACKUP; B. RESTORE DB sample TO END OF BACKUP AND STOP; C. RESTORE DB sample; ROLLFORWARD DB sample TO END OF BACKUP AND COMPLETE; D. RECOVER DB sample TO END OF BACKUP; ROLLFORWARD DB sample AND COMPLETE; Answer: C Explanation: Q40 Regardless of the value set for the mon_obj_metrics parameter, data is always collected for monitor elements reported by which of the two following table functions? (Choose two.) A. MON_GET_TABLE B. MON_GET_TABLESPACE C. MON_GET_CONTAINER D. MON_GET_BUFFERPOOL E. MON_GET_INDEX Answer: A,E Explanation: Q41 Which of the following SQL statements will return monitoring information of all indexes in the DB2USER schema that have greater than 100 index scans? A. SELECT * FROM TABLE(mon_get_index(' ',100,-2)) B. SELECT * FROM TABLE(mon_get_index(' ','DB2USER',-2)) WHERE index_scans > 100 C. SELECT * FROM TABLE(mon_get_index('DB2USER',' ',-2)) WHERE index_scans > 100 D. SELECT * FROM TABLE(mon_get_index('DB2USER',100,-2)) Answer: C Explanation: Q42 Which command is utilized to deactivate the CognosAPP statistics event monitor and stop it from collecting extended aggregate activity data for a given workload? A. DROP WLM MONITOR CognosAPP B. DROP WLM EVENT MONITOR CognosAPP C. SET EVENT MONITOR CognosAPP STATE = 0 D. SET EVENT MONITOR CognosAPP STATE = 1 Answer: C Explanation: Q43 On which two operating systems (OS) can you integrate Workload Management (WLM) in DB2 LUW with

the Workload Management in the OS? (Choose two.) A. AIX B. HP/UX C. Linux D. Solaris E. Windows Answer: A,C Explanation: Q44 Which command/statement is used to implement Currently Committed (CC) semantics behavior on an application-by-application basis? A. SET CURRENT ISOLATION CC B. db2set DB2_USE_CURRENTLY_COMMITTED=YES C. UPDATE DBM CFG USING EVALUNCOMMITTED NO D. UPDATE DB CFG FOR <db_name> USING CUR_COMMIT AVAILABLE Answer: D Explanation: Q45 Which command will activate the statement concentrator? A. UPDATE DB CFG FOR mydb USING STMT_CONC LITERALS B. UPDATE DB CFG FOR mydb USING STMTCONC ENABLED C. UPDATE DB CFG FOR mydb USING STMTCONCENT ON D. UPDATE DB CFG FOR mydb USING STMT_CONC YES Answer: A Explanation: Q46 You are creating a table with 1 LOB column. The size of the LOB column is less than the size of the LOB descriptor. When creating this table you did not specify an INLINE LENGTH. Which option is correct? A. Both the LOB descriptor and the LOB data will be stored in the base table. B. Only the LOB data will be stored in the base table. C. The ALTER TABLE .. INLINE LENGTH .. command is required so the LOB data can be included in the base table. D. Only the LOB descriptor will be stored in base table and the LOB data will be stored in the LOB storage object. Answer: B Explanation: Q47 Which two workload management thresholds support priority aging by providing a remapping action? (Choose two.) A. ACTIVITYTOTALTIME B. CPUTIMEINSC C. REMAPACTIVITY D. CONCURRENTDBCOORDACTIVITIES

E. SQLROWSREADINSC Answer: B,E Explanation: Q48 Which DB2 authority is required to manage workload objects for a database? A. DBADM B. WLMADM C. WLMMAINT D. SECMAINT Answer: B Explanation: Q49 DBAPP1 is a database in instance INST1.

Which scenario can be used? (Assume that all three users are connected to DBAPP1). A. SECADM1: CREATE ROLE admrole SYSADM1: GRANT ROLE admrole TO USER user1 DBADM1: GRANT DATAACCESS ON DATABASE TO ROLE admrole B. SYSADM1: CREATE ROLE admrole SECADM1: GRANT ROLE admrole TO USER user1 DBADM1: GRANT DATAACCESS ON DATABASE TO ROLE admrole C. SECADM1: CREATE ROLE admrole SECADM1: GRANT ROLE admrole TO USER user1 SECADM1: GRANT DATAACCESS ON DATABASE TO ROLE admrole D. SYSADM1: CREATE ROLE admrole SYSADM1: GRANT ROLE admrole TO USER user1 SECADM1: GRANT DATAACCESS ON DATABASE TO ROLE admrole Answer: C Explanation: Q50 If the following statements are executed:

Which operation will be captured by the ASP_1 audit policy? A. DROP TABLE old_tab B. SELECT * FROM staff C. CREATE INDEX idx_1 ON tab_1 (col1) D. CREATE TABLE tab_1 (col1 INT, col2 DATE) Answer: B Explanation: Q51 Which two authorities can grant SELECT privilege on a table? (Choose two.) A. DBADM authority on the database. B. SYSADM authority on the instance. C. SECADM authority on the database. D. ACCESSCTRL authority on the database. E. DATAACCESS authority on the database. Answer: C,D Explanation: Q52 If the following statement is executed:

What occurs if user USER2 connects from the IP address 10.10.10.10 where the database is cataloged with SERVER_ENCRYPT? A. The connection will not be encrypted. B. The connection will be encrypted with LOW encryption. C. The connection will be encrypted with HIGH encryption. D. The connection will be encrypted with NORMAL encryption. Answer: D Explanation: Q53 Which two database manager configuration parameters were added to support encryption? (Choose two.) A. SSL_CLNT_KEYDB B. SSL_CLNT_STASH C. SSL_CLIENT_STASH D. SSL_CLIENT_KEYDB E. SSL_CLIENT_KEYSTASH Answer: A,B

Explanation: Q54 Which SQL statement will archive the audit log for the connected database? A. CALL SYSPROC.AUDIT_ARCHIVE(NULL, NULL) B. CALL SYSPROC.AUDIT_ARCHIVE_LOG(' ', -1) C. SELECT * FROM TABLE(SYSPROC.AUDIT_ARCHIVE(NULL, NULL)) AS t1 D. SELECT * FROM TABLE(SYSPROC.AUDIT_ARCHIVE_LOG(' ', -1)) AS t1 Answer: A Explanation: Q55 User USER1 is a member of the SYSADM group for instance INST1 in DB2 9.7. Database DB_1 was just created within INST1 by user USER2. What additional authorities must be directly granted to USER1 in order for USER1 to retain the same privileges they would have had if database DB_1 had been created with DB2 9.5 by USER2? A. DBADM, DATAACCESS B. DBADM, SECADM, ACCESSCTRL C. DBADM, DATAACCESS, ACCESSCTRL D. SECADM, DATAACCESS, ACCESSCTRL Answer: C Explanation: Q56 Which two are valid BASED UPON CONNECTION attributes for a trusted context? (Choose two.) A. Date and time B. Database role C. Data stream encryption D. System authorization id E. Application program name Answer: C,D Explanation: Q57 Which function/stored procedure CANNOT be used to view audit facility data? A. SYSPROC.AUDIT_AUTH B. SYSPROC.AUDIT_ARCHIVE C. SYSPROC.AUDIT_LIST_LOGS D. SYSPROC.AUDIT_DELIM_EXTRACT Answer: A Explanation: Q58 Which DB2 9.7 database authority can be granted to the group PUBLIC? A. SQLADM B. SECADM C. DATAACCESS

D. ACCESSCTRL Answer: A Explanation: Q59 A DBA sets the AUTO_DEL_REC_OBJ database configuration parameter to ON. When the PRUNE HISTORY command is executed with the AND DELETE option specified, what will occur? A. Entries will remain in the recovery history file; backup images and load copy images will be deleted. B. Entries will remain in the recovery history file; physical log files, backup images, and load copy images will be deleted. C. Entries will be removed from the recovery history file; physical log files, backup images, and load copy images will be removed. D. Entries will be removed from the recovery history file; physical log files, backup images, and load copy images will not be removed. Answer: C Explanation: Q60 Which tool can be used to configure High Availability and Disaster Recovery (HADR) in a clustered environment? A. db2ha B. db2haicu C. db2hacfg D. db2hadmin Answer: B Explanation: Q61 When using an online backup recovery strategy, what steps are required to backup and recover a database to the end of backup timestamp? A. Backup the database. Roll forward the database to the end of backup timestamp. B. Backup the database and include the recovery logs. Restore the database to the end of backup timestamp. C. Backup the database. Restore the database. Roll forward the database to the end of backup timestamp. D. Backup the database and include the recovery logs. Restore the database. Roll forward the database to the end of backup timestamp. Answer: D Explanation: Q62 What is the correct setting for the DIAGSIZE database manager configuration parameter to limit the total size of the db2diag.log and <instance>.nfy files to 60 MB and use 10 rotating files for db2diag.log and 10 for <instance>.nfy? A. DIAGSIZE=6

B. DIAGSIZE=60 C. DIAGSIZE=60,10 D. DIAGSIZE=10,60 Answer: B Explanation: Q63 A DB2 9.7 database has been enabled for Oracle compatibility. What is the command to disable all compatibility features? A. db2set DB2_COMPATIBILITY_VECTOR= B. db2set DB2_COMPATIBILITY_VECTOR=DB2 C. db2set DB2_COMPATIBILITY_VECTOR_ORACLE=OFF D. db2set DB2_COMPATIBILITY_VECTOR=ORA Answer: A Explanation: Q64 If table space TS is created as follows: CREATE TABLESPACE ts MANAGED BY DATABASE USING (FILE '/data.dat' 12 M); If table space TS contains 4 MB of data and the hight water mark is at 6 MB, and the following statements are executed: ALTER TABLESPACE ts LOWER HIGH WATER MARK; ALTER TABLESPACE ts REDUCE (ALL CONTAINERS 5 M); What are the expected results? A. The high water mark for all containers used for table space TS is lowered by 5 MB. B. The size of all containers is only reduced by 5 MB if the high water mark is lowered. C. The high water mark for table space TS is lowered and the size of all containers is reduced by 5 MB. D. The high water mark for all containers used by table space TS is only lowered if the size of all containers can be reduced by 5 MB. Answer: C Explanation: Q65 The SALES database was created without AUTOMATIC STORAGE. If the following command is executed: ALTER DATABASE sales ADD STORAGE ON '/db2fs1', '/db2fs2' What is the expected result? A. The SALES database and all its table spaces are converted to AUTOMATIC STORAGE. B. The SALES database is converted to AUTOMATIC STORAGE and all its existing DMS table spaces are in rebalance pending state. C. The SALES database is converted to AUTOMATIC STORAGE, all new table spaces will use the AUTOMATIC STORAGE paths, existing table spaces need to be dropped and recreated. D. The SALES database is converted to AUTOMATIC STORAGE, all new table spaces will use the AUTOMATIC STORAGE paths, ALTER TABLESPACE statement is needed to convert existing table spaces. Answer: D Explanation: Q66 Given the following DDL statements:

What is the end result of the CREATE UNIQUE INDEX statement? A. INDEX_TS will contain one non-partitioned index. B. TBSP21 and TBSP22 will each contain one local index. C. TBSP11 and TBSP12 will each contain one local index since the local indexes will physically reside in the same table space as the related data. D. TBSP21 will contain one index because NEW_IDX is not partitioned and will automatically go into the first index partition listed in the create table statement. Answer: A Explanation: Q67 Which of the following is possible using pureXML feature in partitioned database environment? A. Using LOAD command with the ANYORDER modifier when loading XML data. B. Using LOAD command with CURSOR file type and LOAD_ONLY mode when loading XML data. C. Using LOAD command with CURSOR file type and PARTITION_ONLY mode when loading XML data. D. Using LOAD command with ANYORDER file type and the ALL_PARTITIONS modifier when loading XML data. Answer: A Explanation: Q68 If table TAB_A and index TABA_IDX are created as follows:

What can be compressed? A. All data in table TAB_A. B. All data in table TAB_A and index TABA_IDX. C. Only data in columns C1 and C2 of table TAB_A. D. Only data in columns C1 and C2 in table TAB_A and index TABA_IDX. Answer: D

Explanation: Q69 Click on the Exhibit button

Given the following DDL statements:

If COL2 contains XML documents similar to the scenario, what is the end result of the CREATE INDEX statement? A. A non-partitioned index will be created in the INDEX_TS table space for XML_INDEX. B. An error will be returned because it is not possible to create an index for an XML column like COL2 C. TBSP11 and TBSP12 will each contain one local index for XML_INDEX since the local indexes will physically reside in the same table spaceas the related data. D. A non-partitioned index will be created in table space TBSP21 since the INDEX IN clause of the table definition is ignored and XML_INDEX willautomatically be created within the first index partition listed in the create table statement. Answer: A Explanation: Q70 Given the following SQL statement:

Assuming that a temporary table is created by DB2 to process this statement, when will it be eligible for compression? A. All the time. B. If table T1 is compressed. C. If tables T1, T2, T3 and T4 are compressed. D. If any table referenced by the query is compressed. Answer: A Explanation: Q71 When using an SQL UPDATE statement on an XML column, which statement is valid? A. An SQL UPDATE statement cannot be used on an XML column. B. An SQL UPDATE statement on an XML column must supply the complete new XML document. C. An SQL UPDATE statement can modify a portion of an XML column using the SUBSTR function. D. An SQL UPDATE statement can update an XML column using an XMLQUERY transform expression. Answer: D Explanation: Q72 In a partitioned database environment, a table's distribution key can have: A. An XML column with other non-XML columns. B. An XML column with primary key defined on it. C. An XML column with unique index defined on it. D. Only XML columns with no primary key defined on it. Answer: A Explanation: Q73 If the file DATA.DEL contains 100,000 records and these statements/commands are executed in the order shown:

When will a compression dictionary be built for table TAB_A? A. During the REORG operation. B. During the IMPORT operation. C. During the ALTER TABLE operation.

D. During the CREATE TABLE operation. Answer: B Explanation: Q74 A range-partitioned table TAB1 has been created with COL1 and COL2 with COL1 as the partitioning column. What is the result of running the following statement? CREATE UNIQUE INDEX xcol2 ON tab1(col2) PARTITIONED A. The statement will be rejected and an error will be returned. B. The uniqueness will be enforced locally within each partition. C. The index will be created as a non-unique index and a warning will be returned. D. The index will be created as a unique non-partitioned index and a warning will be returned. Answer: A Explanation: Q75 If DB2 load operation is performed against a table which contains at least one XML column, which statement is true? A. One compression dictionary is built for both relational data and for XML data. B. One compression dictionary is built for relational data, XML data is not compressed. C. One compression dictionary is built for relational data and one compression dictionary is built for the XML data. D. One compression dictionary is built for relational data, one compression dictionary is built for XML data, and one compression dictionary is built for both relational and XML data. Answer: C Explanation: Q76 Which of the following statements will load XML data with white spaces removed into the table DB2USER.T1? A. LOAD FROM data1.del OF DEL XML FROM /home/user/xml SKIP WHITESPACE XMLVALIDATE USING SCHEMA s1.schema_a INSERT INTO db2user.t1 B. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLDATA STRIP WHITESPACE XMLVALIDATE USING SCHEMA s1.schema_a INSERT INTO db2user.t1 C. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLPARSE STRIP WHITESPACE XMLVALIDATE USING SCHEMA s1.schema_a INSERT INTO db2user.t1 D. LOAD FROM data1.del OF DEL XML FROM /home/user/xml XMLPARSE SKIP WHITESPACE XMLVALIDATE USING SCHEMA s1.schema_a INSERT INTO db2user.t1 Answer: C Explanation: Q77 A table named TAB_A has a primary key and 2 additional indexes that were created by the DBA. If the ADMIN_MOVE_TABLE procedure is used to MOVE table TAB_A from a table space named TS4K to a

table space named TS16K, how many indexes will be on the table after the procedure finishes running? A. 0 B. 1 C. 2 D. 3 Answer: D Explanation: Q78 You have installed a copy of DB2 on your windows server. After the installation you only want to verify the instance (INSTANCE_NAME) of this installed copy followed by the starting of this database instance. Which of the following statements is correct? A. db2val -i INSTANCE_NAME -o B. db2val -i INSTANCE_NAME -s C. db2val -i INSTANCE_NAME -v D. db2val -i INSTANCE_NAME -a Answer: B Explanation:

Das könnte Ihnen auch gefallen