731

来源:互联网 发布:vb下载 编辑:程序博客网 时间:2024/04/30 07:28

 

IBM  000-731DB2 9 DBA for Linux, UNIX and Windows 138 Q&AVersion 2.73Important Note, Please Read CarefullyOther TestNows productsA) Offline Testing engineUse the offline Testing engine product topractice the questions in an exam environment.Build a foundation of knowledge which will be useful also after passing the exam.Latest VersionWe are constantly reviewing our products. New material is added and old material is revised. Free updates are available for 90 days after the purchase. You should check your member zone at TestNows and update 3-4 days before the scheduled exam date.Here is the procedure to get the latest version:1.Go to2.Click on Log in3.The latest versions of all purchased products are downloadable from here. Just click the links.For most updates,it is enough just to print the new questions at the end of the new version, not the whole document.FeedbackIf you spot a possible improvement then please let us know. We always interested in improving product quality.Feedback should be send to feedback@TestNows.com. You should include the following: Exam number, version, page number, question number, and your login Email.Our experts will answer your mail promptly.CopyrightEach iPAD file is a green exe file. if we find out that a particular iPAD Viewer file is being distributed by you, TestNows reserves the right to take legal action against you according to the International Copyright Laws.ExplanationsThis product does not include explanations at the moment. If you are interested in providing explanations for this exam, please contact feedback@TestNows.com.

 Q: 1  A database administrator has HADR enabled and wants to do a LOAD WITH COPY NO option on the primary server.  What happens on the standby server?

A.   The Load is replicated without problems.

B.   The Load will stop with an appropriate error message.

C.   The Load will be automatically converted to NONRECOVERABLE and the standby database will be marked bad.

D.   The Load will be automatically converted to COPY YES if the directory or device specified on the primaryserver is accessible for the standby database.

Answer: C

 

 Q: 2  A DBA needs to set the DIAGLEVEL configuration parameter to 4 while users are connected to the database. How can this change be implemented in a way that has a minimum impact to the environment?

A.   Quiesce the database and update the parameter.

B.   Attach to the instance and update the parameter.

C.   Connect to the database in a single user mode and update the parameter.

D.   Attach to the instance, update the parameter, stop and restart the instance.

Answer: B

 

 Q: 3  A transaction that receives a log disk full error (SQL0968C) will fail and be rolled back.  In order to prevent the roll back, which of the following should be done?

A.   Set BLK_LOG_DSK_FUL to NO

B.   Set BLK_LOG_DSK_FUL to YES

C.   Decrease space for the active log directory

D.   Reduce the LOGPRIMARY, LOGSECOND and LOGFILSIZ

Answer: B

 

 Q: 4  Recovering a single table space to a point in time:

A.   requires archive log files from the last restorable backup.

B.   is not possible, table spaces must be recovered to end of logs.

C.   is not possible if the disks for that table space are not recoverable.

D.   requires the sysadmin to connect to the target database prior to issuing the command.

Answer: A

 

 Q: 5  As part of a high availability takeover strategy using HADR, the LOG INDEX BUILD table attribute for the APPLICANT table is set to OFF.  What is the most likely effect of this change?

A.   After failover, the APPLICANT table index may be rebuilt.

B.   An attempt to create a unique index on the APPLICANT table will fail.

C.   Index builds for the APPLICANT table on the primary system will take longer.

D.   The LOGINDEXBUILD database configuration parameter overrides the table attribute.

Answer: A

 

 Q: 6  A FINANCE database must be available 24 hours a day, seven days a week.  Which of the following commands can be issued to back up the FINANCE database, while minimizing the impact on other database users?

A.   BACKUP DATABASE finance ONLINE TO <backup_location> COMPRESS

B.   BACKUP DATABASE finance TO <backup_location> UTIL_IMPACT_PRIORITY 5

C.   BACKUP DATABASE finance ONLINE TO <backup_location> UTIL_IMPACT_PRIORITY 15

D.   BACKUP DATABASE finance ONLINE TO <backup_location> UTIL_IMPACT_PRIORITY 100

Answer: C

 

 Q: 7  A recovery of database DB1 is started by issuing RECOVER DATABASE DB1 TO END OF LOGS.  The recovery fails during the rollforward phase.  In order to continue the recovery from the point of failure, which of the following commands should be executed?

A.   RECOVER DATABASE DB1 RESTART

B.   RECOVER DATABASE DB1 TO END OF LOGS

C.   RECOVER DATABASE DB1 TO END OF LOGS RESTART

D.   RECOVER DATABASE DB1 CONTINUE TO END OF LOGS

Answer: B

 

 Q: 8  Which of the following is used to protect a database from the accidental deletion of an active log file and data corruption of log files caused by hardware failure?

A.   newlogpath

B.   failarchpath

C.   mirrorlogpath

D.   overflowlogpath

Answer: C

 

 Q: 9  A database named QA that was using archival logging crashed.  An attempt to restart it failed with error code SQL0290N.  Examination of the db2diag.log shows that the disk drive containing the system catalog table space SYSCATSPACE is not responding.  Backup images of both the QA database and the SYSCATSPACE table space exist.  After replacing the failed disk drive, what is the quickest method to bring the QA database back online?

A.   Restore the QA database from the latest off-line backup image.

B.   Restore the QA database from the latest off-line backup image and rollforward to end of logs.

C.   Restore the System Catalog table space from the latest SYSCATSPACE backup image without rollingforward.

D.   Restore the System Catalog table space from the latest SYSCATSPACE backup image and rollforward toend of logs.

Answer: D

 

 Q: 10  Given the following situation: Table space ts1 with tables t1, t2, t3 Table space ts2 with tables t4, t5 Tables t1 and t4 have defined referential integrity on them (t1 is the parent, t4 is the child) What happens after restoring the table space ts1 and issuing the following command? db2 rollforward db sample to 2006-06-16-14.21.56 and stop tablespace(ts1)

A.   The roll forward is executed to the end of logs.

B.   The roll forward is not executed and an error message is generated.

C.   The roll forward is executed and table t4 is placed in set integrity pending state.

D.   The roll forward is executed and tables t1 and t4 are placed in set integrity pending state.

Answer: C

 

 Q: 11  What are the two security mechanisms that enable users to access DB2 data?

A.   Authentication and Clearance

B.   Authorization and Validation

C.   Validation and Certification

D.   Authentication and Authorization

Answer: D

 

 Q: 12  USER1 needs to remove table TABLE1 from the PAYROLL database. Assuming USER1 has no privileges on TABLE1, which of the following must occur before USER1 will be allowed to drop the table?

A.   A user with SYSADM authority must execute the statement GRANT DELETE ON table1 TO user1.

B.   A user with DBADM authority must execute the statement GRANT CONTROL ON table1 TO user1.

C.   A user granted DELETE  WITH GRANT OPTION privilege on TABLE1 must execute the statement GRANT DELETE ON table1 TO user1.

D.   A user granted CONTROL  WITH GRANT OPTION privilege on TABLE1 must execute the statement GRANT CONTROL ON table1 TO user1.

Answer: B

 

 Q: 13  When a table is altered and a column is added for secured access by Label Based Access Control (LBAC), what column type should be used?

A.   DB2SECURITY

B.   DB2LABELSECURITY

C.   DB2SECURITYLABEL

D.   DB2SECURITYDBLABEL

Answer: C

 

 Q: 14  A DBA wants to grant the SELECT privilege on table T1 to user USER1 and group GRP1. USER1 and GRP1 have not been defined.  What is the minimum that needs to be done to successfully grant this privilege?

A.   Grant the SELECT privilege to USER1 and GRP1.

B.   Define GRP1 and then grant the SELECT privilege.

C.   Define USER1 and then grant the SELECT privilege.

D.   Define USER1 and GRP1 and then grant the SELECT privilege.

Answer: A

 

 Q: 15  A DB2 application developer creates an SQL stored procedure. Inside the procedure, a static SQL statement reads data from a table called EMPLOYEE and a dynamic SQL statement inserts data into a table called PAYROLL. Assuming that the default pre-compile and bind options are used, what privileges would an application user need in order to successfully invoke the stored procedure?

A.   EXECUTE privilege on the stored procedure

B.   SELECT privilege on the EMPLOYEE table INSERT privilege on the PAYROLL table

C.   EXECUTE privilege on the stored procedure INSERT privilege on the PAYROLL table

D.   EXECUTE privilege on the stored procedure SELECT privilege on the EMPLOYEE table

Answer: C

 

 Q: 16  User 1 creates table T1 and subsequently creates view V1 based on table T1.  User 1 grants SELECT WITH GRANT OPTION on view V1 to user 2. User 2 grants SELECT privileges on view V1 to user 3.  The database administrator revokes CONTROL and SELECT privileges from user 1.  What is the status of privileges on view V1 after this sequence?

