Review Questions


1. 

You are concerned about poor performance of a table in your database that users are running range queries on. You have queried sys.dm_db_index_physical_stats and discovered that the avg_fragmentation_in_percent value for the table’s index is 75. You have also run DBCC SHOW_STATISTICS and noticed that they have not been updated for a week. What should you do to improve performance?

  1. Update the statistics.

  2. Defrag the index.

  3. Drop and create the statistics using a full scan.

  4. Rebuild the index.

image from book

2. 

You are responsible for managing 100 SSRS instances in your organization. You want to make a configuration change on all the SSRS instances. What is the best tool to achieve this?

  1. rs.exe

  2. rsconfig.exe

  3. SQL Server Configuration Manager

  4. Reporting Services Configuration Manager

image from book

3. 

What tool should you recommend for a junior DBA to use to create a simple backup strategy for a database?

  1. Database Engine Tuning Advisor

  2. SQL Server Configuration Manager

  3. Database Maintenance Plan Wizard

  4. Database Maintenance design surface

image from book

4. 

You organization has more than 200 SQL Server instances installed. Management wants to purchase a product that will allow the DBAs to monitor vital statistics about the server and databases and generate alerts that can be responded to. What product do you recommend?

  1. SQL Server Health and History Tool (SQLH2)

  2. Microsoft Operations Management (MOM)

  3. Windows Server Update Services (WSUS)

  4. Systems Management Server (SMS)

image from book

5. 

You are responsible for managing a large SSRS reporting solution. Management has indicated that it expects that there will be a lot more report snapshots being generated by users. What system database should you check the size of and potentially increase?

  1. master

  2. reportserver

  3. reportservertempdb

  4. tempdb

image from book

6. 

You have a VLDB running on SQL Server 2005 Standard Edition. Ten critical tables in the VLDB are in excess of 10,000,000 rows. You have noticed that whenever SQL Server updates statistics automatically on any of these 10 tables during business hours, performance degrades unacceptably. Query performance, as always, is important. You do not want automatic updating of statistics on these tables but want to schedule the appropriate command to run after hours daily. What command should you schedule?

  1. UPDATE STATISTICS ... WITH 1000 ROWS

  2. UPDATE STATISTICS ... WITH 1000 ROWS, NORECOMPUTE

  3. UPDATE STATISTICS ... WITH FULLSCAN, NORECOMPUTE

  4. UPDATE STATISTICS ... WITH FULLSCAN

image from book

7. 

What SSRS utility is used to extract, restore, create, and delete the encryption keys used by SSRS?

  1. rs.exe

  2. bcp.exe

  3. rskeymgmt.exe

  4. sac.exe

image from book

8. 

You want to empty one of the data files that make up your database. What command should you take advantage of?

  1. The DBCC SHRINKDB command

  2. The DBCC SHRINKFILE command

  3. The DBCC DBREINDEX command

  4. The ALTER DATABASE command

image from book

9. 

What is the minimum number of target servers required for you to be able to create a master server?

  1. 0

  2. 1

  3. 10

  4. 100

b. to create a master server, you must at least have one target server.

10. 

You are responsible for managing a large SSRS reporting solution. Management has indicated that users are complaining about the performance of subscriptions that they are supposed to be receiving every business day morning at 9 A.M. What performance object should you monitor to help you identify any potential problems?

  1. LogicalDisk

  2. Memory

  3. MSRS 2005 Web Service

  4. MSRS 2005 Windows Service

image from book

11. 

You have a 100TB SalesDB database implemented on SQL Server 2005 Enterprise Edition running with 64GB of RAM and a quad-processor server. You have noticed that there are a number of database consistency errors appearing in the SQL Server error log. What command should you run first?

  1. DBCC CHECKDB ('SalesDB', REPAIR_ALLOW_DATA_LOSS)

  2. DBCC CHECKDB ('SalesDB', REPAIR_REBUILD)

  3. DBCC CHECKDB ('SalesDB') WITH PHYSICAL_ONLY

  4. DBCC CHECKDB ('SalesDB') WITH DATA_PURITY

image from book

12. 

Your company has a SQL Server Reporting Services solution that you are responsible for managing. Users have been complaining about various errors in the Report Manager. What log file do you examine?

  1. ReportServerService_<timestamp>.log

  2. ReportServerService_main_<timestamp>.log

  3. ReportServerWebApp_<timestamp>.log

  4. ReportServer_<timestamp>.log

