MaintainingYourDatabase•Chapter7 307 14. You have a database named Procurement. A full backup runs on Procurement every day at 1:00 a.m. The data file for the Procurement database is placed on the D: drive, while the log file for the Procurement database is placed on the L: drive. Unfortunately, the RAID disk hosting the D: drive volume corrupts, and the data on this disk becomes unreadable. The database recovery model was set to FULL. What should you do after you replace the damaged disk to bring the database back online and recover as much data as possible (choose all that apply)? A. Back up the tail-log that resides on the L: drive. B. Restore the latest full backup to the D: drive using the NORECOVERY option. C. Restore the tail-log you have just backed up and replay it into the Procurement database to bring the database forward using the RECOVERY option. D. Restore the latest full backup to the D: drive using the RECOVERY option. 15. Your organization has headquarters in Auckland, New Zealand, and branch offices in most countries around the world. Recently, you have centralized all SQL Servers on to a single server in Auckland. The main database is accessed by users from every office. The database is large and takes around 20 hours to perform a full backup. Additionally, the full backup is detrimental to perfor- mance and should be minimized during business hours of any of the offices. You are also aware that your organization cannot afford to lose more than one day’s data. Your task is to create a backup strategy that produces the fastest pos- sible restore time, meets the recovery point objective, and has minimal impact on performance experienced by users. What will you recommend? A. Perform a copy-only backup every Sunday and a differential backup every day at the least busy time. B. Perform a full backup every Sunday and a log backup every day at the least busy time. C. Perform a full backup every Sunday and a copy-only backup every day at the least busy time. D. Perform a full backup every Sunday and a differential every day at the least busy time. 308 Chapter7•MaintainingYourDatabase 16. Your company headquarters are in London, United Kingdom. Your company also has a branch office in Paris, France. Most customers are registered with both the head office and the branch office. You are tasked with finding out which customers are registered with both offices. To do this, you obtain a backup of the Paris database and restore it onto the London server. You the print a report of all customers sorted by last name from the London and Paris databases. You notice that the same names are sorted differently from each database. You must quickly produce a report from the Paris database that is sorted in the same way as the London database. What is the quickest way to produce this report? A. Use the ALTER TABLE statement along with the COLLATE option to change the Customers table in the Paris database to have the same colla- tion as the London database. B. Use the COLLATE clause with your SELECT statement to enforce the same collation as the London database. C. Use the Copy Table wizard to move the Customers table from the Paris database to the London database. D. Use the b\cp utility to copy data from the Customers table from the Paris database to the London database. 17. You are tasked to identify all SQL servers that are running SQL Server 2005 or earlier within your organization. What is the best way to accomplish this task with minimum administrative effort? A. Use Policy-Based Management to create a policy condition for the Server Information facet, VersionMajor >= 9. Create a policy linking this condition with a target set of all servers. Evaluate the policy to identify servers that don’t comply with this policy. B. Use Policy-Based Management to create a policy condition for the Server Information facet, VersionMajor <= 9. Create a policy linking this condi- tion with a target set of all servers. Evaluate the policy to identify servers that don’t comply with this policy. C. Run the SELECT @@Version statement against every SQL Server in the organization. D. Run the SELECT Version from sys.ServerInfo. 18. You are a part-time database administrator for a small company that relies on its 3GB database for all business needs. Unfortunately, disk space is at a MaintainingYourDatabase•Chapter7 309 premium and recovery model for this database is set to SIMPLE. What should you do to protect the database so that their maximum data loss objective of 12 hours is met? What should you tell the company’s owner about the risks of having their primary business database set to a SIMPLE recovery model (choose all that apply)? A. Perform a full backup every 12 hours. Explain that the SIMPLE recovery model means that should you lose the database due to hardware failure or corruption, you will not be able to recover any transactions that have happened after the last full backup. B. Perform a full backup every day and an incremental log file backup every 12 hours. Explain that the SIMPLE recovery model means that should you lose the database due to hardware failure or corruption, you will not be able to recover any transactions that have happened after the last incre- mental log file backup. C. Perform a full backup every day and a differential backup every 12 hours. Explain that the SIMPLE recovery model means that should you lose the database due to hardware failure or corruption, you will not be able to recover any transactions that have happened after the last differential backup. D. Perform a full backup every 12 hours. Explain that the SIMPLE recovery model means that should you lose the database due to hardware failure or corruption, you may be able to recover all transactions that have happened after the last full backup as long as the log file is intact. 19. You have decided to use the new SQL Server 2008 Data Collector feature to collect performance data from several servers in your organization. You install a SQL Server 2008 on a new server and run through the Configure Management Data Warehouse Wizard to set up data collection. One week later you view the performance reports and see that no data has been collected all week. What should you do to troubleshoot this issue (choose all that apply)? A. Check that SQL Server Agent service is running and is configured for Automatic startup. B. Check that SQL Server Data Collector service is running and is configured for Automatic startup. C. Check that the recovery model on Management Data Warehouse is not set to SIMPLE. D. Check that you have configured Data Collector proxy accounts so that they have permissions on the servers you are collecting data from. 310 Chapter7•MaintainingYourDatabase 20. You work for a large organization in a regulated industry. Currently, you adhere to a backup strategy, as shown in Figure 7.6. Figure 7.6 Current Backup Schedule A recent change in applicable regulatory requirements states that you must provide a backup of your database to a compliance officer every week. This backup must be performed to special media provided by the agency. The compliance officer must be able to easily restore the backup whenever they wish and be able to search through the entire database. The compliance related backup must not interfere with user activity or the existing backup mechanism. The compliance related backups cannot be used in a disaster recovery restore as they are not kept within your reach. What is the best way to meet these compliance requirements without interfering with the existing backup mechanism and avoiding impact on users? A. Take a full backup written to the special media on Sunday at 1:00 p.m. Give this backup to the compliance officer. B. Take a copy-only backup written to the special media on Sunday at 1:00 p.m. Give this backup to the compliance officer. C. Take an incremental backup written to the special media on Sunday at 1:00 p.m. Give this backup to the compliance officer. D. Take a partial backup written to the special media on Sunday at 1:00 p.m. Give this backup to the compliance officer. MaintainingYourDatabase•Chapter7 311 Self Test Quick Answer Key 1. B 2. B 3. B and D 4. B 5. B 6. D 7. B and C 8. B 9. C 10. C 11. C 12. A, B, C, and D 13. D 14. A, B, and C (in that order) 15. D 16. B 17. A 18. A and C 19. A and D 20. B . a.m. The data file for the Procurement database is placed on the D: drive, while the log file for the Procurement database is placed on the L: drive. Unfortunately, the RAID disk hosting the. Use the Copy Table wizard to move the Customers table from the Paris database to the London database. D. Use the bcp utility to copy data from the Customers table from the Paris database to the. the log file is intact. 19. You have decided to use the new SQL Server 2008 Data Collector feature to collect performance data from several servers in your organization. You install a SQL Server