A.   User 2 and user 3 still have SELECT privileges on view V1.

B.   All privileges have been revoked and the view is marked inoperative.

C.   User 3 still has SELECT privilege on view V1, but user 2's privilege has been revoked.

D.   User 2 still has SELECT privilege on view V1, but user 3's privilege has been revoked.

Answer: B

 

 Q: 17  Given the following notification log entry: 2006-02-13-14.34.35.965000-300    I17502H435    LEVEL: Error PID   : 940            TID    : 660      PROC : db2syscs.exe INSTANCE: DB2     NODE : 000             DB : SAMPLE APPHDL : 0-1433               APPID: *LOCAL.DB2.050120082811 FUNCTION:  DB2 UDB, data protection, sqlpsize, probe:20 RETCODE :  ZRC=0x860F000A=-2045837302=SQLO_FNEX "File not found." DIA8411C A file "" could not be found. Which letter from the function name sqlpsize should be used to look up information about this function in the Support and Troubleshooting section of the Information Center?

A.   The last letter

B.   The fifth letter

C.   The fourth letter

D.   The second last letter

Answer: C

 

 Q: 18  A database server has two instances with all databases created using the default parameters.   Instance inst1 with databases datab1, datab2 and datab3 Instance inst2 with databases datab11, datab12 and datab13  The instance inst1 and the database datab12 must not be able to be seen using DISCOVERY to catalog databases and servers.  Which of the following actions are required?

A.   Update the dbm cfg for instance inst1 to discover_inst = disable Update the db cfg for database datab12 to discover_db = disable

B.   Update the dbm cfg for instance inst1 to discover_inst = disable Update the dbm cfg for instance inst2 to discover_inst = disable

C.   Update the dbm cfg for instance inst1 to discover_inst = disable Update the dbm cfg for instance inst2 to discover_db = disable datab12

D.   Update the dbm cfg for instance inst1 to discover_inst = disable Update the db cfg for database datab11 and datab13 to discover_db = enable

Answer: A

 

 Q: 19  Which of the following authorities should a user have in order to QUIESCE the DB2 instance?

A.   DBADM

B.   SECADM

C.   SYSMON

D.   SYSMAINT

Answer: D

 

 Q: 20  Which of the following settings would allow 20 sorts with a maximum of 10MB each to run concurrently on a 64-bit instance?

A.   Set the DB SHEAPTHRES to 50000 and the DB SORTHEAP to 2500.

B.   Set the DBM SHEAPTHRES to 50000 and the DB SORTHEAP to 2500.

C.   Set the DBM SHEAPTHRES to 50000 and the DBM SORTHEAP to 2500.

D.   Set the DBM SHEAPTHRES_SHR to 50000 and the DBM SHEAPTHRES to 2500.

Answer: B

 

 Q: 21  A DBA attempts to use the Task Center to schedule a daily database backup and is not successful.  A GET ADMIN CFG command shows that TOOLSCAT_DB, TOOLSCAT_INST, and TOOLSCAT_SCHEMA are all NULL on the DB2 server where the backup task was attempted.  What must be done to enable scheduling of tasks on this server using the Task Center?

A.   Use the CREATE DATABASE command to create a database called TOOLSDB.

B.   Use the CREATE TOOLS CATALOG command to create the DB2 tools catalog tables in a new or existing database.

C.   Create a table space called SYSTOOLSPACE in the database that the Task Center was trying to schedule a Backup for using CREATE TABLESPACE.

D.   Create a new schema called TOOLSCAT in the database that the Task Center was trying to schedule a Backup for and then use UPDATE ADMIN CFG to reference that database, instance and schema.

Answer: B

 

 Q: 22  For a DB2 instance db2inst1 on a server with port 50000 available, which of the following commands must be run in order to configure DB2 to listen for incoming TCP/IP connections? a. db2set db2comm=tcpip b. db2 UPDATE DBM CFG USING PORT_NUM 50000 c. db2 UPDATE DBM CFG USING SVCENAME DB2c_db2inst1 d. db2 UPDATE DBM CFG USING TP_MON_NAME db2inst1 e. Add "DB2c_db2inst1   50000/tcp" to the services file F. db2set db2comm=tcp/ip

A.   a, b, c

B.   c, e, f

C.   a, d, e

D.   a, c, e

Answer: D

 

 Q: 23  After running AUTOCONFIGURE for a database, sort memory heap (SORTHEAP) was not enabled for automatic tuning.  Which of the following is the reason?

A.   SHEAPTHRES in the database manager configuration is set to zero.

B.   SHEAPTHRES in the database manager configuration is not set to -1.

C.   SHEAPTHRES in the database manager configuration is not set to zero.

D.   SHEAPTHRES in the database manager configuration is not set to auto.

Answer: C

 

 Q: 24  Self tuning memory will tune in intervals based on which of the following?

A.   The workload changes

B.   The DB2 registry entry

C.   The database configuration

D.   The autoconfig configuration file

Answer: A

 

 Q: 25  An excerpt from an application snapshot reveals the following : Coordinator agent process or thread ID        = 1413166 Degree of parallelism requested                    = 6 umber of agents working on statement          = 4 Number of subagents created for statement  = 4 Agent process/thread ID                       = 1413166 Agent process/thread ID                       = 2670796 Agent process/thread ID                       = 2703374 Agent process/thread ID                       = 1736882 Agent process/thread ID                       = 1724474 Which of the following configurations would be observed?

A.   INTRA_PARALLEL ON and MAXAGENTS 4 and database configuration DFT_DEGREE 1

B.   INTRA_PARALLEL ON and MAX_QUERYDEGREE 3 and database configuration DFT_DEGREE 4

C.   INTRA_PARALLEL ON and MAX_QUERYDEGREE 6 and database configuration DFT_DEGREE 1

D.   INTRA_PARALLEL ON and MAX_QUERYDEGREE 4 and database configuration DFT_DEGREE ANY

Answer: D

 

 Q: 26  Which command will list all registry variables that are set for the current or default instance?

A.   db2set -lr

B.   db2set -all

C.   db2set -inst

D.   db2set DB2INSTDEF

Answer: B

 

 Q: 27  Which of the following lists all actions possible using the SET UTIL_IMPACT_PRIORITY command?  a. Throttle a utility that was invoked in unthrottled mode b. Unthrottle a throttled utility (disable throttling) c. Set the default throttle for all utilities d. Reprioritize a throttled utility

A.   a and b

B.   b, c and d

C.   a, b and c

D.   a, b and d

Answer: D

 

 Q: 28  Which of the following TWO commands will apply AUTOCONFIGURE recommended changes to buffer pools?

A.   AUTOCONFIGURE USING <options> APPLY NONE

B.   AUTOCONFIGURE USING <options> APPLY DB ONLY

C.   AUTOCONFIGURE USING <options> APPLY DB AND DBM

D.   AUTOCONFIGURE USING <options> APPLY BUFFERPOOLS ONLY

E.   AUTOCONFIGURE USING <options> APPLY DB AND BUFFERPOOLS ONLY

Answer: B, C

 

 Q: 29  The LIST APPLICATIONS command provides the following output: Auth ID   Application  Appl.      Application ID                            DB         # of Agents                 Name        Handle                                                    Name -------      -----------     ------     ----------------------                      ----------     ------------ USR1      myapp        25667      LOCAL.DB2.060609075930   TESTDB     1 USR1      db2bp.exe    25668      LOCAL.DB2.060609075931  TESTDB     1 The Database Administrator needs to force the application myapp executed by user usr1.  Which command must be issued?

A.   FORCE APPLICATION (25667)

B.   FORCE APPLICATION (myapp)

C.   FORCE APPLICATION (myapp user usr1)

D.   FORCE APPLICATION (LOCAL.DB2.060609075930)

Answer: A

 

 Q: 30  A Database Administrator needs to create a new database mydb on /home/database and wants to have RUNSTATS running automatically.  Which of the following is/are the minimum required statements for this to occur?

A.   CREATE DATABASE mydb on /home/database UPDATE DB CFG for mydb using AUTO_RUNSTATS ON UPDATE DB CFG for mydb using AUTO_MAINT OFF

B.   CREATE DATABASE mydb on /home/database UPDATE DB CFG for mydb using AUTO_MAINT ON

C.   CREATE DATABASE mydb on /home/database UPDATE DB CFG for mydb using AUTO_RUNSTATS ON UPDATE DB CFG for mydb using AUTO_MAINT ON

D.   CREATE DATABASE mydb on /home/database

Answer: D

 

 Q: 31  Which of the following utilities can copy all 50 tables created under a single schema to another database with the fewest required steps?