c. the reportserverwebapp_-timestamp-.log is the trace log for report manager.

13. 

You are designing a maintenance strategy for your database on SQL Server 2005. The OLTP database is currently 100GB in size and growing by 25 percent quarterly. You want to ensure that your database will be recoverable in the case of a disk failure, will be reliable, and will have optimal performance. You have decided to schedule these tasks nightly. What tasks should you schedule? (Choose all that apply.)

  1. Run DBCC CHECKDB on the database.

  2. Rebuild all the indexes in the database.

  3. Update statistics on all indexes in the database.

  4. Shrink the database.

  5. Back up the database.

image from book

14. 

You want to manage your Reporting Services solution by adding multiple report servers in a scale-out deployment. What should you do?

  1. Use the Reporting Services Configuration Manager, and configure all your report servers to use the same report server virtual directory.

  2. Use the Reporting Services Configuration Manager, and configure all your report servers to use the same Report Manager virtual directory.

  3. Use the Reporting Services Configuration Manager, and configure each report server to the shared report server database.

  4. Use the SQL Server Surface Area Configuration tool to enable OLE Automation.

image from book

15. 

You are creating a database maintenance plan and need to schedule the following tasks: a database shrink, a database consistency check, the rebuilding of all your indexes, and a full database backup. You want to be notified as soon as possible if there is a database consistency error. You also want to ensure that the backup will have a corruption-free, optimal database. What order should you perform the tasks in? (Choose the answer with the steps in the correct sequence.)

  1. DBCC SHRINKDATABASE

  2. DBCC CHECKDB

  3. DBCC DBREINDEX

  4. BACKUP DATABASE

  1. 2, 1, 3, 4

  2. 3, 2, 1, 4

  3. 4, 3, 1, 2

  4. 3, 1, 4, 2

image from book

16. 

You have a 1TB SalesDB database running on SQL Server 2003 Enterprise Edition. You have noticed that the nightly DBCC CHECKDB ('SalesDB') job is starting to take too long, and you want to reduce the amount of time that the check will take. What command should you schedule to run nightly instead?

  1. DBCC CHECKDB ('SalesDB', REPAIR_ALLOW_DATA_LOSS)

  2. DBCC CHECKDB ('SalesDB', REPAIR_REBUILD)

  3. DBCC CHECKDB ('SalesDB') WITH PHYSICAL_ONLY

  4. DBCC CHECKDB ('SalesDB') WITH DATA_PURITY

image from book

17. 

What DBCC should you run to check only the metadata of the database?

  1. DBCC CHECKALLOC

  2. DBCC CHECKCATALOG

  3. DBCC CHECKTABLE

  4. DBCC CHECKDB

b. the dbcc checkcatalog command checks the system tables (database catalog) of your database.

18. 

Your organization has 50 SQL Server 2005 instances that you want to run common maintenance tasks on. All these tasks will run only via T-SQL scripts. What strategy should you use?

  1. Use SQL Server Health and History Tool (SQLH2).

  2. Implement a multiserver administration solution.

  3. Use the Windows Server Update Services (WSUS).

  4. Use Systems Management Server (SMS) to push out the jobs as T-SQL scripts.

image from book

19. 

You need plan to schedule a database consistency check, schedule a database shrink, change some passwords for a number of logins, and truncate a table. What two commands should you not run simultaneously?

  1. ALTER LOGIN

  2. DBCC SHRINKDATABASE

  3. TRUNCATE TABLE

  4. DBCC CHECKDB

image from book

20. 

Users are complaining about poor query performance against the [Customers] table. You suspect that the table might be heavily fragmented because it is frequently modified throughout the day. Your junior DBA is convinced that the problems lie elsewhere. You execute the DBCC SHOWCONTIG command against the table with the following results:

 DBCC SHOWCONTIG scanning 'Customers' table... Table: 'Customers' (83416733); index ID: 1, database ID: 8 TABLE level scan performed. - Pages Scanned................................: 2264448 - Extents Scanned..............................: 285485 - Extent Switches..............................: 287092 - Avg. Pages per Extent........................: 7.9 - Scan Density [Best Count:Actual Count].......: 99.96% [287092:287094] - Logical Scan Fragmentation ..................: 0.06% - Extent Scan Fragmentation ...................: 3.69% - Avg. Bytes Free per Page.....................: 486.8 - Avg. Page Density (full).....................: 93.96% DBCC execution completed. If DBCC printed error messages, contact your system administrator.

