40 Appendix•SelfTestAppendix C. Do not compress backup Answer B is the correct answer. If you are dealing with a slow WAN link you do not want to run the risk that someone disables the global compression settings and slows down the WAN by turning off the compression. 3. You are setting up log shipping for a database between two instances of SQL Server 2008. You want to ensure that your users have access to the database when the logs are not actively being restored so that they can read the updated data for reporting purposes. In what state should you leave the database? A. RECOVERY B. NO RECOVERY C. STANDBY Answer C is the correct answer. If you leave the database in the STANDBY state the users can connect to the database, which is left in a read-only state, and query it. If the database is in a RECOVERY state then you will not be able to restore any more logs to it. If the database is in a NO RECOVERY state then the users will not be able to access it at all. If you do this, be sure to tell the log shipping to disconnect the users when restoring the backups. 4. Which of the following database mirroring modes requires the use of a witness instance? A. High Performance with automatic failover B. High Performance C. High Safety D. High Safety with automatic failover The correct answer is D. Automatic failover is available only with High Safety, and only when a witness server is configured. High Safety can be used without a witness server if automatic failover is not required but the loss of any transac- tions is unacceptable. 5. You are setting up your deployment scripts to create your database mirroring endpoints on your production SQL Server. Each server has a single instance on it. Which script will correctly create the database mirroring endpoint? A. CREATE ENDPOINT MyEndpoint STATE = STARTED SelfTestAppendix•Appendix 41 AS HTTP (PATH=/sql/MyEndpoint, AUTHENTICATION=BASIC) FOR DATABASE_MIRRORING; B. CREATE ENDPOINT MyEndpoint STATE = STARTED AS TCP (LISTENER_PORT=5022) FOR DATABASE_MIRRORING; C. CREATE DATABASE_MIRRORING ENDPOINT MyEndpoint STATE=STARTED AS TCP (LISTENER PORT=5022); D. CREATE ENDPOINT MyEndpoint STATE = STARTED AS TCP (LISTENER PORT=1433) FOR DATABASE_MIRRORING; Answer B is the correct answer. Database mirroring endpoints must use unique TCP port numbers. Answer C uses an invalid command, because the DATABASE_MIRRORING switch goes after the protocol section. Answer D is incorrect because port 1433 will be used by the SQL Server engine. 6. You are designing your high-availability solution. Because of the importance of the database system you are required to have more than one independent backup server running at all times. Which high-availability solution fits these requirements? A. Database mirroring B. Log shipping C. Clustering D. Replication Answers B and D are correct. Only log shipping and replication allow for multiple independent backup servers. Database Mirroring can have only a single backup server. Clustering does not allow for any independent backup servers because of the shared storage requirement. 7. You have installed SQL Server 2008 in a clustered environment. You are installing SSIS on the SQL Server. You have installed SQL Server 2008 as a named instance and need to tell SSIS that it needs to connect to the named instance. What file should you edit? 42 Appendix•SelfTestAppendix A. C:\Program Files\Microsoft SQL Server\100\DTS\Binn\msdtssrvr.exe. config B. C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsConfig. ini.xml C. C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTExec.exe. config D. C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsConfig. ini.config The correct answer is B. This is the config file, which contains the settings that the Integration Services service uses to control to which instances it connects. The msdtssrvr.exe.config file contains the settings that control what tracing data is being collected. The DTExec.exe.config file holds some basic settings that are used when running SSIS packages. The MsDtsConfig.ini. config file does not exist. 8. You are selecting your high-availability solution for your production environ- ment. You have a single data center that houses all your servers. Which high- availability solution requires administrative overhead after the initial setup is complete? A. Database mirroring B. Replication C. Clustering D. Log shipping The correct answer is C. With clustering, when you install SQL Server service packs and hot fixes the patch will be installed on all the nodes of the cluster. With the other three solutions the primary machine and backup machines need to be patched separately. 9. You are considering the licensing costs for your new high-availability solution. You will be using the Standard edition of Microsoft SQL Server. Which solution has the lowest licensing costs? A. Database mirroring B. Replication C. Clustering D. Log shipping SelfTestAppendix•Appendix 43 Answer C is correct. SQL Server clustering has the lowest licensing costs because you need to license only the active node. With the other three options the backup machines must also be licensed. 10. You need to upgrade the CPUs in your SQL Server. You want to add new CPUs without taking the system offline. Your hardware supports this feature. What operating system or systems support this feature? A. Web Edition B. Standard Edition C. Enterprise Edition D. Datacenter Edition The correct answer is D. Only the Datacenter Edition of Windows supports adding CPUs without taking the system offline. 11. You need to upgrade the RAM in your SQL Server. You want to add more RAM without taking the system offline. Your hardware supports this feature. What operating system or systems support this feature? A. Web Edition B. Standard Edition C. Enterprise Edition D. Datacenter Edition Answers C and D are correct. Both the Enterprise and Datacenter edition support adding RAM without taking the system offline. 12. When you are setting up your clients to connect to a clustered SQL Server database, to which hostname should they be connecting? A. The hostname of the node that is actively running the SQL Service B. The hostname of the node that is not actively running the SQL Service C. The hostname that was used when setting up the Windows Cluster D. The hostname that was used when installing SQL Server The correct answer is D. You will want to have your clients connect to the hostname that was used when installing SQL Server. Although you can connect to the hostname that is running the SQL Service, there is no way to know which host this is. Although you can connect via the hostname that was set up when configuring the Windows cluster it will work only if both the 44 Appendix•SelfTestAppendix Windows Cluster and the SQL Instance are currently on the same node. As they are in different resource groups it is entirely possible that they will be on different nodes. 13. You are using merge replication to make your user authentication database highly available. The database has a single table that is shown in Example A. The replication has been running for several months without issue. Your repli- cation has begun failing, giving a unique index violation. What should you do to correct the problem? Your business processes require that each username remain unique within the system, and that users use their e-mail addresses for their usernames. Example A: Merge Replication CREATE TABLE Authentication (UserId INT PRIMARY KEY IDENTITY(1,1), UserName NVARCHAR(255), Password NVARCHAR(100), Active BIT) GO CREATE UNIQUE INDEX IX_Authentication_UserName ON dbo.Authentication (UserName) INCLUDE (Password, UserId, Active) WITH (FILLFACTOR=60) GO A. Mark the subscriber for reinitialization, and run the snapshot agent. B. Identify the rows that are causing the violation and delete both rows from the servers. C. Identify the rows that are causing the violation, then identify which UserId is being used by the customer within the rest of your business processes, then modify the UserName value of the invalid row to a different value. D. Delete the subscriber and re-create the subscription. The correct answer is C. This solution will cause the least amount of downtime for the environment, and the least inconvenience to your customers. By using either solution A or D any new records that were created on the subscriber after the offending row was entered would be lost. Using solution B would cause the user to lose access to the system . hostname should they be connecting? A. The hostname of the node that is actively running the SQL Service B. The hostname of the node that is not actively running the SQL Service C. The hostname. Identify the rows that are causing the violation and delete both rows from the servers. C. Identify the rows that are causing the violation, then identify which UserId is being used by the customer. fixes the patch will be installed on all the nodes of the cluster. With the other three solutions the primary machine and backup machines need to be patched separately. 9. You are considering the