A.   db2move

B.   db2look

C.   db2copy

D.   db2batch

Answer: A

 

 Q: 32  A developer wants to create a new user-defined function for the FINANCE database using the Control Center. Which statement best describes how the developer should proceed?

A.   Right-click the "User-Defined Functions" folder under the FINANCE database and select the "Create" option.

B.   Right-click the "Routines" folder under the FINANCE database and select the "Create User-DefinedFunction wizard" option.

C.   A user-defined function cannot be created using the Control Center.  Proceed with using the Command Editor or the new DB2 V9 Developer Workbench.

D.   Switch to the Control Center Development View, right-click the "User-Defined Function" folder under the FINANCE database, and select the "Create" option.

Answer: C

 

 Q: 33  If a large amount of data is being loaded into table MKT_VALUE, what does the following DB2 command do?LOAD QUERY TABLE  mkt_value

A.   Displays the status of the load

B.   Allows users to query the data being loaded

C.   Prevents any querying of the table MKT_VALUE during the load

D.   Specifies a query is to be run immediately after the load operation

Answer: A

 

 Q: 34  A table named EMPLOYEE contains 100,000 records.  The following query seems to take a long time to execute when it is run against the EMPLOYEE table: SELECT EMPID FROM employee WHERE EMPID > 1000 A DBA creates an index on the EMPID column but performance does not improve.  Which of the following operations will correct this problem?

A.   REORG

B.   REBIND

C.   REORGCHK

D.   RUNSTATS

Answer: D

 

 Q: 35  Given the following command: LOAD FROM datafile2.del OF DEL INSERT INTO table1 ALLOW READ ACCESS What data can be read by other transactions during the LOAD operation?

A.   Only the data that is being loaded into TABLE1

B.   No data in TABLE1 can be accessed until the load completes

C.   All data in TABLE1 including the data currently being loaded

D.   Only data in TABLE1 that existed prior to the load invocation

Answer: D

 

 Q: 36  Given the following IMPORT command: IMPORT FROM myfile.ixf OF IXF        XML FROM /tmp/xmlpath        XMLVALIDATE USING XDS        MESSAGES msg.out        REPLACE_CREATE INTO newtable If the command fails due to the transaction logs being full, which of the following will allow the IMPORT to complete successfully?

A.   Re-run the IMPORT with the NOTIMEOUT option.

B.   Re-run the IMPORT with the COMMITCOUNT AUTOMATIC option.

C.   Re-run the IMPORT with the REPLACE option instead of the REPLACE_CREATE option.

D.   Re-run the IMPORT without the XMLVALIDATE USING XDS option; validate the documents after theIMPORT completes with the XMLVALIDATE function.

Answer: B

 

 Q: 37  What is the isolation level that the EXPORT utility is bound with?

A.   Repeatable Read

B.   Unrepeatable Read

C.   Uncommitted Read

D.   Cursor Stability

Answer: D

 

 Q: 38  The following comment immediately before the last SQL statement in the input file --# SET FREQUENCY 1000 informs the Design Advisor:

A.   To run the index analysis 1,000 times.

B.   To execute all SQL statements in the workload file 1,000 times.

C.   To evaluate the SQL statement following the comment 1,000 times.

D.   To try up to 1,000 combinations of optimizations for the workload.

Answer: C

 

 Q: 39  A DBA needs to populate table T1 with a large amount of data and wants to incur a minimal amount of logging. The DBA also needs to populate table T2 with data and make sure that constraints are enforced during population.  What is the best approach for populating the tables?

A.   LOAD data into table T1 LOAD data into table T2

B.   IMPORT data into table T1 IMPORT data into table T2

C.   IMPORT data into table T1 LOAD data into table T2

D.   LOAD data into table T1 IMPORT data into table T2

Answer: D

 

 Q: 40  Users are reporting slow response for queries running against the SEC.CREDITCARD table.  The following command was run: db2 "reorgchk current statistics on table SEC.CREDITCARD" The resulting output does not indicate a need to reorganize data in the SEC.CREDITCARD table. What steps should be taken next?

A.   Rebind all packages that use the SEC.CREDITCARD table.

B.   Drop and rebuild all indexes on the SEC.CREDITCARD table.

C.   Run statistics and re-run the reorgchk command on the SEC.CREDITCARD.

D.   Reorganize the indexes for the SEC.CREDITCARD table using a temporary table space.

Answer: C

 

 Q: 41  Which of the following utilities provides a report of memory status for instances, databases, and agents?

A.   db2mtrk

B.   db2mchk

C.   db2expln

D.   db2memview

Answer: A

 

 Q: 42  A database administrator needs an alert generated when table space TS1 is filled up to 70% and all other table spaces are filled up to 80%.  How can the DBA accomplish this using the Health Center?

A.   Change the Global Settings for all table spaces and then change the Object Settings for table space TS1.

B.   Change the Global Settings for all table spaces and then change the Instance Settings for table spaceTS1.

C.   Change the Instance Settings for all table spaces and then change the Object Settings for table spaceTS1.

D.   Change the Instance Settings for all table spaces and then change the Tablespace Settings for tablespace TS1.

Answer: A

 

 Q: 43  Which of the following commands will re-initialize the commit counter reported by the snapshot monitor?

A.   RESET MONITOR ALL

B.   ZERO MONITOR COUNTERS

C.   ZERO MONITOR FOR COMMIT

D.   RESET MONITOR FOR COMMIT

Answer: A

 

 Q: 44  Which of the following event monitor types is defined and active for all databases by default?

A.   DATABASE

B.   DEADLOCKS

C.   BUFFERPOOLS

D.   CONNNECTIONS

Answer: B

 

 Q: 45  Which of the following DB2 utilities can produce a graph of an optimizer query plan?

A.   db2bfd

B.   db2look

C.   db2advis

D.   db2expln

Answer: D

 

 Q: 46  A user issues the following commands: UPDATE DBM CFG USING DFT_MON_STMT ON UPDATE MONITOR SWITCHES USING SORT ON Then, later issues these commands: UPDATE DBM CFG USING DFT_MON_LOCK ON UPDATE MONITOR SWITCHES USING BUFFERPOOL ON UPDATE MONITOR SWITCHES USING STATEMENT OFF Assuming no other monitor switches have been set, if the DB2 instance is stopped and restarted, which of the following database monitor switches will be active?

A.   STATEMENT, LOCK

B.   STATEMENT, SORT

C.   BUFFERPOOL, SORT

D.   BUFFERPOOL, LOCK

Answer: A

 

 Q: 47  Which of the following event monitor options can increase application response time as the suspended agent and any dependent agents cannot run until the event monitor buffers are clear?

A.   BLOCK

B.   BUFFER

C.   NONBLOCK

D.   SHEAPTHRES_SHR

Answer: A

 

 Q: 48  In a decision support environment, if a query joins two tables, which of the following join methods is preferred?

A.   Hash join

B.   Star join

C.   Left outer join

D.   Nested-loop join

Answer: A

 

 Q: 49  Which utility can be used to examine the SQL statements within a bind file?

A.   db2bfd

B.   db2mtrk

C.   db2look

D.   db2advis

Answer: A

 

 Q: 50  How many index keys are created by this index? CREATE INDEX empindex on companyinfo(companydocs)  GENERATE KEY USING XMLPATTERN '/company/emp/@id'  AS SQL DOUBLE if the XML column contains the following two documents:

A.   0

B.   2

C.   3

D.   4

Answer: C

 

 Q: 51  Which one of the following data organization schemes should be used in isolation?

A.   DISTRIBUTE BY HASH

B.   PARTITION BY RANGE

C.   ORGANIZE BY DIMENSIONS

D.   ORGANIZE BY KEY SEQUENCE

Answer: D

 

 Q: 52  What is the maximum size of table space TBS01 given that the size of fs1 is 16GB, fs2 is 10GB and fs3 is 8GB? CREATE REGULAR TABLESPACE TBS01 PAGESIZE 16384 MANAGED BY SYSTEM          USING ('/fs1', '/fs2', '/fs3')          EXTENTSIZE 32          PREFETCHSIZE 64          BUFFERPOOL BP016K;

A.   34 GB

B.   26 GB

C.   24 GB

D.   18 GB

Answer: C

 

 Q: 53  If the following command is executed: create database adwprod on '/db2adw' collate using identity catalog tablespace managed by database using (FILE '/db2tbsp/CATALOG' 512); Which of the following will occur?

A.   The SYSCATSPACE would be renamed CATALOG.

B.   A DMS table space will be used to hold a catalog.

C.   The command will fail because the catalogue tablespace is called SYSCATSPACE.

D.   All of the tablespaces for database adwprod will be created in /db2tbsp/CATALOG.