What should you do next?

  1. Execute the DBCC INDEXDEFRAG statement against the table.

  2. Execute the DBCC DBREINDEX statement against the table.

  3. Execute the DBCC PHYSICAL_ONLY statement against the table.

  4. Tell your junior DBA they are right.

image from book

Answers

1. 

D. Microsoft recommends that you rebuild the index when avg_fragmentation_in_percent is greater than 30. Rebuilding the index will also update the statistics. Rebuilding the statistics by itself will not solve the problem because the table is heavily fragmented.

2. 

A. The script host utility (rs.exe) runs custom Visual Basic scripts against multiple report server instances.

3. 

C. The Database Maintenance Plan Wizard is designed to create simple database maintenance plans quickly and easily. They can then be customized further through the Database Maintenance design surface if required.

4. 

B. MOM allows you to implement a proactive monitoring and alerting solution against your SQL Server instances.

5. 

B. The reportserver system database stores configuration/security data, subscription/schedule definitions, and report snapshots.

6. 

C. The UPDATE STATISTICS ... WITH FULL SCAN command will update statistics using a full scan of the table and not automatically recomputed statistics during business hours. Option D will update statistics during business hours. Options A and B have a very poor sampling that will impact query performance.

7. 

C. The rskeymgmt utility (rskeymgmt.exe) is used to extract, restore, create and delete the symmetric key used to protect sensitive report server data against unauthorized access.

8. 

B. Only the DBCC SHRINKFILE command allows you to empty the contents of a specific database data file.

9. 

B. To create a master server, you must at least have one target server.

10. 

D. The MSRS 2005 Windows Service performance object includes a collection of counters used to track scheduled operations.

11. 

B. The DBCC CHECKDB ('SalesDB', REPAIR_REBUILD) command performs repairs on the database without any risk of data loss. The REPAIR_ALLOW_DATA_LOSS option will potentially allow error loss and should be used as a last resort. The PHYSICAL_ONLY and DATA_PURITY options will not repair errors.

12. 

C. The ReportServerWebApp_<timestamp>.log is the trace log for Report Manager.

13. 

A, B, E. You should schedule a DBCC CHECKDB, reindex operations, and a backup for the nightly tasks. There is no need to update statistics because they will be automatically updated during the reindexing operation. There is no need to perform a shrink of the database nightly because it will not improve performance, reliability, or recoverability. It can additionally fragment the database if it is performed after the reindex operations and the database only seems to be growing.

14. 

C. The Reporting Services Configuration Manager also allows you to configure a scale-out deployment of your reporting solution by connecting each report server to the shared report server database.

15. 

A. The DBCC CHECKDB task should be run first as you want to be notified as soon as possible if there is a database consistency error. The DBCC REINDEX task should be run after the DBCC SHRINKDATABASE task because otherwise the database shrink will fragment the indexes. The BACKUP DATABASE task should be run last because you want the database backup to be error free and have the rebuilt indexes.

16. 

C. The DBCC CHECKDB ('SalesDB') WITH PHYSICAL_ONLY command will not take as long to run as the DBCC CHECKDB command by itself because it does a physical check only of the database, not a logical one. The REPAIR_ALLOW_DATA_LOSS and REPAIR_REBUILD options are used for fixing errors. The DATA_PURITY option is used only to check the domain of the column.

17. 

B. The DBCC CHECKCATALOG command checks the system tables (database catalog) of your database.

18. 

B. The multiserver administration solution enables the DBA to control multiple SQL Server instances through a centralized SQL Server.

19. 

B, D. DBCC SHRINKDATABASE and DBCC CHECKDB are both resource intensive (particularly I/O). It would not be advisable to run them simultaneously.

20. 

D. The table has neither a high level of internal fragmentation (93.96 percent) nor external fragmentation (99.96 percent). The problem lies elsewhere.



MCITP Administrator. Microsoft SQL Server 2005 Optimization and Maintenance Study Guide (70-444)
MCITP Administrator: Microsoft SQL Server 2005 Optimization and Maintenance (Exam 70-444) Study Guide
ISBN: 0470127457
EAN: 2147483647
Year: 2004
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net