Sei sulla pagina 1di 192

Test Questions

Page
1 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 1 Question ID: rrMS_70-432-014 You maintain a database named SalesDB. The database and transaction log files are stored on different hard disks. The SalesDB database is backed up according to following schedule: * * * * 11:00 P.M. Nightly: Full backup 10:00 A.M. Daily: Differential backup 2:00 P.M. Daily: Differential backup Every 1/2 hour: Transaction log backup

The hard disk where the database is stored fails at 3:00 P.M. You need to recover the SalesDB database. Your solution must restore the database as quickly as possible. What should you do?

* Restore the full backup. * Restore each transaction log backup since 11:00 P.M. in order. * * * * Back up the transaction log. Restore the full backup. Restore the 2:00 P.M. differential backup. Restore each transaction log backup since 2:00 P.M. in order.

* Restore the full backup. * Restore the 2:00 P.M. differential backup. * Restore each transaction log backup since 2:00 P.M. in order. * * * * * Back up the transaction log. Restore the full backup. Restore the 10:00 A.M. differential backup. Restore the 2:00 P.M. differential backup. Restore the latest transaction log backup.

You should take these steps: * * * * Back up the transaction log. Restore the full backup. Restore the 2:00 P.M. differential backup. Restore each transaction log backup since 2:00 P.M. in order.

You should back up the tail of the transaction log first to back up the transactions that have occurred since the last transaction log backup and allow for recovery. Next, you should restore the full backup. Then, you should restore the differential backup taken at 2:00 P.M. A differential backup backs up everything that has changed since the last full backup, so you only need to restore the most recent differential backup. Finally, you should restore each transaction log backup taken since the differential backup. The last backup you restore should be the tail log backup. You should not take these steps: * Restore the full backup. * Restore the 2:00 P.M. differential backup. * Restore each transaction log backup since 2:00 P.M. in order. You need to back up the tail of the transaction log before restoring so that data can be recovered to the point of failure. You should not take these steps: * * * * * Back up the transaction log. Restore the full backup. Restore the 10:00 A.M. differential backup. Restore the 2:00 P.M. differential backup. Restore the latest transaction log backup.

There is no need to restore the 10:00 A.M. differential backup. The 2:00 P.M. differential backup includes the changed records from the 10:00 A.M. differential backup. You should not take these steps: * Restore the full backup. * Restore each transaction log backup since 11:00 P.M. in order. You need to back up the tail of the transaction log as the first step. Also, you should restore the differential backup because it will take less time than replaying all the transaction log backups taken since the 11:00 P.M. full backup.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.2 Restore databases.

References:

1.