Answer: B

 

 Q: 54  The DB2 instance "db2inst1" has been created in the /home/db2inst1 directory.  If the DFTDBPATH database manager configuration parameter contains no value and the following command is executed:    CREATE DATABASE newdb   Where will the NODE0000 subdirectory of the database NEWDB reside?

A.   In the /home/db2inst1 subdirectory

B.   In the /home/db2inst1/newdb subdirectory

C.   In the /home/db2inst1/db2inst1 subdirectory

D.   In the /home/db2inst1/db2inst1/newdb subdirectory

Answer: C

 

 Q: 55  When a schema is explicitly created with the CREATE SCHEMA statement, which of the following is true?

A.   The schema owner is assumed to be a user or a group.

B.   The new schema owner is granted the privilege to explicitly create other schemas.

C.   The schema owner is granted CREATEIN, DROPIN, and ALTERIN privileges on the schema with the ability to grant these privileges to other users.

D.   The schema owner is granted CREATEIN, DROPIN, and ALTERIN privileges on the schema without the ability to grant these privileges to other users.

Answer: C

 

 Q: 56  For a database that is enabled for automatic storage, which command will create a DMS tablespace TBSP_10 capable of storing 1 TB of data?

A.   create tablespace TBSP_10 managed by database

B.   create tablespace TBSP_10 managed by automatic storage

C.   create regular tablespace TBSP_10 managed by automatic storage

D.   create large tablespace TBSP_10 managed by database automatic storage

Answer: B

 

 Q: 57  Which of the following is the correct command for obtaining detailed information about a table space, including its current status?

A.   list tablespaces

B.   list tablespaces show detail

C.   list tablespace containers show detail

D.   get snapshot for tablespace containers on sample

Answer: B

 

 Q: 58  Given the following DMS tablespaces: CREATE TABLESPACE tbsp0 MANAGED BY DATABASE USING               (FILE conta 10000); CREATE TABLESPACE tbsp1 MANAGED BY DATABASE USING              (FILE contb 10000); CREATE TABLESPACE tbsp2 MANAGED BY DATABASE USING               (FILE contc 10000); CREATE TABLESPACE tbsp3 MANAGED BY DATABASE USING               (FILE contd 10000); Which of the following statements is used to create a partitioned table part_tab with four partitions in which part0 will be placed in tbsp0, part1 will be placed in tbsp1, part2 will be placed in tbsp2, and part3 will be placed in tbsp3?

A.   CREATE TABLE part_tab (c0 INT)PARTITION BY (c0)(STARTING 0 ENDING at 9 IN tbsp0,STARTING 10 ENDING 19 IN tbsp1,STARTING 20 ENDING 29 IN tbsp2,STARTING 30 ENDING at 39 IN tbsp3);

B.   CREATE TABLE part_tab (c0 INT) LONG IN tbsp1 CYCLE INDEX IN tbsp2PARTITION BY (c0)(PART part0 STARTING 0 ENDING at 9,PART part1 STARTING 10 ENDING 19,PART part2 STARTING 20 ENDING 29,PART part3 STARTING 30 ENDING at 39);

C.   CREATE TABLE part_tab (c0 INT) in tbsp0, tbsp1, tbsp2PARTITION BY (c0)(STARTING 0 ENDING at 9,STARTING 10 ENDING 19,STARTING 20 ENDING 29,STARTING 30 ENDING at 39);

D.   CREATE TABLE part_tab (c0 INT) LONG IN tbsp1 CYCLE INDEX IN tbsp2PARTITION BY (c0)(STARTING 0 ENDING at 9 IN tbsp0,STARTING 10 ENDING 19 IN tbsp1,STARTING 20 ENDING 29 IN tbsp2,STARTING 30 ENDING at 39 IN tbsp3);

Answer: A

 

 Q: 59  Which of the following REORG table options will compress the data in a table using the existing compression dictionary?

A.   KEEPEXISTING

B.   KEEPDICTIONARY

C.   RESETDICTIONARY

D.   EXISTINGDICTIONARY

Answer: B

 

 Q: 60  A system managed table space is created with three containers.  Container 1 is limited to 1 GB of storage. Containers 2 and 3 are limited to 5 GB of storage each.  Approximately, what is the maximum amount of data that can be stored in this table space?

A.   1 GB

B.   3 GB

C.   5 GB

D.   11 GB

Answer: B

 

 Q: 61  Which of the following statements best describes DB2's table partitioning capability?

A.   It does not work with DPF.

B.   It is not allowed with MQTs.

C.   It is the same as using UNION of multiple tables.

D.   It improves performance through data partition elimination.

Answer: D

 

 Q: 62  Which of the following Control Center features would be used to graphically discover a locking problem that is leading to poor concurrency on a database?

A.   Health Center

B.   Design Advisor

C.   Activity Monitor

D.   DB2 Query Patroller Center

Answer: C

 

 Q: 63  A database administrator creates two indexes on the same table.  INX1 is in ascending order and INX2 is in descending order.  The DISALLOW REVERSE SCANS option is not specified in the CREATE INDEX statement. Which of the following will occur?

A.   INX1 and INX2 are created and both will default to ALLOW REVERSE SCANS.

B.   INX1 and INX2 will be created in descending order and both will default to ALLOW REVERSE SCANS.  DB2 will issue a warning message.

C.   INX1 and INX2 will be created in ascending order and both will default to ALLOW REVERSE SCANS.  DB2 will issue a warning message.

D.   INX1 will be created and default to ALLOW REVERSE SCANS. INX2 will fail to be created. DB2 will issue a duplicate index warning message.

Answer: D

 

 Q: 64  Given the table MYTAB: C1             C2         C3 1200         east       Miller 1201         east       Smith 1201         east       Miller 1202         east       Smith What will happen when the following statement is issued: CREATE UNIQUE INDEX MYINX ON MYTAB(C1)

A.   The index MYINX will not be created.

B.   The word UNIQUE will be omitted by DB2 and a non-unique index MYINX will be created.

C.   The unique index MYINX will be created and the rows with duplicate keys will be deleted from the table.

D.   The unique index MYINX will be created and the rows with duplicate keys will be placed in an exception table.

Answer: A

 

 Q: 65  What is the correct method of obtaining the global information on DB2 systems and features installed on a DB2 V9 database server on Linux?

A.   rpm

B.   db2ls

C.   db2gs

D.   pkgadd

Answer: B

 

 Q: 66  Given a Table MYTAB with columns C1, C2 and C3. C1 must be unique, C2 is not unique. To get the best possible performance for the frequently issued SQL statement: SELECT c1, c2 FROM mytab ORDER BY c1 Which of the following statements should be executed?

A.   CREATE INDEX ix1 ON mytab (c1, c2)

B.   CREATE INDEX ix1 ON mytab (c2, c1)

C.   CREATE UNIQUE INDEX ix1 ON mytab(c1) CREATE INDEX ix2 ON mytab (c2)

D.   CREATE UNIQUE INDEX ix1 ON mytab (c1) INCLUDE (c2)

Answer: D

 

 Q: 67  A user wants to create view V1 on table T1 and wants to make sure that every row which is inserted or updated via the view conforms to the view definition.  Which of the following statements should be used to create the view?

A.   create view V1 as select c1, c2 from T1 where c1 < 50000

B.   create view V1 as select c1, c2 from T1 where c1 < 50000 with force option

C.   create view V1 as select c1, c2 from T1 where c1 < 50000 with check option

D.   create view V1 as select c1, c2 from T1 where c1 < 50000 constraint definition

Answer: C

 

 Q: 68  The following statements have been executed: CREATE TABLE empdata     (empno  INT NOT NULL,               sex    CHAR(1) NOT NULL CONSTRAINT sexok CHECK (sex IN ('M','F')) NOT ENFORCED ENABLE QUERY OPTIMIZATION) INSERT INTO empdata VALUES (1, 'M'), (2, 'Q'), (3, 'Q'), (4, 'F'), (5, 'Q'), (6, 'K') How many rows will the following query return? SELECT * FROM empdata WHERE sex = 'Q'

A.   0

B.   1

C.   2

D.   3

Answer: A

 

 Q: 69  Given the following CREATE TABLE statement: CREATE TABLE employee (       empno      CHAR(6) NOT NULL,      firstnme   VARCHAR(12),       midinit    CHAR(1),       lastname   VARCHAR(15),       workdept   CHAR(3) ) Which of the following statements prevents two employees with the same first name, middle initial, and last name from being inserted into the table, but allows NULL values?

A.   CREATE INDEX e1 ON employee(firstnme, midinit, lastname)

B.   CREATE UNIQUE INDEX e1 ON employee(firstnme, midinit, lastname)

