80 Appendix•SelfTestAppendix The correct answer is B. Because this replication needs to be near real-time data and the system has a high volume of transactions, Transactional replication can be used. Snapshot replication is not an option when there is a huge data load. Peer-to-Peer and Merge can be considered when data inserts/updates/ deletes are at all nodes. 7. You have asked to implement Disaster Recovery (DR) to your SQL Server 2008 database. In addition to the DR, you are looking into options for using the DR instance as reporting database. What technology can you implement? A. Log Shipping B. Transactional Replication C. Merge Replication D. Mirroring The correct answer is B. Log Shipping and Mirroring can be used for the DR method but cannot be used as reporting solutions since the database will be in recovering mode while Log Shipping and Mirroring are in operation. There is no need for Merge Replication since data will be modified only at one end. Therefore, Transactional Replication is the answer for this. 8. You have configured Transactional Replication and you have not disabled DDL Replication. What is the T-SQL statement that will not be replicated to subscribers, if you run it in a Publisher? A. ALTER TABLE statement on a table that is a published article B. ALTER VIEW statement on a view that is a published article. C. DROP TABLE statement on a table that is a published article. D. ALTER TRIGGER statement on a table that is a published article and the trigger is a DML trigger statement. The correct answer is C. You cannot drop the table when it is being used for replication, and all the other DDL statements will be replicated. 9. You have implemented replication between SQL Server 2008 and a SQL Server 2005 database server instance. Because of the system expansion, there are some modifications to be done to the existing article. What step can you take? A. Since DDL replication is enabled by default, there is nothing you have to do. B. Drop the article and recreate them. C. Recreate the Publisher. D. Recreate the Subscriber. SelfTestAppendix•Appendix 81 Answer A is correct. DDL Replication is enabled by default in SQL Server 2008 and 2005. Therefore, there is no need to do any additional configurations. 10. What action will result in schema changes in Subscriber where DDL replication is enabled? A. Changing column type smalldatetime to date B. Adding a new table C. Modifying DDL trigger D. Adding Stored procedure Answer A is the correct answer. By enabling DDL replication, modification done to the replicated articles will be replicated. Therefore, changing column types will be replicated. DDL triggers are not replicated. 11. You have table named tblSETTINGS, which takes the following format: CREATE TABLE tblSETTINGS (SETTINGNAME VARCHAR(150)) This table changes frequently. What replication type can you include to repli- cate the preceding table? A. Snapshot Replication B. Transactional Replication C. Merge Replication D. Cannot implement any replication type The correct answer is C. You cannot use Transaction Replication because there is no primary key in the table. Snapshot Replication cannot be used because it is not feasible when there are frequent updates. Therefore, you have to use Merge Replication. 12. You are a DBA at an organization with several locations, and each location has a SQL Server 2008 instance. Employee records from all the locations are at also at the head office, and each employee record needs to be replicated to each location. What scalable method can you use to implement this? A. Implement many publishers and each publisher has a filter with hardcoded location name. B. Implement Merge Replication with dynamic filters. 82 Appendix•SelfTestAppendix C. Implement this using Peer-to-Peer Replication with dynamic filters. D. You cannot implement this using replication. The correct answer is B. Dynamic filters are available only with Merge Replication. Though you can use many Publishers and subscribers, this is not a feasible solution because there are several subscribers. 13. You have enabled Peer-to-Peer Replication and later found that you want filter some data in the replication. How can you do this? A. Modify the initial publication and filter data. B. Disable the Peer-to-Peer Replication and filter data. C. Create a new database, and restore the current database and recreate Peer-to-Peer Replication. D. You cannot have filtering for Peer-to-Peer Replication. Answer D is correct. You cannot have filtering in Peer-to-Peer Replication. After enabling Peer-to-Peer Replication, you don’t have the option of disabling it. 14. You have more than 20 subscribers; what is the subscription method are you going to use to improve the performance? A. Push B. Pull C. Both Push and Pull D. Nothing will change the performance Answer B is correct. To improve the performance you can use Pull subscription. In Pull subscription, agents will run at the subscribers. Because there are more than 20 subscriptions, if you configure Push subscription, all the load will be at distribution. 15. You are going to propose buying SQL Server 2008 version to support replica- tion. Currently you have Oracle Servers and they may be included for publica- tion. What SQL Server edition are you going to purpose? A. Enterprise B. Standard C. Workgroup D. Express SelfTestAppendix•Appendix 83 The correct answer is A. Oracle publication can be used only in Enterprise, not in other editions. 16. You are a DBA of an organization where several replications are configured. In this configuration you have noticed that some agents suddenly stopped; you are not aware of the reason or when the agent was down. What is the monitoring tool you can use to find that information? A. Replication Monitor B. DMVs C. Performance Monitor D. Profiler Answer C is correct. In Performance Monitor there is a counter object named Replication Agent. From this you can measure the number of agents that are running. Also, in Performance Monitor, you can monitor the Memory, CPU, and IO counters as well. Therefore, you can combine all the necessary counters and find the reason and time. 17. Oracle Servers can be included in your replication topology. How can an Oracle server function in SQL Server Replication? A. As a Subscriber only B. As a Publisher only C. As a Subscriber or Publisher D. As a Subscriber, Publisher, or Distributor Answer C is correct. In SQL Server replication, Oracle can act as a Publisher or Subscriber, but not a Distributor. 18. You have implemented replication of a SQL Server database server, but are concerned about the additional load of having 100 PDAs running SQL Server Compact Edition subscribing to read-only publications. You have monitored that there are performance issues in the replication. What step can you take to improve the performance? A. Move the Publisher duties to another SQL Server to lessen the load on the main server. B. Move the Distributor duties to another SQL Server to lessen the load on the main server. 84 Appendix•SelfTestAppendix C. Move the Subscriber duties to another SQL Server to lessen the load on the main server. D. There is nothing you can do to lower the load if you have that many clients. The correct answer is B. You can offload the distribution duties to another server and have all the subscribers connect to the distribution database in the replication. 19. You have SQL Server 2005 replication and decided to upgrade it to SQL Server 2008. In which order do you perform an upgrade to SQL Server 2005 for replicated databases to SQL Server 2008? A. Distributor, Publisher, then Subscriber B. Publisher, Distributor, then Subscriber C. You cannot upgrade SQL Server 2005 to SQL Server 2008 D. Any order Answer A is the correct answer. The Distributor must be at the same or greater version than the Publisher to receive changes. The Subscriber must then be equal to or less than that of the Publisher. 20. What can tracer tokens measure in SQL Server 2005 Transactional Replication? A. The time duration between a transaction being committed on the pub- lisher and it being written to the distribution database B. The amount of time a transaction is in the distribution database before all subscribers receive it C. The amount of time elapsed between a command being written to the distribution database and being committed on a subscriber D. A and C The correct answer is D. Tracer tokens are to measure the latencies in Transaction Replication. Tracer tokens are to measure: How much time elapses between a transaction being committed at the Publisher and the corresponding command being inserted in the distribution database at the Distributor. How much time elapses between a command being inserted in the distribution database and the corresponding transaction being committed at a Subscriber. . Move the Distributor duties to another SQL Server to lessen the load on the main server. 84 Appendix•SelfTestAppendix C. Move the Subscriber duties to another SQL Server to lessen the load. that there are performance issues in the replication. What step can you take to improve the performance? A. Move the Publisher duties to another SQL Server to lessen the load on the main server. B to SQL Server 2005 for replicated databases to SQL Server 2008? A. Distributor, Publisher, then Subscriber B. Publisher, Distributor, then Subscriber C. You cannot upgrade SQL Server 2005 to SQL