How to: Restore a Differential Database Backup (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft

Question 2 Question ID: rrMS_70-432-035 You maintain a database named MapDB. MapDB is hosted on an instance of SQL Server 2008. The MapDB database has a table named Maps that contains a column named MapInfo of type geography, a column named Description of type varchar(50), and a MapID column of type char(10). You need to optimize queries that use the STDistance function. What should you do?

* Create a clustered index on the MapID column. * Create a nonclustered index on the MapInfo column. * Create a clustered index on the MapInfo, Description, and MapID columns. * Create a spatial index on the MapID and MapInfo columns. * Specify the MapID column as the primary key. * Create a spatial index on the MapInfo column.

Question 2 Explanation: You should take these steps: * Specify the MapID column as the primary key. * Create a spatial index on the MapInfo column. The geography data type is a spatial data type. The STDistance function is a geography function that can benefit from a spatial index. A spatial index can be based on only a single column of a spatial data type. The table must have a primary key before you can create a spatial index. You should not create a spatial index on the MapID and MapInfo columns. A spatial index must be based on a single column of a spatial data type. Only geography and geometry are spatial data types. You should not take these steps: * Create a clustered index on the MapID column. * Create a nonclustered index on the MapInfo column. A nonclustered index will not optimize a query that uses the STDistance function. You need

You should not create a clustered index on the MapInfo, Description, and MapID columns. A clustered index will not optimize a query that uses the STDistance function. You need to create a spatial index.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.4 Maintain indexes.

References:
1. Restrictions on Spatial Indexes Click here for further information Microsoft TechNet, Microsoft Spatial Indexing Overview Click here for further information Microsoft TechNet, Microsoft

2.

Question 3 You manage a database named CompanyReports. You are preparing to create a new table. You need to determine the database's collation. What should you execute?

Question ID: rrMS_70-432-039

Use CompanyReports SELECT Name FROM fn_helpcollations() SELECT DATABASEPROPERTYEX('CompanyReports', 'collation') Use CompanyReports SELECT @@LANGUAGE SELECT DATABASEPROPERTY ('CompanyReports', 'collation')

Question 3 Explanation: You should execute: SELECT DATABASEPROPERTYEX('CompanyReports', 'collation') The DATABASEPROPERTYEX function accepts the name of a database and a property and

You should not execute: SELECT DATABASEPROPERTY ('CompanyReports', 'collation') The DATABASEPROPERTY function does not allow you to return the setting for the collation property. It does allow you to return values of other database properties. You should not execute: Use CompanyReports SELECT @@LANGUAGE The @@LANGUAGE variable stores the current language of the session, not the collation of the database. You should not execute: Use CompanyReports SELECT Name FROM fn_helpcollations() The fn_helpcollations function allows you to retrieve information about various collations. The query shown would return the names of all collations.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.5 Manage collations.

References:
1. @@LANGUAGE (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DATABASEPROPERTY (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DATABASEPROPERTYEX (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft fn_helpcollations (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 4 You maintain a server running SQL Server 2008.

Question ID: rrMS_70-432-047

You are troubleshooting a performance problem. You identify a long-running query by using sys.dm_exec_query_stats.

You need to view the syntax of the long running query. What should you do?

Execute: SELECT text FROM sys.dm_exec_sql_text WHERE objectid = <sql_handle> Execute: SELECT * FROM sys.dm_exec_query_optimizer_info(<sql_handle>) Execute: SELECT text FROM sys.dm_exec_query_optimizer_info WHERE objectid = <sql_handle> Execute: SELECT * FROM sys.dm_exec_sql_text(<sql_handle>)

Question 4 Explanation: You should execute: SELECT * FROM sys.dm_exec_sql_text(<sql_handle>) The sys.dm_exec_sql_text Dynamic Management View (DMV) contains the text of all cached queries. They are identified by the sql_handle column in the sys.dm_exec_query_stats DMV. You must pass the handle to the query as a parameter to the view. You should not execute: SELECT text FROM sys.dm_exec_sql_text WHERE objectid = <sql_handle> You must pass the handle as an argument to sys.dm_exec_sql_text. It is not specified in a WHERE clause. You should not execute sys.dm_exec_query_optimizer_info. This DMV returns information about optimizations made when tuning a workload.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.4 Collect performance data by using Dynamic Management Views (DMVs).

References:
1. sys.dm_exec_query_optimizer_info (Transact-SQL)

Click here for further information Microsoft TechNet, Microsoft 2. sys.dm_exec_sql_text (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_exec_query_stats (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

3.

Question 5 Question ID: flmMS_70-432-014 You are configuring logon restrictions for a computer running Microsoft Windows Server 2008. The computer is a member server in a Windows Server 2003 Active Directory domain. The computer runs a default instance of SQL Server 2008. SQL Server is configured to support Windows and SQL Server authentication. You need to ensure that the same SQL Server logon account cannot be used to log onto more than four concurrent sessions. You need to minimize the effort necessary to configure and maintain your solution. What should you do?

Create an event notification based on the AUDIT_LOGIN SQL Trace event. Create a logon trigger in each user database. Create a logon trigger in the master database. Create a password policy through SQL Server policy-based management. Create an Active Directory domain password policy.

Question 5 Explanation: You should create a logon trigger in the master database. The logon trigger will fire after authentication and can be used to prevent establishment of another session if there are already four concurrent sessions with the same logon account. You would test against the session count in the sys.dm_exec_sessions dynamic management view (DMV) to determine the number of concurrent sessions. Because the session is established during authentication, you would test for a session count of greater than four. This would allow four concurrent sessions, but prevent more than four. If the session count is greater than four, you would have the trigger roll back the logon. You would use a structure similar to the following inside the trigger for this purpose: IF ORIGINAL_LOGIN()= '<logon_account_name>' AND

original_login_name = '<logon_account_name>') > 4 ROLLBACK END; You would need to replace <logon_account_name> with the actual account name in the trigger. This structure would require you to create a separate trigger for each logon account. You should not create an event notification based on the AUDIT_LOGIN SQL Trace event. An event notification is asynchronous, which would prevent it from being used to stop a session from being established with the logon account. You should not create a logon trigger in each user database. There is no need to do this and it would result in more work than necessary. You should not create a password policy either in the Active Directory domain or through SQL Server policy-based management. Either password policy would let you enforce password complexity requirements, force periodic changes, and enforce password history. The policies could not be used to prevent establishment of a session based on the number of sessions already established by a logon.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.3 Manage SQL Server instance permissions.

References:
1. Password Policy Click here for further information Microsoft TechNet, Microsoft Administering Servers by Using Policy-Based Management Click here for further information Microsoft TechNet, Microsoft Logon Triggers Click here for further information Microsoft TechNet, Microsoft CREATE TRIGGER (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Logon Trigger Execution Guidelines Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 6 Question ID: flmMS_70-432-006 You manage a computer running an instance of Microsoft SQL Server 2008. Automated jobs are used to perform several periodic administrative tasks. You need to view the contents of the most recent SQL Server Agent log file to

ensure that the jobs have been running properly. What should you do?

View the contents of the sysjobstepslogs table in the msdb database. View the contents of the SQLAgent.out file in the SQL Server log directory. View the contents of the SQLAgent.1 file in the SQL Server log directory. View the contents of the sysjobs table in the msdb database.

Question 6 Explanation: You should view the contents of the SQLAgent.out file in the SQL Server log directory. The most recent SQL Server Agent log file is named SQLAgent.out. The full path to the log directory is: \Program Files\Microsoft SQL Server\MSSQL10MSSQLSERVER\MSSQL\LOG The log file is a text file, so it can be viewed directly. It is preferable to use SQL Server Management Studio to view the log files. It provides easy access to all log files, including the SQL Server Agent logs. You should not start with the SQLAgent.1 file. This is a valid SQL Server Agent log file, but not the most recent file. It is one generation back from the most recent log file. You will likely find several SQLAgent files with one-up numbering in the log directory. You should not view the contents of the sysjobstepslogs table in the msdb database. The table contains information about the log used to log job step activity, not the activity itself. You should not view the contents of the sysjobs table in the msdb database. This contains information about the jobs you have created, but nothing about SQL Server Agent activity or job execution.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.1 Manage SQL Server Agent jobs.

References:
1. Error 1053 when you try to start SQL Server Agent Click here for further information Microsoft Help and Support, Microsoft SQL Server Agent Tables (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

How to: View SQL Server Agent Error Log (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft

Question 7 You manage an instance of SQL Server 2008.

Question ID: rrMS_70-432-067

Users report frequent operation timeouts during busy periods. You need to determine whether resource locking is responsible for the problem. What should you do?

Execute sp_lock. Query the sys.dm_tran_locks dynamic management view. View the Locks By Process page in Activity Monitor. Create a trace that includes the Deadlock Graph event.

Question 7 Explanation: You should create a trace that includes the Deadlock Graph event. A SQL Profiler trace allows you to create a log file that can be used to monitor historical information. You should not execute sp_lock. The sp_lock system stored procedure is provided for backward compatibility. Also, it only provides information about locks currently held. It does not provide historical information. You should not query the sys.dm_tran_locks dynamic management view. The sys.dm_tran_locks dynamic management view is used to retrieve information about locks currently held and requested. It does not provide historical information. You should not view the Locks By Process page in Activity Monitor. Activity Monitor allows you to view information about current activity only. It does not provide historical information.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.2 Identify concurrency problems.

References:
1. Detecting and Ending Deadlocks

Click here for further information Microsoft TechNet, Microsoft 2. Analyzing Deadlocks with SQL Server Profiler Click here for further information Microsoft TechNet, Microsoft sp_lock (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_tran_locks (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

3.

4.

Question 8 You manage an instance of SQL Server 2008.

Question ID: rrMS_70-432-045

Users report that queries often time out or hang during peak periods. You need to create an Extensible Markup Language (XML) report that shows any resources and processes involved in deadlocks. What should you do?

Create a filter on the Locks by Process tab of Activity Monitor. Create a trace by using SQL Server Profiler. Select the Lock: Deadlock Chain event. Create a filter on the Locks by Object tab of Activity Monitor. Create a trace by using SQL Server Profiler. Select the Deadlock graph event.

Question 8 Explanation: You should create a trace by using SQL Server Profiler and select the Deadlock graph event. The Deadlock graph event logs detailed information about the processes and resources involved in a deadlock. You can choose to generate a separate XML file for this data on the Event Extractions Settings tab of Trace Properties. You should not create a trace by using SQL Server Profiler and select the Lock: Deadlock Chain event. The Deadlock Chain event logs the events that led to a deadlock. The information is stored in the trace file or trace table. It is not stored in a separate XML file. You should not use Activity Monitor. Activity Monitor is used to view the status of current processes. It does not allow you to create a log of deadlocks and store it in an XML file.

Objective:

List all questions for this objective

Optimizing SQL Server Performance

Sub-Objective: 7.3 Collect trace data by using SQL Server Profiler.

References:
1. Analyzing Deadlocks with SQL Server Profiler Click here for further information Microsoft TechNet, Microsoft Lock:Deadlock Chain Event Class Click here for further information Microsoft TechNet, Microsoft Determining User Activity Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 9 Question ID: rrMS_70-432-058 You manage a server running SQL Server 2008. The server contains databases created by users in various departments. GeorgeM needs to be able to grant and revoke permissions to use the Sales database to Windows users and groups. The public role is a member of the db_datareader role. Membership in the db_datawriter role is managed by MaryK. MaryK is the database owner. You need to assign GeorgeM the minimum necessary permissions. What should you do?

Add GeorgeM to the db_accessadmin fixed database role. Add GeorgeM to the db_owner fixed database role. Add GeorgeM to the db_securityadmin fixed database role. Add GeorgeM to the securityadmin fixed server role.

Question 9 Explanation: You should add GeorgeM to the db_accessadmin fixed database role. Members of the db_accessadmin fixed database role can grant and revoke permission to access the database. You should not add GeorgeM to the db_securityadmin fixed database role. Members of the db_securityadmin fixed database role can manage permissions on database objects and can manage membership in database roles. This provides more access permissions than required.

provides more access permissions than required. You should not add GeorgeM to the db_owner fixed database role. Only the database owner can be a member of the db_owner fixed database role. Also, the db_owner fixed database role can perform any action on the database, which provides more permissions than necessary.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.2 Manage users and database roles.

References:
1. Database-Level Roles Click here for further information MSDN, Microsoft

Question 10 You support a SQL Server 2008 instance.

Question ID: flmMS_70-432-058

The CustomerInfo table includes an XML data type column with detailed information about customers. You have created a primary XML index on the column. You need to optimize performance for queries that use the XML type value() method to retrieve object properties. The object primary key value is known when running the queries. What should you do?

Create a PROPERTY secondary XML index. Create a full-text index on the column. Create a VALUE secondary XML index. Create a PATH secondary XML index.

Question 10 Explanation: You should create a PROPERTY secondary XML index. A PROPERTY secondary XML index can help improve query performance when running queries that use the XML type value() method. The PROPERTY index is based on the PK (primary key), path, and node columns of

You should not create a full-text index on the column. You can create a full-text index on an XML column, but the index contains element values only. It does not contain any of the XML markup information, including hierarchical path information. A full-text index would do nothing to improve performance in this situation. You should not create a PATH secondary XML index. A PATH secondary XML index can help improve query performance for queries that include XML path expressions to specify a location in the XML hierarchy. It does nothing to improve query performance when running queries that use the XML type value() method. You should not create a VALUE secondary XML index. A VALUE secondary XML index can help improve query performance when retrieving node values when the path is not known or includes a wildcard.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.4 Maintain indexes.

References:
1. Indexes on XML Data Type Columns Click here for further information MSDN, Microsoft Secondary XML Indexes Click here for further information MSDN, Microsoft

2.

Question 11 Question ID: flmMS_70-432-042 You manage Microsoft SQL Server 2008 resources for your organization. You configure two instances running on different computers for database mirroring. The mirror is configured for automatic failover. An error occurs in the principal database in the mirror pair. Transaction safety is set to FULL. The mirror database state is SYCHRONIZING. The witness state is NULL. You need to fail over to the mirror as quickly as possible. Data loss, if unavoidable, is acceptable during failover. What should you do?

Initiate a forced service failover. Initiate a manual failover. Replace the witness server.

Set transaction safety to OFF.

Question 11 Explanation: You need to initiate a forced service failover. This is the only failover method available if the mirror is not fully synchronized with the principal database. You know that it is not synchronized because of the SYNCHRONIZING status. You cannot initial a manual failover. Manual failover requires that the principal and mirror databases are synchronized and that the witness disk, if used, be connected. You should not set transaction safety to OFF. This does nothing to assist with failing over to the mirror database. You would set the transaction safety to full on a mirror pair if you wanted the mirror to operate in high-performance mode. Force service is the only failover method supported by high-performance mode. You should not replace the witness server. The witness server has no role in a forced service failover.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.1 Implement database mirroring.

References:
1. Database Mirroring Overview Click here for further information Microsoft TechNet, Microsoft Database Mirroring Witness Click here for further information Microsoft TechNet, Microsoft Transact-SQL Settings and Database Mirroring Operating Modes Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 12 Question ID: flmMS_70-432-052 Your organization supports default SQL Server instances running on three different computers. ChiData runs SQL Server 2000, DetData runs SQL Server 2005 Enterprise Edition, and NYData runs SQL Server 2008 Enterprise edition. You are configuring support for a new transactional application that will be supported by a database deployed in each of the instances. You want to configure replication on NYData. You want to ensure that changes posted on any server are replicated to the other servers as quickly as possible.

What should you do?

Use Transactional replication with immediate-updating subscribers. Use Merge replication. Use peer-to-peer Transactional replication. Use bidirectional Transactional replication.

Question 12 Explanation: You should use Transactional replication with immediate-updating subscribers. This enables you to make updates on any of the servers and have them replicated to the remaining servers. This configuration has minimal latency, so updates are replicated as quickly as possible. Immediate-updating subscribers is supported on all of the instances. You should not use Merge replication. Merge replication does replicate changes made to a database, but latency is greater in Merge replication than in Transactional replication with immediate-updating subscribers. You should not use peer-to-peer or bidirectional Transactional replication. Bidirectional replication is supported by SQL Server 2005 and SQL Server 2008 only. Peer-to-peer Transactional replication is supported on SQL Server 2008 Enterprise edition only. Bidirectional Transactional replication allows two servers to replicate changes between each other. Peer-to-peer Transactional replication is similar, but supports multiple server configurations.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.4 Configure additional SQL Server components.

References:
1. Updatable Subscriptions for Transactional Replication Click here for further information MSDN, Microsoft Bidirectional Transactional Replication Click here for further information MSDN, Microsoft Peer-to-Peer Transactional Replication Click here for further information MSDN, Microsoft Merge Replication Overview Click here for further information MSDN, Microsoft

2.

3.

4.

Question 13 You manage a server running SQL Server 2008. Users report performance problems on the server.

Question ID: rrMS_70-432-074

You need to gather detailed information about queries that take longer than 45 seconds to execute. The execution time should not include time spent waiting for a resource. You need to define a trace that provides minimal impact on server performance, while gathering the largest amount of relevant data. What should you do?

Set a filter on the Duration column. Log the trace to a file. Set a filter on the Duration column. Log the trace to a table and limit the number of rows. Set a filter on the CPU column. Log the trace to a file and enable file rollover. Set a filter on the CPU column. Log the trace to a table.

Question 13 Explanation: You should set a filter on the CPU column and log the trace to a table. The CPU column stores the time spent actually executing the statement. You should not set a filter on the Duration column and log the trace to a file. The Duration column is the amount of time between StartTime and EndTime and includes time spent waiting for a resource. You should not set a filter on the Duration column, log the trace to a table and limit the number of rows. If you limit the number of rows, the trace will still keep executing but data will not be logged. Therefore, relevant data might not be logged. Also, the Duration column is the amount of time between StartTime and EndTime and includes time spent waiting for a resource. You should not set a filter on the CPU column, log the trace to a file and enable file rollover. If you enable file rollover, when the file reaches a specific size older events will be overwritten.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective:

7.3 Collect trace data by using SQL Server Profiler.

References:
1. Limiting Trace File and Table Sizes Click here for further information Microsoft TechNet, Microsoft Describing Events by Using Data Columns Click here for further information Microsoft TechNet, Microsoft Filtering a Trace Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 14 You maintain the ProductInfo database.

Question ID: rrMS_70-432-013

The ProductInfo database is a very large database. Data is distributed among the filegroups described in the exhibit. A full backup of the database takes 6 hours. Approximately 10% of the data in ProductInfo and ProductInfoB is modified daily. The data in ProductInfoA is modified four times a year by a bulk operation. ProductInfoA contains 70% of the data. You are designing a backup strategy to back up the ProductInfo database. Your strategy must meet the following requirements: * No more than 4 hours of data from day-to-day operations can be lost. * The time required to back up the database must be minimized. * Recovery time must be minimized. You need to identify the steps you will take to back up the database. What should you do?

* Execute the following command nightly: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice * Execute the following command every four hours: BACKUP DATABASE ProductInfo TO MyBackupDevice WITH DIFFERENTIAL

* Execute the following command nightly: BACKUP DATABASE ProductInfo TO MyBackupDevice * Execute the following command every four hours: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice WITH DIFFERENTIAL * Execute the following command nightly: BACKUP DATABASE ProductInfo TO MyBackupDevice * Execute the following command every four hours: BACKUP LOG ProductInfo TO MyBackupDevice * Execute the following command nightly: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice * Execute the following command every four hours: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice WITH DIFFERENTIAL

Question 14 Explanation: You should perform the following steps: * Execute the following command nightly: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice * Execute the following command every four hours: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice WITH DIFFERENTIAL The READ_WRITE_FILEGROUPS option allows you to back up only the primary filegroup and the read-write filegroups in the database. Using this option allows you to minimize the amount of time required to back up the database because only filegroups that can change are backed up. By using a partial base backup and supplementing it with partial differential backups, you can meet the requirement of minimizing both backup and restore time. Restore time is minimized because only the full backup and the latest differential backup must be restored. You should not perform the following steps: * Execute the following command nightly: BACKUP DATABASE ProductInfo TO MyBackupDevice

BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice WITH DIFFERENTIAL You must create a partial backup as the base backup. You cannot use a full backup as the base for a partial differential backup. You should not perform the following steps: * Execute the following command nightly: BACKUP DATABASE ProductInfo TO MyBackupDevice * Execute the following command every four hours: BACKUP LOG ProductInfo TO MyBackupDevice Performing a full backup of ProductInfo will take much longer to complete than performing partial backups because the read-only filegroup contains 70% of the data. Also, this strategy will result in longer restoration times because each transaction log needs to be replayed. You should not perform the following steps: * Execute the following command nightly: BACKUP DATABASE ProductInfo READ_WRITE_FILEGROUPS TO MyBackupDevice * Execute the following command every four hours: BACKUP DATABASE ProductInfo TO MyBackupDevice WITH DIFFERENTIAL You must perform a partial differential backup, not a full differential backup when you use a partial backup as a base.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.1 Back up databases.

References:
1. Partial Backups Click here for further information Microsoft TechNet, Microsoft

Question 15 Question ID: flmMS_70-432-027 You manage a default Microsoft SQL Server 2008 instance. The Inventory database contains a schema named SKU owned by dbo. Several database objects are contained in the schema.

You need to transfer ownership of the schema to InvData_owner. You need to do this with minimal administrative effort and with minimal interference with database operations. What should you do?

Run ALTER AUTHORIZATION. Run ALTER USER. Run DROP SCHEMA and CREATE SCHEMA. Run ALTER SCHEMA.

Question 15 Explanation: You should run ALTER AUTHORIZATION. The schema owner is specified as the schema authorization. By changing the schema authorization, you change schema ownership. You can also use the schema properties in SQL Server Management Studio to change schema ownership. You should not run ALTER SCHEMA. ALTER SCHEMA is used to move an object in a schema, not to change the schema owner. You should not run ALTER USER. ALTER USER lets you modify database user properties, but does not let you assign ownership of a schema to the user. You should not run DROP SCHEMA and CREATE SCHEMA. You can drop and recreate a schema with a new owner, but this would require more effort than simply changing the schema authorization. You would have to specify the objects contained in the schema when you recreate the schema and redefine any permissions associated with the schema.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.5 Manage schema permissions and object permissions.

References:
1. DROP SCHEMA (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft ALTER AUTHORIZATION (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft CREATE SCHEMA (Transact-SQL) Click here for further information

2.

3.

Microsoft TechNet, Microsoft 4. User-Schema Separation Click here for further information Microsoft TechNet, Microsoft ALTER USER (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

5.

Question 16 Question ID: flmMS_70-432-029 You manage a default Microsoft SQL Server 2008 instance named MainServ. The computer on which the instance is installed is running Windows Server 2008. The Acctg database contains sensitive, business-critical data and is encrypted with transparent data encryption (TDE). The filegroup for the Acctg database is on a disk volume formatted as NTFS. The file for the Acctg database is encrypted through Encrypting File System (EFS). You are moving the Acctg database to a different SQL Server 2008 instance running on a different computer named WorkServ. The destination folder is formatted as NTFS. The destination folder is not encrypted. You use SQL Server 2008 to back up the Acctg database and log file from MainServ to a removable hard disk. When you connect the hard disk to WorkServ, the backup is unreadable. You need to move the database to WorkServ as quickly as possible. You cannot transfer the database over network. What should you do?

Copy the database file to the removable hard disk, then copy the file to the destination server and attach the database. Configure the folder on the destination server to use EFS to encrypt data. Install a new certificate on the destination server and restore the database from backup. Back up both the database and the certificate used to encrypt the database, then restore them to the destination server.

Question 16 Explanation: You should back up both the database and the certificate used to encrypt the database, then restore them to the destination server. TDE encryption occurs at the database server. When you back up an encrypted database, the backup is also encrypted. You must back up both the database and certificate used to create it to be able to restore the database.

You should not configure the folder on the destination server to use EFS to encrypt data. The problem is with TDE encryption, not EFS encryption. EFS encryption does not directly affect SQL Server backup and restore operations. You should not install a new certificate on the destination server and restore the database from backup. This will not help because you need the same certificate that was originally used to encrypt the data.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.7 Manage transparent data encryption.

References:
1. Database Encryption in SQL Server 2008 Enterprise Edition Click here for further information Microsoft Downloads, Microsoft Understanding Transparent Data Encryption (TDE) Click here for further information Microsoft TechNet, Microsoft

2.

Question 17 Question ID: flmMS_70-432-024 You are the administrator for a default instance of Microsoft SQL Server 2008. You enable C2 audit mode on the server. Several minutes after enabling C2 audit mode, the SQL Server service shuts itself down. You need to get the SQL Server service running as quickly as possible. Your primary concern is to provide access to critical data via SQL Server. Once you have accomplished this goal, you will try to determine what is wrong with C2 auditing. What should you do?

Run: sqlservr -f Run: sqlservr -x Run: sqlservr -c Run: sqlservr -m

Question 17 Explanation: You should run: sqlservr -f The most likely problem is that the directory in which the C2 audit log is stored is full. When SQL Server is unable to write to the C2 audit log, it will shut itself down. By starting SQL Server manually with the -f option, you start SQL Server in minimal configuration with auditing disabled. Because auditing is disabled, SQL Server does not need to be able to write to the audit log file. You should not use sqlservr with the -m, -x., or -c option. None of these options will let you start SQL Server because auditing is still enabled when using these options The -m option starts SQL Server in single-user mode, so even if the instance would start and run, only one user would be able to access the server. The -x option disables several monitoring features, but does not disable auditing. The -c option shortens the time needed to start SQL Server from the command line, but does not disable auditing.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.6 Audit SQL Server instances.

References:
1. c2 audit mode Option Click here for further information Microsoft TechNet, Microsoft Using the SQL Server Service Startup Options Click here for further information Microsoft TechNet, Microsoft How to: Start an Instance of SQL Server (sqlservr.exe) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 18 Question ID: flmMS_70-432-055 You support a default instance of SQL Server 2008. The database service instance hosts four user databases. Inserts and deletes are performed on all of the databases frequently. You need to reorganize all of the table indexes on the user databases at the end of

the month. You need to defragment and reorganize the indexes with a new fill factor. The operation should update user databases only. You want to minimize the administrative effort necessary to accomplish this. What should you do?

Create a maintenance plan with a Reorganize Index task for user databases. Create a maintenance plan with a Rebuild Index task for all databases. Create a maintenance plan with a Rebuild Index task for user databases. Create a maintenance plan with a Reorganize Index task for all databases.

Question 18 Explanation: You should create a maintenance plan with a Rebuild Index task for user databases. A Rebuild Index task lets you specify a new fill factor when rebuilding the indexes. Indexes are also defragmented by the operation. You can specify to have the task rebuild indexes for all user databases (only). Internally, the task uses the CREATE INDEX command to accomplish the task. You should not create a maintenance plan with a Rebuild Index task for all databases. This would affect both system and user databases. You should not create a maintenance plan with a Reorganize Index task for all databases or user databases. A Reorganize Index task uses the ALTER INDEX command to reorganize and defragment the indexes, but does not let you change the fill factor.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.6 Maintain a database by using maintenance plans.

References:
1. Maintenance Plan Wizard (Define Reorganize Index Task Page) Click here for further information MSDN, Microsoft Maintenance Plan Wizard (Define Rebuild Index Task Page) Click here for further information MSDN, Microsoft

2.

Question 19

Question ID: flmMS_70-432-001

You create four SQL Server Agent jobs for a default instance of Microsoft SQL Server 2008. The jobs are named Admin1, Admin2, Admin3, and Admin4. All four jobs are scheduled to run at night. Three schedules are used: Day-1 (runs on the first of the month), Day-12 (runs on the twelfth of the month), and Day-20 (runs on the twentieth of the month). Administrative requirements have recently changed. You need to ensure that Admin3 does not run on the twelfth of the month. You need to minimize the administrative effort needed to accomplish this. What should you do?

Delete and recreate Admin3. Disable Day-12. Detach Day-12 from Admin3. Modify Day-12. Disable Admin3.

Question 19 Explanation: You should detach Day-12 from Admin3. This will prevent the job from running on that schedule while leaving the remaining schedules attached. After you create a job, you have the option of creating one or more schedules for the job or attaching existing schedules to the job. When you detach a schedule, the job no longer runs at that scheduled time. You should not delete and recreate Admin3.If you attach only the Day-1 and Day-20 schedules to the new job, this solution would work but would be more work than required. You should not disable Day-12. This would prevent any of the jobs from running on the twelfth of the month. You still want Admin1, Admin2, and Admin4 to run on the twelfth. You should not modify Day-12. By modifying the schedule, you can change when the job runs, but not the jobs it runs. You should not disable Admin3. This would prevent the job from ever running.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.1 Manage SQL Server Agent jobs.

References:
1. How to: Schedule a Job (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Creating and Attaching Schedules to Jobs Click here for further information Microsoft TechNet, Microsoft

2.

Question 20 Question ID: flmMS_70-432-018 You are the administrator for a default instance of Microsoft SQL Server 2008. You want to designate a user to help you manage the Inventory database. You create a login and database user account for the user. You need to grant permission for the user to add and remove access to the database. You need to minimize the additional permissions granted to the user. What should you do?

Add the user to the db_securityadmin role. Add the user to the db_accessadmin role. Add the user to the db_owner role. Add the user to the db_datawriter role. Add the user to the public role.

Question 20 Explanation: You should add the user to the db_accessadmin role. This grants permission to add and remove database access for Windows users, Windows groups, and SQL Server logins. This is equivalent to using the GRANT command to grant the CONNECT permission and using the WITH GRANT options, so that the permission can be granted to database users. You should not add the user to the db_owner role. That lets the user perform all database configuration and maintenance actions. This grants more permission than necessary. You cannot add the user to the public role. All users are, by default, members of the public role. The public role does not, by default, enable a user to grant or remove database access. You should not add the user to the db_datawriter role. This role grants permission to add, delete, and change table data. You should not add the user to the db_securityadmin role. This enables the user to modify role membership and explicit permissions. This does not meet the solution requirements and

db_owner can grant membership to the db_owner role.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.2 Manage users and database roles.

References:
1. Permissions of Fixed Database Roles (Database Engine) Click here for further information Microsoft TechNet, Microsoft Database-Level Roles Click here for further information Microsoft TechNet, Microsoft

2.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
2 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 21 You manage a SQL Server 2008 database.

Question ID: rrMS_70-432-062

RockyM owns a schema named Marketing. Rocky's responsibilities change and GeorgeY takes over his position. You need to change the ownership of the Marketing schema. What should you do?

Execute: ALTER SCHEMA Marketing TRANSFER GeorgeY Execute: ALTER SCHEMA Marketing SET OWNER = GeorgeY Execute: ALTER USER GeorgeY WITH DEFAULT SCHEMA = Marketing Execute: ALTER AUTHORIZATION ON SCHEMA::Marketing TO GeorgeY

Question 21 Explanation: You should execute: ALTER AUTHORIZATION ON SCHEMA::Marketing TO GeorgeY The ALTER AUTHORIZATION statement is used to change an object's ownership. You should not execute: ALTER SCHEMA Marketing SET OWNER = GeorgeY The ALTER SCHEMA statement is used to move an object from one schema to another. It does not have a SET OWNER clause. You should not execute: ALTER USER GeorgeY WITH DEFAULT SCHEMA = Marketing Setting a user's default schema does not change ownership for that schema. More than one user can have the same schema as their default schema. You should not execute: ALTER SCHEMA Marketing TRANSFER GeorgeY The ALTER SCHEMA statement is used to move an object from one schema to another. This statement would transfer an object named GeorgeY to a schema named Marketing.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.5 Manage schema permissions and object permissions.

References:
1. ALTER SCHEMA (Transact-SQL) Click here for further information MSDN, Microsoft

2.

ALTER AUTHORIZATION (Transact-SQL) Click here for further information MSDN, Microsoft ALTER USER (Transact-SQL) Click here for further information MSDN, Microsoft

3.

Question 22 Question ID: rrMS_70-432-066 You manage a server running SQL Server 2008. Routine maintenance jobs are scheduled to run nightly. The dedicated administrator connection (DAC) is not enabled. The SQL Server service will not start. You need to troubleshoot the problem. What should you do?

Stop the SQL Server Agent service. Execute sqlserver.exe -f. Execute sqlserver.exe -s. Stop the SQL Server Agent service. Execute sqlserver.exe -x. Execute sqlserver.exe -m.

Question 22 Explanation: You should perform the following steps: * Stop the SQL Server Agent service. * Execute sqlserver.exe -f The -f option starts the SQL Server service in minimal configuration mode, which will allow you to troubleshoot and resolve the problem. Minimal configuration mode allows only a single connection to SQL Server, so you must stop the SQL Server Agent service. Otherwise, it will establish a connection and you will not be able to connect. You should not execute sqlserver.exe -s. The -s option is used to start a non-default instance of SQL Server. You should not execute sqlserver.exe -m. The -m option starts the SQL Server service in single-user mode. You can use single-user mode for troubleshooting or rebuilding the master database. However, if you do not stop the SQL Server Agent service, you will not be able to connect.

* Stop the SQL Server Agent service. * Execute sqlserver.exe -x. The -x option causes SQL Server to disable monitoring features. Disabling monitoring features will not resolve the problem and will make troubleshooting more difficult.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.1 Identify SQL Server service problems.

References:
1. Using the SQL Server Service Startup Options Click here for further information Microsoft TechNet, Microsoft Starting SQL Server with Minimal Configuration Click here for further information Microsoft TechNet, Microsoft

2.

Question 23 Question ID: rrMS_70-432-053 You manage a server running SQL Server 2008. Several alerts are configured to notify Sam and Michelle by e-mail when certain conditions are met. Michelle is going on vacation for two weeks. You need to ensure that only Sam is notified during her absence. Your solution should require the least amount of effort. What should you do?

Delete the operator object for Michelle. Disable the operator object for Michelle. Change the schedule on the operator object for Michelle. Change the notification method on the operator object for Michelle.

Question 23 Explanation: You should disable the operator object for Michelle. You can disable an operator object to keep it from being used. The operator object still remains linked to all jobs and alerts that use it. When Michelle returns to work, you will only need to re-enable the operator.

only to operators who receive notification by pager. You should not change the notification method on the operator object for Michelle. The notification method can be set to e-mail, pager, or net send. These settings do not prevent notification. You should not delete the operator object for Michelle. If you delete the operator object, you will need to recreate it and reconfigure each alert or job. This requires more effort than simply disabling the operator object.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.3 Manage SQL Server Agent operators.

References:
1. How to: Change an Operator's Availability (SQL Server Management Studio) Click here for further information MSDN, Microsoft

Question 24 Question ID: flmMS_70-432-026 You manage a default Microsoft SQL Server 2008 instance. You create a SQL Agent job that is used to clean up expired records from tables in the Accounting database. The job should be run on an as-needed basis only and only after the tables have been prepared. You need to ensure that the job cannot be run accidentally. When the job is needed, you must have it available to run as quickly as possible. What should you do?

Generate a creation script for the job and then delete the job. Disable the job. Delete and recreate the job as a SQL Server Agent master job. Create a SQL Server Alert to launch the job.

Question 24 Explanation: You should disable the job. The job cannot run when disabled. When needed, you can

You should not create a SQL Server Alert to launch the job. This does not prevent the job from being run manually. Also, if the alert triggers unexpectedly, the job will run. You should not generate a creation script for the job and then delete the job. This would work, but is not as quick as enabling a disabled job, so it is not the best solution. You should not delete and recreate the job as a SQL Server Agent master job. This does not prevent the job from being run. A master job is created when you want to be able to run the job on multiple target servers.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.1 Manage SQL Server Agent jobs.

References:
1. How to: Disable or Enable a Job (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft How to: Create a SQL Server Agent master Job (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 25 Question ID: flmMS_70-432-059 You maintain a named instance of SQL Server 2008. The database server is configured with SQL_Latin1_General_CP1_CI_AS as the default collation. You created the StoreData database using the default collation. The StoreData database contains a table named Products. The ProductName_Raw column was created using the default collation. The ProductName_Corrected column was created with the SQL_Latin1_General_CP1_CS_AS collation. You need to run a query that returns all exact matches, including case, between the ProductName_Raw and ProductName_Corrected columns. Which query should you use?

SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw COLLATE SQL_Latin1_General_CP1_CS_AS SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw

SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Raw = ProductName_Corrected COLLATE SQL_Latin1_General_CP1_CI_AS SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw ORDER BY ProductName_Raw COLLATE SQL_Latin1_General_CP1_CI_AS

Question 25 Explanation: You should use the following query: SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw COLLATE SQL_Latin1_General_CP1_CS_AS The COLLATE option overrides the default collation on the ProductName_Raw column so that the columns are compared using case-sensitive collation. This causes case to be compared in the values. You should not use the following query: SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw This would result in a collation conflict error because the columns use different collations. You should not use the following query: SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Raw = ProductName_Corrected COLLATE SQL_Latin1_General_CP1_CI_AS This would result in a case-insensitive compare between the columns, so case would not be considered in the comparison. You should not use the following query: SELECT ProductName_Raw, ProductName_Corrected FROM StoreData WHERE ProductName_Corrected = ProductName_Raw ORDER BY ProductName_Raw COLLATE SQL_Latin1_General_CP1_CI_AS This would result in a collation conflict error because the columns use different collations. ORDER BY is used with COLLATE when you want the query result to be sorted based on a collation other than the default collation, not for comparisons.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.5 Manage collations.

References:
1. Supported Collations (SQL Server Compact) Click here for further information MSDN, Microsoft Collation Precedence (Transact-SQL) Click here for further information MSDN, Microsoft Sorting Rows with ORDER BY Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 26 Question ID: flmMS_70-432-025 You are the administrator for a default instance of Microsoft SQL Server 2008. The database instance contains business-critical information. A recent change to company policy requires you to log all successful and failed logon attempts. You need to configure the instance to log all login attempts, whether or not they are successful. What should you do?

Configure SQL Trace to monitor the AUDIT_LOGIN event class. Create a Windows login audit policy. Enable common criteria compliance. Use logon triggers.

Question 26 Explanation: You should enable common criteria compliance. Common criteria compliance: * Requires allocated memory to be overwritten with a known pattern before it can be reallocated. * Logs all successful and failed logins, including time since the last successful and last failed login.

You use the sp_configure command to enable common criteria compliance. After using sp_configure to enable common criteria compliance, you must also run a SQL script available from the Microsoft SQL Server 2005 Common Criteria Certification Web site. You should not use logon triggers. Logon triggers fire after authentication, which could be used to track successful logins only. You should not configure SQL Trace to monitor the AUDIT_LOGIN event class. The AUDIT_LOGIN event class can be used to audit successful logins only. Unsuccessful logins would not be logged. You should not create a Windows login audit policy. This would log attempts to log in to Windows, not to SQL Server.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.6 Audit SQL Server instances.

References:
1. Microsoft SQL Server 2005 SP1 Enterprise Edition (32-bit) Common Criteria Certification Click here for further information Microsoft.com, Microsoft Server Properties (Security Page) Click here for further information Microsoft TechNet, Microsoft Logon Triggers Click here for further information Microsoft TechNet, Microsoft Audit Login Event Class Click here for further information Microsoft TechNet, Microsoft Common Criteria Certification Click here for further information Microsoft TechNet, Microsoft common criteria compliance enabled Option Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

6.

Question 27 You manage an instance of SQL Server 2008.

Question ID: rrMS_70-432-059

You need to ensure that a specific user can have no more than two open sessions with the instance at any time. What should you do?

Set user connections to 2. Create a user-defined function. Set user instances enabled to 2. Create a logon trigger.

Question 27 Explanation: You should create a logon trigger. A logon trigger executes whenever a user establishes a session. You can check whether the login already has sessions and either allow or prohibit login accordingly. You should not set user connections to 2. The user connections server option determines the maximum total number of sessions, not the number of connections allowed per user. You should not set user instances enabled to 2. The set user instances configuration option is available only on SQL Server 2008 Express Edition. It determines whether user instances of SQL Server can be created. If a user creates a user instance, that user can manage that instance only without being an administrator. You should not create a user-defined function. A user-defined function is a programming object that can be called to perform an action and return a value. User-defined functions do not execute during logon.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.3 Manage SQL Server instance permissions.

References:
1. Logon Triggers Click here for further information MSDN, Microsoft

Question 28 Question ID: rrMS_70-432-052 You manage a server running SQL Server 2008. The ProductSales database is configured to grow automatically. Steve wants to be notified when the database storage volume reaches 80% capacity. You need to make the necessary configuration changes.

What should you do?

Create an alert based on the LogicalDisk performance object. Create an alert based on the SQLServer:Databases performance object. Create an alert based on the PhysicalDisk performance object. Create an alert based on the SQLServer:GeneralStatistics performance object.

Question 28 Explanation: You should create an alert based on the LogicalDisk performance object. SQL Server alerts can be created based on any performance object. The LogicalDisk object has a %Free Space counter that monitors the amount of available disk space on a volume. You should not create an alert based on the PhysicalDisk performance object. The PhysicalDisk performance object monitors performance statistics for disk I/O requests to a physical disk. However, it does not have a counter to monitor storage capacity. You should not create an alert based on the SQLServer:Databases performance object. Although you can monitor the size of a database using the SQLServer:Databases performance object, this will not provide an accurate way to generate an alert when disk capacity used exceeds 80% because the disk might store other files. You should not create an alert based on the SQLServer:GeneralStatistics performance object. The GeneralStatistics performance object provides information about logins, requests, connections, and transactions. It does not provide information on disk space utilization.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.2 Manage SQL Server Agent alerts.

References:
1. Defining Alerts Click here for further information MSDN, Microsoft LogicalDisk Object Click here for further information MSDN, Microsoft

2.

Question 29

Question ID: rrMS_70-432-064

You manage a server running several instances of SQL Server 2008. A client application cannot connect to a named instance. You are able to connect to the instance by using SQL Server Management Studio and specifying a port. You need to configure SQL Server to allow the client application to connect without specifying a port. Your solution should provide the best possible security. What should you do?

Configure each instance of the SQL Server service to start automatically using the same domain user account. Configure the SQL Server Browser service to start automatically using the Local Service account. Configure the SQL Server Browser service to start automatically using the Local System account. Configure each instance of the SQL Server service to start automatically using the Local System account.

Question 29 Explanation: You should configure the SQL Server Browser service to start automatically using the Local Service account. The SQL Server Browser service is used to allow connections to locate an instance of SQL Server that uses a non-default port number. The SQL Server Browser service can run under the local service account, which is an account with minimum permissions. You should not configure the SQL Server Browser service to start automatically using the Local System account. The Local System account has extensive permissions, which are not required for running the SQL Server Browser service. You should not configure each instance of the SQL Server service to start automatically using the Local System account. SQL Server should be configured to run under a domain or local user account with only the necessary permissions. Also, unless you are running the SQL Server Browser service, applications will need to specify a port to connect to a nondefault instance. You should not configure each instance of the SQL Server service to start automatically using the same domain user account. Although you can configure each instance of SQL Server to run using the same domain user account, unless you are running the SQL Server Browser service, applications will need to specify a port to connect to a non-default instance.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective:

6.1 Identify SQL Server service problems.

References:
1. SQL Server Browser Service Click here for further information MSDN, Microsoft

Question 30 Question ID: flmMS_70-432-019 You are the administrator for a default instance of Microsoft SQL Server 2008. The database server contains two user databases, Inventory and Sales. The Inventory database owner is InventoryDBO and the Sales database owner is SalesDBO. Several stored procedures in the Sales database need to access the Inventory database. You need to configure your security to allow access. You need to ensure that minimal effort is required if you need to modify access permissions in the future. What should you do? (Each correct answer presents part of the solution. Choose two.)

Set the TRUSTWORTHY property on Inventory to ON. Grant the AUTHENTICATE permission from Inventory to SalesDBO. Grant the AUTHENTICATE permission from Sales to InventoryDBO. Modify each stored procedure to use EXECUTE AS to execute as InventoryDBO. Set the TRUSTWORTHY property on Sales to ON.

Question 30 Explanation: You need to set the TRUSTWORTHY property on Sales to ON and grant the AUTHENTICATE permission from Inventory to SalesDBO. By granting AUTHENTICATE from Inventory to SalesDBO, you make SalesDBO a trusted entity in the Inventory database. Setting the TRUSTWORTHY property on Sales to ON specifies that Sales is trustworthy for data access. Both conditions are required. You should not modify each stored procedure to use EXECUTE AS to execute as InventoryDBO. Any future changes would require you to manually modify each affected stored procedure. You should not set the TRUSTWORTHY property on Inventory to ON. Because Inventory is not trying to access Sales, there is no reason to identify it as trustworthy. You should not grant the AUTHENTICATE permission from Sales to InventoryDBO. Inventory does not need to access Sales, so there is no reason to make InventoryDBO a trusted entity in Sales.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.4 Manage database permissions.

References:
1. Extending Database Impersonation by Using EXECUTE AS Click here for further information Microsoft TechNet, Microsoft Setting Database Options Click here for further information Microsoft TechNet, Microsoft

2.

Question 31 Question ID: rrMS_70-432-076 You manage an application server that runs SQL Server 2008, as well as several other server applications. The server has 15 GB RAM. SQL Server is configured with the following settings: Min server memory = 4 GB Max server memory = 8 GB Users report poor performance when accessing other applications. System monitor consistently shows the performance counter values as shown in the exhibit. You need to improve performance. Your solution should require the least amount of hardware investment. What should you do? Bv

Decrease Max server memory to 4 GB.

Add more RAM. Increase Min server memory to 12 GB. Decrease Min server memory to 3 GB.

Question 31 Explanation: You should decrease Min server memory to 3 GB. SQL Server automatically utilizes the amount of memory specified by Min server memory even if it is not required. Therefore, the current configuration causes 1 GB of RAM to be wasted because SQL Server never actually uses more than 3 GB of RAM, as indicated by the Process: Working Set values. You should not decrease Max server memory to 4 GB. Max server memory specifies the maximum amount SQL Server can use. The difference between Min server memory and Max server memory is only allocated if required. You should not add more RAM. The maximum total memory usage does exceed the amount of physical RAM installed by 1 GB. However, this difference can be accounted for by reducing the minimum amount of memory consumed by SQL Server. You should not increase Min server memory to 12 GB. SQL Server is only using between 2 GB and 3 GB of RAM. The Total Server Memory counter reveals the total amount of memory consumed by all processes.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.5 Collect performance data by using System Monitor.

References:
1. Monitoring Memory Usage Click here for further information Microsoft TechNet, Microsoft

Question 32 You maintain a server running SQL Server 2008.

Question ID: rrMS_70-432-048

You are planning to perform some routine maintenance that will result in some performance degradation. You need to track the number of user connections at various times of day to identify the time period when there are the fewest database connections. What should you do?

Use the sys.dm_os_performance_counters dynamic management view (DMV). Use the sys.dm_exec_query_stats dynamic management view (DMV). Create a System Monitor log that monitors the General Statistics object. Create a System Monitor log that monitors the ExecStatistics object.

Question 32 Explanation: You should create a System Monitor log that monitors the General Statistics object. The User Connections counter of the General Statistics object allows you to track the number of users connected to an instance of SQL Server at a specific time. You should not create a System Monitor log that monitors the ExecStatistics object. The ExecStatistics object does not have a counter that reports the number of user connections. You should not use the sys.dm_exec_query_stats DMV. The sys.dm_exec_query_stats DMV reports execution information about specific queries, such as their minimum and maximum execution times. It does not report data about user connections at a specific time. You should not use the sys.dm_os_performance_counters DMV. The sys.dm_os_performance_counters DMV allows you to retrieve information about the SQL Server performance counters you can use in System Monitor. It does not report data about user connections at a specific time.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.5 Collect performance data by using System Monitor.

References:
1. SQL Server, General Statistics Object Click here for further information Microsoft TechNet, Microsoft SQL Server, ExecStatistics Object Click here for further information Microsoft TechNet, Microsoft sys.dm_exec_query_stats (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_os_performance_counters (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 33

Question ID: rrMS_70-432-023

You manage a database named SalesDB. SalesDB is located on a server running SQL Server 2008 Enterprise Edition. You currently create a database snapshot of SalesDB once a month. Sales analysts use the snapshot for reporting. They are most interested in analyzing sales trends across previous months. The server's hard disk is nearing the storage capacity. You need to minimize the amount of storage used by the snapshot. What should you do?

Move the snapshot to a different server. Execute DBCC SHRINKDATABASE on the database snapshot. Change the schedule to create a weekly snapshot. Change the schedule to create a bimonthly snapshot.

Question 33 Explanation: You should change the schedule to create a weekly snapshot. Database snapshots use sparse files. When a database is first created, all records point to the database. Before a change is made, the page is written to the snapshot. This operation is called copy-on-write. The snapshot contains the previous version of each page that was changed since the snapshot was taken. This means that the snapshot file grows over time. Therefore, to conserve disk space, you should take the snapshot more frequently. You should not change the schedule to create a bimonthly snapshot. Changing the snapshot to a bimonthly snapshot will cause the file to use more disk space. You should not move the snapshot to a different server. A snapshot must be stored on the same instance as the database. You should not execute DBCC SHRINKDATABASE on the database snapshot. You use the DBCC SHRINKDATABASE command to reduce the amount of allocated free space on a database. Database snapshots use sparse files, so they do not consume unallocated disk space.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.4 Manage database snapshots.

References:

1.

How Database Snapshots Work Click here for further information Microsoft TechNet, Microsoft DBCC SHRINKDATABASE (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 34 Question ID: rrMS_70-432-055 You manage a database server running SQL Server 2008. The server hosts several databases. Different departments are responsible for creating and maintaining their own databases on the server. A recent problem occurred in which a department manager modified a database. A large number of queries no longer worked because they did not use the same case as the table's column names. You need to prevent the problem from occurring in the future. What should you do? (Each correct answer presents part of the solution. Choose two.)

Change the server collation. Import the Database Collation policy and set the mode to On schedule. Import the Database Collation policy and set the mode to On change: prevent. Configure the model database to use a case-insensitive sort order. Import the Database Collation policy and set the mode to On demand.

Question 34 Explanation: You should configure the model database to use a case-insensitive sort order. When a new database is created, it uses the same collation as the model database by default. You should also import the Database Collation policy and set the mode to On change: prevent. The Database Collation policy verifies that the collation of each database is set to the same value as master and model. When you set the mode to On change: prevent, you will prevent any changes that contradict the policy. You should not change the server collation. The server collation controls the default collation. However, a database can override the default collation. You should not import the Database Collation policy and set the mode to On demand. Setting the mode to On demand would cause the policy to be evaluated and applied only when an administrator manually does so. Thus, the problem might exist for some time

Setting the mode to On schedule would cause the policy to be evaluated according to a predefined schedule. Therefore, the problem would exist until the policy was executed. Also, when the mode is set to On schedule, the condition is not remedied. The violation is only logged in the Event Viewer log.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.4 Implement the declarative management framework (DMF).

References:
1. Monitoring and Enforcing Best Practices by Using Policy-Based Management Click here for further information MSDN, Microsoft Administering Servers by Using Policy-Based Management Click here for further information MSDN, Microsoft

2.

Question 35 Question ID: flmMS_70-432-031 You install a default instance and a named instance of Microsoft SQL Server 2008 on a computer running Windows Server 2008. The computer is a member of an Active Directory domain. You use the Local System account as the SQL Server Agent account on both SQL Server instances. You configure the default instance to listen on the default named pipe and the named instance to listen on an alternate named pipe. You configure a multiserver environment with the default instance as the master server and the named instance as the target server. You create a SQL Server Agent master job to perform automated administrative tasks. The job is able to run on the master server, but not the target server. You review the error logs and determine that SQL Server Agent is not able to connect to the named instance. You need to ensure that the job runs on both the default and named instances. You need to do this with minimal administrator effort. What should you do?

Reconfigure SQL Server Agent on both instances to use a domain user account as a service account. Reconfigure SQL Server Agent on both instances to use a local administrator account as a service account. Specify a SQL Server alias.

Configure the default instance to use the same alternate named pipe as the named instance. Specify a SQL Server Agent proxy.

Question 35 Explanation: You should specify a SQL Server alias. This will enable SQL Server Agent to connect to the named instance and execute the job. An alias is used by SQL Server Agent to connect to the Database Engine when configured to use a connection method other than the default connection method or to a SQL Server instance that listens to an alternate named pipe for connections. You should not specify a SQL Server Agent proxy. A proxy is used to set the security context for a job step to those of a Windows user account. The problem is not with the security context used to run job steps, but the ability to connect to the named instance. You should not reconfigure SQL Server Agent on both instances to change the SQL Server Agent service account. You can use Local System as the service account when the master and target server(s) must reside on the same computer. They do, so this is not the problem. You should not configure the default instance to use the same alternate named pipe as the named instance. This will do nothing to correct the problem.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.3 Identify SQL Agent job execution problems.

References:
1. How to: Set a SQL Server Alias (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Creating SQL Server Agent Proxies Click here for further information Microsoft TechNet, Microsoft Specifying a SQL Server Alias Click here for further information Microsoft TechNet, Microsoft Creating a Multiserver Environment Click here for further information Microsoft TechNet, Microsoft Choosing the Right SQL Server Agent Service Account for Multiserver Environments Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 36 Question ID: rrMS_70-432-021 You manage two servers running SQL Server 2008 Enterprise Edition. The SalesDB database is located on ServerA. A mirror of SalesDB is located on ServerB. Two applications access the SalesDB database: a transactional application and a reporting application. The reporting application is used daily to generate reports based on the sales of the previous day. Users report that performance while accessing the SalesDB database is poor when the reporting application is running. You need to improve performance of the transactional application. Your solution should require the least amount of disk space. What should you do?

Configure the reporting application to access the mirror on ServerB. Create a nightly snapshot of the SalesDB database on ServerA. Move the snapshot to Server B. Configure the reporting application to access the snapshot. Create a nightly snapshot of the SalesDB database on ServerA. Configure the reporting application to access the snapshot. Create a nightly snapshot of the SalesDB database on ServerB. Configure the reporting application to access the snapshot.

Question 36 Explanation: You should create a nightly snapshot of the SalesDB database on ServerB and configure the reporting application to access the snapshot. You can use database snapshots on the server hosting a database mirror to offload reporting queries to a different server. A database snapshot is a read-only copy of the database that uses sparse files to reduce storage space requirements. You should not create a nightly snapshot of the SalesDB database on ServerA and configure the reporting application to access the snapshot. Creating the database snapshot on the same server used by the transactional application will not improve performance because the same server will still be handling all requests. You should not create a nightly snapshot of the SalesDB database on ServerA, move the snapshot to Server B, and configure the reporting application to access the snapshot. A database snapshot must be located in the same instance as the database. It cannot be moved to a different server. You should not configure the reporting application to access the mirror on ServerB. A mirrored database cannot be accessed directly. You need to create a database snapshot and provide access to clients via the snapshot.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.4 Manage database snapshots.

References:
1. Database Mirroring and Database Snapshots Click here for further information Microsoft TechNet, Microsoft Database Snapshots Click here for further information Microsoft TechNet, Microsoft

2.

Question 37 Question ID: flmMS_70-432-022 You manage three default instances of Microsoft SQL Server 2008 running on computers named Server1, Server2, and Server3. You configure the surface area to meet security requirements on Server1. You need to apply the surface area configuration to Server2 and Server3. You need to complete this as quickly as possible and with minimal administrative effort. What should you do first?

Back up the model database from Server1. Run the following in a query window on Server1: sp_configure In SQL Server Management studio on Server1, extract the Surface Area management facet as a policy and store in a file. Run the following in a query window on Server1: sp_configure 'show advanced options', 1

Question 37 Explanation: You should use SQL Server Management Studio to extract the Surface Area management facet as a policy and store in a file. You can apply surface area configuration settings from one SQL Server 2008 instance to another through the Surface Area management facet. To do this: * Extract the Surface Area management facet as a policy and store in a file. * On another instance, select the policy file you created and evaluate the policy.

When you evaluate the policy on the destination instance, you will be able to determine if the Database Engine meets the policy requirements and identify violating target settings, if any. You should not use sp_configure. This is not the most efficient means because you would need to record the policy settings and then manually apply them through sp_configure. If you were to use this method, you would start by running sp_configure 'show advanced options', 1 to make advanced options available and then run sp_configure without any options to view the option settings on the source instance. You then need to do the same on the destination instance, manually compare the settings, and manually apply any necessary configuration settings. You should not back up the model database from Server1. This would not accomplish anything in regards to the scenario. You cannot safely restore the model database on another instance of SQL Server.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.8 Configure surface area.

References:
1. SQL Server 2008 Security Overview for Database Administrators Click here for further information Microsoft Downloads, Microsoft Policy-Based Management Scenarios Click here for further information Microsoft TechNet, Microsoft Administering Servers by Using Policy-Based Management Click here for further information Microsoft TechNet, Microsoft Setting Server Configuration Options Click here for further information Microsoft TechNet, Microsoft Understanding Surface Area Configuration Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 38 Question ID: rrMS_70-432-026 You manage a database on an instance of SQL Server 2008. You need to import data from a server running SQL Server 2005. You will import the data by using the OPENROWSET function. You need to prepare SQL Server 2008 to import the data. What should you do?

Install SQL Server Integration Services (SSIS). Add the SQL Server 2005 instance as a linked server. Set the Remote Access advanced configuration option On. Set the Ad Hoc Distributed Queries advanced configuration option On.

Question 38 Explanation: You should set the Ad Hoc Distributed Queries advanced configuration option On. OPENROWSET is a function that is used to perform ad hoc queries based on a remote data source. It can only execute if the Ad Hoc Distributed Queries advanced option is set to On. You can turn this option on by using sp_configure. You should not set the Remote Access advanced configuration option On. The Remote Access configuration option determines whether you can call remote stored procedures or if a remote server can call a local stored procedure on the SQL Server. It does not affect queries that use OPENROWSET. You should not add the SQL Server 2005 instance as a linked server. OPENROWSET is used for distributed queries, not linked server queries. You should not install SSIS. SSIS is a different way to perform bulk import and data transformation operations.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.1 Import and export data.

References:
1. OPENROWSET (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft remote access Option Click here for further information Microsoft TechNet, Microsoft sp_addlinkedserver (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 39

Question ID: rrMS_70-432-041

You manage an instance of SQL Server 2008. You enable the Resource Governor and install a classifier function. Users report that they cannot connect to SQL Server. You need to troubleshoot the problem while Resource Governor is running. What should you do?

Set the database to single user mode. Connect to the instance as a member of the sysadmin fixed server role. Set the database to restricted user mode. Connect to the instance by using a Dedicated Administrator Connection (DAC).

Question 39 Explanation: You should connect to the instance by using a DAC. A DAC executes by using the internal resource pool, so it is not affected by problems with the classifier function or other Resource Governor configuration settings. You should not set the database to single user mode. The Resource Governor does not run in single user mode, so while you can connect to the instance, you will not be able to resolve the problem. However, if the DAC is not enabled, you could use this method to disable Resource Governor to allow users to connect while you investigate the problem on a different instance. You should not connect to the instance as a member of the sysadmin fixed server role. Members of the sysadmin fixed server role are still subject to classification, so you will not be able to connect. You should not set the database to restricted user mode. Restricted user mode allows only members of db_owner, dbcreator, and sysadmin roles to access the database, but it does not exempt the connection from being managed by Query Governor.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.1 Implement Resource Governor.

References:
1. Resource Governor Concepts Click here for further information Microsoft TechNet, Microsoft

Question 40 Question ID: flmMS_70-432-054 You maintain a database named POSData on a default instance of SQL Server 2008. The database supports an online retail application and in-house sales application. POSData includes a table named OrderDetails that is updated and queried frequently throughout the day. Performance of any operations relating to the OrderDetails table has been degrading over time. You determine that the index is severely fragmented. You need to restructure the index to remove fragmentation. Users and online customers must have access to the table during the procedure. What should you do? (Choose all that apply.)

Use DBCC CLEANTABLE. Use DBCC SQLPERF. Use DBCC INDEXDEFRAG. Use ALTER INDEX with the REORGANIZE clause. Use DBCC DBREINDEX.

Question 40 Explanation: You should use ALTER INDEX with the REORGANIZE clause or DBCC INDEXDEFRAG. Either option will defragment the indexes. Both run as online operations, so users and online customers will have access to the table during the operation. However, performance might suffer during the operation because of the additional processing overhead required. ALTER INDEX with REORGANIZE is the preferred method. Microsoft recommends against using DBCC. SQL Server 2008 documentation states that DBCC INDEXDEFRAG will be removed in the next version of SQL Server. You should not use DBCC DBREINDEX. This will rebuild the table indexes, defragmenting them in the process. This process runs as an offline operation. This means that the table would not be available during the operation. You should not use DBCC CLEANTABLE. This feature does not reorganize indexes. It is used to recover space previously used by variable-length columns that have been dropped from the table. You should not use DBCC SQLPERF. This feature reports usage statistics about transaction log files.

Objective:

List all questions for this objective

Maintaining a SQL Server Database

Sub-Objective: 4.5 Maintain database integrity.

References:
1. Reorganizing and Rebuilding Indexes Click here for further information MSDN, Microsoft DBCC DBREINDEX (Transact-SQL) Click here for further information MSDN, Microsoft DBCC INDEXDEFRAG (Transact-SQL) Click here for further information MSDN, Microsoft DBCC CLEANTABLE (Transact-SQL) Click here for further information MSDN, Microsoft DBCC SQLPERF (Transact-SQL) Click here for further information MSDN, Microsoft

2.

3.

4.

5.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
3 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 41 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-065

You want to configure a job. However, the SQL Server Agent node is not listed in SQL Server Management Studio. You verify that the SQL Server Agent service is started. You need to modify SQL Server so that you can manage jobs.

What should you do?

Use SQL Server Configuration Manager to configure the SQL Server Agent service to run under the Local System account. Use SQL Server Configuration Manager to start the SQL Server Browser service. Execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'SMO and DMO XPs', 1; GO RECONFIGURE; GO Execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Agent XPs', 1; GO RECONFIGURE; GO

Question 41 Explanation: You should execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Agent XPs', 1; GO RECONFIGURE; GO The SQL Server Agent extended stored procedures must be enabled for the SQL Server Agent node to appear in SQL Server Management Studio. You can enable the SQL Server Agent extended stored procedures by running sp_configure 'Agent XPs', 1. You should not execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'SMO and DMO XPs', 1;

GO The Server Management Object (SMO) and Distributed Management Object (DMO) extended stored procedures do not need to be enabled to view and manage SQL Server Agent jobs in SQL Server Management Studio. You should not use SQL Server Configuration Manager to start the SQL Server Browser service. The SQL Server Browser service allows clients to locate an instance of SQL Server running on a non-default port. It is not required for the SQL Server Agent node to be available. You should not use SQL Server Configuration Manager to configure the SQL Server Agent service to run under the Local System account. You should use a domain or local account with only necessary permissions as the security context for the SQL Server Agent service account.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.8 Configure surface area.

References:
1. Agent XPs Option Click here for further information MSDN, Microsoft

Question 42 Question ID: flmMS_70-432-008 You are the primary database administrator for an instance of Microsoft SQL Server 2008. You create administrator designated as an operator for that alert is not available or the performance condition is not corrected, you want to be notified by pager if any of the alerts trigger. You need to keep the administrative effort necessary to configure this to a minimum. What should you do?

Designate yourself as the SQL Agent fail-safe operator. Add all alerts to your Operator object. Add yourself as an operator to all alerts. Modify your Operator object to have yourself available 24 hours a day, 7 days a week.

Question 42 Explanation: You should designate yourself as the SQL Agent fail-safe operator in the SQL Server Agent properties. As the fail-safe operator, you will be notified if the designated operator is not available (based on the operator's schedule) or the performance condition is not corrected. Fail-safe notifications are sent without regard for the fail-safe operator's schedule. You should not add yourself as an operator to all alerts. You would receive notifications only during the times specified by your Operator object schedule. You would not be notified after hours or on weekends, even though the other operators are not available to respond during those times. You cannot add alerts to your Operator object. You can view the alert notifications assigned through the Operator object properties, but not modify them. You should not modify your Operator object to have yourself available 24 hours a day, 7 days a week. This, by itself, would not ensure that you were notified unless you were configured as an operator for all alerts. Also, by designating yourself as the fail-safe operator, this is not necessary.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.3 Manage SQL Server Agent operators.

References:
1. How to: Designate a Fail-Safe Operator (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Alerting Operators Click here for further information Microsoft TechNet, Microsoft

2.

Question 43 Question ID: flmMS_70-432-009 You are the primary administrator for a default Microsoft SQL Server 2008 instance. You create an Operator object for yourself and schedule your availability as 24 hours a day, 7 days a week. You have created several jobs that periodically perform automated management tasks. You configure each job to send you a notification at completion You test to ensure that the jobs and notifications are working properly. You create a new Operator object for another administrator who should receive an e-mail notification when each job completes.

You need to configure the operator to receive the notifications. You need to keep the administrative effort needed to complete this to a minimum. What should you do? (Each correct answer presents part of the solution. Choose two.)

Use the new Operator object properties to add notifications for all jobs. Modify each job to replace your operator with the new Operator object. Modify each job to add a notification for the new Operator object. Configure yourself as the SQL Server Agent fail-safe operator. Configure the new Operator object as the SQL Server Agent fail-safe operator. Modify the new Operator object's schedule to be available 24 hours a day, 7 days a week.

Question 43 Explanation: You should modify each job to replace your operator with the new Operator object and modify the new Operator object's schedule to be available 24 hours a day, 7 days a week. This ensures that an e-mail notification is sent to the operator any time one of the jobs completes. You should not use the new Operator object properties to add notifications for all jobs. The Operator object properties let you view assigned notifications, but not modify them. You should not modify each job to add a notification for the new Operator object. You can specify only one e-mail notification for a job. You could add the operator for pager or net send notification, but you need e-mail notifications to be sent. You should not configure yourself or the new operator as a fail-safe operator. The fail-safe operator is used with the alert system, not the job system.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.3 Manage SQL Server Agent operators.

References:
1. How to: Notify an Operator of Job Status (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft How to: Designate a Fail-Safe Operator (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Defining Operators Click here for further information Microsoft TechNet, Microsoft Viewing and Modifying Operators Click here for further information Microsoft TechNet, Microsoft

4.

Question 44 Question ID: flmMS_70-432-037 You manage a default Microsoft SQL Server 2008 instance. You are troubleshooting a performance problem related to a user database. You are collecting information about locking and lock escalation. You need to collect lock escalation information over a 24-hour period. The information should be written to a log so that it can be retrieved for analysis. What should you do?

Launch sp_lock. Run: DBCC TRACEON (1204, -1) Start a SQL Profiler session. Use Windows Performance Monitor.

Question 44 Explanation: You should start a SQL Profiler session. You can configure SQL Profiler to capture the Lock:Escalation event and leave it running. You should not launch sp_lock. The sp_lock system stored procedure provides a snapshot of current lock information and does not collect information over time. You should not run DBCC TRACEON (1204, -1). This command string turns on trace flag 1204, which causes information about deadlocks to be written to the SQL error log. It does not report information about lock escalation. You should not use Windows Performance Monitor. Performance Monitor displays real-time performance information, but does not log the information over time.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.2 Identify concurrency problems.

References:
1. SQL Server: Minimize Blocking in SQL Server Click here for further information Microsoft TechNet, Microsoft Lock Escalation (Database Engine) Click here for further information Microsoft TechNet, Microsoft sp_lock (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Trace Flags (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 45 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-075

Users report performance problems at specific times of the day. They report that some queries also time out. You need to view information about threads that have been waiting for resources since the last time SQL Server restarted. What should you do?

Query sp_locks. Query sys.dm_os_threads. Query sys.dm_os_waiting_tasks. Query sys.dm_os_wait_stats.

Question 45 Explanation: You should query sys.dm_os_wait_stats. The sys.dm_os_wait_stats dynamic management view (DMV) returns historical information about threads that have waited since the last SQL Server restart. You should not query sys.dm_os_threads. The sys.dm_os_threads DMV reports information about current threads, such as whether SQL Server created them as well as the security context under which they are running. It does not report historical information about wait times. You should not query sys.dm_os_waiting_tasks. The sys.dm_os_waiting_tasks DMV reports

You should not query sp_locks. The sp_locks stored procedure is provided for backward compatibility and provides information about current locks and blocking processes.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.4 Collect performance data by using Dynamic Management Views (DMVs).

References:
1. sys.dm_os_waiting_tasks (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_os_wait_stats (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_os_threads (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_lock (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 46 Question ID: rrMS_70-432-008 You maintain an instance of SQL Server 2000. You upgrade the instance to SQL Server 2008. Users report slow performance during peak periods. You need to configure the instance of SQL Server 2008 to allow SQL Server to determine the size of the thread pool when it starts up. What should you do?

* Execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max worker threads', 0; GO RECONFIGURE GO

* Restart the server. * Execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism', 'unlimited'; GO RECONFIGURE WITH OVERRIDE GO * Execute the following: sp_configure 'set working set size', 0; GO RECONFIGURE GO * Execute the following: sp_configure 'cost threshold for parallelism', 1; GO RECONFIGURE WITH OVERRIDE GO * Restart the server.

Question 46 Explanation: You should take these steps: * Execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max worker threads', 0; GO RECONFIGURE GO * Restart the server. The max worker threads option determines the size of the thread pool. When it is set to 0, SQL Server determines the size of the thread pool when the service starts. Also, because it is an advanced option, execution of "sp_configure 'show advanced options', 1" is required. You should not take these steps:

GO RECONFIGURE WITH OVERRIDE GO * Restart the server. The cost threshold for parallelism option determines the threshold at which a query is considered a long-running query and parallel execution plans are used on a multiprocessor server. You do not need to restart SQL Server when changing the cost threshold for parallelism. You should not execute the following: sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism', 'unlimited'; GO RECONFIGURE WITH OVERRIDE GO The max degree of parallelism option determines the maximum number of parallel execution plans that can be used for a single query. If the number specified exceeds the number of processors, the number of execution plans will be equal to the number of processors. A value of 'unlimited' is not supported. You should not execute the following: sp_configure 'set working set size', 0; GO RECONFIGURE GO The set working size option is deprecated and has no effect in SQL Server 2008.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.2 Configure SQL Server instances.

References:
1. cost threshold for parallelism Option Click here for further information Microsoft TechNet, Microsoft max degree of parallelism Option Click here for further information Microsoft TechNet, Microsoft max worker threads Option

2.

3.

Click here for further information Microsoft TechNet, Microsoft 4. set working set size Option Click here for further information Microsoft TechNet, Microsoft

Question 47 Question ID: flmMS_70-432-002 You manage an instance of Microsoft SQL Server 2008. You are creating a SQL Server Agent job that includes several job steps. A Transact-SQL (T-SQL) job step fails when you test execution. You determine it is failing because of insufficient permission. You need to modify the job so that the T-SQL job step runs correctly. Your remaining job steps must be executed under the default security context for the job. What should you do?

Use an operator. Use a SQL Server Agent proxy. Use a SQL Server Agent alias. Use the EXECUTE AS command.

Question 47 Explanation: You should use the EXECUTE AS command. You need to change the security context under which the job step runs. The EXECUTE AS command is the only way you can specify the security context under which a T-SQL job step runs. You should not use a SQL Server Agent proxy. A proxy is used to set the security context for a job step to those of a Windows user account, but cannot be used with a T-SQL job step. You should not use a SQL Server Agent alias. An alias is used by SQL Server Agent to connect to the Database Engine when it is configured to use a connection method other than the default connection method or to use a SQL Server instance that listens to an alternate named pipe for connections. You should not use an operator. You would specify an operator to receive job notifications, such as job completion or a job step error. An operator does not set the security context for executing job steps.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server

Sub-Objective: 6.3 Identify SQL Agent job execution problems.

References:
1. Creating SQL Server Agent Proxies Click here for further information Microsoft TechNet, Microsoft SQL Server Agent Subsystems Click here for further information Microsoft TechNet, Microsoft How to: Set a SQL Server Alias (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Using EXECUTE AS in Modules Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 48 Question ID: rrMS_70-432-079 You manage several servers running SQL Server 2008. ServerB is configured as a secondary log shipping server for ServerA. You plan to take ServerA down for maintenance. You need to failover to Server B as quickly as possible. What should you do first?

Backup the database on ServerA with the COPY ONLY option. Disable the log shipping backup job on ServerA. Backup the transaction log on ServerA with the NORECOVERY option. Copy the backups to ServerB and restore them WITH RECOVERY.

Question 48 Explanation: You should backup the transaction log on ServerA with the NORECOVERY option. Backing up with NORECOVERY backs up the tail of the transaction log and allows you to recover transactions that occurred since the last logs that were shipped. You should not disable the log shipping backup job on ServerA until after you back up the transaction log with NORECOVERY. If you do, the backup you make will not be shipped. You should not copy the backups to ServerB and restore them WITH RECOVERY first. You

You should not backup the database on ServerA with the COPY ONLY option. There is no need to perform a full backup of ServerA. All the necessary information to switch roles, with the exception of the tail log backup, has already been backed up and shipped.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.3 Implement log shipping.

References:
1. Changing Roles Between Primary and Secondary Servers Click here for further information Microsoft TechNet, Microsoft

Question 49 Question ID: rrMS_70-432-037 You maintain a database named OrderDB on a server running SQL Server 2008 Enterprise Edition. The OrderDB database has table named Orders with a clustered index named IX_Orders. IX_Orders has three columns: OrderID, OrderDate, and CustomerID. OrderID and CustomerID are both columns of type char. OrderDate is of type smalldatetime. The Orders table also has an OrderStatus column of type varchar(20) and a ShipDate column of type smalldatetime. Several queries perform slowly. You view information about index fragmentation and find that IX_Orders is 40% fragmented. You need to improve performance. Your solution should not impact the availability of the Orders table more than necessary. What should you do?

Execute the ALTER INDEX IX_Orders ON OrderDB.Orders REBUILD WITH ONLINE=ON command. Execute the DBCC DBREINDEX (Orders, IX_Orders) command. Execute the ALTER INDEX IX_Orders ON OrderDB.Orders REORGANIZE command. Execute the DBCC INDEXDEFRAG (Orders, IX_Orders) command.

ONLINE=ON command. The index is 40% fragmented, so it should be rebuilt. Because the table does not have any large object (LOB) data types, it can be rebuilt online to limit the impact on availability. You should not execute the ALTER INDEX IX_Orders ON OrderDB.Orders REORGANIZE command. You should not reorganize an index that is so heavily fragmented. Instead, you should rebuild it. You should not execute the DBCC DBREINDEX (Orders, IX_Orders) command. DBCC DBREINDEX is a legacy command that has been deprecated. It performs an offline rebuild of the index. You should not execute the DBCC INDEXDEFRAG (Orders, IX_Orders) command. The DBCC INDEXDEFRAG command is a legacy command that reorganizes the index.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.4 Maintain indexes.

References:
1. Guidelines for Performing Online Index Operations Click here for further information Microsoft TechNet, Microsoft ALTER INDEX (Transact SQL) Click here for further information Microsoft TechNet, Microsoft Reorganizing and Rebuilding Indexes Click here for further information Microsoft TechNet, Microsoft DBCC DBREINDEX (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DBCC INDEXDEFRAG (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 50 Question ID: rrMS_70-432-007 You maintain a server running an instance of SQL Server 2008. A new company security policy requires: * All failed and successful attempts to log in to database servers must be logged. * Users who are denied access to a table must not be allowed to access any column in the table even if they are granted access to that column.

You need to configure the SQL Server instance to support th e new policy. What should you do?

* Execute the following: sp_configure 'c2 audit mode, 1; GO RECONFIGURE WITH OVERRIDE GO * Execute the following: sp_configure 'common criteria compliance enabled', 1; GO RECONFIGURE WITH OVERRIDE GO * Execute the following: sp_configure 'c2 audit mode', 1; GO RECONFIGURE GO * Restart the server. * Execute the following: sp_configure 'common criteria compliance enabled', 1; GO RECONFIGURE GO * Restart the server.

Question 50 Explanation: You should take these steps: * Execute the following: sp_configure 'common criteria compliance enabled', 1; GO RECONFIGURE GO * Restart the server.

attempts are logged. Also, any DENY on a table takes precedence over a GRANT on any column in the table. You must restart the server before the new setting takes effect. You should not take these steps: * Execute the following: sp_configure 'c2 audit mode', 1; GO RECONFIGURE GO * Restart the server. When c2 audit mode is enabled, all failed and successful attempts to access database objects are logged. However, a GRANT on a column takes precedence over a DENY on a table. You should not take these steps: * Execute the following: sp_configure 'c2 audit mode, 1; GO RECONFIGURE WITH OVERRIDE GO When c2 audit mode is enabled, all failed and successful attempts to access database objects are logged. However, a GRANT on a column takes precedence over a DENY on a table. You can cause the setting to take effect by executing either RECONFIGURE or RECONFIGURE WITH OVERRIDE. You would use WITH OVERRIDE if you needed to set an option to a value outside the recommended range. You must restart the server before a change to c2 audit mode takes effect. You should not take these steps: * Execute the following: sp_configure 'common criteria compliance enabled', 1; GO RECONFIGURE WITH OVERRIDE GO You can cause the setting to take effect by executing either RECONFIGURE or RECONFIGURE WITH OVERRIDE. However, you must restart the server.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.2 Configure SQL Server instances.

References:
1. c2 audit mode Option Click here for further information Microsoft TechNet, Microsoft common criteria compliance enabled Option Click here for further information Microsoft TechNet, Microsoft Setting Server Configuration Options Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 51 You maintain a database named SalesDB.

Question ID: rrMS_70-432-011

The SalesDB database is configured to use the Simple recovery model. A full backup is performed nightly. A disk failure occurs and the company loses six hours of sales data. A new company policy is devised to prevent such a catastrophe in the future. The policy has the following requirements: * No more than 30 minutes of sales data can be lost due to disk failure. * Backups must use a minimal amount of disk storage. You need to configure SalesDB to meet the new requirements. What should you do? (Each correct answer presents part of the solution. Choose two.)

Schedule a differential backup every 30 minutes. Schedule a full backup every 30 minutes. Change the recovery model to Full. Schedule a differential backup every 2 hours. Schedule a transaction log backup every 30 minutes.

Question 51 Explanation: You should change the recovery model to Full. A Full recovery model allows you to utilize transaction log backups. Transaction log backups are smaller than full or differential backups because they contain only a record of the transactions that have occurred since the last time the transaction log was backed up.

after failure to try to recover transactions that occurred between the last transaction log backup and the time of failure, meaning that in many cases no data will be lost at all. You should not schedule a full backup every 30 minutes. A full backup requires a large amount of disk space and a significant amount of time to complete. You should not schedule a differential backup every 30 minutes. A differential backup backs up everything that has changed since the last full backup. Differential backups require more space than transaction log backups and take more time to complete. You should not schedule a differential backup every 2 hours. Scheduling a differential backup every 2 hours will use more space than transaction log backups. If it is used without transaction log backups, it also will not meet recovery requirements.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.1 Back up databases.

References:
1. Choosing the Recovery Model for a Database Click here for further information Microsoft TechNet, Microsoft Introduction to Backup and Restore Strategies in SQL Server Click here for further information Microsoft TechNet, Microsoft

2.

Question 52 Question ID: flmMS_70-432-033 You are the administrator for a default instance of Microsoft SQL Server 2008. Company policy requires that the database instance must be configured to support C2 audit mode when supporting normal business operations. You enable C2 audit mode on the instance and configure it to start automatically. All users' databases are configured for the full recovery model. For each database, a full backup is run each Sunday, a differential backup each evening, and transaction log backups are run every four hours. The computer is configured as follows: * * * * Drive Drive Drive Drive C: - Operating system and SQL Server program files D: - User database files E: - Transaction log and audit log files F: - Currently unused

Each volume is approximately the same size.

The SQL Server service intermittently shuts itself down when processing a large number of transactions. You are able to temporarily correct the problem by starting up in minimal configuration and single-user mode, backing up the transaction logs, and then restarting the SQL Server service normally. You need to find a way to reduce the number of spontaneous shutdowns and minimize interruptions to normal operations. Your solution should not impact database server security and auditing. Your solution must preserve the ability to recover to a point in time. What should you do?

Move the transaction logs to drive F:. Configure the user databases to use the simple recovery model. Use SQL Server Configuration Manager to use the -m parameter when starting SQL Server. Decrease the frequency of the transaction log backups. Use SQL Server Configuration Manager to use the -f parameter when starting SQL Server.

Question 52 Explanation: You should move the transaction logs to drive F:. The most likely problem is that the computer is running out of space on drive E:. When SQL Server cannot write to the C2 audit log, the service shuts down automatically. You must provide additional free space before you can restart the server with auditing enabled. When you run a transaction log backup, the inactive portion of the log is truncated, freeing up additional space. By moving the transaction logs to a different volume, you make more space available. You should not decrease the frequency of the transaction log backups. This would make it more likely that the volume containing the transaction logs will run out of space, causing SQL Server to shut down. You should not use SQL Server Configuration Manager to use the -f parameter when starting SQL Server. This starts SQL Server in minimal configuration mode with C2 auditing disabled. This does not meet the solution requirements. You should not use SQL Server Configuration Manager to use the -m parameter when starting SQL Server. This starts SQL Server in single-user mode, so that only one user can connect to the server. You should not configure the user databases to use the simple recovery model. In the simple recovery model, the inactive portion of the transaction log is truncated automatically, whether or not it has been backed up. If you configure the server for simple recovery mode, you lose the ability to perform point-in-time recovery because transaction log information will not be available.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.1 Identify SQL Server service problems.

References:
1. How to: Start an Instance of SQL Server (sqlservr.exe) Click here for further information Microsoft TechNet, Microsoft Using the SQL Server Service Startup Options Click here for further information Microsoft TechNet, Microsoft Troubleshooting a Full Transaction Log (Error 9002) Click here for further information Microsoft TechNet, Microsoft c2 audit mode Option Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 53 Question ID: rrMS_70-432-012 You maintain a database named AccountsDB on a server running SQL Server 2008. AccountsDB is backed up according to the following schedule: * Nightly at 10 P.M.: Full backup * Daily at 10 A.M., 2 P.M., and 5 P.M.: Differential backup * Hourly between 6 A.M. and 9 P.M.: Transaction log backup The database developer needs to perform some modifications to the database schema. You want to back up the database before the modifications are made in case a problem occurs as a result of the modification. You need to back up the database as quickly as possible. Your solution must allow recovery from the normal backups if failure occurs later in the day. What command should you use?

BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COPY_ONLY COMPRESSION BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COPY_ONLY BACKUP DATABASE AccountsDB TO MyBackupDevice WITH STANDBY BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COMPRESSION

Question 53 Explanation: You should use the following command: BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COPY_ONLY The COPY_ONLY option allows you to create a full backup of the database without affecting the sequence for restoring normal backups. You should not use the following command: BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COPY_ONLY COMPRESSION The COMPRESSION option causes the database backup to use less disk space. However, compression is processor-intensive and takes more time than executing the backup without compression. You should not use the following command: BACKUP DATABASE AccountsDB TO MyBackupDevice WITH COMPRESSION This command performs a full backup. A full backup resets the backup sequence. Also, compression is processor-intensive and takes more time than executing the backup without compression. You should not use the following command: BACKUP DATABASE AccountsDB TO MyBackupDevice WITH STANDBY The STANDBY option is used when performing a transaction log backup. It is not used for database backups.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.1 Back up databases.

References:
1. Copy-Only Backups Click here for further information Microsoft TechNet, Microsoft BACKUP (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 54

Question ID: rrMS_70-432-057

You manage a server running SQL Server 2008. SQL Server is configured to use mixed-mode authentication. Members of the HelpDesk department need to be able to reset passwords for SQL Server logins and terminate processes involved in a deadlock condition. You create a login associated with the HelpDesk group. You need to grant the minimum necessary permissions. What should you do?

Add the login as a member of the serveradmin fixed server role. Add the login as a member of the sysadmin fixed server role. Add the login as a member of the serveradmin and securityadmin fixed server roles. Add the login as a member of the processadmin and securityadmin fixed server roles.

Question 54 Explanation: You should add the login as a member of the processadmin and securityadmin fixed server roles. Members of the processadmin role can terminate processes. Members of the securityadmin fixed server role can manage logins and reset passwords. You should not add the login as a member of the serveradmin fixed server role. Members of the serveradmin fixed server role can shut down the server, manage server settings, and manage end points. They cannot shut down specific processes or change passwords. You should not add the login as a member of the sysadmin fixed server role. The sysadmin fixed server role can perform any action on SQL Server. Therefore, membership in the sysadmin fixed server role grants more permissions than necessary. You should not add the login as a member of the serveradmin and securityadmin fixed server roles. Members in the securityadmin fixed server role can change passwords. Members in the serveradmin fixed server role can shut down the server, manage server settings, and manage end points. However, they cannot shut down specific processes.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.1 Manage logins and server roles.

References:
1. Server-Level Roles Click here for further information MSDN, Microsoft

Question 55 Question ID: flmMS_70-432-016 You manage an instance of Microsoft SQL Server 2008 on a computer running Windows Server 2008. You are creating a SQL Server 2008 login named Judy. You are assigning an initial password of 'TiAtPw*Chg? to the login. You need to ensure that a password change is required the first time the login is used. Windows password policies should be enforced for the login. You need to use a Transact-SQL statement that successfully creates the login and meets these requirements. What should you do?

Use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?' MUST_CHANGE Use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?' Use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?', CHECK_POLICY=OFF MUST_CHANGE Use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?', CHECK_EXPIRATION=ON MUST_CHANGE

Question 55 Explanation: You should use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?', CHECK_EXPIRATION=ON MUST_CHANGE When using the MUST_CHANGE option, you must set the CHECK_EXPIRATION and CHECK_POLICY options to ON. The CHECK_POLICY option is set to ON by default, but CHECK_EXPIRATION is set to OFF by default, so its value must be specified explicitly when creating the login. The sp_addlogin system stored procedure can also be used to create a login, but does not let you force a password change. You should not use:

This T-SQL statement will create the login, but not force a password change. You should not use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?' MUST_CHANGE CHECK_EXPIRATION is OFF by default and must be set to ON when using MUST_CHANGE. You should not use: CREATE LOGIN Judy WITH PASSWORD = 'TiAtPw*Chg?', CHECK_POLICY=OFF MUST_CHANGE The command would not run because the CHECK_EXPIRATION and CHECK_POLICY options must both be set to ON. If CHECK_POLICY is set to OFF, CHECK_EXPIRATION is also set to OFF. Setting CHECK_POLICY to OFF prevents Windows password policies from being applied.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.1 Manage logins and server roles.

References:
1. CREATE LOGIN (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft How to: Create a SQL Server Login Click here for further information Microsoft TechNet, Microsoft

2.

Question 56 Question ID: rrMS_70-432-036 You manage a database on an instance of SQL Server 2008. The Products table is described in the exhibit. IX_Primary is a clustered index. The other indexes are nonclustered indexes. You need to add the Description column to the IX_ByCategory index as an included column. Your solution should impact the availability of the table as little as possible. What should you do?

Use ALTER INDEX. Perform the operation online. Use ALTER INDEX. Perform the operation offline. Use CREATE INDEX WITH DROP EXISTING. Perform the operation online. Use CREATE INDEX WITH DROP EXISTING. Perform the operation offline.

Question 56 Explanation: You should use CREATE INDEX WITH DROP EXISTING and perform the operation offline. You must use CREATE INDEX WITH DROP EXISTING when adding an included column to an index. You must perform the operation offline if the index includes a column of a large data type, such as an xml column. You should not use CREATE INDEX WITH DROP EXISTING and perform the operation online. You cannot rebuild an index online when a large data type column is included in the index. You should not use ALTER INDEX. You cannot add a column with the ALTER INDEX statement. You need to use CREATE INDEX WITH DROP EXISTING.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.4 Maintain indexes.

References:
1. Guidelines for Performing Online Index Operations Click here for further information Microsoft TechNet, Microsoft Reorganizing and Rebuilding Indexes Click here for further information Microsoft TechNet, Microsoft

2.

Question 57

Question ID: rrMS_70-432-029

You manage a database named OrdersDB. OrdersDB is hosted on an instance of SQL Server 2008. The OrdersDB database has a table named Orders, which is partitioned on the OrderDate column by using the PFOrderDate function. The range of values for each partition is one month. The database also has a table named OrderArchives. OrderArchives is also partitioned on the OrderDate column by using the PFOrderArchive function. OrderArchives currently has two partitions: the partition that contains the data and an empty partition. You need to write a script that moves data older than one year from the Orders table to the OrderArchives table. The script will be executed on the first day of each month. The current date is stored in the datToday variable. The current date one year ago is stored in datLastYear. The oldest date being moved into the OrderArchives table is stored in datOldestMoved. The date one month ago is stored in a variable named datLastMonth. You need to write the script. What code should you use?

ALTER ALTER ALTER ALTER ALTER

PARTITION FUNCTION PFOrderArchive() SPLIT RANGE(datLastYear); TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 3; PARTITION FUNCTION PFOrderDate() MERGE RANGE (datLastYear); PARTITION FUNCTION PFOrderArchive() MERGE RANGE(datOldestMoved); PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth);

ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE (datLastYear); ALTER TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 2; ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth); ALTER PARTITION FUNCTION PFOrderArchive() MERGE RANGE (datLastYear); ALTER TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 3; ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth); ALTER ALTER ALTER ALTER ALTER PARTITION FUNCTION PFOrderArchive() SPLIT RANGE(datLastYear); TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 2; PARTITION FUNCTION PFOrderDate() MERGE RANGE (datLastYear); PARTITION FUNCTION PFOrderArchive() MERGE RANGE(datOldestMoved); PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth);

Question 57 Explanation: You should use the following code: ALTER PARTITION FUNCTION PFOrderArchive() SPLIT RANGE(datLastYear); ALTER TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 2; ALTER PARTITION FUNCTION PFOrderDate() MERGE RANGE (datLastYear);

You must transfer data into an empty partition. Because you need to reuse the script every month, you need to first split the destination partition so the new data is stored in the second partition and an empty partition is created, which will be split next month. The next step is to use ALTER TABLE and perform a SWITCH to move the pointer of the data from partition 1 in the Orders table to partition 2 in the OrderArchives table. Next you need to delete the now empty partition in the Orders table by calling MERGE RANGE on the PFOrderDate function. The next step is to merge the data you just moved into the first partition of OrderArchives by calling MERGE RANGE. Finally, you need to create a new partition in Orders, which will store the current month's data by calling SPLIT RANGE on PFOrderDate. You should not use the following code: ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE (datLastYear); ALTER TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 2; ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth); This code will move the data the first month it is executed, but will not work the second month because the destination partition will not be empty and the source partition will be empty. You should not use the following code: ALTER ALTER ALTER ALTER ALTER PARTITION FUNCTION PFOrderArchive() SPLIT RANGE(datLastYear); TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 3; PARTITION FUNCTION PFOrderDate() MERGE RANGE (datLastYear); PARTITION FUNCTION PFOrderArchive() MERGE RANGE(datOldestMoved); PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth);

You should not move the data to partition 3. The data should be transferred to partition 2 so that it can be merged into partition 1. You should not use the following code: ALTER PARTITION FUNCTION PFOrderArchive() MERGE RANGE (datLastYear); ALTER TABLE Orders SWITCH PARTITION 1 TO OrderArchives PARTITION 3; ALTER PARTITION FUNCTION PFOrderDate() SPLIT RANGE(datLastMonth); This code will not work correctly. MERGE RANGE is used to merge two partitions into one. You need to split a partition in OrderArchives to prepare it to receive data, not merge a partition.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.2 Manage data partitions.

References:

1.

Designing Partitions to Manage Subsets of Data Click here for further information Microsoft TechNet, Microsoft ALTER PARTITION FUNCTION (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 58 Question ID: rrMS_70-432-077 You manage several servers running SQL Server 2008. ServerA is the principal server and ServerB is the secondary server in a database mirror. ServerA fails and you initiate a manual failover to ServerB. Several users report that they are denied access when trying to connect to ServerB. You need to resolve the problem. What should you do?

Add logins for the users and map the users to the appropriate database users. Grant the logins Connect permission on ServerB. Create the necessary database users and assign them to the appropriate roles. Enable mixed authentication on ServerB.

Question 58 Explanation: You should add logins for the users and map the users to the appropriate database users. Logins are stored in the master database. Because the master database cannot be mirrored, you need to manually create logins on the mirror for each login on the principle server. You also need to map those logins to the database user accounts, which are stored in the individual databases. You should not create the necessary database users and assign them to the appropriate roles. Database users are mirrored along with other database objects. There is no need to create them manually. You should not grant the logins Connect permission on ServerB. The logins do not exist on the server. You should not enable mixed authentication on ServerB. The server can use Windows integrated authentication. However, all of the necessary logins must be created.

Objective:

List all questions for this objective

Implementing High Availability

Sub-Objective: 8.1 Implement database mirroring.

References:
1. Managing Logins and Jobs After Role Switching Click here for further information Microsoft TechNet, Microsoft

Question 59 Question ID: flmMS_70-432-036 You manage a default Microsoft SQL Server 2008 instance. The instance includes a database named SalesData used to support a retail pointof-sale application. You have determined that performance problems the server has been experiencing are related to deadlocking. You need to have each incidence of deadlocking written to the SQL Server error log. You should minimize the impact on server performance. What should you do?

Turn on trace flag 7806. Turn on trace flag 1204. Turn on trace flag 1211. Turn on trace flag 3608.

Question 59 Explanation: You should turn on trace flag 1204. This causes deadlock information to be written to the SQL error log. The information includes the type of lock, the resources involved, and affected commands. Use DBCC TRACEON to turn a trace flag on and DBCC TRACEOFF to turn a trace flag off. You should not turn on trace flag 1211. This trace flag, when on, disables lock escalation based on memory pressure or number of locks. You should not turn on trace flag 3608. This trace flag, when on, prevents automatic recovery of any database except the master database. You should not turn on trace flag 1211. This trace flag, when on, enables the resources necessary for a dedicated administrator connection (DAC) on SQL Server Express.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server

Sub-Objective: 6.2 Identify concurrency problems.

References:
1. Detecting and Ending Deadlocks Click here for further information Microsoft TechNet, Microsoft Trace Flags (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DBCC TRACEON (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 60 Question ID: flmMS_70-432-043 You manage Microsoft SQL Server 2008 resources for your organization. Computers named ProdData and DevData both host default SQL Server 2008 instances. Both computers run Windows Server 2008. ProdData includes a database named SalesDB. You want to mirror the database on DevData. You back up SalesDB and restore to DevData. You need to configure data mirroring to support automatic failover in case SalesDB becomes unavailable on ProdData. What should you do?

Configure high-availability mode without a witness server. Configure high-productivity mode without a witness server. Configure high-availability mode with a witness server. Configure high-productivity mode with a witness server.

Question 60 Explanation: You should configure high-availability mode with a witness server. This is the only configuration that supports automatic failover. High-availability mode is a synchronous mode, so the principal and mirror databases stay in sync. The possible drawback is that there can be some latency when processing transactions. When the principal database becomes unavailable, this is recognized by the witness server. The witness server initiates automatic failover at the mirror server.

asynchronous mode, so there can be a delay in synchronizing the databases. You should not configure high-availability mode without a witness server. This configuration does not support automatic failover, but does support manual failover.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.1 Implement database mirroring.

References:
1. Database Mirroring Overview Click here for further information Microsoft TechNet, Microsoft Database Mirroring Witness Click here for further information Microsoft TechNet, Microsoft Transact-SQL Settings and Database Mirroring Operating Modes Click here for further information Microsoft TechNet, Microsoft

2.

3.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
4 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 61 Question ID: rrMS_70-432-078 You manage an active-passive cluster running SQL Server 2008 and full-text search. The SQL Server service is configured to use a member of the Domain Admins group as the service account. After a security audit, you have been instructed to change the SQL Server service

account to a lower-privileged domain user. You need to perform the necessary configuration using the fewest number of steps. What should you do?

Stop the full-text service. Change the service account on the active node only. Restart the full-text service. Change the service account on the active node and the passive node. Restart the fulltext service. Change the service account on the active node only. Restart the full-text service. Change the service account on the active and passive nodes.

Question 61 Explanation: You should change the service account on the active node and the passive node, and then restart the full-text service. Each node of a cluster must use the same user account to run the SQL Server service. Also, after the service account is changed, the full-text service is not restarted automatically. You need to start it manually. You should not change the service account on the active node only, and then restart the full-text service. All nodes of a cluster should run the SQL Server service under the same security context. You should not stop the full-text service, change the service account on the active node only, and restart the full-text service. There is no need to stop the full-text service. Also, all nodes of a cluster should run the SQL Server service under the same security context. Changing only the service account on the active and passive nodes is not sufficient. You also need to restart full-text service.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.2 Implement a SQL Server clustered instance

References:
1. Using SQL Server Tools with Failover Clustering Click here for further information Microsoft TechNet, Microsoft

Question 62

Question ID: flmMS_70-432-045

You configure two instances of Microsoft SQL Server 2008 in a failover cluster configuration. Both instances are on computers running Windows Server 2008 configured as member servers in an Active Directory domain. You use SQL Server Configuration Manager to change the service account for both instances. After changing the service accounts and restarting the instances, the SQL Server Agent service is no longer available. What should you do?

Use the Windows Services utility. Use Windows Cluster Administrator. Use SQL Server Configuration Manager. Use SQL Server Management Studio.

Question 62 Explanation: You should use Windows Cluster Administrator. You are prompted to restart SQL Server after using SQL Server Configuration Manager to change the service account. After restarting, full-text search and SQL Server Agent are not brought back online automatically. You must use Windows Cluster Administrator to bring these services online. You should not use SQL Server Configuration Manager. Configuration Manager cannot be used to bring SQL Server Agent online in a failover cluster configuration. You should not use SQL Server Management Studio. Management Studio can be used to manage SQL Server Agent properties, but not to bring the agent back online in a cluster configuration. You should not use the Services utility. It cannot be used to bring SQL Server Agent back online after changing the SQL Server service account. You also should not use the Services utility to modify the services account, as this can cause the cluster to fail. You must use SQL Server Configuration Manager for that purpose.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.2 Implement a SQL Server clustered instance

References:
1. Using SQL Server Tools with Failover Clustering Click here for further information Microsoft TechNet, Microsoft Getting Started with SQL Server 2008 Failover Clustering

2.

Click here for further information Microsoft TechNet, Microsoft

Question 63 Question ID: flmMS_70-432-005 You manage a computer running an instance of SQL Server 2008. You create a stored procedure named sp_Update that runs when a SQL Server Agent Windows Management Instrumentation (WMI) alert triggers. You create a user-defined message with the message number 52000. You need to be notified any time sp_Update runs and have it log a user-defined event with message number 52000. You also need to have the time and date of each run logged. What should you do? (Each correct answer presents part of the solution. Choose two.)

Modify the stored procedure to execute RAISERROR. Create an Event Notification. Modify the stored procedure to execute RAISERROR WITH LOG. Create a SQL Server Agent event alert. Create a SQL Server Agent performance condition alert. Create a SQL Server Agent WMI alert. Include EXECUTE AS when executing the stored procedure.

Question 63 Explanation: You need to create a SQL Server event alert and modify the stored procedure to execute RAISERROR WITH LOG. You would create the event alert to trigger based on the message number 52,000. RAISERROR WITH LOG will cause the event to be logged to the Windows Application Event log. This will be detected by SQL Server Agent and will cause the event alert to trigger and send your notification. You should not create a performance condition or WMI alert. Neither of these meets the solution requirements. A performance condition alert triggers when a performance counter goes above, goes below, or is equal to a trigger value. A WMI event triggers a WMI alert trigger. Neither will trigger in response to an event message number. You should not create an Event Notification. An Event Notification responds to a specific data definition language (DDL) event or SQL Trace, not an error condition. Even though an Event Notification can be used to generate log entries, it responds to the wrong kind of event.

but would do nothing to raise the alert condition. You should not modify the stored procedure to execute RAISERROR. With a user-defined customer error, the error is not logged unless you specify WITH LOG.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.2 Manage SQL Server Agent alerts.

References:
1. Monitoring and Responding to Events Click here for further information Microsoft TechNet, Microsoft Defining Alerts Click here for further information Microsoft TechNet, Microsoft Creating a User-Defined Event Click here for further information Microsoft TechNet, Microsoft Understanding Event Notifications Click here for further information Microsoft TechNet, Microsoft RAISERROR (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 64 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-024

Steve is a database administrator. He needs to be able to create maintenance plans that run backups and database consistency checks. You need to grant Steve the minimum necessary permissions. What should you do?

Add Steve to the serveradmin role. Add Steve to the sysadmin role. Add Steve to the SQLAgentUserRole role. Add Steve to the SQLAgentOperatorRole role.

Question 64 Explanation: You should add Steve to the sysadmin role. Only members of the sysadmin role can create and modify maintenance plans. You should not add Steve to the serveradmin role. Members of the serveradmin role can shut down the server, view and manage the state of the server, manage server settings, and create endpoints. They cannot create and manage maintenance plans. You should not add Steve to the SQLAgentUserRole role. Members of the SQLAgentUserRole can view and modify the SQL Server Agent jobs they create. However, they cannot create maintenance plans. Maintenance plans are SQL Server Integration Services packages. Although they are executed by SQL Server Agent jobs, they are different than jobs. You should not add Steve to the SQLAgentOperatorRole role. Members of the SQLAgentOperatorRole role can view and manage all jobs. However, they cannot create maintenance plans.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.6 Maintain a database by using maintenance plans.

References:
1. Maintenance Plans Click here for further information Microsoft TechNet, Microsoft SQL Server Agent Fixed Database Roles Click here for further information Microsoft TechNet, Microsoft Server-Level Roles Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 65 Question ID: rrMS_70-432-025 You manage several servers running SQL Server 2008. You need to configure the servers to perform a series of scheduled tasks, including: * * * * Updating statistics Rebuilding indexes Backing up the database and transaction logs Performing consistency checks

The results of these operations must be logged to a remote server.

You need to configure SQL Server to perform the scheduled tasks. Your solution should require the least amount of effort. What should you do?

Create a script and configure it to run using Windows Task Scheduler. Create a SQL Server Agent job with a job step for each task. Create a maintenance plan. Create a SQL Server Agent job with a job step for each server.

Question 65 Explanation: You should create a maintenance plan. You can create a maintenance plan that performs all these tasks. Maintenance plans can be used to log results to a remote server and to perform tasks on multiple servers. Maintenance plans are SQL Server Integration Services packages that are executed by SQL Server Agent jobs. You should not create a SQL Server Agent job for each server or each task. Creating a SQL Server Agent job requires more effort than using the predefined tasks to create a maintenance plan. You should not create a script and configure it to run using Windows Task Scheduler. You need to use SQL Server Agent to run scripts on a SQL Server.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.6 Maintain a database by using maintenance plans.

References:
1. Maintenance Plans Click here for further information Microsoft TechNet, Microsoft

Question 66 Question ID: flmMS_70-432-044 You support two default instances of Microsoft SQL Server 2008. You configured database mirroring for the database InvStuffDB between the two instances. MainServ hosts the principal database and DevServ hosts the mirror copy. Database mirroring is configured for high-availability without a mirror server.

You remove mirroring between the two servers. You need to ensure that the copy of InvStuffDB on DevServ is available for access and use. You need to accomplish this as quickly as possible. What should you do?

Recover InvStuffDB on DevServ Switch InvStuffDB on DevServ to the simple recovery model. Manually attach InvStuffDB to the database engine on DevServ. Run a full backup on MainServ and restore to DevServ.

Question 66 Explanation: You need to recover InvStuffDB on DevServ. When you created the mirror copy, you restored from backups taken from MainServ. You restored using RESTORE WITH NORECOVERY. When you remove mirroring, the copy of InvStuffDB on DevServ is left in the RESTORING state and is unavailable. Recovering the database makes it available for access. You should not manually attach InvStuffDB to the database engine on DevServ. The database is already attached, so this would accomplish nothing. You should not run a full backup on MainServ and restore to DevServ. There is no need to do this, because the data is already present on DevServ. You should not switch InvStuffDB on DevServ to the simple recovery model. This would do nothing to make InvStuffDB available.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.1 Implement database mirroring.

References:
1. Removing Database Mirroring Click here for further information Microsoft TechNet, Microsoft Database Mirroring and Backup and Restore Click here for further information Microsoft TechNet, Microsoft Preparing a Mirror Database for Mirroring Click here for further information Microsoft TechNet, Microsoft Database Mirroring Overview Click here for further information

2.

3.

4.

Microsoft TechNet, Microsoft

Question 67 Question ID: flmMS_70-432-049 You manage multiple instances of Microsoft SQL Server 2008. Your network is configured as a main office and a remote branch office connected through a routed wide area link. Each office hosts one instance of SQL Server 2008. The SQL Server 2008 instance in the main office includes a database named MainInventory. The SKUs table in MainInventory contains over one million rows. You configure merge replication between the SKUs table in MainInventory and a table named SKUs in a remote database hosted on the SQL Server 2008 instance in the remote office. The link to the remote office fails and by the time the link is repaired, the most recent merge update has expired. You need to bring the copy of the SKUs table in the remote office into synchronization with the copy in the main office as quickly as possible. You need to keep the network traffic generated by the solution to a minimum. You need to keep the effort necessary to correct the problem to a minimum. What should you do?

Manually apply the update. Create a snapshot from MainInventory and apply it to the remote database. Recreate the subscription. Recreate the publication.

Question 67 Explanation: You should recreate the subscription. You will need to run tablediff to identify the differences between the two tables, then recreate the subscription to apply the differences. When you recreate the subscription, specify that it should not create a snapshot. You cannot manually apply the update. Once the update expires, it is no longer available. You should not create a snapshot from MainInventory and apply it to the remote database. Because of the size of the table, this would generate significantly more traffic than recreating the subscription to apply differences only. You should not recreate the publication. This would require more effort than necessary. You only need to recreate the subscription.

Objective:

List all questions for this objective

Implementing High Availability

Sub-Objective: 8.4 Implement replication.

References:
1. A Merge Subscription Has Expired and Changes Must Be Uploaded Click here for further information Microsoft TechNet, Microsoft

Question 68 Question ID: rrMS_70-432-010 You maintain a server running SQL Server 2005. The HelpLibrary database contains a large full-text catalog. You plan to upgrade the server to SQL Server 2008. The upgrade must meet the following requirements: * The database must be available as quickly as possible for standard queries. * Full-text queries must be available within as short a time as possible. You need to identify the steps in the upgrade process. What should you do?

* Choose the Reset full-text option during upgrade. * Repopulate the full-text catalog. Choose the Rebuild full-text option during upgrade. * Disable the full-text catalog. * Choose the Reset full-text option during upgrade. * Enable the full-text catalog. Choose the Import full-text option during upgrade.

Question 68 Explanation: You should take these steps: * Choose the Reset full-text option during upgrade. * Repopulate the full-text catalog. The Reset option disables full-text search until after the full-text catalog has been repopulated. This option provides the fastest way to upgrade the server and make it available for standard queries. You must repopulate the full-text catalog before it will be available. You should not choose the Rebuild full-text option during upgrade. The Rebuild option is the

You should not choose the Import full-text option during upgrade. The Import option is faster than the Rebuild option, but it still might take several hours. The Import option uses the existing word breakers and stores the full-text index in a filegroup, similar to the way SQL Server 2005 operates. You should not take these steps: * Disable the full-text catalog. * Choose the Reset full-text option during upgrade. * Enable the full-text catalog. The Reset option disables the full-text catalog. However, you need to repopulate the fulltext catalog to make it available.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.6 Configure full-text indexing.

References:
1. Full-Text Search Upgrade Click here for further information Microsoft TechNet, Microsoft

Question 69 You manage a database named OrdersDB.

Question ID: rrMS_70-432-030

The OrdersDB database has a table named Customers, which is partitioned on the ZipCode column. The table is currently partitioned into three Zip Code ranges: 00000 through 29999 30000 through 69999 70000 through 99999 The company has redistributed its sales regions and needs the table's partitioning to match the new regions. The table must be partitioned into the following ranges: 00000 20000 40000 70000 through through through through 19999 39999 69999 99999

You need to repartition the table. What should you do?

Execute a single ALTER PARTITION SCHEME statement that defines the new partitions. Create a new table with the new partitions and execute a single ALTER TABLE SWITCH statement. Execute a single ALTER PARTITION FUNCTION statement that defines the new partitions. Create a new table with the new partitions and execute a single INSERT INTO statement.

Question 69 Explanation: You should create a new table with the new partitions and execute a single INSERT INTO statement. Because the partition boundaries are very different, the simplest way to implement the change is to create a new partitioned table and then move the data to it by using INSERT INTO with a SELECT FROM clause. The ALTER PARTITION FUNCTION statement can only change a single boundary at a time by either splitting or merging partitions. Therefore, to change the current boundaries, you would need to execute three ALTER PARTITION FUNCTION statements: ALTER PARTITION FUNCTION PFCustomers () SPLIT RANGE (19999); ALTER PARTITION FUNCTION PFCustomers () MERGE RANGE (29999); ALTER PARTITION FUNCTION PFCustomers () SPLIT RANGE (39999); Depending on the complexity of the table and the number of constraints and triggers involved, you might decide to execute the three ALTER PARTITION FUNCTION statements instead of creating a new table. You should not execute a single ALTER PARTITION FUNCTION statement that defines the new partitions. The ALTER PARTITION FUNCTION statement can only change a single boundary at a time by either splitting or merging partitions. Therefore, to change the current boundaries, you would need to execute several ALTER PARTITION FUNCTION statements. You should not execute a single ALTER PARTITION SCHEME statement that defines the new partitions. The ALTER PARTITION SCHEME statement is used to add a filegroup to a partition scheme or to change the filegroup that will be used for the next new partition. You should not create a new table with the new partitions and execute a single ALTER TABLE SWITCH statement. You can only switch one partition at a time. Therefore, you would need to execute multiple ALTER TABLE SWITCH statements to move the data to the new table.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.2 Manage data partitions.

References:
1. ALTER PARTITION SCHEME (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Modifying Partitioned Tables and Indexes Click here for further information Microsoft TechNet, Microsoft ALTER PARTITION FUNCTION (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 70 Question ID: flmMS_70-432-013 You modified several SQL Server Agent jobs on a computer running a default instance of Microsoft SQL Server 2008. You need to back up these changes as quickly as possible. What should you do?

Back up the msdb system database. Back up the user databases affected by the jobs when they execute. Back up the model system database. Back up the master system database.

Question 70 Explanation: You should back up the msdb system database. Information about jobs, job steps, and schedules is stored in tables in the msdb database. You can quickly back up job information by backing up the msdb database. You should not back up the user databases. There is no reason to do this. Job information is not stored in the user databases. You should not back up the master database. The master database contains system-wide information, such as configuration information, but does not contain information about SQL Server Agent jobs. You should not back up the model database. As the name implies, the model database is used as the model when creating a new user database. It is only necessary to back up the model database after you have explicitly made changes to that database.

Objective:

List all questions for this objective

Maintaining SQL Server Instances

Sub-Objective: 2.5 Back up a SQL Server environment.

References:
1. Step-by-Step Guide for Windows Server Backup in Windows Server 2008 Click here for further information Microsoft TechNet, Microsoft Backup Overview (SQL Server) Click here for further information Microsoft TechNet, Microsoft Creating Job Steps Click here for further information Microsoft TechNet, Microsoft Considerations for Backing Up the model and msdb Databases Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 71 Question ID: rrMS_70-432-046 You manage a server running SQL Server 2008. The server is configured for Windows authentication. Users report slow performance. You need to determine whether a specific user is responsible for executing queries that consume large amounts of CPU or memory. What should you do?

Execute: SELECT nt_user_name, SUM(cpu_time), SUM(memory_usage) FROM sys.dm_exec_sessions GROUP BY nt_user_name Execute: SELECT nt_user_name, SUM(cpu_time), SUM(memory_usage) FROM sys.dm_exec_requests GROUP BY nt_user_name Execute: SELECT nt_user_name, SUM(total_worker_time), SUM(memory_usage) FROM sys.dm_exec_connections GROUP BY nt_user_name Execute: SELECT nt_user_name, SUM(total_worker_time), SUM(memory_usage) FROM sys.dm_exec_query_stats GROUP BY nt_user_name

Question 71 Explanation: You should execute: SELECT nt_user_name, SUM(cpu_time), SUM(memory_usage) FROM sys.dm_exec_sessions GROUP BY nt_user_name The sys.dm_exec_sessions dynamic management view (DMV) contains information about user sessions, including the name of the user, the processor time used by the session, and the memory used by the session. To obtain an overview of total database server resources used by each user, you can use the SUM aggregate function with the GROUP BY clause. You should not execute: SELECT nt_user_name, SUM(total_worker_time), SUM(memory_usage) FROM sys.dm_exec_connections GROUP BY nt_user_name The sys.dm_exec_connections DMV does not include the user, the amount of CPU time, or the amount of memory used by the connection. It contains information about the protocol used, the number of reads and writes that occurred, and the network address of the client connection. You should not execute: SELECT nt_user_name, SUM(total_worker_time), SUM(memory_usage) FROM sys.dm_exec_query_stats GROUP BY nt_user_name The sys.dm_exec_query_stats DMV includes performance statistics for specific queries, not for specific user sessions. You should not execute: SELECT nt_user_name, SUM(cpu_time), SUM(memory_usage) FROM sys.dm_exec_requests GROUP BY nt_user_name The sys.dm_exec_requests DMV stores information about each request. It can be used to determine the CPU time used by each request. However, it cannot be used to determine memory usage or to group resource usage by Windows user account.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.4 Collect performance data by using Dynamic Management Views (DMVs).

References:
1. sys.dm_exec_requests (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_exec_sessions (Transact-SQL) Click here for further information

2.

Microsoft TechNet, Microsoft 3. sys.dm_exec_query_stats (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_exec_connections (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

4.

Question 72 Question ID: rrMS_70-432-005 You maintain a database server running SQL Server 2008. The database server has the default instance of SQL Server 2008 installed. You install an instance named InternetApp. The SQL Server (InternetApp) service account is configured to run under a domain user account. Client applications on different computers can connect to the default instance, but cannot connect to InternetApp. You verify that SQL Server (InternetApp) is started. You need to resolve the problem. What should you do?

Configure the SQL Server (InternetApp) service to use the Local System account. Start the SQL Server Agent service. Start the SQL Server Browser service. Configure the SQL Server (InternetApp) service to use the Network Service account.

Question 72 Explanation: You should start the SQL Server Browser service. The SQL Server Browser service is responsible for enumerating SQL Servers and allowing applications to discover and connect to named instances without specifying a port number or pipe name. You should not start the SQL Server Agent service. The SQL Server Agent service is responsible for executing jobs. It is not required to connect to a named instance. You should not configure the SQL Server (InternetApp) service to use the Network Service account. A SQL Server service instance can run under a domain user account. In fact, it is recommended that you do not run SQL Server under the Network Service account because the Network Service account is a shared account. You should not Configure the SQL Server (InternetApp) service to use the Local System account. A SQL Server service instance can run under a domain user account. The Local System account has more permission than necessary. It is recommended that you use a service account that has only necessary permissions as the security context for the SQL Server service.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.3 Configure SQL Server services.

References:
1. Setting Up Windows Service Accounts Click here for further information Microsoft TechNet, Microsoft SQL Server Browser Service Click here for further information Microsoft TechNet, Microsoft

2.

Question 73 Question ID: flmMS_70-432-039 You manage a default instance of Microsoft SQL Server 2008. You are attempting to troubleshoot an intermittent server problem. You need to view the contents of the current SQL Server error log. What should you do?

Launch Windows Event Viewer. Open \Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\LOG\ERRORLOG Open \Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\LOG\log_1.trc Launch SQL Server Configuration Manager.

Question 73 Explanation: You should open \Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\LOG\ERRORLOG. This is the default location for the SQL error log. The most recent error log file will have no extension. The next most recent will be named ERRORLOG.1, and so on. Up to six error log files are maintained. A new log file is started each time the SQL Server instance is restarted. You should not launch Windows Event Viewer. The Event Viewer lets you view the contents of the Windows event logs, but not the SQL error log. However, you may be able to find useful information about SQL Server errors in the Windows Application log.

access to the error log and Windows event logs. You should not open \Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\LOG\log_1.trc. This is a SQL trace log file.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.4 Locate error information.

References:
1. Viewing the SQL Server Error Log Click here for further information Microsoft TechNet, Microsoft Monitoring the Error Logs Click here for further information Microsoft TechNet, Microsoft SQL Server Configuration Manager Click here for further information Microsoft TechNet, Microsoft How to: View the SQL Server Error Log (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft default trace enabled Option Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 74 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-072

Members of the MarketResearch group perform resource-intensive queries.You create a resource pool and a workload group in Resource Governor and monitor performance when a member of MarketResearch executes a query. Resource consumption still shows high levels during query execution. You need to limit the CPU and memory consumption for queries executed by the MarketResearch group. What should you do?

Associate the new workload group with the internal resource pool. Use sp_configure to decrease the max degree of parallelism value.

Create a classifier function that assigns members of MarketResearch to the new workload group. Rebuild the indexes on the tables used by the query.

Question 74 Explanation: You should create a classifier function that assigns members of MarketResearch to the new workload group. Unless you create a classifier function, members of MarketResearch will still continue to use the default workload. You should not associate the new workload group with the internal resource pool. The internal resource pool is used by SQL Server and should not be used for user functions. You should not rebuild the indexes on the tables used by the query. The problem is not caused by out-of-date indexes. The problem is that you did not complete the necessary steps to limit the resources used by queries initiated by the MarketResearch group. You should not use sp_configure to decrease the max degree of parallelism value. The max degree of parallelism option determines the maximum number of processors that can be used to execute a query. It applies to any query run on the server, not just the queries run by a specific group.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.1 Implement Resource Governor.

References:
1. max degree of parallelism Option Click here for further information Microsoft TechNet, Microsoft Resource Governor Concepts Click here for further information Microsoft TechNet, Microsoft

2.

Question 75 Question ID: flmMS_70-432-011 You administer an instance of Microsoft SQL Server 2008 on a computer running Microsoft Windows Server 2003. The database server instance supports Windows and SQL Server authentication. The computer on which the instance runs is a member server in a Windows Server 2003 Active Directory domain. The domain's password policy settings are set to the default values. Your domain-based user account is a member of Domain Admins. The database server supports access by both Windows and non-Windows clients. This includes access by database clients who are not configured as domain

members. You are concerned about the possible compromise of passwords used for database access. You need to force password complexity, require password changes every 30 days, and prevent reuse of the last five passwords. The solution should have minimal impact on the Active Directory domain. What should you do? (Each correct answer presents part of the solution. Choose two.)

Configure a SQL Server logon trigger. Configure a password policy through SQL Server policy-based management. Create one Active Directory account for use by all non-Windows clients. Modify the database engine to support Windows authentication only. Reconfigure the Active Directory domain password policy.

Question 75 Explanation: You need to reconfigure the password policy for the Active Directory domain and configure a password policy through SQL Server policy-based management. You can use an Active Directory domain password policy to enforce password complexity, password expiration, and password history for a Windows client logged on as domain user. Although the setting to enforce password complexity is enabled by default, the default setting for maximum password age is 42 days and the default value for password history is 1. You can use a SQL Server policy-based management policy to enforce password complexity, expiration, and password history for non-Windows clients logging on through SQL Server logon accounts. Password policy is enforced only on computers running Windows Server 2003 and later. That is because it requires the NetValidatePasswordPolicy Application Programming Interface (API), which is available on Windows Server 2003 and later only. You should not configure a logon trigger to enforce this requirement. A logon trigger fires after authentication and can be used to prevent logon based on specified conditions, such as time of day or number of concurrent logons. It cannot be used to enforce password requirements. You should not modify the database engine to support Windows authentication only. This would prevent access by non-Windows clients. You should not create one Active Directory account for use by all non-Windows clients. NonWindows clients cannot use a Windows user account to access the database. Even if this were possible, using a shared logon account could result in the account information being compromised and could lead to a security breach.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.4 Implement the declarative management framework (DMF).

References:
1. Logon Triggers Click here for further information Microsoft TechNet, Microsoft Password Policy Click here for further information Microsoft TechNet, Microsoft Administering Servers by Using Policy-Based Management Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 76 Question ID: flmMS_70-432-028 You manage a default Microsoft SQL Server 2008 instance. The computer on which the instance is installed is running Windows Server 2008. The Acctg database contains sensitive, business-critical data. The filegroup for the Acctg database is on a disk volume formatted as NTFS. You need to protect the Acctg database and transaction log backup files from unauthorized access. The solution should not require any changes to applications that need to access the Acctg database. You need to minimize the administrative effort necessary to deploy and maintain the solution. What should you do?

Use encrypting file system (EFS). Use BitLocker Drive Encryption (BDE). Use cell-level encryption. Use transparent data encryption (TDE).

Question 76 Explanation: You should use TDE. TDE uses a certificate to encrypt the contents of the database. Database and transaction log backups are also encrypted. Access to the backups requires the same certificate for decryption. Because TDE occurs at the database level and data is

database itself. You should not use BDE. BDE is used to protect a computer's system volume from unauthorized changes and prevent unauthorized startup. It cannot be used to create encrypted database backups. You should not use EFS. EFS encryption occurs as a function of the file system, not the database server. Even though the data might be encrypted through EFS, backups made of the data through SQL Server would not be encrypted. You should not use cell-level encryption. With cell-level encryption, data is encrypted and decrypted at the individual cell level. When using cell-level encryption, you must modify the application to call encryption and decryption functions.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.7 Manage transparent data encryption.

References:
1. Database Encryption in SQL Server 2008 Enterprise Edition Click here for further information Microsoft Downloads, Microsoft Understanding Transparent Data Encryption (TDE) Click here for further information Microsoft TechNet, Microsoft

2.

Question 77 You maintain an instance of SQL Server 2008.

Question ID: flmMS_70-432-004

You have created multiple alerts designed to notify you by e-mail if various conditions occur. These include both event and performance condition alerts. While trying to correct an intermittent problem, you notice that you stop receiving event alert notifications. You continue to receive performance condition alert notifications. You force an event to verify this. You need to correct the problem so that you can receive event alert notifications. What should you do?

Drop and recreate your Operator object. Clear the Windows Application Event log.

Stop and restart the SQL Server Agent service. Clear the Windows System Event log.

Question 77 Explanation: You should clear the Windows Application Event log. SQL Server Agent reads from the Windows Application Event log to generate SQL Server Agent alerts. If the log is full, Windows cannot write events to the log. If the events are not written to the Application Event log, the SQL Server Agent alert is never generated. By clearing the log contents, Windows can write events to the Application Event log. Alternately, you can increase the size of the Application Event log. Another option is to configure the Application Event log to overwrite the oldest log entries, but this would result in losing log entries. You should not stop and restart the SQL Server Agent service. You know that the SQL Server Agent service is working because performance alerts are being generated. There is no reason to clear the Windows System Event log. The System Event log is not involved in the event alert process. You should not drop and recreate your Operator object. You know the problem is not with the Operator object because you receive notification for performance condition alerts.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.2 Manage SQL Server Agent alerts.

References:
1. Defining Alerts Click here for further information Microsoft TechNet, Microsoft How to: Create an Alert Using Severity Level (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft

2.

Question 78 You manage a database named SalesDB.

Question ID: rrMS_70-432-044

Users have reported performance problems when executing some operations during peak hours. You want to use SQL Server Profiler to analyze the cause of the problems. You have created and started a trace. However, you are having trouble locating long-running queries because of the large number of events. You need to limit the events included in the trace to long-running queries.

What should you do?

* Execute sp_trace_setfilter. * Stop the trace. * Execute sp_trace_setfilter. * Start the trace. * Stop the trace. * Execute sp_trace_setevent. * Start the trace. * Execute sp_trace_setevent.

Question 78 Explanation: You should take these steps: * Stop the trace. * Execute sp_trace_setfilter. * Start the trace. The sp_trace_setfilter stored procedure allows you to add a filter to the trace. A filter lets you define thresholds or values at which an event should be logged. In this example, you will set a threshold for the Duration column to indicate whether an event should be included in the trace. You need to stop the trace before adding a filter. You should not just execute sp_trace_setfilter. You need to stop a running trace before adding a filter to it. You should not execute sp_trace_setevent. The sp_trace_setevent stored procedure allows you to define the events that should be logged and the columns that should be included. It does not allow you to define a threshold at which an event should be logged. For example, you could use sp_trace_setevent to specify that a Transact-SQL batch completed event should be logged, but not to specify that only batches that have a duration longer than a specified value should be logged.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.3 Collect trace data by using SQL Server Profiler.

References:
1. sp_trace_setevent (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

sp_trace_setfilter (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Filtering a Trace Click here for further information Microsoft TechNet, Microsoft How to: Set a Trace Filter (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

3.

4.

Question 79 Question ID: flmMS_70-432-034 You install a default instance of Microsoft SQL Server 2008 on a computer running Windows Server 2008. The computer is a member server in an Active Directory domain. You specify a domain user account as the SQL Server service account. Every other Saturday, the database server is shut down for periodic maintenance. After six weeks of operation, the SQL Server service is unable to restart. You review the error logs and suspect that the problem is related to the service account. You need to verify whether or not the problem is related to the service account. You need correct the problem before start of business on Monday. What should you do first?

Use SQL Server Configuration Manager to configure Local System as the service account and restart SQL Server normally. Run: sqlservr -f Run: sqlservr -m Use SQL Server Management Studio to check the server instance properties.

Question 79 Explanation: You should use SQL Server Configuration Manager to configure Local System as the service account and restart SQL Server normally. There could be a problem with the service account that is keeping the account from being able to log on. It might be that the account has been reconfigured or that the password has expired or been changed. By configuring Local System as the service account and restarting, you can be relatively sure that the problem is related to the service account. You should not run sqlservr -f or sqlservr -m. With either of these, if there is a problem with the service account, the service will not be able to start. All you will do is verify that there is a problem without coming any closer to knowing if it is related to the service account.

Because the SQL Server service account cannot start, SQL Server Management Studio cannot connect to the service instance and you would not be able to view server properties.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.1 Identify SQL Server service problems.

References:
1. How to: Start an Instance of SQL Server (sqlservr.exe) Click here for further information Microsoft TechNet, Microsoft How to: Change the Service Startup Account for SQL Server (SQL Server Configuration Manager) Click here for further information Microsoft TechNet, Microsoft

2.

Question 80 Question ID: flmMS_70-432-035 You manage a default Microsoft SQL Server 2008 instance. The server includes a database named SalesData used to support a retail point-ofsale application. Users complain of system response problems when sales activity is especially heavy. You need to collect information about transaction locks at various times during the day. You want to generate a snapshot of lock activity when the information is collected. You need to collect the information manually so that you can base the collection times on current store activity. What should you do? (Each correct answer presents a complete solution. Choose two.)

Use SQL Trace. Use sp_lock. Use sys.dm_os_waiting_tasks. Use SQL Profiler. Use sys.dm_tran_locks. Use sys.dm_tran_active_snapshot_database_transactions.

procedure. Both provide lock activity, including a list of currently active locks when the data is retrieved. Microsoft recommends using sys.dm_tran_locks. Microsoft plans to remove sp_lock from future SQL Server versions. You should not use SQL Trace or SQL Profiler. Both can provide information about lock activity, but are used to collect data over time, not to provide a snapshot of current activity. You should not use sys.dm_os_waiting_tasks. This dynamic management view returns information about tasks that are waiting for resources, but does not return lock information. You should not use sys.dm_tran_active_snapshot_database_transactions. This dynamic management view reports information about active transactions, but not about active locks.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.2 Identify concurrency problems.

References:
1. Locking in the Database Engine Click here for further information Microsoft TechNet, Microsoft sys.dm_tran_locks (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.dm_tran_active_snapshot_database_transactions (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Tools for Performance Monitoring and Tuning Click here for further information Microsoft TechNet, Microsoft sys.dm_os_waiting_tasks (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
5 of 7

Screen Width:

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has

difficulty printing pages created for higher screen resolutions.

Bottom of Form

Question 81 Question ID: flmMS_70-432-030 You install a default instance of Microsoft SQL Server 2008 on a computer running Windows Server 2008. The computer is a member of an Active Directory domain. You specified the local system account as the database engine service account during installation. You need to change the database engine service account to a domain user account. You have already created and configured the user account. What should you do?

Use the sqlservr command. Use the sp_configure system stored procedure. Use SQL Server Configuration Manager. Use SQL Server Management Studio.

Question 81 Explanation: You should use SQL Server Configuration Manager. Configuration Manager lets you manage database engine properties, including the service account name and password. You can, if you want, configure a different service account for each configured service. You must restart the SQL Server service for the change to take effect. You should not use the sp_configure system stored procedure. You can use sp_configure to view and modify database engine configuration settings. These do not, however, include the service account. You should not use the sqlservr command. The sqlservr command is used to manually launch an instance of the SQL Server database engine. This lets you specify one-time startup options and causes the database engine to run as an application rather than a service. You should not use SQL Server Management Studio. Management Studio does let you view and modify select SQL Server properties, but the available properties do not include the service account.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective:

6.1 Identify SQL Server service problems.

References:
1. How to: Change the Service Startup Account for SQL Server (SQL Server Configuration Manager) Click here for further information Microsoft TechNet, Microsoft How to: Start an Instance of SQL Server (sqlservr.exe) Click here for further information Microsoft TechNet, Microsoft

2.

Question 82 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-069

You configure a SQL Server Agent job step to run an operating system command. The job step fails. However, Transact-SQL steps in the same job succeed. You need to determine whether the security context used to execute the step that failed has the necessary permissions. What should you do? (Each correct answer presents a complete solution. Choose two.)

Execute sp_enum_sqlagent_subsystems. Execute sp_enum_login_proxy. Execute sp_enum_proxy_for_subsystem. Execute sp_help_proxy. Execute sp_help_operator.

Question 82 Explanation: You should execute sp_enum_proxy_for_subsystem. The sp_enum_proxy_for_subsystem stored procedure allows you to determine which proxies have permission to access a specific subsystem. You could also obtain the information by executing sp_help_proxy. The sp_help_proxy stored procedure returns the same information as sp_enum_proxy_for_subsystem, in addition to the login used for each proxy. You should not execute sp_enum_sqlagent_subsystems. The sp_enum_sqlagent_subsystems stored procedure returns information about each subsystem, but does not return the proxies that have access to them. You should not execute sp_help_operator. An operator is an object used to perform notification, not a security context for running a subsystem. You should not execute sp_enum_login_proxy. The sp_enum_login_proxy stored procedure

returns a list of proxies and the login associated with each of them. It does not return information about the subsystems each proxy can access.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.3 Identify SQL Agent job execution problems.

References:
1. sp_help_proxy (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_enum_proxy_for_subsystem (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_enum_login_for_proxy (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_enum_sqlagent_subsystems (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_help_operator (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 83 Question ID: rrMS_70-432-015 You maintain a database named SalesDB. The database is configured for the Full recovery model. The database has two filegroups: PRIMARY and SalesSecondary. Database corruption occurs. You recover the database to standby mode from a device named SalesBackup. You verify that the restore was successful. You need to make the database available as quickly as possible. What command should you use?

RESTORE DATABASE SalesDB FILEGROUP PRIMARY RESTORE DATABASE SalesDB WITH NORECOVERY RESTORE DATABASE SalesDB FROM SalesBackup WITH RECOVERY RESTORE DATABASE SalesDB WITH RECOVERY

Question 83 Explanation: You should use the RESTORE DATABASE SalesDB WITH RECOVERY command. You need to recover a database that has already been restored. To do so, you must specify the RECOVERY option without specifying a backup device. You should not use the RESTORE DATABASE SalesDB WITH NORECOVERY command. You use the NORECOVERY option to keep the database offline after a restore. You should not use the RESTORE DATABASE SalesDB FROM SalesBackup WITH RECOVERY. If you specify a backup device, the database will be restored and recovered. You should not use the RESTORE DATABASE SalesDB FILEGROUP PRIMARY. This command will restore only the PRIMARY filegroup. It will not make the database available.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.2 Restore databases.

References:
1. Recovering a Database Without Restoring Data Click here for further information Microsoft TechNet, Microsoft

Question 84 Question ID: flmMS_70-432-023 You are the administrator for a default instance of Microsoft SQL Server 2008. The instance includes a database named Inventory. The Inventory database includes a table named currentSKUs that is in the Inv schema. The currentSKUs table contains several thousand rows. You need to move currentSKUs to the POSResource schema. The POSResource schema already exists. You need to accomplish this with minimal administrator effort. What should you do?

Use ALTER TABLE. Use ALTER SCHEMA. Use ALTER DATABASE. Use DROP TABLE and CREATE TABLE.

Question 84 Explanation: You should use ALTER SCHEMA. The ALTER SCHEMA command lets you move an object to a different schema. In this situation, you would run: ALTER SCHEMA POSResource TRANSFER Inv.currentSKUs In effect, you are modifying the POSResource by transferring the currentSKUs table into the schema. When you do this, any permissions associated with currentSKUs will be dropped, so you may need to reassign any necessary permissions. You should not use DROP TABLE and CREATE TABLE. This works, but requires more effort. You need to export the contents of the table, drop and recreate the table, and then import the data back into the table. You should not use ALTER TABLE. You cannot change the schema by modifying the table. Transferring to a different schema is a schema modification, not a modification of the object being transferred. You should not use ALTER DATABASE. You cannot use this command to move a table from one schema to another schema. You can use the ALTER DATABASE command to add, remove, and modify the attributes for the database's files and filegroups; and to modify a database's options, including the options related to database mirroring and database compatibility levels.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.5 Manage schema permissions and object permissions.

References:
1. ALTER TABLE (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft SQL Server 2008 Security Overview for Database Administrators Click here for further information Microsoft Downloads, Microsoft ALTER SCHEMA (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 85 You manage a server running SQL Server 2008. The power fails. You restart the server.

Question ID: rrMS_70-432-019

You need to check for torn pages in the SalesDB. The check must complete as quickly as

possible. What should you do?

Execute DBCC CHECKDB SalesDB WITH DATA_PURITY. Execute DBCC CHECKDB SalesDB WITH PHYSICAL_ONLY. Execute DBCC CHECKDB SalesDB WITH ESTIMATEONLY. Execute DBCC CHECKDB SalesDB REPAIR_FAST.

Question 85 Explanation: You should execute DBCC CHECKDB SalesDB WITH PHYSICAL_ONLY. DBCC CHECKDB checks all the tables in the database. By specifying PHYSICAL_ONLY, you cause DBCC to check only the physical structure of the database, which causes the command to execute more quickly. Torn pages are detected when PHYSICAL_ONLY is specified. You should not execute DBCC CHECKDB SalesDB REPAIR_FAST. The REPAIR_FAST option is provided for backward compatibility and has no effect in SQL Server 2008. You should not execute DBCC CHECKDB SalesDB WITH ESTIMATEONLY. When you run DBCC CHECKDB with the ESTIMATEONLY option, you cause DBCC to report how much tempdb space will be required. A consistency check is not performed. You should not execute DBCC CHECKDB SalesDB WITH DATA_PURITY. In earlier versions of SQL Server, you had to specify DATA_PURITY to cause column values to be verified against the data type of the column. This option does not need to be specified in SQL Server 2008 because this check is performed unless PHYSICAL_ONLY is specified.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.5 Maintain database integrity.

References:
1. DBCC CHECKDB (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

Question 86 Question ID: flmMS_70-432-053 You support a default instance of SQL Server 2008. You are implementing full-text search for textual help files stored in a database table.

You want to ensure that the phrase "Refer to online help for more information" is ignored during full-text search. What should you do?

Identify the individual words in the phrase as stopwords. Create a noise-word file for the entire phrase. Create a stoplist for the entire phrase. Define a full-text search filter.

Question 86 Explanation: You should create a stoplist for the entire phrase. A stoplist is a list of words and word positions in the phrase. In this example, the words would be listed as: Word Position Refer 1 to 2 online 3 help 4 for 5 more 6 information 7 Both the words and their position are significant in a stop list. This will not cause the individual words to be ignored in a different context. You should not identify the individual words in the phrase as stopwords. Stopwords are omitted from the full-text index and ignored during searches. By default, commonly used words such as "a", "an", and "the" are included as stopwords. You can modify the default stoplist to add words. However, you should not add words that can have significance to the search (such as "online" or "information") as individual stopwords. You should not define a full-text search filter. A full-text search filter is used when indexing documents stored in a varbinary, varbinary(max), image, or xml data type column. The filter is used to extract search text from the documents. You should not create a noise-word file for the entire phrase. Noise-word files are used with SQL Server 2005, but are not supported in SQL Server 2008. You can, however, convert existing noise-word files when migrating data from SQL Server 2005.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective:

1.6 Configure full-text indexing.

References:
1. Stopwords and Stoplists Click here for further information MSDN, Microsoft Getting Started with Full-Text Search Click here for further information MSDN, Microsoft

2.

Question 87 Question ID: rrMS_70-432-027 You manage several databases hosted on different instances of SQL Server 2008. Once a month you need to import a new Products table into the CustomerSales database. The column order for the source table is different than the column order for the destination table. You need to ensure that the following requirements are met: * Data must be stored in the data type designated by the destination table. * Data must be imported consistently each month. * Data must be imported by using bcp. You need to make necessary preparations to export and import the data. What should you do?

Generate an Extensible Markup Language (XML) format file. Generate an Extensible Markup Language (XML) Schema Definition (XSD) file. Generate a non-Extensible Markup Language (XML) format file. Generate an Extensible Stylesheet Language Transformation (XSLT) file.

Question 87 Explanation: You should generate an XML format file. The SQL Server 2008 Bulk Copy Program (bcp) supports both XML and non-XML format files. A format file is used to specify a different column order and data type mapping for bulk import and export operations. Only XML format files allow you to specify the data type for destination data. You should not generate a non-XML format file. A non-XML format file does not allow you to specify the data type for destination data. Also, you should use an XML format file for new development unless the source or destination cannot support XML format files.

You should not generate an XSLT file. An XSLT file specifies rules for transforming data between two XML structures. It is used during bulk export or bulk import with bcp.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.1 Import and export data.

References:
1. bcp Utility Click here for further information Microsoft TechNet, Microsoft Understanding XML Format Files Click here for further information Microsoft TechNet, Microsoft Introduction to Format Files Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 88 Question ID: flmMS_70-432-021 You are configuring an instance of Microsoft SQL Server 2008. You want to configure support for an Inventory control application. The application requires three databases named Inventory, Sales, and PointOfSaleSupport. The application has not yet gone live. The server hosts other user databases in addition to these three. For the application to work properly, you need to establish ownership chains among the Inventory, Sales, and PointOfSaleSupport databases. The databases are already loaded with initial data. You need to keep the effort required to implement your solution to a minimum. The solution should have minimal impact on ongoing database operations. Your solution must not impact the security of other databases hosted on the server. What should you do?

Use SQL Server Management Studio. Use ALTER DATABASE. Use DROP DATABASE and CREATE DATABASE. Use sp_configure.

Question 88 Explanation: You should use ALTER DATABASE to set the DB_CHAINING option for Inventory, Sales, and PointOfSaleSupport. This will enable each database to be used as a source or destination for cross-database ownership chaining, but does not make any changes to the remaining user databases. This command will result in minimal interruption to normal operations, if any. You should not use SQL Server Management Studio. You can use the server properties to enable or disable cross-database ownership chaining for all databases. To manage individual databases, you must set cross-database ownership chaining to off at the server level. With cross-database ownership chaining set off at the server level, you cannot enable cross-database ownership chaining through the database properties in SQL Server Management Studio. You should not use sp_configure. The sp_configure stored procedure can be used to enable or disable cross-database ownership chaining for all databases through the cross db ownership chaining option. Set the option to 0 to disable and 1 to enable. It is set to 0 by default. You should not use DROP DATABASE and CREATE DATABASE. While it is possible to enable crossdatabase ownership chaining when you create a database, this would force you to reload the initial data into the databases, resulting in more work than necessary.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.4 Manage database permissions.

References:
1. Setting Database Options Click here for further information Microsoft TechNet, Microsoft cross db ownership chaining Option Click here for further information Microsoft TechNet, Microsoft Ownership Chains Click here for further information Microsoft TechNet, Microsoft Server Properties (Security Page) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 89 Question ID: rrMS_70-432-031 You manage a database named OrdersDB. OrdersDB is hosted on an instance of SQL Server 2008. The OrdersDB database has a table named Orders, which is partitioned on the OrderDate column by using the PFOrderDate function. The database also has a table

named OrderArchives. OrderArchives is also partitioned on the OrderDate column by using the PFOrderArchive function. OrderArchives currently has two partitions: the partition that contains the data and an empty partition. The Orders table has a nonclustered index on CustomerID and State. The OrderArchives table has a nonclustered index on State only. Both tables have a clustered index on the OrderDate column. Both tables have an XML index on the OrderedItems column. You need to prepare to switch the data from Orders to OrderArchives. What should you do? (Each correct answer presents part of the solution. Choose two.)

Drop the nonclustered index on the CustomerID column. Disable the clustered index on both tables. Drop the XML index on the both tables. Drop the XML index on the source table only. Drop the XML index on the destination table only.

Question 89 Explanation: You should drop the nonclustered index on the CustomerID column. The tables must have the same indexes during the switch. Therefore, you must either drop the nonclustered index on the CustomerID column of the Orders table or add a nonclustered index on the CustomerID column of the OrderArchives table. You should also drop the XML index on the both tables. Neither table can have an XML index during the switch. You can recreate the XML index after the switch. You should not drop the clustered indexes on both tables. Clustered indexes are permitted during the switch as long as they are aligned with the partitions and the same on both tables. You should not drop the XML index on only the source or only the destination table. You must drop the XML index on both tables.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.2 Manage data partitions.

References:
1. Transferring Data Efficiently by Using Partition Switching Click here for further information Microsoft TechNet, Microsoft

Question 90 Question ID: flmMS_70-432-032 Your network includes two database server instances running Microsoft SQL Server 2005 on one computer and two instances running SQL Server 2008 on a second computer. Each computer runs a default instance and a named instance. SQL Server 2008 was configured with default connectivity settings. The SQL Server and SQL Server Agent services are configured to use Local System as the service account. Your company is developing a new custom database application that will need to access both SQL Server versions. You are working with in-house programmers to help identify and resolve any SQL Server problems that might arise. The programmers complain that any attempts to enumerate the SQL Server instances returns only the SQL Server 2005 instances. They can connect to the SQL Server 2008 instances, but must specify a port number when connecting to the SQL Server 2008 named instance. You need to ensure that server enumeration returns both SQL Server 2005 and SQL Server 2008 instances. Your solution should have minimal impact on network security. You should be able to maintain the solution with minimal direct interaction. What should you do?

Configure a SQL Server alias for the SQL Server 2008 instances. Configure each SQL Server 2008 instance to use a domain user account as its service account. Configure SQL Server Agent to start automatically on the SQL Server 2008 instances. Configure SQL Server Browser to start automatically on the SQL Server 2008 instances.

Question 90 Explanation: You should configure SQL Server Browser to start automatically on the SQL Server 2008 instances. SQL Server Browser service is necessary to generate an enumeration list for browsing available services. SQL Server Browser is also required if you want to be able to connect to a SQL Server 2008 named instance without having to specify the port number or pipe for the connection. There is no need to configure SQL Server Agent to start automatically on the SQL Server 2008 instances to solve this specific problem. SQL Server Agent is not involved in server instance enumeration. You should not configure each SQL Server 2008 instance to use a domain user account as its service account. The service account does not determine whether or not you are able to locate the instances when browsing for available instances. You should not configure a SQL Server alias for the SQL Server 2008 instances. A SQL Server

Server instance that listens to an alternate named pipe for connections.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.1 Identify SQL Server service problems.

References:
1. SQL Server Browser Service Click here for further information Microsoft TechNet, Microsoft Connecting Using the SQL Server Browser Service Click here for further information Microsoft TechNet, Microsoft

2.

Question 91 Question ID: flmMS_70-432-041 You manage an instance of Microsoft SQL Server 2008. You create a stored procedure that will run on an as-needed basis to clear up tables in the Accts database. You create user-defined messages that you will use to track the procedure's progress to make it easier to identify any potential problems. You need to have the stored procedure write user-defined messages to the Windows Event Viewer application log. The stored procedure should not return a message to the client that initiated the stored procedure. What should you do?

Use RAISERROR. Use SQL Server Agent alerts. Use xp_logevent. Use SQL Server Configuration Manager.

Question 91 Explanation: You should use xp_logevent. The xp_logevent extended stored procedure is used to write userdefined messages to the SQL Server log and Windows Event Viewer application log. You should not use SQL Server Configuration Manager. SQL Server Configuration Manager lets you manage SQL Server configuration parameters. You can use Configuration Manager to change

You should not use SQL Server Agent alerts. You can have SQL Server Agent alerts trigger in response to a user-defined message and write error information to the log, but this does not solve the problem of needed to raise the messages from within the stored procedure. You should not use RAISERROR. RAISERROR can be used to raise an error based on a userdefined message, but the message is returned to the client.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.4 Locate error information.

References:
1. RAISERROR (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Monitoring and Responding to Events Click here for further information Microsoft TechNet, Microsoft xp_logevent (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 92 You maintain a named instance of SQL Server 2008.

Question ID: flmMS_70-432-060

The database server is configured with SQL_Latin1_General_CP1_CI_AS as the default collation. You have created the Accounts and Sales databases using the default collation. You need to create a new database named QuebecSales. All data in the QuebecSales database should use the French_CI_AS collation. You need to accomplish this with minimal administrative effort. Your solution should add minimal ongoing management requirements. What should you do?

Change the default server collation to French_CI_AS and create QuebecSales. Install a named instance of SQL Server 2008 with French_CI_AS as the default collation and create QuebecSales in the new instance. Configure each table you create in QuebecSales to use French_CI_AS as its default collation. Create QuebecSales in the current instance and specify French_CI_AS as the database collation during creation.

Create QuebecSales using the default collation and specify French_CI_AS as the collation for each table column.

Question 92 Explanation: You should create QuebecSales in the current instance and specify French_CI_AS as the database collation during creation. The CREATE DATABASE command and SQL Server Management Studio allow you to specify a default collation for a database that differs from the server default collation. All tables created in the database will automatically use the database's default collation rather than the server's default collation. You should not install a named instance of SQL Server 2008 with French_CI_AS as the default collation and create QuebecSales in the new instance. This requires more effort than necessary and would increase the management overhead as you would have to maintain a second SQL Server instance. You should not change the default server collation to French_CI_AS and create QuebecSales. To change the default server collation, you must: * * * * * Export all user database data. Drop all user databases. Rebuild the master database with the French_CI_AS collation as the default collation. Recreate the database and database objects. Import database data.

Not only is the effort required to accomplish this excessive, it would leave you with all user databases configured with the French_CI_AS collation. You should not create QuebecSales using the default collation and specify French_CI_AS as the collation for each table column. Not only does this require more effort, there is a chance that you might forget to specify a different collation and create a column using the default database collation. You should not configure each table you create in QuebecSales to use French_CI_AS as its default collation. You cannot specify a collation for a table, but you can specify the collation of table columns.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.5 Manage collations.

References:
1. Setting and Changing the Database Collation Click here for further information MSDN, Microsoft Setting and Changing the Server Collation Click here for further information Microsoft TechNet, Microsoft

2.

3.

Setting and Changing the Column Collation Click here for further information Microsoft TechNet, Microsoft CREATE TABLE (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Supported Collations (SQL Server Compact) Click here for further information MSDN, Microsoft

4.

5.

Question 93 Question ID: flmMS_70-432-051 You support three named instances of Microsoft SQL Server 2008 which are running on the same computer. The instances are named Data1, Data2, and DataSec. Each instance was installed using default configuration settings. Each instance uses the NetworkService account as the database service account. You want client applications to be able to browse to locate Data1 and Data2, but not DataSec. What should you do?

Configure DataSec to use a non-standard TCP port number. Specify a different service account for DataSec. Use SQL Server Configuration Manager to hide the DataSec instance. Disable the SQL Server Browser service. Disable Named Pipes for DataSec.

Question 93 Explanation: You should use SQL Server Configuration Manager to hide the DataSec instance. In SQL Server Configuration Manager, open the Protocol properties for the instance. On the Flags tab, select Yes in the HideInstance property box. This will prevent the instance from appearing when a client application browses for available servers. You should not disable the SQL Server Browser service. This will prevent the client application from identifying any of the instances running on the computer. The SQL Server Browser service is required to locate named instances. You should not configure DataSec to use a non-standard TCP port number. This will not prevent the SQL Server Browser service from displaying the instance. You may want to do this, however,

installation configuration settings do not enable Named Pipes for network connections. You should not specify a different service account for DataSec. This does nothing to hide the instance from appearing in a SQL Server browser list.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.3 Configure SQL Server services.

References:
1. How to: Hide an Instance of SQL Server Database Engine Click here for further information MSDN, Microsoft SQL Server Browser Service Click here for further information MSDN, Microsoft Default SQL Server Network Configuration Click here for further information MSDN, Microsoft

2.

3.

Question 94 Question ID: rrMS_70-432-034 You manage a database that has a very large table without a clustered index. The table was created with page-level compression enabled. Data is added to the table by using the INSERT INTO statement and modified by using the UPDATE statement. A few months after creating the table, you realize that some pages are not compressed. You need to ensure that all data is compressed. What should you do?

Change the table to use row compression instead of page compression. Modify all INSERT queries to use the ROWLOCK option. Modify all INSERT queries to use the PAGLOCK option. Create a job that creates and drops a clustered index on the table.

INSERT or an INSERT INTO...WITH (TABLOCK) statement are compressed. To cause new pages to be added when executing other statements, you need to rebuild the heap. One way to do that is to create a clustered index, then drop it. You should not change the table to use row compression instead of page compression. Row compression is a subset of page compression. Using row compression will cause data to be stored based on the number of bytes required to store that data type. However, duplicate values in a page will not be consolidated. You should not modify all INSERT queries to use the PAGLOCK option or ROWLOCK option. Only INSERT statements with the TABLOCK option cause new pages to be compressed when executed against a heap. Also, it is usually not possible to modify all applications that perform queries to meet physical storage requirements.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.3 Implement data compression.

References:
1. Creating Compressed Tables and Indexes Click here for further information Microsoft TechNet, Microsoft Row Compression Implementation Click here for further information Microsoft TechNet, Microsoft

2.

Question 95 Question ID: flmMS_70-432-010 You create a database named Inventory on a computer running Microsoft SQL Server 2008. You create a name policy to require all tables in the database to begin with "Invtbl". You need to ensure that a table cannot be created that does not adhere to the naming policy. You need to set the evaluation mode for the naming policy. What should you do?

Configure the policy for On demand. Configure the policy for On schedule. Configure the policy for On change:log. Configure the policy for On change:prevent.

Question 95 Explanation: You should configure the policy for On change:prevent. This is an automated evaluation mode that uses a data definition language (DDL) trigger to prevent naming a table with a name that does not adhere to the naming policy. You should not configure the policy for On change:log. This is another automated evaluation mode. It does not prevent any type of change. Its purpose is to log an event when a change relevant to the policy is made. You should not configure the policy for On demand. An On demand policy evaluates the policy only when specified by the user. Unless specified by the user, the policy is not evaluated or enforced, so the users could specify table names that do not adhere to the policy. You should not configure the policy for On schedule. This is an automated evaluation mode that periodically evaluates the policy based on a schedule, but would not prevent creating tables that do not adhere to the naming policy.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.4 Implement the declarative management framework (DMF).

References:
1. Administering Servers by Using Policy-Based Management Click here for further information Microsoft TechNet, Microsoft Policy-Based Management Scenarios Click here for further information Microsoft TechNet, Microsoft Create the Finance Name Policy Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 96 Question ID: flmMS_70-432-046 You support two instances of Microsoft SQL Server 2008 running on different computers. The instances are configured as a failover cluster. You need to add a third node to the failover cluster. You need to minimize the administrative effort to do this. What should you do?

Use sp_configure. Use SQL Server Configuration Manager. Use SQL Server Management Studio. Use SQL Server 2008 setup.

Question 96 Explanation: You should use SQL Server 2008 setup. You must run setup to configure a SQL Server instance as a node in a failover cluster. Select to add a node and select the destination cluster. You would also use setup to remove a node from an existing cluster. You should not use SQL Server Management Studio. Management Studio is a general management studio that lets you manage most aspects of SQL Server. However, it does not let you set up failover clustering. You should not use SQL Server Configuration Manager or sp_configure. Both are used to view and manage SQL Server configuration properties. Membership in a failover cluster is not established through modifiable configuration settings. It must be done through the setup program.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.2 Implement a SQL Server clustered instance

References:
1. How to: Add or Remove Nodes in a SQL Server Failover Cluster (Setup) Click here for further information Microsoft TechNet, Microsoft How to: Create a New SQL Server Failover Cluster (Setup) Click here for further information Microsoft TechNet, Microsoft Getting Started with SQL Server 2008 Failover Clustering Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 97 Question ID: rrMS_70-432-043 You manage a production database named Sales on a server named SalesData. You plan to optimize the Sales database by using Database Engine Tuning Advisor. Your plan must allow you to offload the analysis to a test server. The analysis must provide the best possible recommendations for the production database. Your SQL Server login is named SalesDBAdmin and is a member of the db_owner role for the Sales database. The configuration of SalesData and the test server are shown in the exhibit.

You need to prepare the test server. What should you do? (Each correct answer presents part of the solution. Choose two.)

Install three processors in the test server. Upgrade the test server to SQL Server 2008 Enterprise. Create a RAID 5 volume on the test server. Install more RAM in the test server. Copy the Sales database to the test server. Create a login named SalesDBAdmin on the test server.

Question 97 Explanation: You should upgrade the test server to SQL Server 2008 Enterprise. The test server and the production server must be running the same edition of SQL Server 2008 to achieve accurate recommendations. If they are not running the same edition, only features available in the edition running on the test server will be used to optimize the configuration. You should also create a login named SalesDBAdmin on the test server. If the user running the analysis is not a member of sysadmin on the production server, the user will need an identical login on the test server. You should not install three processors in the test server. The Database Tuning Engine Advisor can create a hardware configuration profile based on the hardware of the production server and use that configuration to make recommendations. You should not install more RAM in the test server. The Database Tuning Engine Advisor can create a hardware configuration profile based on the hardware of the production server and use that configuration to make recommendations. You should not create a RAID 5 volume on the test server. The Database Tuning Engine Advisor can create a hardware configuration profile based on the hardware of the production server and use that configuration to make recommendations.

the test server.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.2 Use the Database Engine Tuning Advisor.

References:
1. Reducing the Production Server Tuning Load Click here for further information Microsoft TechNet, Microsoft Considerations for Using Test Servers Click here for further information Microsoft TechNet, Microsoft

2.

Question 98 Question ID: rrMS_70-432-050 You manage a very busy online transaction procession (OLTP) database. The database is configured for the full recovery model. Users report that they cannot make data modifications. You determine the reason is that the drive containing the log file is full. The server has an additional hard disk with available disk space. You need to resolve the problem without taking the database offline. Your solution must ensure that data can be backed up to the point of failure if a problem occurs. What should you do? (Each correct answer presents a complete solution. Choose two.)

Back up the transaction log. Change the recovery model to the simple recovery model. Move the log file to the disk with available disk space. Compress the volume that contains the log file. Add a log file to the database.

Question 98 Explanation: One way to resolve the problem is to add an additional log file to the database. You can add a log file without taking the database offline. When the first log file becomes filled, SQL Server will use

Another way to resolve the problem is to back up the transaction log. After the transaction log is backed up, inactive transactions will be truncated, freeing disk space. You should not move the transaction log file to a separate hard disk. You need to take the database offline before you can move the transaction log file. You should not compress the hard disk You should not store log files on a compressed hard disk. You should not change the recovery model to the simple recovery model. When using the simple recovery model, a transaction log is truncated as soon as a transaction becomes inactive. Therefore, transaction log backups become meaningless and you can only restore to the point of the last full or differential backup.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.3 Manage and configure databases.

References:
1. Backup Under the Simple Recovery Model Click here for further information Microsoft TechNet, Microsoft Troubleshooting a Full Transaction Log (Error 9002) Click here for further information Microsoft TechNet, Microsoft Adding and Deleting Data and Transaction Log Files Click here for further information Microsoft TechNet, Microsoft Moving User Databases Click here for further information Microsoft TechNet, Microsoft Why you shouldn't compress SQL Server data and log files Click here for further information MSDN, Microsoft

2.

3.

4.

5.

Question 99 Question ID: flmMS_70-432-050 You are supporting a Web-based electronic commerce application. Data for the application is hosted on multiple instances of Microsoft SQL Server 2008. You need to ensure that you can balance the load among the database instances. You need to ensure that changes made to any instance are replicated to all instances. Latency must be kept to a minimum. Incremental traffic relating to replication should also be kept to a minimum. Each change made to a database must be applied individually to other databases in the configuration. What should you do?

Configure peer-to-peer transactional replication. Configure snapshot replication. Configure transactional replication. Configure merge replication.

Question 99 Explanation: You should configure peer-to-peer transactional replication. Peer-to-peer transactional replication allows for load balancing among the nodes. Changes made to any replication node are replicated to all other nodes. The latency during peer-to-peer transactional replication is minimal. Incremental traffic is minimized because transactions are replicated between nodes as they occur. This also causes changes to be applied individually. You should not configure transactional replication. Transactional replication, unless configured with updating subscribers, does not support updates at the subscribers. Updates can be made to the publisher only. You should not configure merge replication. Merge replication copies changes between databases, not the transactions used to make the changes. Latency for merge replication is typically much longer than for peer-to-peer transactional replication. You should not configure snapshot replication. Snapshot replication copies all of the replicated data at once, not just changes. Snapshot replication should be used with databases that are seldom, if ever, updated.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.4 Implement replication.

References:
1. Selecting the Appropriate Type of Replication Click here for further information Microsoft TechNet, Microsoft Peer-to-Peer Transactional Replication Click here for further information Microsoft TechNet, Microsoft Transactional Replication Overview Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 100 Question ID: rrMS_70-432-042 You manage an instance of SQL Server 2008 with several databases. The instance uses Windows authentication. Users in the Developers group need to be able to analyze a workload created on the AppDev database by using Database Engine Tuning Advisor. The Database Engine Tuning Advisor has never been run on the instance of SQL Server. You need to configure SQL Server to allow members of the Developer group to analyze workloads. Your solution should grant the minimum necessary permissions. What should you do? (Each correct answer presents part of the solution. Choose two.)

Launch dtexec.exe as a member of the sysadmin fixed server role. Add the login associated with the Developers group to the db_accessadmin database role on AppDev. Launch dta.exe by using a member of the sysadmin fixed server role. Add the login associated with the Developers group to the processadmin fixed server role. Add the login associated with the Developers group to the db_owner database role on AppDev.

Question 100 Explanation: You should launch the Database Engine Tuning Advisor by using a member of the sysadmin fixed server role. The Database Engine Tuning Advisor must be initialized by a member of the sysadmin group. You can launch either the graphical user interface tool or dta.exe. You should also add the login associated with the Developers group to the db_owner database role on AppDev. After the Database Engine Tuning Advisor has been initialized, any user who is a member of the db_owner database role can analyze a workload for that database. You should not launch dtexec.exe as a member of the sysadmin fixed server role. The commandline version of the Database Engine Tuning Advisor is dta.exe, not dtexec.exe. The dtexec.exe utility is the Integration Service command-line utility. You should not add the login associated with the Developers group to the processadmin fixed server role. Members of the processadmin fixed server role can manage connections. This permission is not required to analyze a workload. You should not add the login associated with the Developers group to the db_accessadmin database role on AppDev. Members of the db_accessadmin database role can determine which logins have access to the database.

Objective:

List all questions for this objective

Optimizing SQL Server Performance

Sub-Objective: 7.2 Use the Database Engine Tuning Advisor.

References:
1. Permissions Required to Run Database Engine Tuning Advisor Click here for further information Microsoft TechNet, Microsoft Initializing Database Engine Tuning Advisor Click here for further information Microsoft TechNet, Microsoft

2.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
6 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 101 You manage an instance of SQL Server 2008.

Question ID: flmMS_70-432-057

The instance hosts three user databases named Accounts, SalesData, and Ops. You run a full backup of each database every weekend. You need to minimize the size of the backup file created when you run a full backup of SalesData. You do not want to compress the backups for Accounts or Ops. What should you do?

Configure row compression for all tables and indexes in SalesData. Configure page compression for all tables and indexes in SalesData. Use sp_configure to set the backup compression default for SalesData.

Create a SQL Server 2008 Integration Services (SSIS) Back Up Database task to back up SalesData.

Question 101 Explanation: You should create a SQL Server 2008 Integration Services (SSIS) Back Up Database task to back up SalesData. This will allow you to specify the compression factor when backing up the database. Other options for compressing the backup of a single database include: * Use the BACKUP command with the WITH COMPRESSION option. * Use the Backup utility and specify compression. * Use the Maintenance Plan Wizard to create a Backup task that compresses the backup. You should not configure page or row compression for the SalesData database tables. Page and row compression compress the data on the hard disk, but do not affect backups. You should not use sp_configure to set the backup compression default for SalesData. The sp_configure system stored procedure sets the backup compression default for the server (all databases), not just one database.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.3 Implement data compression.

References:
1. Creating Compressed Tables and Indexes Click here for further information MSDN, Microsoft Backup Compression (SQL Server) Click here for further information Microsoft TechNet, Microsoft

2.

Question 102 You manage an instance of SQL Server 2008.

Question ID: rrMS_70-432-073

You create a workload and use the Database Engine Tuning Advisor (DTA) to tune the workload. You notice that statements executed by the TempEmployee and DataEntryUser logins are not tuned. You need to tune these statements. Your solution should provide the best possible security. What should you do?

Add TempEmployee and DataEntryUser to the processadmin fixed server role. Run the Database Engine Tuning Advisor against the new workload. Delete the LoginName column and save the untuned events to a new workload file. Run the Database Engine Tuning Advisor against the new workload. Grant TempEmployee and DataEntryUser the SHOWPLAN permission. Run the Database Engine Tuning Advisor against the new workload. Enable impersonation on the TempEmployee and DataEntryUser logins. Run the Database Engine Tuning Advisor against the new workload.

Question 102 Explanation: You should delete the LoginName column and save the untuned events to a new workload file. Then, run DTA against the new workload. When the LoginName column exists, DTA impersonates the user when executing the statements. However, if the login does not have the SHOWPLAN permission, DTA will not have access to the execution plan and will not be able to make tuning recommendations. Therefore, you should delete the LoginName column and run DTA again. You should not grant TempEmployee and DataEntryUser the SHOWPLAN permission and run DTA against the new workload. Although doing so will allow the statements to be tuned, you will be granting unnecessary permissions to the logins. You should not add TempEmployee and DataEntryUser to the processadmin fixed server role and run DTA against the new workload. Membership in the processadmin fixed server role will give users permission to kill a process. It will not affect the ability of DTA to tune the queries. You should not enable impersonation on the TempEmployee and DataEntryUser logins and run DTA against the new workload. There is no need to enable impersonation on a login account. DTA is already impersonating the logins. The problem is that those logins do not have permission to view an execution plan.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.2 Use the Database Engine Tuning Advisor.

References:
1. How to: Create Workloads Click here for further information Microsoft TechNet, Microsoft

Question 103

Question ID: rrMS_70-432-001

You maintain several servers running SQL Server 2005. The servers are configured for merge replication. The replication roles are shown in the exhibit. You are planning to upgrade all four servers to SQL Server 2008 over a period of four months. You will upgrade one server each month. You need to identify the first step in the upgrade process. What should you do first?

Run the Snapshot Agent for each publication. Run the Merge Agent for each subscription. Upgrade SQL2. Upgrade SQL1.

Question 103 Explanation: You should upgrade SQL2 first. The distributor must be running a version that is later than or the same as the publisher for replication to succeed. You should not upgrade SQL1 first. The publisher must be running a version that is earlier than or the same as the distributor for replication to succeed. You should not run the Snapshot Agent for each publication. The Snapshot Agent must be run for each publication after upgrade, not before. You should not run the Merge Agent for each subscription. The Merge Agent must be run for each subscription after upgrade, not before.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.4 Configure additional SQL Server components.

References:
1. Considerations for Upgrading Replicated Databases

Click here for further information Microsoft TechNet, Microsoft

Question 104 You manage an instance of SQL Server.

Question ID: rrMS_70-432-068

You have configured a SQL Server Agent job to perform a set of routine maintenance tasks. You have configured each job step to log detailed information to a table. One of the job steps did not complete successfully. You need to view the detailed information logged by the job step. What should you do?

Execute sp_help_jobstep. Execute sp_help_jobactivity. Execute sp_help_jobhistory. Execute sp_help_jobsteplog.

Question 104 Explanation: You should execute sp_help_jobsteplog. The sp_help_jobsteplog stored procedure returns a results set that includes a column containing the information logged by each job step. You should not execute sp_help_jobstep. The sp_help_jobstep stored procedure lists information about each job step, including whether it succeeded or failed. It does not include the information logged by the step. You should not execute sp_help_jobactivity. The sp_help_jobactivity stored procedure lists information about the job activity for the current session. It does not report information about each step. You should not execute sp_help_jobhistory. The sp_help_jobhistory stored procedure is used to view information about jobs executed on multiple servers. It does not report information about each step.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.3 Identify SQL Agent job execution problems.

References:
1. sp_help_jobhistory (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_help_jobsteplog (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_help_jobstep (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_help_jobactivity (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 105 Question ID: flmMS_70-432-038 You manage a default Microsoft SQL Server 2008 instance. You use SQL Server Agent jobs to perform several management tasks based on regular schedules. You need to be able to review the results of the most recent runs of each of the SQL Server Agent jobs. You need to limit the number of rows that can be entered in the SQL Server Agent job log for any one job. What should you do?

Use SQL Server Configuration Manager to modify the database engine configuration. Use SQL Server Management Studio to modify properties for each of the SQL Server Agent jobs. Use sp_configure to modify the database engine configuration. Use SQL Server Management Studio to modify SQL Server Agent properties.

Question 105 Explanation: You should use SQL Server Management Studio to modify SQL Server Agent properties. The SQL Server Agent properties let you set the maximum size of the log and the maximum number of rows entered for each job. You should not use SQL Server Configuration Manager or sp_configure to modify the database engine configuration. The job log is not controlled through database engine configuration settings. You should not use SQL Server Management Studio to modify properties for each of the SQL Server Agent jobs. The maximum number of rows entered for any job is set through the SQL Server Agent properties, not the job properties.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.3 Identify SQL Agent job execution problems.

References:
1. SQL Server Agent Properties (History Page) Click here for further information Microsoft TechNet, Microsoft How to: View Job Activity (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Monitoring Job Activity Click here for further information Microsoft TechNet, Microsoft SQL Server Configuration Manager Click here for further information Microsoft TechNet, Microsoft Setting Server Configuration Options Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 106 Question ID: rrMS_70-432-017 You maintain a database named SalesDB. SalesDB is located on an instance of SQL Server 2005. You are planning to decommission the server where SalesDB is located. You need to move SalesDB to a server running SQL Server 2008. What should you do?

* Detach SalesDB from the old server. * Move the files to the new server. * Attach SalesDB on the new server. * Shut down the SQL Server service on the old server. * Move the files to the new server. * Execute ALTER DATABASE with the MOVE option on the new server. * * * * Execute ALTER DATABASE with the MOVE option on the old server. Shut down the SQL Server service on both servers. Move the files to the new server. Start the SQL Server service on both servers.

* Copy the files to the new server.

* Detach SalesDB from the old server. * Attach SalesDB on the new server.

Question 106 Explanation: You should take these steps: * Detach SalesDB from the old server. * Move the files to the new server. * Attach SalesDB on the new server. When moving a database to a different instance of SQL Server, you need to use either detach and attach or backup and restore. You need to detach the database before moving the files because the files are in use until the database is detached. You should not take these steps: * Copy the files to the new server. * Detach SalesDB from the old server. * Attach SalesDB on the new server. You need to detach the database before copying the files because the files are in use until the database is detached. You should not take these steps: * Shut down the SQL Server service on the old server. * Move the files to the new server. * Execute ALTER DATABASE with the MOVE option on the new server. You cannot use ALTER DATABASE to move a database between SQL Server instances. You can only use ALTER DATABASE to move database files to a different location on the same instance. You should not take these steps: * * * * Execute ALTER DATABASE with the MOVE option on the old server. Shut down the SQL Server service on both servers. Move the files to the new server. Start the SQL Server service on both servers.

You cannot use ALTER DATABASE to move a database between SQL Server instances. You can only use ALTER DATABASE to move database files to a different location on the same instance. Also, if you were moving the files to a new location on the same instance, you would move the files before running ALTER DATABASE.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.3 Manage and configure databases.

References:
1. Detaching and Attaching Databases Click here for further information Microsoft TechNet, Microsoft Moving User Databases Click here for further information Microsoft TechNet, Microsoft

2.

Question 107 Question ID: rrMS_70-432-009 You manage a database server running SQL Server 2008. The server is configured for Windows authentication. A stored procedure in the AccountDB database calls sp_send_dbmail to send an email. The procedure sends mail successfully when you execute it. Jane attempts to execute the stored procedure and receives the following error: Permission denied on sp_send_dbmail You need to enable Jane to execute the stored procedure. What should you do?

Create a SQLMail profile for Jane. Add Jane to the DatabaseMailUserRole database role in AccountDB. Create a Database Mail profile for Jane. Add Jane to the DatabaseMailUserRole database role in msdb.

Question 107 Explanation: You should add Jane to the DatabaseMailUserRole database role in msdb. Only database users who are members of the DatabaseMailUserRole in the msdb database can execute sp_send_dbmail. You should not add Jane to the DatabaseMailUserRole database role in AccountDB. The msdb database stores Database Mail configuration values and stored procedures. The DatabaseMailUserRole is a database role in the msdb database. You should not create a Database Mail profile for Jane. Each user who calls sp_send_dbmail does not require a separate Database Mail profile. A Database Mail profile is used to identify e-mail server accounts that should be used to send mail. A Database Mail profile can be associated with one or more Database Mail accounts. You should not create a SQLMail profile for Jane. SQLMail and Database Mail are two separate features. The sp_send_dbmail stored procedure uses Database Mail, not SQL Mail. Furthermore, SQL Mail has been deprecated.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.5 Implement database mail.

References:
1. Troubleshooting Database Mail: Permission denied on sp_send_dbmail Click here for further information Microsoft TechNet, Microsoft Planning for Database Mail Click here for further information Microsoft TechNet, Microsoft Database Mail Profiles Click here for further information Microsoft TechNet, Microsoft SQL Mail Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 108 You manage an instance of SQL Server 2008.

Question ID: rrMS_70-432-070

A custom application includes stored procedures that raise errors of severity 10 through 16. You need to view the errors logged by the application. What should you do?

View the System log in Event Viewer. Query sys.messages. View the Application log in Event Viewer. Execute @@ERROR.

Question 108 Explanation: You should query sys.messages. All errors raised by stored procedures are logged in sys.messages, regardless of the error severity.

You should not view the System log in Event Viewer. Errors raised by SQL Server stored procedures are not logged to the System log. You should not view the Application log in Event Viewer. Only errors that have a severity level between 19 and 25 are logged to the Application log.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.4 Locate error information.

References:
1. Understanding Database Engine Errors Click here for further information Microsoft TechNet, Microsoft Database Engine Error Severities Click here for further information Microsoft TechNet, Microsoft sys.messages (Tranact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 109 You maintain database servers.

Question ID: rrMS_70-432-004

You are preparing to install SQL Server 2008 on a database server that is a member of the domain. The database server must support the following requirements: * Execute stored procedures that access a linked server. * Execute a job that performs routine maintenance tasks. * Execute a third-party application that runs under the Network Service account. You need to identify the service accounts you will use. You must select the most secure option. What should you do?

Use the same domain user account for SQL Server and SQL Server Agent services. Use different domain user accounts for SQL Server and SQL Server Agent services. Use the Local Service account for SQL Server. Use the Network Service account for SQL Server Agent.

Use the Network Service account for SQL Server. Use the Local Service account for SQL Server Agent.

Question 109 Explanation: You should use different domain user accounts for SQL Server and SQL Server Agent services. The SQL Server service needs to access a linked server. Therefore, you must use a domain user account that has been granted the necessary permissions. The SQL Server Agent service can run under a domain user account, the Network Service account, or the Local System account. However, using a domain user account provides the best security. It is recommended that you use a dedicated domain account for each service so that you have more control over the permissions required. The Network Service account is a shared account, as is Local System. The Local System account has more permissions than the SQL Server Agent service requires. You should not use the Network Service account for SQL Server and use the Local Service account for SQL Server Agent. SQL Server Agent cannot run under the Local Service account. The Local Service account is a restricted account and does not have sufficient permissions to perform SQL Server Agent tasks. You should not use the Network Service account for SQL Server. When accessing a linked server, you need to use a domain user account as the service account. You should not use the same domain user account for SQL Server and SQL Server Agent services. Using the same domain user account to run both SQL Server and SQL Server Agent services provides weaker security than using dedicated accounts for each service. You should not use the Local Service account for SQL Server and use the Network Service account for SQL Server Agent. The Local Service account does not provide sufficient permissions for SQL Server to access a linked server. Using the Network Service account to execute the SQL Server Agent service provides weaker security than using a dedicated domain user account.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.3 Configure SQL Server services.

References:
1. Setting Up Windows Service Accounts Click here for further information Microsoft TechNet, Microsoft

Question 110 You manage an instance of SQL Server.

Question ID: rrMS_70-432-060

Company security policy requires that every time an object is dropped from a database, an event is written to an event log.

You need to configure SQL Server to meet the requirements. Your solution should minimize the amount of information logged. What should you do?

Set the default trace enabled option on. Create a Data Manipulation Language (DML) trigger. Set the C2 audit mode option on. Create a Data Definition Language (DDL) trigger.

Question 110 Explanation: You should create a DDL trigger. A DDL trigger can be configured to execute in response to a user attempt to execute a DDL statement, such as a DROP statement. You should not set the C2 audit mode option on. When the C2 audit mode option is on, all database access attempts are logged to a file. The data is logged to a file in the Data subdirectory of the instance, not to the Event Viewer log. You should not set the default trace enabled option on. When the default trace enabled option is on, a large amount of information about database access is logged to a trace file. This can be viewed using SQL Server Profiler. Information is not logged to the Event Viewer log. Also, more information is logged than required. You should not create a Data Manipulation Language (DML) trigger. A DML trigger can be configured to execute before, after, or instead of a DML statement, such as an INSERT, UPDATE, or DELETE statement.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.6 Audit SQL Server instances.

References:
1. Understanding DDL Triggers Click here for further information MSDN, Microsoft

Question 111

Question ID: rrMS_70-432-033

You manage a database named Products. The Products table includes some products that are games. You need to store the number of players for the games. For example: 1 to 4 Players A Web application needs to be able to perform an efficient sort based on the number of players. Only about 10% of the products are games. Other products will not need data about the number of players. You need to implement the NumberOfPlayers column. What should you do?

Define NumberOfPlayers as a nullable column of type text. Create an XML index on the NumberOfPlayers column. Use row compression. Define NumberOfPlayers as a sparse column of type varchar. Create a filtered index on the NumberOfPlayers column. Define NumberOfPlayers as a nullable column of type varchar. Create a nonclustered index on the NumberOfPlayers column. Define NumberOfPlayers as a sparse column of type text. Add NumberOfPlayers to the clustered index.

Question 111 Explanation: You should define NumberOfPlayers as a sparse column of type varchar and create a filtered index on the NumberOfPlayers column. A sparse column is optimal when a large percentage of rows will store a null value. A filtered index can be created based on a sparse column to allow efficient sorting based on the data in the sparse column. You should not define NumberOfPlayers as a nullable column of type text, create an XML index on the NumberOfPlayers column, and use row compression. Creating a nullable column will not help conserve space. Row compression has no effect on a column of type text. An XML index is used to index XML columns, not text columns. You should not define NumberOfPlayers as a sparse column of type text and add NumberOfPlayers to the clustered index. You cannot create a sparse column of type text. You also cannot add a sparse column to a clustered index. You should not define NumberOfPlayers as a nullable column of type varchar and create a nonclustered index on the NumberOfPlayers column. This option will not conserve disk space or create an efficient index because 90% of the rows will have a null value in NumberOfPlayers. The nulls will use storage space in the table and the index.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.3 Implement data compression.

References:
1. Row Compression Implementation Click here for further information Microsoft TechNet, Microsoft Filtered Index Design Guidelines Click here for further information Microsoft TechNet, Microsoft Using Sparse Columns Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 112 Question ID: rrMS_70-432-056 You manage a server running SQL Server 2008. Your backup plan includes the following backups: * A weekly full backup of the master, model, and msdb databases * A nightly full backup of all user databases * Hourly transaction log backups of all user databases The master, model, and msdb databases are configured for the simple recovery model. The server fails and the SQL Server instance will not start. You need to recover SQL Server. What should you do first?

Restore the master database. Rebuild the master database. Backup up the tail of the master database transaction log. Restore the msdb database.

Question 112 Explanation: You should rebuild the master database. If SQL Server will not start, you cannot recover the

You should not restore the master database. You must be able to start SQL Server to restore a database, including the master database. You should not restore the msdb database. You must be able to start SQL Server to restore a database, including the msdb database. Also, the msdb database stores SQL Server Agent objects, such as jobs, operators, and alerts. It is not required to start SQL Server. You should not backup up the tail of the master database transaction log, so the transaction log is truncated each time a change is committed. Also, you cannot backup a transaction log unless you can start SQL Server.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.5 Back up a SQL Server environment.

References:
1. Considerations for Backing Up and Restoring System Databases Click here for further information MSDN, Microsoft

Question 113 Question ID: rrMS_70-432-032 You manage a database hosted on an instance of SQL Server 2008. The database has a table named ProductSpecs. The ProductSpecs table is shown in the exhibit. The ProductID can have between three and 10 characters. A number of products have the same measurement in one or more dimensions. For example, nearly 100 products have either a height or width of 10 inches. A clustered index is created on the ProductID column. The table has a very large number of rows. You want to reduce the amount of storage space required for the ProductSpecs table. You need to choose the best compression option. What should you do?

Define all columns as sparse columns. Use page compression. Define ProductID as a sparse column. Use row compression.

Question 113 Explanation: You should use page compression. Page compression first uses row compression to compress a row of data. If multiple rows are contained on a page, it also uses dictionary compression for multiple instances of the same values. Because there are duplicate values in many of the fields, dictionary compression will help conserve space. You should not use row compression. Row compression uses the smallest number of bytes to store a specific value. For example, the number 10 would be stored in a single byte. However, it is a subset of page compression, so you would not get the added savings of combining instances of a duplicate value. You should not use sparse columns. Sparse columns help conserve space for columns that allow nulls. All columns are required, so none allow nulls.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.3 Implement data compression.

References:
1. Row Compression Implementation Click here for further information Microsoft TechNet, Microsoft Page Compression Implementation Click here for further information Microsoft TechNet, Microsoft Using Sparse Columns Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 114 Question ID: flmMS_70-432-017 You are the administrator for a default instance of Microsoft SQL Server 2008. You create a database role named Inv_Special_Developers. Role members must be able to back up and restore the Inventory database and its transaction log. If a user is removed from the Inv_Special_Developers role, the user should no longer be able to back up and restore the database or transaction log unless permission is explicitly granted to the user or through another role. The requirement to be able to back up and restore the database and log may change in the future and would then have to be removed from the role permissions. You need to configure this permission requirement. Administrative effort to meet this requirement and maintain user permissions should be kept to a minimum. What should you do?

Add the db_backupoperator role as a member of the Inv_Special_Developers role. Grant the BACKUP DATABASE (BADB) and BACKUP LOG (BALO) permissions to each role member. Add each Inv_SpecialDevelopers member as a member of db_backupoperator role. Grant the BACKUP DATABASE (BADB) and BACKUP LOG (BALO) permissions to Inv_Special_Developers. Add the Inv_Special_Developers role as a member of the db_backupoperator role.

Question 114 Explanation: You should add the Inv_Special_Developers role as a member of the db_backupoperator role. Members of the Inv_Special_Developers role would inherit permissions granted by the db_backupoperator role, which gives the members the ability to back up and restore the database. When and if this permission is no longer required, you can remove the Inv_Special_Developers role from the db_backupoperator role. If a user is removed from the Inv_Special_Developers role, the user will no longer have the permission necessary to back up and restore the database and log, unless granted permission through membership in another role or granted explicitly to the user. You should not grant the BACKUP DATABASE (BADB) and BACKUP LOG (BALO) permissions to Inv_Special_Developers. This is more effort than necessary. Whenever possible, role membership should be used to manage permissions rather than granting explicit permissions. You should not grant the BACKUP DATABASE (BADB) and BACKUP LOG (BALO) permissions to each role member. This would require the most effort to configure and maintain the

You should not add the db_backupoperator role as a member of the Inv_Special_Operators role. You cannot add a fixed database role as a member of a custom role. You should not add each Inv_SpecialDevelopers member as a member of db_backupoperator role. It would take more effort than necessary to manage this solution. When you remove a user from Inv_Special_Developers, you need to remember to also remove the user from db_backupoperator.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.2 Manage users and database roles.

References:
1. Database-Level Roles Click here for further information Microsoft TechNet, Microsoft GRANT (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft GRANT Database Principal Permissions (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sys.database_permissions (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 115 Question ID: rrMS_70-432-016 You manage a database named ProductInfo. ProductInfo has the filegroups shown in the exhibit. The database is backed up according to the following schedule: * 2:00 A.M. - Full Backup * 10:00 A.M. through 5:00 P.M. - Transaction log backups every hour A file named OrderInfo in the ProductInfoB filegroup becomes corrupt at 10:55 A.M. You need to recover OrderInfo as quickly as possible. Your solution should minimize downtime for the rest of the database. What commands should you run?

RESTORE DATABASE ProductInfo FILEGROUP='ProductInfoB' FROM backup WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY RESTORE DATABASE ProductInfo FILE= 'OrderInfo' FROM backup WITH NORECOVERY BACKUP LOG ProductInfo TO log_back WITH COPY_ONLY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY RESTORE DATABASE ProductInfo FILEGROUP='ProductInfoB' FROM backup WITH RECOVERY BACKUP LOG ProductInfo TO log_back WITH COPY_ONLY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY RESTORE DATABASE ProductInfo FILE='OrderInfo' FROM backup WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY

Question 115 Explanation: You should use the following commands: RESTORE DATABASE ProductInfo FILE= 'OrderInfo' FROM backup WITH NORECOVERY BACKUP LOG ProductInfo TO log_back WITH COPY_ONLY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY You should first restore the file from the backup using the NORECOVERY option. This restores the file's data from the last full backup. Next, you should back up the transaction log using the COPY_ONLY option. The COPY_ONLY option causes the log to be backed up without affecting the backup sequence. This backup of the log will be applied to ensure point-in-time recovery. Next, you need to restore the logs in the order in which they were backed up. When you restore the last log, you use the RECOVERY option to initiate recovery and bring the file online. You should not use the following commands: RESTORE DATABASE ProductInfo FILE='OrderInfo' FROM backup WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY You need to back up the transaction log to ensure that the database can be restored to the

RESTORE DATABASE ProductInfo FILEGROUP='ProductInfoB' FROM backup WITH RECOVERY BACKUP LOG ProductInfo TO log_back WITH COPY_ONLY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY It is not necessary to restore the entire filegroup. You can restore only a single file to make the data available more quickly. Also, you should only specify the RECOVERY option when restoring the last transaction log. You should not use the following commands: RESTORE DATABASE ProductInfo FILEGROUP='ProductInfoB' FROM backup WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH NORECOVERY RESTORE LOG ProductInfo FROM log_back WITH RECOVERY It is not necessary to restore the entire filegroup. You can restore only a single file to make the data available more quickly. Also, you need to back up the transaction log to ensure that the database can be restored to the point of failure.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.2 Restore databases.

References:
1. Example: Online Restore of a Read/Write File (Full Recovery Model) Click here for further information Microsoft TechNet, Microsoft RESTORE (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 116 Question ID: rrMS_70-432-080 Your company has 15 locations. Each location has a server running SQL Server 2008. Users at each location need to be able to access the Products table in the Sales database. The Products table has over 40,000 records. Approximately half of them are modified each time the price list is changed using a bulk update operation. The price list is changed every Friday night. You need to choose the most optimal type of replication. What should you do?

Use snapshot replication. Use transactional replication with updating subscribers. Use transactional replication. Use merge replication.

Question 116 Explanation: You should use snapshot replication. Snapshot replication is an appropriate choice when data changes rarely using bulk updates. You should not use merge replication. Merge replication is the most appropriate choice when data can be partitioned between locations. You should not use transactional replication. Transactional replication is the most appropriate choice when each server needs to be update with as little latency as possible. You should not use transactional replication with updating subscribers. Transactional replication with updating subscribers is used when data modifications can occur at all servers. This does not usually occur on subscribers, and therefore needs to be propagated to the other servers with as little latency as possible.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.4 Implement replication.

References:
1. Snapshot Replication Overview Click here for further information MSDN, Microsoft Types of Replication Overview Click here for further information MSDN, Microsoft Selecting the Appropriate Type of Replication Click here for further information MSDN, Microsoft

2.

3.

Question 117 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-071

The server is configured to run several routine maintenance jobs.

You need to determine whether any jobs did not complete due to insufficient resources. What command should you use?

EXEC dbo.sp_help_jobactivity @sql_severity = 17, @run_status = 0, @mode = N'FULL' ; EXEC dbo.sp_help_jobactivity @sql_severity = 17, @run_status = 'Failed', @mode = N'FULL' ; EXEC dbo.sp_help_jobhistory @sql_severity = 17, @run_status = 'Failed', @mode = N'FULL' ; EXEC dbo.sp_help_jobhistory @sql_severity = 17, @run_status = 0, @mode = N'FULL' ;

Question 117 Explanation: You should use the following command: EXEC dbo.sp_help_jobhistory @sql_severity = 17, @run_status = 0, @mode = N'FULL' ; The sp_help_jobhistory stored procedure allows you to query status information on a job that meets specific criteria. In this case, you need to view jobs with a SQL Server error severity level of 17 because that is the level that indicates that a statement could not execute because it could not access the necessary resources. A run status of 0 is used to indicate a failed job. You should not use the following command: EXEC dbo.sp_help_jobactivity @sql_severity = 17, @run_status = 0, @mode = N'FULL' ; Or EXEC dbo.sp_help_jobactivity @sql_severity = 17, @run_status = 'Failed', @mode = N'FULL' ; The sp_help_jobactivity stored procedure does not allow you to filter based on the severity of the message or the status of the job. You should not use the following command: EXEC dbo.sp_help_jobhistory @sql_severity = 17, @run_status = 'Failed', @mode = N'FULL' ; The run_status variable accepts an integer, not a string.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server

Sub-Objective: 6.4 Locate error information.

References:
1. sp_help_jobactivity (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_help_jobhistory (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

Question 118 Question ID: rrMS_70-432-038 You manage a database named CustomerAccounts. The database is configured to use the Latin1_General_CS_AI collation. The InternationalCustomers table is defined as shown in the exhibit. You need to ensure that queries that sort the data based on Country or Name return an accent-sensitive result set. Your solution must not affect performance or database functionality more than necessary. What should you do?

* Create a new table by using the Latin1_General_CS_AS collation for Country and Name. * Import the data to the new table. * Drop the existing table. * Drop IX_ByCountry and IX_ByName. * Change the collation on Country and Name columns to Latin1_General_CS_AS. * Recreate IX_ByCountry and IX_ByName. * * * * Drop all indexes. Remove the foreign key constraint. Change the collation for the InternationalCustomers table to Latin1_General_CS_AS. Recreate all indexes.

* Create the foreign key constraint. * Drop all indexes. * Change the collation for the InternationalCustomers table to Latin1_General_CS_AS. * Recreate all indexes.

Question 118 Explanation: You should take these steps: * Drop IX_ByCountry and IX_ByName. * Change the collation on Country and Name columns to Latin1_General_CS_AS. * Recreate IX_ByCountry and IX_ByName. You can change the collation for a column on an existing table. However, you must first drop any indexes or constraints that reference that column. In this example, you would need to drop the IX_ByCountry and IX_ByName indexes. You should not take these steps: * Drop all indexes. * Change the collation for the InternationalCustomers table to Latin1_General_CS_AS. * Recreate all indexes. You cannot set a collation for a table. Tables inherit their collation from the database, unless a collation is explicitly set on a column. You should not take these steps: * * * * * Drop all indexes. Remove the foreign key constraint. Change the collation for the InternationalCustomers table to Latin1_General_CS_AS. Recreate all indexes. Create the foreign key constraint.

You cannot set a collation for a table. Tables inherit their collation from the database, unless a collation is explicitly set on a column. You should not take these steps: * Create a new table by using the Latin1_General_CS_AS collation for Country and Name. * Import the data to the new table. * Drop the existing table. Although you can set the collation for a column during table creation, this set of steps does not meet the availability requirement because the table will be unavailable while the data is being imported. Also, the steps do not include renaming the table to InternationalCustomers, so existing applications will no longer work.

Objective:

List all questions for this objective

Performing Data Management Tasks

Sub-Objective: 5.5 Manage collations.

References:
1. Setting and Changing the Column Collation Click here for further information Microsoft TechNet, Microsoft

Question 119 Question ID: flmMS_70-432-056 You manage a SQL Server 2008 instance. The SalesData database includes a table named Order. The table is partitioned by date as follows: * All orders on or before December 31, 2002 * All orders between January 1, 2003 and December 31, 2004 * All orders on or after January 1, 2006 You need to change the partitioning so that records are partitioned as follows: * * * * All All All All orders orders orders orders on or before December 31, 2002 between January 1, 2003 and December 31, 2004 between January 1, 2006 and December 31, 2007 on or after January 1, 2008

You need to minimize the administrative effort needed to accomplish this. You have already identified a filegroup to contain the new partition. What should you do?

Use CREATE PARTITION FUNCTION. Use ALTER PARTITION SCHEME. Use CREATE PARTITION SCHEME. Use ALTER PARTITION FUNCTION.

Question 119 Explanation: You should use ALTER PARTITION FUNCTION with SPLIT RANGE to add the new partition range. Assuming the partition function was named OrdersByDate, you could use the following statement: ALTER PARTITION FUNCTION OrdersByDate() {'20080101'} ALTER PARTITION FUNCTION also supports a MERGE RANGE parameter that allows you to

You should not use CREATE PARTITION FUNCTION. While this does allow you to create the partition function and partition boundaries, it does not allow you to change an existing partition function. In previous versions of SQL Server, you could use CREATE PARTITION FUNCTION. However, you would need to run DROP PARTITION FUNCTION to delete the existing partition function. You should not use ALTER PARTITION SCHEME. The partition scheme is used to associate filegroups with partitions. ALTER PARTITION SCHEME is used to modify the partition scheme. Because you have already identified a filegroup to contain the new partition, modifying the partition scheme would be an unnecessary step.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.2 Manage data partitions.

References:
1. Modifying Partitioned Tables and Indexes Click here for further information MSDN, Microsoft CREATE PARTITION FUNCTION (Transact-SQL) Click here for further information MSDN, Microsoft ALTER PARTITION FUNCTION (Transact-SQL) Click here for further information MSDN, Microsoft CREATE PARTITION SCHEME (Transact-SQL) Click here for further information MSDN, Microsoft ALTER PARTITION SCHEME (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 120 Question ID: flmMS_70-432-048 You manage multiple instances of Microsoft SQL Server 2008. Your network is configured as a main office and remote branch offices connected through routed wide area links. Each office hosts at least one instance of SQL Server 2008. The Acctg and Inventory databases are hosted on difference instances of SQL Server 2008 running in the main office. You need to place a synchronized backup copy of these databases on a database server in each of the branch offices. Your solution needs to meet the following criteria: * The backup instances of the databases should be available for reporting purposes, but users should not be able to directly change the data in the databases. * Latency between the backup copies and the primary copies should be kept to a

minimum. * You need to be able to fail over to one of the backup copies in case the server or hard disk supporting either of the databases fails. * The effort necessary to configure and maintain the solution should be kept to a minimum. What should you do?

Use log shipping. Use database mirroring. Use replication. Use failover clustering.

Question 120 Explanation: You should use log shipping. Log shipping lets you specify secondary databases on multiple secondary servers. You can also configure secondary databases for multiple databases, even from multiple primary servers, on the same secondary server. This would let you host copies of both databases on a database server in each of the remote offices. By default, transaction log backups are run every two minutes, so latency is kept to a minimum. If either primary database fails, you can choose to fail over to one of the secondary copies and reconfigure it as the primary database. Each instance runs on a separate computer that hosts its own copies of the databases. All of the SQL Server Agent jobs needed to support the configuration are created for you automatically when you deploy log shipping, so the effort needed is kept to a minimum. You should not use database mirroring. Database mirroring does not support multiple mirror copies of the primary database. You should not use failover clustering. All nodes share the same storage, so the database would be unavailable if the hard disk fails. You should not use replication. Replication takes more effort to configure than log shipping.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.3 Implement log shipping.

References:
1. How to: Enable Log Shipping (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Log Shipping Overview

2.

Click here for further information Microsoft TechNet, Microsoft 3. Database Mirroring and Log Shipping Click here for further information Microsoft TechNet, Microsoft High Availability Solutions Overview Click here for further information Microsoft TechNet, Microsoft

4.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Test Questions
Page
7 of 7

Screen Width: Bottom of Form

800x600

Page Length: 20 / 140

We recommend using the 640x480 setting if your printer has difficulty printing pages created for higher screen resolutions.

Question 121 Question ID: flmMS_70-432-047 You manage two default instances of Microsoft SQL Server 2008 on computers named MainServ and AltServ. You configure log shipping between the two servers for the database Inventory. The primary database is on MainServ and the secondary is on AltServ. You need to take MainServ offline to perform extensive maintenance. You need to minimize the interruption to normal operations while this maintenance takes place. You need to fail over to the secondary copy of the database. The primary copy is still available. What should you do first?

Apply any unapplied transaction log backups in the destination folder. Shut down the SQL Server service on MainServ. Stop the SQL Server Agent service on MainServ.

Copy any uncopied transaction log backups to the destination folder.

Question 121 Explanation: You should copy any uncopied transaction log backups to the destination folder. Before you can fail over to the secondary database, you must ensure that it is synchronized with the primary database. The first step in this is to copy any uncopied transaction log backups to the destination folder on the secondary server. You can then apply the transaction logs to the secondary server. You would then back up the primary database using the WITH NORECOVERY option, leaving it unavailable, and restore that backup to the secondary database. You should not apply any unapplied transaction log backups in the destination folder. Before you do this, you need to copy any uncopied backups from the shared backup folder to the secondary server's destination folder. You should not shut down the SQL Server service on MainServ. You need to back up any remaining changes in the transaction log so that you can fully synchronize the database instances before you could shut down the SQL Server service. You should not stop the SQL Server Agent service on MainServ. There is no need to stop the SQL Server Agent server when failing over to a secondary database.

Objective:

List all questions for this objective

Implementing High Availability Sub-Objective: 8.3 Implement log shipping.

References:
1. Failing Over to a Log Shipping Secondary Click here for further information Microsoft TechNet, Microsoft Log Shipping Overview Click here for further information Microsoft TechNet, Microsoft

2.

Question 122 Question ID: rrMS_70-432-051 You manage a server running SQL Server 2008. The server is configured to reorganize indexes nightly at 10 PM. Users report poor performance when accessing the database between 10 PM and midnight. You analyze server activity and find that traffic patterns are irregular. You need to modify the configuration so that index optimization affects users as little as possible.

What should you do?

Add a job step to set the recovery model to bulk-logged as the first job step. Change the job to use DBCC INDEXDEFRAG. Change the job to ALTER INDEX REBUILD WITH ONLINE=ON. Configure a CPU idle condition for the job.

Question 122 Explanation: You should configure a CPU idle condition for the job. The CPU idle condition allows you to define a threshold and a duration during which usage must be under the threshold before the job can be started, thus allowing the job to run during low traffic times. You should not change the job to rebuild the index instead of reorganizing the index. You should not change the job to ALTER INDEX WITH REBUILD ONLINE. Rebuilding the index drops and recreates the index. Therefore, using this command would cause a greater impact on performance. You should not change the job to use DBCC INDEXDEFRAG. The DBCC INDEXDEFRAG command reorganizes the index. Therefore, changing the job step to use DBCC INDEXDEFRAG would have no impact on performance. You should not set the recovery model to bulk-logged as the first job step. While this would reduce the size of the transaction log during bulk-logged operations, it would not improve performance.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.1 Manage SQL Server Agent jobs.

References:
1. ALTER INDEX (Transact-SQL) Click here for further information MSDN, Microsoft How to: Set CPU Idle Time and Duration (SQL Server Management Studio) Click here for further information MSDN, Microsoft Creating and Attaching Schedules to Jobs Click here for further information MSDN, Microsoft

2.

3.

Question 123 Question ID: flmMS_70-432-040 You manage an instance of Microsoft SQL Server 2008. You are attempting to troubleshoot an intermittent problem with the SQL Server Agent service. You need to collect detailed information about job execution. You need to write execution trace messages to the SQL Server Agent error log. What should you do?

Use xp_logevent. Use DBCC TRACEON. Use SQL Server Management Studio. Use sp_configure.

Question 123 Explanation: You should use SQL Server Management Studio. You can configure SQL Server Agent to write trace execution messages to the SQL Server Agent log through the SQL Server Agent properties. This will make the SQL Server Agent log much larger and should be used only when troubleshooting a SQL Server Agent problem. You should not use xp_logevent. The xp_logevent extended stored procedure is used to write user-defined messages to the SQL Server log and Windows Event viewer. You should not use DBCC TRACEON. DBCC TRACEON is used to turn on trace flags. If has nothing to do with writing trace messages to the SQL Server Agent log. You should not use sp_configure. The sp_configure system stored procedure is use to view and manage server configuration parameters. This does not include writing trace messages to the SQL Agent log.

Objective:

List all questions for this objective

Monitoring and Troubleshooting SQL Server Sub-Objective: 6.4 Locate error information.

References:
1. How to: Write Execution Trace Messages to the SQL Server Agent Error Log (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Using the SQL Server Agent Error Log

2.

Click here for further information Microsoft TechNet, Microsoft 3. DBCC TRACEON (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft xp_logevent (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

4.

Question 124 Question ID: rrMS_70-432-006 You maintain a server running the default instance of SQL Server 2008. Only the Database Engine service is installed. The SQL server is a member of the StayAndSleep domain. Your company wants to use Online Analytical Processing (OLAP) cubes to analyze business trends. The service will run under the OLAPSvc domain user account. The password is 123ABC%@. You need to modify the configuration of the server to allow OLAP cube processing. What should you do?

Execute the command Setup.exe /q /ACTION=Upgrade /FEATURES=AS /ASSVCACCOUNT="StayAndSleep\OLAPSvc" /ASVCPASSWORD="123ABC%@" /ASSYSADMINACCOUNTS="Administrator" Execute the command Setup.exe /q /ACTION=Upgrade /FEATURES=IS /INSTANCENAME=MSSQLSERVER /ISSVCACCOUNT=" StayAndSleep\OLAPSvc" /ISVCPASSWORD="123ABC%@" /ISSYSADMINACCOUNTS="Administrator" Execute the command Setup.exe /q /ACTION=Install /FEATURES=IS /ISSVCACCOUNT="StayAndSleep\OLAPSvc" /ISVCPASSWORD="123ABC%@" /ISSYSADMINACCOUNTS="Administrator" Execute the command Setup.exe /q /ACTION=Install /FEATURES=AS /INSTANCENAME=MSSQLSERVER /ASSVCACCOUNT="StayAndSleep\OLAPSvc" /ASVCPASSWORD="123ABC%@" /ASSYSADMINACCOUNTS="Administrator"

Question 124 Explanation: You should execute the command: Setup.exe /q /ACTION=Install /FEATURES=AS /INSTANCENAME=MSSQLSERVER /ASSVCACCOUNT="StayAndSleep\OLAPSvc" /ASVCPASSWORD="123ABC%@" /ASSYSADMINACCOUNTS="Administrator" You need to use the command-line Setup utility to install a feature on an existing instance. The Analysis Service (AS) feature provides OLAP cube processing capability. To install a

You should not execute the command: Setup.exe /q /ACTION=Upgrade /FEATURES=IS /INSTANCENAME=MSSQLSERVER /ISSVCACCOUNT=" StayAndSleep\OLAPSvc" /ISVCPASSWORD="123ABC%@" /ISSYSADMINACCOUNTS="Administrator" The Integration Service (IS) feature allows you to import data from and export data to other formats and database management systems. You do not use the Upgrade action when adding a feature to an existing instance. You use the Upgrade action when upgrading from an earlier version of SQL Server. You should not execute the command: Setup.exe /q /ACTION=Upgrade /FEATURES=AS /ASSVCACCOUNT="StayAndSleep\OLAPSvc" /ASVCPASSWORD="123ABC%@" /ASSYSADMINACCOUNTS="Administrator" The Upgrade action is used to upgrade from an earlier version of SQL Server. Also, you need to identify the instance name. You should not execute the command: Setup.exe /q /ACTION=Install /FEATURES=IS /ISSVCACCOUNT="StayAndSleep\OLAPSvc" /ISVCPASSWORD="123ABC%@" /ISSYSADMINACCOUNTS="Administrator" The IS feature is used to import and export data. It is not used to create and use OLAP cubes. Also, you need to identify the instance name.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.4 Configure additional SQL Server components.

References:
1. How to: Install SQL Server 2008 from the Command Prompt Click here for further information Microsoft TechNet, Microsoft

Question 125 Question ID: rrMS_70-432-054 You manage a server running SQL Server 2008. A declarative management framework (DMF) policy has been created to audit security settings for the server, including ensuring that SQLMail is not enabled. The policy's evaluation mode is set to On demand. You evaluate the policy and check the Event Viewer log. No violations entries appear.

You check the status of SQLMail and find that it is enabled. You need to ensure that events are logged to the Event Viewer if a policy violation exists. What should you do? (Each correct answer presents a complete solution. Choose two.)

Log on as a member of the securityadmins role and evaluate the policy. Change the evaluation mode to On change: log only. Log on as a member of sysadmin and evaluate the policy. Change the evaluation mode to On schedule. Log on as a member of the PolicyAdministratorRole role and evaluate the policy.

Question 125 Explanation: You should log on as a member of sysadmin and evaluate the policy. When a policy is evaluated manually, the user's security context is used. If the policy is evaluated by a user who does not have permission to write to Event Viewer logs, no events will be logged even if violations exist. Members of the sysadmin fixed server role have the necessary permission. You could also change the evaluation mode to On schedule. When the evaluation mode is set to On schedule, the policy is evaluated using the security context of the sysadmin role. You should not log on as a member of the PolicyAdministratorRole role and evaluate the policy. Members of the PolicyAdministratorRole role can create and modify policies. However, they do not have permission to write to the Event Viewer log. You should not change the evaluation mode to On change: log only. When the evaluation mode is set to On change, the current state is not evaluated. Instead, the configuration is monitored for a change that might violate policy. You should not log on as a member of the securityadmins role and evaluate the policy. Members of securityadmins can create and manage logins. They cannot write to the Event Viewer log.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.4 Implement the declarative management framework (DMF).

References:

1.

Administering Servers by Using Policy Management Click here for further information MSDN, Microsoft

Question 126 Question ID: flmMS_70-432-007 You manage a default instance of Microsoft SQL Server 2008. SQL Server Agent Mail is currently configured to use SQL Mail for sending e-mail notifications. SQL Server Agent is configured to start automatically any time you start the SQL Server Database Engine service. You create a private database mail profile. You use sp_send_dbmail to test the profile and verify that it can be used to send mail. You configure SQL Server Agent Mail to use Database Mail and enable and select the profile you created. After configuring SQL Server Agent Mail to use Database Mail, the SQL Server Agent no longer sends notifications to any operators. You need to correct the problem so that alert and job completion notification emails are sent to the designated operators. You need to have minimal impact on SQL Server operations. What should you do?

Create a public profile for the designated fail-safe operator. Restart the SQL Agent service. Create a private profile for each of the designated operators. Create a public database mail profile and configure SQL Server Agent Mail to use the public profile. Restart the SQL Server Database Engine service.

Question 126 Explanation: You should restart the SQL Agent service. This is necessary any time you change the mail service used by SQL Server Agent Mail. Microsoft recommends using Database Mail instead of SQL Mail for SQL Server Agent Mail because SQL Mail is scheduled to be discontinued in a future release of SQL Server. Database operations will not be interrupted by restarting the SQL Agent service. You should not restart the SQL Server Database Engine service. This would correct the problem, but would interrupt operations. You should not create a public database mail profile and configure SQL Server Agent Mail to use the public profile. There is no reason to create a public profile. You know the profile is configured correctly because it works with the sp_send_dbmail stored procedure. If there

There is no reason to create profiles for any of the operators as part of your solution. The profiles are used for sending mail, not receiving mail.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.3 Manage SQL Server Agent operators.

References:
1. SQL Server Agent Mail Click here for further information Microsoft TechNet, Microsoft How to: Configure SQL Server Agent Mail to Use Database Mail (SQL Server Management Studio) Click here for further information Microsoft TechNet, Microsoft Database Mail Click here for further information Microsoft TechNet, Microsoft Alerting Operators Click here for further information Microsoft TechNet, Microsoft SQL Mail Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

5.

Question 127 Question ID: rrMS_70-432-063 You manage a database running SQL Server 2008. The database stores confidential medical records. You need to enable transparent data encryption on the database. What should you do? In the list on the right, select the steps you should take. Place your selections in the list on the left in the order in which you should perform them. Place your selections in the list on the left by clicking the items in the list on the right and clicking the arrow button. You can also use the up and down buttons to rearrange items in the list on the left. You may not need to use all of the items from the list on the right.

Create a master keyCreate a certificateCreate a database encryption keyEnable encryption on the database1True Create a master keyCreate a certificateCreate a database encryption keyEnable encryption

on the database

Question 127 Explanation: You should perform the following steps: 1. 2. 3. 4. Create Create Create Enable a master key a certificate a database encryption key encryption on the database

You must first create a master key. The master key will be used to protect the certificate. You create a master key using the CREATE MASTER KEY statement. Next you must create the certificate or obtain one from a certification authority. The certificate will be used to encrypt the database encryption key. An alternative approach is to create an asymmetric key and use that to encrypt the database encryption key. Next, you should create the database encryption key, which will be used to encrypt the database. Finally, you are ready to enable encryption on the database. You should not take the database offline at any point during the process. The statements will fail if the database is taken offline. You do not need to bring the database online because it will remain online throughout the encryption process.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.7 Manage transparent data encryption.

References:
1. Understanding Transparent Data Encryption (TDE) Click here for further information MSDN, Microsoft

Question 128 Question ID: rrMS_70-432-022 You manage a database named MfgDB. The database is configured for the full recovery model. The following tasks are scheduled on MfgDB. * * * * * Midnight: Full backup 4:00 A.M.: Database snapshot 1:00 P.M.: Differential backup 6:00 P.M.: Database snapshot Hourly: Transaction log backups

The full and differential backups use a different backup device than the transaction log backups. You deploy a new application at 2:00 P.M. An error in the application causes a large table to be deleted at 2:30 P.M. You attempt to restore from backup and find that the media containing the full and differential backups is damaged. You need to recover as much data as possible. What should you do?

* Revert to the 4:00 A.M. database snapshot. * Restore the transaction log backups. * * * * Back up the transaction log. Revert to the 4:00 A.M. snapshot. Restore the transaction log backups. Drop the 6:00 P.M. snapshot.

* Back up the transaction log. * Drop the 6:00 P.M. database snapshot. * Revert to the 4:00 A.M. database snapshot. * Back up the transaction log. * Revert to the 4:00 A.M. snapshot. * Restore the transaction log backups.

Question 128 Explanation: You should take these steps: * Back up the transaction log. * Drop the 6:00 P.M. database snapshot. * Revert to the 4:00 A.M. database snapshot. When a problem occurs in a database, you can revert it to the state it was in when a database snapshot was taken. You need to drop all other database snapshots before reverting. You should also back up the transaction log before reverting to the snapshot so that you can use the transaction log to manually recover data. You should not take these steps: * Revert to the 4:00 A.M. database snapshot. * Restore the transaction log backups. You cannot restore transaction log backups onto the database snapshot because when you revert to a database snapshot, the backup chain is destroyed. Also, you must drop the 6:00 P.M. snapshot before reverting to the 4:00 A.M. snapshot. You should not take these steps:

* Revert to the 4:00 A.M. snapshot. * Restore the transaction log backups. You cannot restore transaction log backups onto the database snapshot because when you revert to a database snapshot, the backup chain is destroyed. Also, you must drop the 6:00 P.M. snapshot before reverting to the 4:00 A.M. snapshot. You should not take these steps: * * * * Back up the transaction log. Revert to the 4:00 A.M. snapshot. Restore the transaction log backups. Drop the 6:00 P.M. snapshot.

You cannot restore transaction log backups onto the database snapshot because when you revert to a database snapshot, the backup chain is destroyed. Also, you must drop the 6:00 P.M. snapshot before reverting to the 4:00 A.M. snapshot, not after.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.4 Manage database snapshots.

References:
1. How to: Revert a Database to a Database Snapshot (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft Reverting to a Database Snapshot Click here for further information Microsoft TechNet, Microsoft

2.

Question 129 Question ID: rrMS_70-432-049 You manage several instances of SQL Server 2008 on different servers. You need to monitor the following performance statistics on each instance of SQL Server: * Memory usage * Query statistics * Disk space usage Data must be stored in a database so that you can generate reports by using queries. You need to be able to analyze the data on a central server. What should you do?

Create a data collector on a single instance. Create a trace on each instance. Create a trace on a single instance. Create a data collector on each instance.

Question 129 Explanation: You should create a data collector for each instance. When you create a data collector, you select a server name and database that will be the storage location for the collected performance data. A data collector can monitor system resource usage and query statistics. You should not create a data collector on a single instance. You need to create a data collector on each instance you need to monitor. You should not create a trace. A trace allows you to log specific types of events, which can then be analyzed or replayed. A trace does not allow you to track resource utilization across multiple servers.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.6 Use Performance Studio.

References:
1. SQL Server 2008 Performance and Scale Click here for further information Microsoft.com, Microsoft Data Collection Click here for further information Microsoft TechNet, Microsoft How to: Configure the Management Data Warehouse for Multiple Instances Click here for further information Microsoft TechNet, Microsoft Monitoring Events Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 130

Question ID: flmMS_70-432-003

You manage an instance of Microsoft SQL Server 2008. A newly deployed application is causing degraded performance. You suspect the problem is deadlocking during transaction processing. You need to be informed when deadlocks occur so that you can observe the problem more directly and want to be paged when the there are more than four concurrent deadlocks. What should you do?

Create a SQL Server Agent performance condition alert. Create a Windows System Monitor alert. Create a SQL Server Agent event alert. Create an Event Notification.

Question 130 Explanation: You should create a SQL Server Agent performance condition alert. Performance condition alerts are based on performance counters and can be configured to trigger when the counter value exceeds, falls below, or equals a specified threshold value. When the alert triggers, you can have an operator notified by page, e-mail, or net send command. Configure the alert to trigger when the number of deadlocks exceeds four and configure yourself as an operator to receive the alert. You should not create a SQL Server Agent event alert. An event alert triggers when a specific event occurs, based on error number, or when an event of a specified severity level occurs. You should not create an Event Notification. An Event Notification responds to a specific data definition language (DDL) event or SQL Trace, not a performance condition. Also, an Event Notification cannot notify an operator. Instead, it is used to log events. You should not create a Windows System Monitor alert. You can create a System Monitor alert that triggers when the event occurs, but you cannot page an operator as the response to the alert.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.2 Manage SQL Server Agent alerts.

References:
1. Monitoring and Responding to Events

Click here for further information Microsoft TechNet, Microsoft 2. How to: Set Up a SQL Server Database Alert (Windows) Click here for further information Microsoft TechNet, Microsoft Defining Alerts Click here for further information Microsoft TechNet, Microsoft Understanding Event Notifications Click here for further information Microsoft TechNet, Microsoft

3.

4.

Question 131 Question ID: flmMS_70-432-012 You administer a reference database on a computer running Microsoft Windows Server 2008 and SQL Server 2008. The computer has one hard disk configured with two volumes. ProgVol contains the operating system and server applications. The DataVol volume contains the reference database. The reference database is a read-only database. You need to ensure that you can recover the computer as quickly as possible after a critical system failure, such as a hard disk failure. You need to minimize the administrative effort needed to protect and recover the computer. What should you do?

Use Windows backup to run a full backup and periodic differential backups of both volumes. Use Windows backup to run a full backup of both volumes any time changes are made. Use SQL Server to run a full backup of all databases any time changes are made. Use SQL Server to run a full backup and periodic differential backups of all databases.

Question 131 Explanation: You should use Windows backup to run a full backup of both volumes any time changes are made. This will enable you to quickly recover programs and data after a critical failure. Because the database server hosts a read-only database, changes to the system will likely be rare and intermittent. By using a full backup, you only need to recover from one backup. You should not use SQL Server to back up all databases. In case of a failure, you would need to install and reconfigure applications manually. This would be more time consuming that restoring from backup. You should not use Windows backup to run a full backup and periodic differential backups of both volumes. While this could be used for recovery, you would need to recover first from the full backup and then from the most recent differential backup.

Objective:

List all questions for this objective

Maintaining SQL Server Instances Sub-Objective: 2.5 Back up a SQL Server environment.

References:
1. Step-by-Step Guide for Windows Server Backup in Windows Server 2008 Click here for further information Microsoft TechNet, Microsoft Backup Overview (SQL Server) Click here for further information Microsoft TechNet, Microsoft

2.

Question 132 You manage a server running SQL Server 2008.

Question ID: rrMS_70-432-061

Sara owns a table named Employees and a stored procedure named sp_GetSalaries. The sp_GetSalaries stored procedure queries the Employees table. Sara creates a view named v_DueReviews that calls sp_GetSalaries and filters the results based on employees who are approaching their annual reviews. Mike needs to be able to use the view. You need to assign Mike the minimum permissions necessary to use the view. What should you do?

Grant Mike the SELECT permission on v_DueReviews. Grant Mike the SELECT permission on the Employees table. Grant Mike the SELECT permission on v_DueReviews and Employees and the EXECUTE permission on sp_GetSalaries. Grant Mike the SELECT permission on v_DueReviews and the EXECUTE permission on sp_GetSalaries.

Question 132 Explanation: You should grant Mike the SELECT permission on v_DueReviews. Because Sara owns all of the objects in the chain, ownership chaining rules apply. Therefore, you only need to grant Mike the SELECT permission on the view. Doing so will allow Mike to use the view to retrieve information from the Employees table, but not access the Employees table or the sp_GetSalaries stored procedure directly.

A common use of views is to limit access to specific columns or rows. You should not grant Mike the SELECT permission on v_DueReviews and the EXECUTE permission on sp_GetSalaries. There is no need to grant Mike the EXECUTE permission on sp_GetSalaries. Doing so would allow Mike to access all salary information, not just that related to employees who are due annual reviews. You should not grant Mike the SELECT permission on v_DueReviews and Employees and the EXECUTE permission on sp_GetSalaries. Because of ownership chaining, Mike only needs SELECT permission on v_DueReviews.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.4 Manage database permissions.

References:
1. Ownership Chains Click here for further information MSDN, Microsoft

Question 133 Question ID: rrMS_70-432-028 You manage a database that contains a very large table named Products. The Products table data is imported monthly by using a bulk import. The table has a clustered index based on the ProductName column. Several foreign key constraints reference the ProductName column. The bulk import operation takes a long time to complete. You plan to reduce the amount of time it takes to complete the bulk import operation by performing the operation from multiple client computers. You need to ensure that the import from one client computer does not block the import from another client computer. What should you do?

* Drop the clustered index. * Perform the import by using a page lock. * Recreate the index. * Drop the clustered index. * Perform the import by using a table lock. * Recreate the index. * Disable all constraints.

* Perform the import by using a page lock. * Enable all constraints. * Disable all constraints. * Perform the import by using a table lock. * Enable all constraints.

Question 133 Explanation: You should take these steps: * Drop the clustered index. * Perform the import by using a table lock. * Recreate the index. To ensure that the parallel imports do not block each other, you need to use a table lock. You can only perform a bulk import by using a table lock if the table does not have an index. Therefore, you first need to drop the clustered index. After the import operation is performed, you can recreate the index. You should not take these steps: * Drop the clustered index. * Perform the import by using a page lock. * Recreate the index. Using a page lock will not ensure that one import operation does not block another. You should not take these steps: * Disable all constraints. * Perform the import by using a table lock. * Enable all constraints. You must drop the indexes before you can use a table lock. You do not need to disable all constraints. You can choose whether to ignore constraints when performing the import. If you ignore constraints, some imported data might violate check constraints or foreign key constraints. However, ignoring constraints can help the import perform more quickly. You should not take these steps: * Disable all constraints. * Perform the import by using a page lock. * Enable all constraints. Using a page lock will not prevent one import from blocking another.

Objective:

List all questions for this objective

Performing Data Management Tasks Sub-Objective: 5.1 Import and export data.

References:
1. Importing Data in Parallel with Table Level Locking Click here for further information Microsoft TechNet, Microsoft Controlling Constraint Checking by Bulk Import Operations Click here for further information Microsoft TechNet, Microsoft

2.

Question 134 Question ID: rrMS_70-432-020 You maintain a database named SalesDB. SalesDB is located on a server running SQL Server 2008. SalesDB has two filegroups. All tables are located on the filegroup named FG1. All non-clustered indexes are located on the filegroup named FGIndex. You need to verify the integrity of the nonclustered indexes. The operation must complete as quickly as possible. What should you do?

Execute DBCC CHECKFILEGROUP FG1. Execute DBCC CHECKFILEGROUP FGIndex. Execute DBCC CHECKDB SalesDB. Execute CHECKSUM SalesDB.

Question 134 Explanation: You should execute DBCC CHECKDB SalesDB. Because the nonclustered indexes are stored on a different filegroup than the base tables, you need to execute DBCC CHECKDB to verify the integrity of the indexes. You should not execute DBCC CHECKFILEGROUP FG1. The integrity of a nonclustered index does not matter when validating the integrity of a base table. Therefore, nonclustered indexes will only be checked if they are located in the same filegroup as the base table. You should not execute DBCC CHECKFILEGROUP FGIndex. In versions prior to SQL Server 2005, you could execute CHECKFILEGROUP on the filegroup containing the index to check the integrity of indexes even if the base tables are stored in different filegroups. However, this functionality was changed in SQL Server 2005. You should not execute CHECKSUM SalesDB. The CHECKSUM command generates a CHECKSUM for the object specified in the expression. It does not validate index integrity.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.5 Maintain database integrity.

References:
1. DBCC CHECKFILEGROUP (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft CHECKSUM (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DBCC CHECKDB (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 135 Question ID: rrMS_70-432-002 You install SQL Server 2008 on a server. You install the database engine and the client tools. After the installation completes, no client tools are available. You need to determine the name of the file where detailed information about the installation failure is logged. What should you do?

Review the SystemConfigurationCheck_Report.htm file. Review the Summary.txt file. Review the ErrorLog.txt file. Review the Details.txt file.

Question 135 Explanation: You should review the Summary.txt file. Each component is installed using a separate Microsoft Installer (.msi) file. The Summary.txt file provides an overview of the installation process, including whether installation for each component succeeded or failed and the name of the log file generated by each component's .msi file. The installation log files are created in the Program Files\Microsoft SQL Server\100\Setup Bootstrap\LOG\ directory. Another way to find out information about installation failures is by reviewing the Application log in Event Viewer. You should not review the ErrorLog.txt file. The ErrorLog.txt file is used to log some errors.

You should not review the Details.txt file. The Details.txt file provides detailed information about each step in the installation process, but does not list the filenames of component log files. You should not review the SystemConfigurationCheck_Report.htm file. The System Configuration Check_Report.htm file reports on whether certain installation conditions are met and is generated prior to actual installation. It does not list the filenames of component installation log files.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.1 Install SQL Server 2008 and related services.

References:
1. How to: View SQL Server Setup Log Files Click here for further information Microsoft TechNet, Microsoft Viewing the SQL Server Error Log Click here for further information Microsoft TechNet, Microsoft System Configuration Check (SCC) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 136 Question ID: flmMS_70-432-015 You are the primary administrator for an instance of Microsoft SQL Server 2008 located on a server in a remote office. The server is a member server in an Active Directory domain. You are giving a user local to the remote office the ability to manage SQL Server instance-wide configuration settings and shut down the server. You create a login from the domain user account. The user should be able to manage the SQL Server instance only, not the server hardware or operating system. You need to assign the necessary permissions to the login. You should not assign more permissions than necessary to the login. What should you do?

Add the login to the setupadmin fixed server role. Add the login to the securityadmin fixed server role.

Add the login to the sysadmin fixed server role. Add the login to the serveradmin fixed server role.

Question 136 Explanation: You should add the login to the serveradmin fixed server role. The serveradmin role grants permission to change SQL Server instance-wide configuration options and shut down the server. It does not grant any permissions for server hardware or the operating system. You should not add the login to the securityadmin fixed server role. The securityadmin role lets you manage logins, server-level permissions, and database-level permissions. The role does not let a login manage SQL Server instance-wide configuration options or other server configuration options. You should not add the login to the sysadmin fixed server role. The sysadmin role grants permission to perform any activity on the SQL Server instance. Even though this role does enable the login to manage SQL Server server-level configuration options and shut down the SQL Server instance, it also grants all permissions granted by all other fixed server roles. This gives more permissions than necessary. You should not add the login to the setupadmin fixed server role. The setupadmin role lets you add and remove linked SQL Server instances, but not manage SQL Server server-level configuration options or shut down servers.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.1 Manage logins and server roles.

References:
1. Server-Level Roles Click here for further information Microsoft TechNet, Microsoft Permissions of Fixed Server Roles (Database Engine) Click here for further information Microsoft TechNet, Microsoft

2.

Question 137 Question ID: rrMS_70-432-040 You manage a database named FinanceDB. FinanceDB is hosted on an instance of SQL Server 2008, which is configured for Windows authentication. Users in the Auditors Windows group run queries that retrieve large amounts of data. Other users typically run Online Transaction Processing (OLTP) queries. You have enabled Query Governor and plan to install a classification function named rgClass.

You need to ensure that all queries run by members of the Auditors group consume no more than 30% of the total processor time. What should you do?

Execute the following: CREATE RESOURCE POOL poolAuditors WITH (MIN_CPU_PERCENT = 0, MAX_CPU_PERCENT = 30) GO CREATE WORKLOAD GROUP wgAuditors USING poolAuditors GO Execute the following: CREATE WORKLOAD GROUP wgAuditors USING rgClass GO CREATE RESOURCE POOL poolAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) FOR (wgAuditors) GO Execute the following: CREATE WORKLOAD GROUP wgAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) USING internal GO Execute the following: CREATE WORKLOAD GROUP wgAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) GO

Question 137 Explanation: You should execute the following: CREATE RESOURCE POOL poolAuditors WITH (MIN_CPU_PERCENT = 0, MAX_CPU_PERCENT = 30) GO CREATE WORKLOAD GROUP wgAuditors USING poolAuditors GO Because you need to limit the processor time utilized by all queries performed by members

Next you need to create a workload group that uses the pool. The classifier function will return the name of the workload group to which SQL Server should assign a query. You should not execute the following: CREATE WORKLOAD GROUP wgAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) GO If a workload group is not assigned to a pool, the group will use the default pool. The REQUEST_MAX_CPU_PERCENT option is set on the resource pool, not on the workload group. The workload group has a REQUEST_MAX_CPU_TIME_SEC option, which can limit the amount of processor time that can be consumed by a single request, not by all requests made by the workload group. You should not execute the following: CREATE WORKLOAD GROUP wgAuditors USING rgClass GO CREATE RESOURCE POOL poolAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) FOR (wgAuditors) GO You assign a workload group to a pool with the USING clause of the CREATE WORKLOAD GROUP statement. The CREATE RESOURCE POOL statement does not have a FOR clause. You do not define the classifier function in the CREATE WORKLOAD GROUP statement. The classifier function is registered with the query governor. You should not execute the following: CREATE WORKLOAD GROUP wgAuditors WITH (REQUEST_MAX_CPU_PERCENT = 30) USING internal GO The REQUEST_MAX_CPU_PERCENT option is set on the resource pool, not on the workload group. The workload group has a REQUEST_MAX_CPU_TIME_SEC option, which can limit the amount of processor time that can be consumed by a single request, not by all requests made by the workload group. Also, you cannot assign a workload group to the internal pool. The internal pool is used by SQL Server internal operations.

Objective:

List all questions for this objective

Optimizing SQL Server Performance Sub-Objective: 7.1 Implement Resource Governor.

References:

1.

Resource Governor Concepts Click here for further information Microsoft TechNet, Microsoft CREATE RESOURCE POOL (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft CREATE WORKLOAD GROUP (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

Question 138 Question ID: rrMS_70-432-003 You maintain a server running only the default instance of SQL Server 2005. The server has a single hard disk partitioned as a single simple volume. Your company is planning to migrate from SQL Server 2005 to SQL Server 2008. You have been asked to test existing databases and scripts on SQL Server 2008. During testing, the production database must continue to run under SQL Server 2005. You need to install SQL Server 2008. Your solution should require the least amount of hardware investment. What should you do?

Install the default instance of SQL Server 2008 on a different hard disk than SQL Server 2005. Install a named instance of SQL Server 2008 on a different hard disk than SQL Server 2005. Install a named instance of SQL Server 2008 on the same hard disk as SQL Server 2005. Install the default instance of SQL Server 2008 on a different server than SQL Server 2005.

Question 138 Explanation: You should install a named instance of SQL Server 2008 on the same hard disk as SQL Server 2005. SQL Server 2008 can run side-by-side with SQL Server 2005. However, you must install SQL Server 2008 as a named instance because there can be only one default instance of any version of SQL Server on a single computer. You do not need to install SQL Server 2008 on a separate hard disk. SQL Server 2008 files are stored in the <drive>:\Program Files\Microsoft SQL Server\100\ subdirectory. You should not install the default instance of SQL Server 2008 on a different hard disk than SQL Server 2005. You can only have one default instance of SQL Server on a computer.

investment than running SQL Server 2008 side-by-side with SQL Server 2005. You should not install a named instance of SQL Server 2008 on a different hard disk than SQL Server 2005. While this solution would work, it would require more hardware investment than running SQL Server 2005 and SQL Server 2008 on the same hard disk.

Objective:

List all questions for this objective

Installing and Configuring SQL Server 2008 Sub-Objective: 1.1 Install SQL Server 2008 and related services.

References:
1. File Locations for Default and Named Instances of SQL Server Click here for further information Microsoft TechNet, Microsoft Working with Multiple Versions and Instances of SQL Server Click here for further information Microsoft TechNet, Microsoft

2.

Question 139 Question ID: rrMS_70-432-018 You maintain a database named SalesDB. SalesDB is located on an instance of SQL Server 2005. You are planning to decommission the server where SalesDB is located. You move SalesDB to a server running SQL Server 2008 using the Copy Database Wizard. You need to ensure that queries performed against SalesDB execute optimally. What should you do?

Execute sp_updatestats. Rebuild all indexes. Reorganize all indexes. Execute DBCC CHECKDB.

Question 139 Explanation: You should execute sp_updatestats. The Copy Database Wizard can be used to upgrade a

in the database's indexes. These statistics help SQL Server choose the most optimal indexes when performing queries. You should not execute DBCC CHECKDB. DBCC CHECKDB checks the consistency of the database. There is no need to check the consistency of the database after using the Copy Database Wizard. You should not rebuild the indexes. You rebuild the indexes to defragment the indexes by dropping and then recreating them. There is no need to defragment the indexes after moving the database to a new server. You should not reorganize the indexes. You reorganize the indexes to defragment the indexes at the leaf level. There is no need to defragment the indexes after moving the database to a new server.

Objective:

List all questions for this objective

Maintaining a SQL Server Database Sub-Objective: 4.3 Manage and configure databases.

References:
1. Using the Copy Database Wizard Click here for further information Microsoft TechNet, Microsoft ALTER INDEX (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft sp_updatestats (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft DBCC CHECKDB (Transact-SQL) Click here for further information Microsoft TechNet, Microsoft

2.

3.

4.

Question 140 Question ID: flmMS_70-432-020 You are the administrator for a default instance of Microsoft SQL Server 2008. A common language runtime (CLR) function you created in the Inventory database needs to access Windows resources when it runs. SQL Server should have access to those resources only in the context of the CLR function. When you test the CLR function, it fails because of insufficient permissions to access the necessary resources. You need to ensure that the CLR function has the necessary permissions to access the resource. The solution should have minimal impact on Windows and SQL Server security.

What should you do? (Each correct answer presents part of the solution. Choose two.)

Use the SqlContext.WindowsIdentity in the CLR function managed code. Create a Windows user account and add the account to the local Administrators group. Add the SQL Server Windows service account to the local Administrators group. Use EXECUTE AS when running the CLR function. Create a Windows user account with permission to access the required resources.

Question 140 Explanation: You need to create a Windows user account with permission to access the required resources and use the SqlContext.WindowsIdentity in the CLR function managed code. When you execute a CLR function, it runs under the security context of the SQL Server service account. If the service account does not have sufficient permissions to access necessary resources, the function fails. You can create a user with limited permissions, only permissions to the necessary resources, and use the SqlContext.WindowsIdentify property to set the context under which the function executes. SQL Server would have access to the resources only when the CLR function is running. You should not create a Windows user account and add the account to the local Administrators group. This would give the account more permissions than necessary and could be a security risk. You should not add the SQL Server Windows service account to the local Administrators group. This would give the SQL Server service account full access to all Windows resources all the time. This could result in compromised security. Problems could occur because of poorly written procedures that access Windows resources or commands injected through the Database Engine by a hacker. You should not use EXECUTE AS when running the CLR function. EXECUTE AS cannot be used to set the security context for a CLR function's access to Windows resources. EXECUTE AS applies to SQL Server resources and objects only.

Objective:

List all questions for this objective

Managing SQL Server Security Sub-Objective: 3.3 Manage SQL Server instance permissions.

References:
1. Impersonate Property Click here for further information Microsoft TechNet, Microsoft

2.

Impersonation and Credentials for Connections Click here for further information Microsoft TechNet, Microsoft Extending Database Impersonation by Using EXECUTE AS Click here for further information Microsoft TechNet, Microsoft Impersonation and CLR Integration Security Click here for further information Microsoft TechNet, Microsoft

3.

4.

1999-2009 MeasureUp AssessTech is a registered trademark of MeasureUp

Potrebbero piacerti anche