C.   ALTER TABLE employee ADD CONSTRAINT const1 UNIQUE(firstnme, midinit, lastname)

D.   ALTER TABLE employee ADD CONSTRAINT const1 PRIMARY KEY(firstnme, midinit, lastname)

Answer: B

 

 Q: 70  If an IMPORT is running with the ALLOW WRITE ACCESS option, which of the following statements is true?

A.   IMPORT has to request a table lock after every commit.

B.   If there are other applications holding an incompatible table lock, the IMPORT utility will start inserting data into pages where other applications are not writing.

C.   While IMPORT is running, any other application requesting an incompatible table lock will write data to the database transaction logs until the IMPORT commits or rolls back.

D.   If there are other applications holding an incompatible row lock, the IMPORT utility will start inserting into the database transaction logs until all of these applications commit or rollback.

Answer: A

 

 Q: 71  A database administrator needs to benchmark a database for both SQL and XQUERY.  What utility can be used to accomplish this task?

A.   db2batch

B.   db2explain

C.   db2analyze

D.   db2benchmark

Answer: A

 

 Q: 72  Which of the following is the most complete list of methods by which the EXPORT utility can be invoked?

A.   Control Center and the CLP

B.   Control Center, CLI, and the CLP

C.   Control Center, CLP, and the ADMIN_CMD stored procedure

D.   Control Center, CLI, CLP, and ADMIN_CMD stored procedure

Answer: D

 

 Q: 73  The DB2 command: LOAD FROM  /dev/null OF DEL REPLACE INTO edw.chanl_dim; will do which of the following?

A.   Report an error on "/dev/null" and fail.

B.   Drop the table EDW.CHANL_DIM from the database.

C.   Delete all the rows from the table EDW.CHANL_DIM.

D.   Load all the columns in the table EDW.CHANL_DIM with NULLs.

Answer: C

 

 Q: 74  A DB2 database administrator can only see a subset of the database object folders in Control Center.  Which of the following is the most likely cause of this?

A.   The Control Center View is set to Basic.

B.   The database was not cataloged correctly.

C.   An account with insufficient privileges is being used.

D.   The database administrator is connecting from a Linux workstation, and the Control Center on Linux does not have that additional functionality.

Answer: A

 

 Q: 75  To get the Design Advisor to give recommendations on a workload based on a set of dynamic SQL statements on database SAMPLE captured by the snapshot monitor, which of the following should be done?

A.   Issue the following commands:db2 RESET MONITOR FOR DATABASE sampledb2advis -d sample -g

B.   Write a program to get the SQL statement using the snapshot monitor API and feed it to theadvisor using the advisor API

C.   Issue the following commands:db2 RESET MONITOR FOR DATABASE sampledb2 GET SNAPSHOT FOR DYNAMIC SQL WRITE TO FILE myfiledb2advis -d sample -wf myfile

D.   Create table MYSNAPTAB with the structure of the table function SNAPSHOT_DYN_SQL then issuethe following commands:db2 INSERT INTO mysnaptab SELECT * FROM TABLE (SNAPSHOT_DYN_SQL('',-1)) AS xdb2advis -d sample -wt mysnaptab

Answer: A

 

 Q: 76  Tables T1 and T2 have INSERT triggers defined.  While populating table T1, the triggers must be fired, and while populating table T2, the triggers must not be fired.  Which of the following will accomplish this?

A.   Populate table T1 with LOAD Populate table T2 with LOAD

B.   Populate table T1 with LOAD Populate table T2 with IMPORT

C.   Populate table T1 with IMPORT Populate table T2 with LOAD

D.   Populate table T1 with IMPORT Populate table T2 with IMPORT

Answer: C

 

 Q: 77  Given the command:    LOAD FROM file2.dat OF DEL INSERT INTO adw.mkt_value ALLOW READ ACCESS Which of the following is true?

A.   The behavior of the load operation is dependent upon the isolation level used.

B.   Readers will be able to read the newly loaded data before the load operation has finished.

C.   If the load operation aborts, the original data in the table is still accessible for read access.

D.   Read access is provided throughout the load as well as at the beginning and end of the load processing.

Answer: C

 

 Q: 78  Immediately after an "in place" table reorganization for the EMPLOYEE table, which sequence of operations will provide optimal performance for SQL queries while ensuring the least disruption to the user community?

A.   Reorg table indexes, perform runstats and rebind packages that use the table.

B.   Runstats with distribution statistics and rebind any packages that use the table.

C.   Rebuild any associated indexes, rebind any packages that use the table and perform runstats.

D.   Reorg the associated indexes offline, runstats with distribution statistics, rebind any packages that use the table.

Answer: A

 

 Q: 79  Application MYAPP uses static SQL to access table T1.  For which of the following situations should an explicit REBIND be performed?

A.   An index is added to table T1

B.   A view is created on table T1

C.   An index is dropped from table T1

D.   Changes are made to application MYAPP

Answer: A

 

 Q: 80  Which of the following is available in db2pd?

A.   Information about active databases

B.   Information about a stopped instance

C.   Information about the administration server

D.   Information about active and inactive databases

Answer: A

 

 Q: 81  Which of the following describes the functionality of the db2diag tool?

A.   Start or stop the db2diag.log.

B.   Start or stop the Administration Notification log.

C.   Filter and format the information available in the db2diag.log.

D.   Filter and format the information available in the Administration Notification log.

Answer: C

 

 Q: 82  If these commands are executed in the order shown:    CREATE EVENT MONITOR TABLEMON FOR TABLES                     WRITE TO TABLE MON_TABLE ;            SET EVENT MONITOR TABLEMON STATE 1 ;            DROP EVENT MONITOR TABLEMON ; Which of the following is true?

A.   Event monitor TABLEMON is dropped and table MON_TABLE is dropped.

B.   Event monitor TABLEMON is dropped and output is in table MON_TABLE.

C.   Event monitor TABLEMON is deactivated and output is in table MON_TABLE.

D.   Event monitor TABLEMON is active and output is written to table MON_TABLE.

Answer: D

 

 Q: 83  An event monitor is created as follows: CREATE EVENT MONITOR BPOOLMON FOR BUFFERPOOLS     WRITE TO TABLE Which of the following actions(s) is REQUIRED before this event monitor can start collecting and writing data?

A.   Activate the event monitor BPOOLMON.

B.   Create the table(s) where monitor data will be written and activate the event monitor BPOOLMON.

C.   Update the instance monitor switch DFT_MON_BUFPOOL to ON and activate the event monitor BPOOLMON.

D.   Update the instance monitor switch DFT_MON_BUFPOOL to ON, create the table(s) where monitor data will be written and activate the event monitor BPOOLMON.

Answer: A

 

 Q: 84  Health indicators exist at which of the following levels?

A.   Global, instance, database, and table space

B.   Instance, database, table space, and buffer pool

C.   Global, database, table space, and table space container

D.   Instance, database, table space, and table space container

Answer: D

 

 Q: 85  What is the effect of increasing the Optimization Class from 5 to 7?

A.   It tells DB2 to use a specific version of the DB2 optimizer when generating an access plan.

B.   It tells the DB2 optimizer to use less optimization techniques when generating an access plan.

C.   It tells the DB2 optimizer to use more optimization techniques when generating an access plan.

D.   It tells DB2 that a query is extremely important and should be executed ahead of all other running queries.

Answer: C

 

 Q: 86  In an OLTP environment, if a query joins two tables on their primary key, which of the following join methods is preferred?

A.   Hash join

B.   Star join

C.   Merge join

D.   Nested-loop join

Answer: D

 

 Q: 87  An application working with the SAMPLE database is experiencing poor performance.  Which of the following queries can be used to determine if lock contention is causing the problem?

A.   SELECT * FROM SNAPSHOT_LOCK ('sample', -1)

B.   SELECT * FROM SNAPSHOT_INFO ('sample', LOCK)

C.   SELECT * FROM TABLE (SNAPSHOT_LOCK ('sample', -1)) AS SNAP_INFO

D.   SELECT * FROM TABLE (SNAPSHOT_INFO ('sample', LOCK)) AS SNAP_INFO

Answer: C

 

 Q: 88  Given a newly created database called PRODDB, which of the following commands were required to produce the following output?

A.   GET SNAPSHOT FOR LOCKS ON proddb

B.   RESET MONITOR ALL; GET SNAPSHOT FOR LOCKS ON proddb

C.   UPDATE MONITOR SWITCHES USING UOW; GET SNAPSHOT FOR LOCKS ON proddb

D.   UPDATE MONITOR SWITCHES USING LOCK ON; GET SNAPSHOT FOR LOCKS ON proddb

Answer: D

 

 Q: 89  A database administrator is granted DBADM authority on a database. DBADM authority is later revoked when the administrator moves to a different division in the company. Which authorities would the administrator still retain, assuming that no other authorities were granted or revoked?

A.   No authorities

B.   SYSMAINT authority

C.   CREATE_EXTERNAL_ROUTINE authority

D.   SECADM, CONNECT, and LOAD authorities

Answer: C

 

 Q: 90  User USER1 writes a dynamic SQL application which reads data from table T1, inserts data into table T2 and reads data from table T3 in the database DB1.   The following privileges have been granted: - INSERT on T2 is granted to USER1 - SELECT on T3 is granted to PUBLIC - CONNECT to DB1 is granted to PUBLIC - SELECT on T1 is granted to group GRP1 USER1 is a member of group GRP1. Which of the following will allow USER1 to successfully bind the application to database DB1?

A.   GRANT BIND ON db1 TO user1

B.   GRANT SELECT ON t3 TO user1

C.   GRANT BINDADD ON db1 TO user1

D.   GRANT SELECT ON t3 AND t1 TO user1

Answer: C

 

 Q: 91  How does Label Based Access Control (LBAC) provide more granular access control?

A.   By providing row level access control

B.   By providing rowset level access control

C.   By defining access roles in external systems

D.   By providing both row level and column level access control

Answer: D

 

 Q: 92  A database server is running two DB2 instances and each instance has three databases under its control. To determine the AUTHENTICATION type(s) used by the server, where must the DBA look?

A.   In the DB2 registry

B.   In the db2profile file

C.   In each database configuration file

D.   In each database manager configuration file

Answer: D

 

 Q: 93  Which of the following identifies which users have SYSCTRL authority?

A.   DB2 registry

B.   System catalog

C.   Database configuration

D.   Database manager configuration

Answer: D

 

 Q: 94  Given the following situation: Table T1 has defined views V1, V2, V3 and V4.User USR1 has CONTROL privilege on Table T1. User USR2 has SYSMAINT authority. User USR2 has been explicitly granted SELECT privilege on table T1 and views V1 and V3. If user USR1 revokes the SELECT privilege on table T1 from user USR2, what will happen with the SELECT privilege USR2 had on the view V1?

A.   SELECT privilege for the view V1 will be revoked from user USR2.

B.   SELECT privilege for the view V1 will not be revoked from user USR2.

C.   SELECT privileges for all views defined on table T1 will be revoked from user USR2.

D.   SELECT privilege for the view V1 will be revoked from user USR2; SELECT privilege for the view V3 will not be affected.

Answer: B

 

 Q: 95  On a DB2 server with two instances, inst1 and inst2, inst1 is the default and current instance.  Which of the following will successfully start the instance inst2?

A.   db2start

B.   db2start inst2

C.   set db2instance=inst2 db2start

D.   set db2instance inst2 db2start

Answer: C

 

 Q: 96  Which of the following commands can be used to force all users and applications from all databases?

A.   FORCE ALL

B.   FORCE USERS ALL

C.   FORCE APPLICATION ALL

D.   FORCE USERS, APPLICATION ALL

Answer: C

 

 Q: 97  Given the following server information, which of the following commands will catalog this node?  Instance name: db2inst1 Port number:  60000 Service name: db2c_db2inst1 Host TCP/IP address: 10.205.15.100 Hostname: tcphost Protocol: TCP/IP

A.   CATALOG TCPIP NODE db2tcp REMOTE 10.205.15.100

B.   CATALOG TCPIP NODE db2tcp REMOTE tcphost SERVER 60000

C.   CATALOG TCPIP NODE db2tcp REMOTE tcphost SERVER db2inst1

D.   CATALOG TCPIP NODE db2tcp REMOTE tcphost INSTANCE db2inst1

Answer: B

 

 Q: 98  Which of the following commands is used to invoke the Configuration Advisor for an existing database named SAMPLE?

A.   db2set DB2_ENABLE_AUTOCONFIG_DEFAULT=YES

B.   update dbm cfg using AUTOMATIC_DEFAULT ON db2stop db2start

C.   connect to sample  AUTOCONFIGURE using MEM_PERCENT 60 APPLY DB ONLY terminate

D.   connect to sample  update db cfg for SAMPLE using AUTOCONFIGURE ON terminate

Answer: C

 

 Q: 99  The database sample is created using the following command: CREATE DATABASE sample ON /databases In order to update statistics for only the tables that need it, between the hours of midnight and 2am, what actions must be taken?

A.   Enable HEALTH MONITOR for the database.

B.   Update the relevant database configuration parameters.

C.   Update the relevant database manager configuration parameters.

D.   Use automatic maintenance and define an appropriate maintenance window.

Answer: D

 

 Q: 100  Based on the following database manager configuration parameter values :         MAXAGENTS                   400        MAX_COORDAGENTS    200         MAXCAGENTS                100         NUM_POOLAGENTS       200         NUM_INITAGENTS            50 What is the maximum number of applications that can be executing concurrently in the instance?

A.   50

B.   100

C.   200

D.   400

Answer: B

 

 Q: 101  Given the following notification log entry: 2006-02-15-19.33.37.630000       Instance:DB2      Node:000 PID:940(db2agent) TID: 660     Appid:*AC14B132.OB12.0138C7070500 database monitor    sqm_gen_dlconn_events     Probe:10      Database:SAMPLE DIA8300C    A memory heap error has occurred In order to determine the name of the application which encountered the error, which of the following actions must be taken?

A.   Issue DB2 LIST DCS APPLICATIONS and search for AC14B132.OB12.0138C7070500

B.   Issue DB2 LIST APPLICATIONS and search for AC14B132.OB12.0138C7070500

C.   Issue DB2 LIST DCS APPLICATIONS and search for 660

D.   Issue DB2 LIST APPLICATIONS and search for 660

Answer: B

 

 Q: 102  The instance INST1 has two active databases DATAB1 and DATAB2. Which of the following commands must be used to specify that the databases use an equal amount of memory and combined use approximately 80% of the total memory available?

A.   CONNECT TO datab1 AUTOCONFIGURE USING mem_percent 20 CONNECT TO datab2 AUTOCONFIGURE USING mem_percent 20

B.   CONNECT TO datab1 AUTOCONFIGURE USING mem_percent 40 CONNECT TO datab2 AUTOCONFIGURE USING mem_percent 40

C.   CONNECT TO datab1 AUTOCONFIGURE USING mem_percent 50 CONNECT TO datab2 AUTOCONFIGURE USING mem_percent 50

D.   CONNECT TO datab1 AUTOCONFIGURE USING mem_percent 80 CONNECT TO datab2 AUTOCONFIGURE USING mem_percent 80

Answer: B

 

 Q: 103  A user has reported they cannot discover a DB2 database using Configuration Assistant, which of the following is most likely the cause?

A.   The user has installed the wrong Windows client software.

B.   DAS is not running on the server where the database resides.

C.   The database was not ACTIVATED before attempting Discovery.

D.   The user's Client Access Profile is missing an entry for the database.

Answer: B

 

 Q: 104  Which of the following commands is used to disable the Configuration Advisor for a new database?

A.   db2set DB2_ENABLE_AUTOCONFIG_DEFAULT=NO

B.   db2set DB2_ENABLE_AUTOCONFIG_DEFAULT=YES

C.   db2 update dbm cfg using  AUTOMATIC_DEFAULT ON db2stop db2start

D.   db2 update db cfg for SAMPLE using AUTOCOFIGURE ON db2 terminate

Answer: A

 

 Q: 105  Which of the following would prevent an application from waiting indefinitely to obtain a lock on table T1?

A.   Alter table T1 locksize table

B.   Update db cfg for sample using lock_wait 10000

C.   Update db cfg for sample using locktimeout 10000

D.   Update db cfg for sample using lock_wait automatic

Answer: C

 

 Q: 106  There is a job in Task Center scheduled to run every Saturday. The Scheduler is turned off on Friday for system maintenance and then restarted on Monday. Under which of the following conditions is the job scheduled for Saturday executed when the Scheduler is restarted?

A.   The exec_exp_task DB2 registry is set to yes.

B.   The exec_exp_task Database configuration parameter is set to yes.

C.   The exec_exp_task Database Manager configuration parameter is set to yes.

D.   The exec_exp_task Administration server configuration parameter is set to yes.

Answer: D

 

 Q: 107  When a Database Administrator updates the UTIL_IMPACT_LIM parameter in the DBM CFG to a value of 10, what can be expected when a backup operation is invoked?

A.   The backup operation runs 10 times faster.

B.   The backup operation priority will be increased to 10.

C.   The backup operation will impact the workload by 90 percent.

D.   The backup operation will not impact the workload by more than 10 percent.

Answer: D

 

 Q: 108  What is the correct way to delete the instance level variable DB2COMM from the DB2 Profile Registry?

A.   db2set DB2COMM=

B.   db2set DB2COMM -v

C.   db2set -all DB2COMM

D.   db2set -null DB2COMM

Answer: A

 

 Q: 109  Given the following table definition:

A.   1

B.   2

C.   3

D.   4

Answer: B

 

 Q: 110  Given the following statements: CREATE TABLE tabconst (       c1 INTEGER NOT NULL,       c2 INTEGER,   CONSTRAINT gtzero CHECK (c1 > 0) ENFORCED,   CONSTRAINT ltzero CHECK (c2 < 0) NOT ENFORCED ENABLE QUERY OPTIMIZATION ) INSERT INTO tabconst (c1, c2) VALUES (0, 0) INSERT INTO tabconst (c1, c2) VALUES (0, 1) INSERT INTO tabconst (c1, c2) VALUES (1, -1) INSERT INTO tabconst (c1, c2) VALUES (2, 0) INSERT INTO tabconst (c1, c2) VALUES (1, 0) SELECT c1, c2 FROM tabconst WHERE c2 = 0 How many rows does the SELECT statement return?

A.   0

B.   1

C.   2

D.   3

Answer: A

 

 Q: 111  Which of the following tools is accessible through the DB2 Control Center?

A.   Health Center

B.   Query Patroller

C.   Developer Workbench

D.   Command Line Processor

Answer: A

 

 Q: 112  Given the following statement: CREATE TABLE mytab (c1 INTEGER NOT NULL, c2 VARCHAR(20) NOT NULL, c3 VARCHAR(30)) What additional command will ensure that column C1 has unique values?

A.   CREATE CONSTRAINT myinx ON TABLE mytab (c1) UNIQUE

B.   CREATE UNIQUE INDEX myinx ON TABLE mytab (c1)

C.   CREATE INDEX myinx ON TABLE mytab (c1)

D.   CREATE INDEX myinx ON TABLE mytab

Answer: B

 

 Q: 113  Which of the following queries can be used to determine whether or not table TAB1 should be reorganized?

A.   SELECT TABNAME, LAST_REORG_TIME FROM SYSCAT.TABLES WHERE TABNAME = 'TAB1'

B.   SELECT TABNAME, OVERFLOW FROM SYSCAT.TABLES WHERE TABNAME = 'TAB1'

C.   SELECT TABNAME, PCTFREE FROM SYSCAT.TABLES WHERE TABNAME = 'TAB1'

D.   SELECT TABNAME, CARD FROM SYSCAT.TABLES WHERE TABNAME = 'TAB1'

Answer: B

 

 Q: 114  A non-administrative user, USER1, can no longer access a view on which they have been granted SELECT privilege.  The DBA examines the SYSCAT.VIEWS catalog view and finds that the view has been marked inoperative. In order to allow this view to be accessed by the user, which of the following should be done?

A.   Determine the CREATE VIEW statement in the SYSCAT.VIEWS catalog view, DROP the inoperative view and issue the determined CREATE VIEW statement.

B.   Determine the CREATE VIEW statement in the SYSCAT.VIEWS catalog view, issue the CREATE VIEW statement, and grant SELECT privilege to USER1.

C.   Determine the CREATE VIEW statement from a database backup and recreate the view issuing this CREATE VIEW statement.

D.   Determine the inoperative view, issue the ALTER VIEW statement, and grant SELECT privilege to USER1.

Answer: B

 

 Q: 115  Given the following requirements:  table t1 with columns c1, c2 and c3 column c1 must be unique To allow index only access for the following SQL statement, which CREATE INDEX statement must be used? SELECT c1, c2, c3 FROM t1 ORDER BY c1

A.   CREATE UNIQUE INDEX inx1 ON t1 (c1)

B.   CREATE INDEX inx1 ON t1 (c1, c2, c3)

C.   CREATE INDEX inx1 ON t1 (c1) INCLUDE (c2, c3)

D.   CREATE UNIQUE INDEX inx1 ON t1 (c1) INCLUDE (c2,c3)

Answer: D

 

 Q: 116  Table T1 is accessed frequently by two applications.  One application returns the data in column C1 in ascending order and the other returns the data in column C1 in descending order.  What is the minimum required to speed up both applications?

A.   CREATE INDEX inx1 ON t1(c1)

B.   CREATE CLUSTER INDEX inx1 ON t1(c1)

C.   CREATE INDEX inx1 ON t1(c1 ASC) CREATE INDEX inx2 ON t1(c1 DESC)

D.   CREATE UNIQUE INDEX inx1 ON t1(c1 ASC) CREATE UNIQUE INDEX inx2 ON t1(c1 DESC)

Answer: A

 

 Q: 117  After restoring a full database backup into a new database and connecting to the new database, which of the following statements is correct?

A.   SQL procedures do not have to be recreated after restoring the database.

B.   Transaction logs from the old database can be used to roll forward the new database.

C.   No incremental or incremental delta backups are allowed until a non-incremental backup is taken.

D.   Incremental images and delta images from the original database can be restored in the new database.

Answer: C

 

 Q: 118  Given two servers SERV1 and SERV2 with the database IMPDB on SERV1, which steps are necessary to setup HADR for this database using SERV2 as a standby server?

A.   1. Update the DB CFG parameters2. Start HADR on SERV23. Start HADR on SERV1

B.   1. Update the DB CFG parameters2. Start HADR on SERV13. Start HADR on SERV2

C.   1. Backup IMPDB on SERV12. Restore IMPDB on SERV23. Update the DB CFG parameters4. Start HADR on SERV15. Start HADR on SERV2

D.   1. Backup IMPDB on SERV12. Restore IMPDB on SERV23. Update the DB CFG parameters4. Start HADR on SERV25. Start HADR on SERV1

Answer: D

 

 Q: 119  A DBA takes a full backup of the PRODUCTS database every Sunday.  During the week, two other backups are taken, one on Tuesday and one on Thursday.  The weekly backup images are retained for two months. The PRODUCTS database is about 800 GB, and minimal updates to the database occur during the week. Assuming that storage costs are the primary concern, which of the following commands would produce the smallest image for Thursday's backup?

A.   BACKUP DATABASE PRODUCTS TO /fs1/products/backup COMPRESS

B.   BACKUP DATABASE PRODUCTS INCREMENTAL TO /fs1/products/backup

C.   BACKUP DATABASE PRODUCTS TO /fs1/products/backup EXCLUDE LOGS

D.   BACKUP DATABASE PRODUCTS INCREMENTAL DELTA TO /fs1/products/backup

Answer: D

 

 Q: 120  Which of the following database manager configuration settings can cause queries to be resolved slower than usual the first time they are executed after a database restart?

A.   INDEXREC=SYSTEM

B.   INDEXREC=ACCESS

C.   INDEXREC=RESTART

D.   INDEXREC=FIRSTEXEC

Answer: B

 

 Q: 121  A database administrator changes the value of the SORTHEAP parameter online.  When will this change become effective for running applications?

A.   Immediately

B.   At the statement boundary

C.   At the connection boundary

D.   At the transaction boundary

Answer: B

 

 Q: 122  In a split mirror environment, which of the following commands is used to initialize a mirrored database as a backup copy that can be used to restore the primary database?

A.   db2inidb mydb as mirror

B.   db2inidb mydb as backup

C.   db2inidb mydb as standby

D.   db2inidb mydb as snapshot

Answer: A

 

 Q: 123  A database named DEV, which was using circular logging, just crashed. The RESTART command fails with the error code SQL0290N. Close examination of the db2diag.log file reveals that the tablespace TEMPSPACE1 may be damaged and has been placed in Drop Pending state. What needs to be done in order to successfully restart the DEV database?

A.   1. Restart the DEV database using the following command:RESTART DATABASE dev DROP PENDING TABLESPACES (tempspace1)2. Drop the damaged, offline system temporary table space TEMPSPACE1.

B.   1. Drop the system temporary table space TEMPSPACE1.2. Recreate the system temporary table space TEMPSPACE1.3. Restart the DEV database using the following command:     RESTART DATABASE dev

C.   1. Restart the DEV database using the following command:     RESTART DATABASE dev DROPPENDING TABLESPACES 'TEMPSPACE1'"2. Drop the system temporary table space TEMPSPACE1.3. Recreate the system temporary table space TEMPSPACE1.

D.   1. Drop the system temporary table space TEMPSPACE1.2. Restart the DEV database using the following command:     RESTART DATABASE dev3. Create the system temporary table space TEMPSPACE1.

Answer: C

 

 Q: 124  In an HADR setup, which of the following options must be used to avoid the table space being placed in restore pending state when the LOAD utility is run on the primary database?

A.   COPY NO option specified and the standby database must be resynchronized

B.   COPY YES option specified and the standby database must have access to the copy image

C.   From the standby database issue this command:db2set DB2_LOAD_COPY_YES_OVERRIDE=c:/loaddir

D.   From the primary database issue this command:UPDATE DB CFG FOR sample USING DB2_LOAD_COPY_NO_OVERRIDE c:/loaddir

Answer: B

 

 Q: 125  Which of the following statements about point in time recovery is true?

A.   It requires the instance parameter FAILARCHPATH to be set appropriately.

B.   It can only read log files from the log path where they were originally written.

C.   It must be to a time after the minimum recovery time from the LIST TABLESPACES command.

D.   It cannot be accomplished while users are connected to the database.  A FORCE APPLICATION commandis required before the ROLLFORWARD command can be issued.

Answer: C

 

 Q: 126  Given the following scenario: Backup database DB1 on July 15th. Rename table space TS1 to TS1A on July 19th. Restore this table space from the backup taken on July 15th. In order to roll forward the table space to 2006-08-03-14.21.56, which of the following commands must be issued?

A.   ROLLFORWARD DB db1 TO 2006-08-03-14.21.56 AND STOP TABLESPACE(ts1)

B.   ROLLFORWARD DB db1 TO 2006-08-03-14.21.56 AND STOP TABLESPACE(ts1a)

C.   ROLLFORWARD DB db1 TO 2006-08-03-14.21.56 AND STOP TABLESPACE(ts1 TO ts1a)

D.   ROLLFORWARD DB db1 TO 2006-08-03-14.21.56 AND STOP TABLESPACE(ts1 RENAME ts1a)

Answer: B

 

 Q: 127  Given the following statements: CREATE TABLESPACE tbsp1 MANAGED BY DATABASE USING              (FILE conta 10000) CREATE TABLESPACE tbsp2 MANAGED BY DATABASE USING              (FILE contb 10000) CREATE TABLESPACE tbsp3 MANAGED BY DATABASE USING              (FILE contc 10000) CREATE TABLE part_tab (c0 INT, c1 INT)             PARTITION BY (c0)                     (PART part1 STARTING FROM (1) ENDING at (10000),                      PART part2 STARTING FROM (10001) ENDING at (20000),                     PART part3 STARTING FROM (20001) ENDING at (20010),                      PART part4 STARTING FROM (20011) ENDING at (20020)) CREATE INDEX idx1_part_tab on part_tab (c0) In which of the following table spaces would the index be placed?

A.   TBSP1

B.   TBSP2

C.   TBSP3

D.   USERSPACE1

Answer: A

 

 Q: 128  Given the following statements: CREATE TABLESPACE tbsp1 MANAGED BY DATABASE USING               (FILE conta 10000); CREATE TABLESPACE tbsp2 MANAGED BY DATABASE USING               (FILE contb 10000); CREATE TABLESPACE tbsp3 MANAGED BY DATABASE USING               (FILE contc 10000); CREATE TABLE part_tab (c0 INT, c1 INT) LONG IN tbsp1 CYCLE INDEX IN tbsp2              PARTITION BY (c0)                  (PART part1 STARTING FROM (1) ENDING at (10000),                    PART part2 STARTING FROM (10001) ENDING at (20000),                    PART part3 STARTING FROM (20001) ENDING at (20010),                    PART part4 STARTING FROM (20011) ENDING at (20020)); CREATE INDEX idx1_part_tab on part_tab (c0) IN tbsp3; In which of the following table spaces would the index be placed?

A.   TBSP1

B.   TBSP2

C.   TBSP3

D.   USERSPACE1

Answer: C

 

 Q: 129  How many extents are allocated when the following EMPLOYEE table is created in the DMS table space TBS03? CREATE TABLE EMPLOYEE         (ID          SMALLINT NOT NULL,           NAME        VARCHAR(9),           DEPT        SMALLINT CHECK (DEPT BETWEEN 10 AND 100),           JOB         CHAR(5) CHECK (JOB IN ('Sales','Mgr','Clerk')),          HIREDATE    DATE,           SALARY      DECIMAL(7,2),           COMM        DECIMAL(7,2),           NOTES       LONG VARCHAR,           RESUME      BLOB,           CONSTRAINT  YEARSAL CHECK (YEAR(HIREDATE) > 1986 OR SALARY > 40500)          ) IN TBS03 ;CREATE UNIQUE INDEX INX_U_EMP ON EMPLOYEE ( ID ); CREATE INDEX INX_EMP_01 ON EMPLOYEE ( NAME );

A.   3

B.   5

C.   6

D.   10

Answer: D

 

 Q: 130  Given the following CREATE DATABASE statement: create database v9cert on /database/dbuser using codeset utf-8 territory US restrictiveWhich of the following comments is true if the DBA wants to enable automatic storage for all user-created table spaces within the v9cert database?

A.   Automatic storage is enabled for this database which will have the database created in /database/dbuser while user table spaces will be created in dftdbpath.

B.   Automatic storage is enabled for the database which will have the database created in /database/dbuser and user table spaces created in /database/dbuser.

C.   Automatic storage is enabled for the database which will have the database created in dftdbpath and user table spaces created in /database/dbuser.

D.   Automatic storage is not enabled for the database because multiple paths are not supplied in the CREATE DATABASE command.

Answer: B

 

 Q: 131  Which of the following statements about SCHEMA objects is true?

A.   A schema must always be associated with a user.

B.   Triggers and sequences do not have schemas associated with them.

C.   After creating a new database, all users who successfully authenticate with the database  have the abilityto create a new schema.

D.   If a schema is not explicitly specified in a SQL statement, the PUBLIC schema is assumed.

Answer: C

 

 Q: 132  Given the following CREATE DATABASE command: create database v9cert on /database/dbuser using codeset utf-8 territory US restrictive Which of the following comments are true?

A.   The PUBLIC group will not be granted any privileges automatically since all privileges will be restricted.

B.   The PUBLIC group will only be granted CONNECT privilege for the database automatically and all other privileges will be restricted.

C.   The PUBLIC group will automatically be granted SELECT access to the SYSCAT and SYSSTAT catalog views with all other privileges being restricted.

D.   The PUBLIC group will automatically be granted privileges such as CONNECT and SELECT for catalog views as well as USE privilege on USERSPACE1 with all other privileges being restricted.

Answer: A

 

 Q: 133  Based on the following DDL that was executed in a database with a default configuration: CREATE REGULAR TABLESPACE TS_NAME1 IN DATABASE PARTITION GROUP IBMDEFAULTGROUP                        PAGESIZE 4096                        MANAGED BY SYSTEM                        USING ( <container 1>, <container 2>, <container 3> )                        EXTENTSIZE 32                        PREFETCHSIZE 96                        BUFFERPOOL IBMDEFAULTBP How much space does DB2 allocate when all existing pages in the table space are full?

A.   4 kilobytes

B.   32 kilobytes

C.   96 kilobytes

D.   128 kilobytes

Answer: D

 

 Q: 134  Which of the following utilities or commands can be used to estimate the space that will be saved if a table is compressed?

A.   db2pd

B.   inspect

C.   reorgchk

D.   runstats

Answer: B

 

 Q: 135  Which of the following is the correct command for obtaining detailed information about a table space, including its current status?

A.   select * from syscat.tablespaces

B.   get snapshot for tablespaces on sample

C.   list tablespace containers show detail

D.   get snapshot for tablespace containers on sample

Answer: B

 

 Q: 136  Which of the following statements is NOT true regarding XML indexing in DB2 9?

A.   XML indexes cannot contain relational data columns.

B.   Unique XML indexes can be created by combining multiple columns.

C.   DB2 might generate multiple index keys when it inserts values for a single document into the index.

D.   An index over XML data can be used to improve the efficiency of queries on XML documents that arestored in an XML column.

Answer: A

 

 Q: 137  How can a DMS table space be created in a database such that as more data is stored in it, it can automatically expand beyond its original file storage definition?

A.   By using RESIZE YES in the CREATE TABLESPACE statement

B.   By using AUTORESIZE YES in the CREATE TABLESPACE statement

C.   Only SMS table spaces can dynamically expand based on its underlying file system

D.   This feature is turned on automatically for DMS table spaces and can be disabled by RESIZE NO by theALTER TABLESPACE statement

Answer: B

 

 Q: 138  Which of the following is true for a DB2 Global Temporary Table (GTT)?

A.   GTT resides in system temporary tablespace.

B.   GTT cannot have a user defined partitioning key.

C.   GTT is visible by all users connected to a database.

D.   Indexes can be created and runstats can be performed on GTT.

Answer: D

 

原创粉丝点击