Tải bản đầy đủ (.docx) (41 trang)

Đáp Án Trắc Nghiệm Môn Quản Trị Hệ Thống Cơ Sở Dữ Liệu BDA 70 432

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.05 MB, 41 trang )

Question 1:
You work as a database administrator at 2hi Co., Ltd. It is planning to migrate a SQL Server 2000 application to SQL
Server 2008 R2.
After the migration, you want to keep an eye on the performance of the SQL Server 2008 R2 instance. You then configure a
SQL server-side trace that captures the Deprecation Announcement and Deprecation Final Support event classes.
Which two of the following best describes these two event classes respectively?
A. X The Deprecation Final Support event class reveals that a feature will be removed in the next important release of
SQL Server.
B. The Deprecation Announcement event class reveals that a feature will be removed in the next important release of
SQL Server.
C. X The Deprecation Announcement event class reveals that a feature will be removed in an upcoming edition of
SQL Server.
D. The Deprecation Final Support event class reveals that a feature will be removed in an upcoming edition of SQL
Server.

Question 2:
You work as a database administrator at 2hi Co., Ltd. It makes use of a SQL Server 2008 R2 instance that includes an OnLine Analytical Processing (OLAP) database.
The OLAP database hosts a dimension table, named 2hi_Clients, which has hourly information updates configured. As a
result, 2hi_Clients has a large quantity of information that is no longer used.
You have been instructed to make sure that the amount of space used by the 2hi_Clients table is reduced with as little
administrative effort as possible.
Which of the following actions should you take?
A. You should consider manually deleting the information that is no longer used.
B. X You should consider making use of page compression.
C. You should consider making use of the Disk Cleanup Wizard.
D. You should consider making use of folder compression.

Question 3:
You work as a database administrator at 2hi Co., Ltd. Company has a server running an instance of SQL Server 2008 R2,
which hosts a database named 2hi_Clients. When 2hi_Clients encounter numerous deadlock issues, you configure the
instance’s startup parameters with the necessary trace flags and reboot the instance.


Which of the following is TRUE regarding this configuration?
A. X It allows for the capturing of deadlock data in the SQL Server error log.
B. It allows for the capturing of deadlock data in the SQL Server event log.
C. It allows for the capturing of deadlock data in the SQL Server trace log.
D. It allows for the capturing of deadlock data in the SQL Server transaction log.

Question 4
You work as a database administrator at 2hi Co., Ltd. The SQL Server 2008 R2 instance contains a database named
2hi_DB. You have employed the SQL Server service to configure the FILESTREAM data container in the 2hi_DB
database.
Which of the following options are TRUE with regards to FILESTREAM data? (Choose all that apply.)
A
B

X FILESTREAM data is not encrypted even though you have enabled transparent data encryption.
FILESTREAM data is only encrypted when you have transparent data encryption enabled.


C

X FILESTREAM data must be stored in FILESTREAM filegroups contains file system directories instead of the
files themselves.

D

FILESTREAM data must be stored in a stored procedure.

Question 5
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance.
You have been instructed to make sure that all users, including managers, receive daily reports via Database Mail. You are

then informed that your solution should allow for managers to receive the report as soon as possible.
Which of the following actions should you take?
A. You should consider configuring two separate Database Mail profiles for users and managers.
B. X You should configure a Database Mail profile for users, and personally send each manager the report.
C. You should consider configuring two separate Database Mail accounts for users and managers.
D. You should consider configuring a single Database Mail profile, and sending the reports as high priority.

Question 6
You work as a database administrator at 2hi Co., Ltd. It makes use of SQL Server 2008 R2. Company has three database
servers, named ABC-SR13, ABC-SR14, and ABC-SR15, which are each running a different instance of SQL Server 2008.
You have configured a database mirroring session in high- safety mode between ABC-SR13 and ABC-SR14 for an
important 2hi Co., Ltd database.
A. ABC-SR13 is presently configured as the principal server
B. ABC-SR14 is configured as the mirror server.
C. ABC-SR15 is configured as the witness server.
Which of the following is TRUE with regards to database mirroring? (Choose all that apply.)
A. You are able to mirror any database.
B. X Mirroring of the master, msdb, tempdb, or model databases is not supported.
C. X Database mirroring is not supported by the simple and bulk-logged recovery models.
D. The full, simple, and bulk-logged recovery models support database mirroring.

Question 7
You work as a database administrator at 2hi Co., Ltd. It makes use of a SQL Server 2008 R2.
A database is relocated from one instance of SQL Server 2008 R2 to a different instance. 2hi Co., Ltd user previously
accessed the database using specific credentials, and would like to make use of those same credentials to access the
database.
Which of the following actions should you take?
A. X You should consider making use of the ALTER USER Transact-SQL statement that includes the WITH LOGIN
argument.
B. You should consider making use of ALTER DATABASE Transact-SQL statement that includes the WITH

LOGIN argument.
C. You should consider making use of the CREATE LOGIN Transact-SQL statement.
D. You should consider making use of the CREATE USER Transact-SQL statement.

Question 8
You work as a database administrator at 2hi Co., Ltd. It makes use of a SQL Server 2008 R2 instance.
You have previously devised a maintenance strategy that allows for the reconstruction of indexes, as well as database
integrity verification. The strategy is also configured to generate reports in the form of a text file.
You have now been instructed to configure the strategy to forward e-mails to their operators whenever the strategy is


unsuccessfully implemented.
Which of the following actions should you take?
A. You should consider altering the Event log.
B. You should consider altering the SQL Active Directory Helper.
C. X You should consider altering the SQL Server Agent job.
D. You should consider altering the SQL Server Browser.

Question 9
You work as a database administrator at 2hi Co., Ltd. It makes use of SQL Server 2000 instance.
A current specific job is configured to retrieve a file remotely from a shared network folder via a CMDExec step. The use
of the LocalSystem account has been configured for the SQL Server Agent service.
You receive an instruction to upgrade the current SQL Server instance to SQL Server 2008 R2. Subsequent to the upgrade,
you notice that the job step is unable to finish its process. It is imperative that this issue be rectified.
Which of the following actions should you take?
A. You should consider reconfiguring the job step to make use of a remote System account.
B. You should consider reconfiguring the job step to make use of a Local Service account.
C. X You should consider reconfiguring the job step to make use of a proxy account.
D. You should consider reconfiguring the job step to make use of a Domain account.


Question 10
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance that includes a database
named 2hi_Sales.
Minimal changes to the information in 2hi_Sales take place on a daily basis. You have been instructed to devise a solution
that produces for a read-only copy of the database. Furthermore, the solution has to run every morning and should consume
as little disk resources as possible.
Which of the following actions should you take?
A. X You should consider configuring the use of database snapshots.
B. You should consider configuring the use of transaction log backups.
C. You should consider configuring the use of differential backups.
D. You should consider configuring the use of incremental backups.

Question 11
You work as a database administrator at 2hi Co., Ltd. You are responsible for managing a SQL Server 2008 R2 instance. It
has an Internet Information Services (IIS) application that should be able to log on to the SQL Server Analysis Services
(SSAS) instance anonymously.
Which of the following actions should you take?
A. X You should consider having the Security\RequireClientAuthentication server configuration property
disabled.
B. You should consider having the Security\RequireClientAuthentication server configuration property enabled.
C. You should consider configuring the Security\RequireServerAuthentication server configuration property with
the default value.
D. You should consider configuring the Security\RequireClientAuthentication server configuration property with
the default value.

Question 12
You work as a database administrator at 2hi Co., Ltd. It makes use of a SQL Server 2008 R2 instance. You have been


instructed to make sure that all stored procedures that are defined by company users make use of the prefix usp_. You are

also instructed to make sure that administrators are prevented from creating stored procedures that do not make use of the
prefix usp_.
Which of the following actions should you take? (Choose all that apply.)
A. X You should consider generating a policy that targets the name of the stored procedure, which is evaluated on
change.
B. You should consider generating a condition that targets the name of the stored procedure, which is evaluated on
change.
C. You should consider assigning minimum permissions to all administrators.
D. You should consider creating a trigger.

Question 13
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance that contains a database
named 2hi_Sales. Minimal changes to the information in 2hi_Sales take place on a daily basis. You have been instructed to
devise a solution that minimizes administrative overhead for the transaction log of 2hi_Sales.
Which of the following actions should you take?
A. You should consider making having the full recovery model configured for 2hi_Sales.
B. X You should consider having the simple recovery model is configured for 2hi_Sales.
C. You should consider running the SQL Server Profiler on 2hi_Sales.
D. You should consider configuring 2hi_Sales to make use of the checksum page verify option.

Question 14
You work as a database administrator at 2hi Co., Ltd. It is making use SQL Server 2008 R2 in their environment.
It has a server, named ABC-SR07, which runs an instance of SQL Server 2008 R2 and has multiple applications installed.
You have configured the SQL Server Agent service to make use of the ABC-SR07/ACCOUNT. You then configured a job
that must be written to a database server. You now need to make sure that only the SQL Server Agent service has read and
write permissions to the database server.
Which of the following actions should you take?
A. You should consider configuring the SQL Server Agent service to make use of a global Administrator account.
B. You should consider configuring the SQL Server Agent service to make use of a proxy account.
C. X You should consider configuring the SQL Server Agent service to make use of a Local Service account.

D. You should consider configuring the SQL Server Agent service to make use of a remote System account.

Question 15
You work as a database administrator at 2hi Co., Ltd. It is making use of a SQL Server 2008 R2 instance that contains a
database named 2hi_Prod1. You have been instructed to devise a strategy that produces a read-only duplication of
2hi_Prod1 at the start of each business day. This duplication will be used as a reporting tool. Your strategy should also have
a minimal effect on 2hi _Prod1.
Which of the following actions should you take?
A. You should consider configuring the use of the simple recovery model.
B. You should consider frequent backups of the event log.
C. X You should consider making use of the database snapshots.
D. You should consider configuring the use of transaction log backups that runs frequently.

Question 16
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance that contains a database


named 2hi_Sales. Minimal changes to the information in 2hi_Sales take place on a daily basis. You have been instructed to
devise a solution that fully logs all transactions and keeps the transaction log records until after they are backed up. The
solution should also allow for 2hi_Sales to be restored to the point of failure.
Which of the following actions should you take?
A. X You should consider having the full recovery model configured for 2hi_Sales.
B. You should consider having the simple recovery model is configured for 2hi_Sales.
C. You should consider running the SQL Server Profiler on 2hi_Sales.
D. You should consider configuring 2hi_Sales to make use of the checksum page verify option.

Question 17
You work as a database administrator at 2hi Co., Ltd. It has recently upgraded to SQL Server 2008 R2. You have been
instructed to have an existing SQL Server 6.0 database, named 2hi_Sales, upgraded to an instance of SQL Server 2008 R2.
You have to make sure that any questionable pages in 2hi_Sales can be identified at an early stage.

Which of the following actions should you take?
A. X You should consider configuring 2hi_Sales to make use of the checksum page verify option.
B. You should consider running the SQL Server Profiler on 2hi_Sales.
C. You should consider having the simple recovery model is configured for 2hi_Sales.
D. You should consider configuring 2hi_Sales to make use of the torn page detection page verify option.

Question 18
You work as a database administrator at 2hi Co., Ltd. It is making use of a SQL Server 2008 R2 instance. You monitor the
transaction log of the instance on a daily basis. On this particular day you are presented with information regarding torn
page errors in the database. You have been instructed to rectify these errors as soon as possible.
Which of the following actions should you take?
A. X You should consider restoring only the torn pages from the most recent full database backup.
B. You should consider restoring the full database from the most recent full database backup.
C. You should consider restoring the most recent snapshot backups.
D. X You should consider restoring the transaction logs that was created since the full backup.

Question 19
You work as a database administrator at 2hi Co., Ltd. It is making use of a SQL Server 2008 R2 instance. You have
previously configured a SQL Server 2008 R2 cluster. You then disconnect the network cable(s) from the active node, as
well as delete the shared array from the active node.
Which of the following describes a reason for doing this?
A. To induce an automatic failover.
B. X To induce a manual failover.
C. To improve cluster performance.
D. Remove mirroring from the database.

Question 20
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance. The SQL Server 2008 R2
instance includes a database that has a table, named 2hi_Tbl, which is partitioned on the ProID column. The partitioning
characteristics are as follows:



Partition 1 includes integer values between 5 and 30,000.



Partition 2 includes integer values in excess of 30,000.

Due to the growth in business operations, 2hi Co., Ltd foresees the need to have a third partition in the table. You receive


instructions to create a third partition on the table. This partition must be able to include the integer values in excess of
60,000. You decide to make use of an ALTER PARTITION FUNCTION Transact-SQL statement.
Which of the following is TRUE with regards to this Transact-SQL statement?
A. X It can only be used for splitting one partition into two, or merging two partitions into one.
B. It adds a filegroup to a partition scheme or alters the designation of the NEXT USED filegroup for the partition
scheme.
C. Filegroups that are affected by ALTER PARITITION FUNCTION does not have to be online.
D. ALTER PARTITION FUNCTION continues to process, even if there is a disabled clustered index on any tables
that use the partition function.

Question 21
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance that contains a database
named 2hi_Prod. You have been instructed to join two tables on a column called 2hi_Common. You have to ensure that the
values in the columns being joined are compared using a comparison operator.
Which of the following actions should you take?
A. You should consider making use of a full outer join
B. You should consider making use of an right outer join
C. You should consider making use of a cross join
D. X You should consider making use of an inner join.


Question 22
You work as a database administrator at 2hi Co., Ltd. It is making use of a SQL Server 2008 R2 instance to manage and
maintain its databases.
The SQL Server 2008 instance includes a database that has a table, named ABC_Tbl. You then configure ABC_Tbl to
include a Geography data type column, named ABC_Colmn. You have been instructed to devise a solution that makes
allowance for ABC_Colmn to include a spatial index.
Which of the following actions should you take?
A. You should consider configuring ABC_Colmn with a primary key.
B. X You should consider configuring ABC_Tbl with a primary key.
C. You should consider configuring ABC_Tbl with a clustered index.
D. You should consider configuring ABC_Colmn with a clustered index.

Question 23
You work as a database administrator at 2hi Co., Ltd. It is making use of a SQL Server 2008 R2 instance. It includes a
database that is used by an application that is integral to daily operations. You are then informed by user that the server is
not running as it should be. You need to make use of the Database Engine Tuning Advisor to enhance the application’s
execution, while preventing other users from being affected by server performance.
You start by setting up a test server, named ABCTEST-SR01 that has the same hardware setting as the server with the
performance issue.
Which of the following actions should you take NEXT?
A. You should consider running the dtexec.exe utility on ABCTEST-SR01.
B. You should consider running the bcp.exe utility on ABCTEST-SR01.
C. X You should consider running the dta.exe utility on ABCTEST-SR01.
D. You should consider running the sqlmaint.exe utility on ABCTEST-SR01.


Question 24
You work as a database administrator at ABC.com. It is using a SQL Server 2008 R2 instance. After receiving a complaint
from user regarding the sluggish execution of the applications on the server, you decide not to make use of the table scans

to obtain additional data as a result of the poor execution. You have to gather the necessary data in another way.
Which of the following actions should you take?
D. You should consider making use of the SQL Server:Memory Manager Object utility via the Windows System
Monitor.
E. You should consider making use of the SQLServer:Disk Manager utility via the Windows System Monitor.
F. You should consider making use of the SQL Server:Database Mirroring Object utility via the Windows System
Monitor.
G. X You should consider making use of the SQLServer:Access Methods utility via the Windows System Monitor.

Question 25
You work as a database administrator at 2hi Co., Ltd. It makes use of a SQL Server 2008 R2 instance. It contains quite a
few databases that are utilized by applications. You are planning to make use of the Resource Governor to cut the result of
searches.
These searches are run via SQL Server Management Studio. You have been instructed to make sure that the CPU utilization
for searches done by the SQL Server Management Studio should not be more than 40 %. You also have to make sure that in
the event of the applications requiring all of the CPU resources, they are permitted to do so when necessary.
Which of the following actions should you take FIRST?
A. X You should consider developing a new resource pool.
B. You should consider setting up the MAX_CPU_PERCENT selection to 40.
C. You should consider assigning the resource pool to the workload group.
D. You should consider setting up the MAX_CPU_PERCENT selection to 100.
E. You should consider assigning the resource pool to the administrators group.

Question 26
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance that contains a database,
named 2hi_Books. 2hi_Books includes the BookTitle, EANNumber, SellingPrice and IssueDate columns.
A clustered index is configured for the BookTitle column and a non-clustered index, which includes the EANNumber and
SellingPrice columns, is configured for the IssueDate column. A Transact-SQL query, which includes a query hint, searches
the 2hi_Books table for BookTitle, EANNumber, SellingPrice, and IssueDate data. During monitoring you notice that the
query’s performance is slow.

You then run the sys.dm_db_index_physical_stats dynamic management function (DMF) and find that the
avg_fragmentation_in_percent is in excess of 25%. You have been instructed to find a solution to improve the query’s
performance.
Which of the following actions should you take?
A. You should consider having the table hint inserted.
B. X You should consider having the query hint removed from the query.
C. You should consider having the primary key modified.
D. You should consider having a filtered index created.

Question 27
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance. The SQL Server 2008 R2
instance includes a database named 2hi_DB that makes use of the bulk-logging recovery model. You have employed a


WAN connection for log shipping 2hi_DB.
You have also configured 2hi_DB’s indexes to be reproduced by a scheduled job that results in the log backups growing in
size. You have been instructed to make sure that the log backups employed by log shipping is reduced in size.
Which of the following actions should you take?
A. You should consider making use of Database snapshots.
B. You should consider making use of the half recovery mode on 2hi_DB.
C. You should consider making use of stored procedures.
D. X You should consider having the log file backups compressed.

Question 28
You work as a database administrator at 2hi Co., Ltd. It makes use of multiple SQL Server 2008 R2 instances. One of the
SQL Server 2008 R2 instances includes a database named 2hi_DB.
You have been instructed to devise a data collection solution that makes use of the data collector to gather performance
information of all the instances. Your solution should allow for the gathered performance information to be reserved in
2hi_DB. Your solution should also allow for function data to be gathered and loaded in the management data warehouse
every 12 hours.

Which of the following actions should you take?
A. You should consider configuring the Event log.
B. You should consider configuring the Trace log.
C. You should consider developing an on-demand cached data collection set.
D. X You should consider developing a scheduled non-cached data collection set.

Question 29
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 to administrate and maintain its
database. You have received instruction from management to create a strategy that makes use of the data collector is
utilized to collect performance information.
Your strategy should also allow for 15 day old information to be removed, and also reduce the amount of effort required to
administer the performance information.
Which of the following actions should you take?
A. You should consider creating a single SQL Server 2008 R2 Analysis Services (SSAS) package process to reserve
and remove performance information.
B. X You should consider setting a management data warehouse process on every instance to reserve and remove
performance information in one database for all the instances.
C. You should consider creating a single SQL Service Integration Services (SSIS) package process to reserve and
remove performance information.
D. You should consider creating a single SQL Server 2008 R2 Reporting Services (SSRS).

Question 30
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance. Subsequent to installing an
important cluster, which necessitates continuous accessibility, on a pair of cluster- ready nodes, you are instructed to make
sure that the disruption of the service is reduced.
Which of the following actions should you take?
A. X You should consider configuring failover with the Prevent automatic failback option.
B. You should consider configuring failover with the Prevent manual failback option.
C. You should consider configuring failover with the Allow automatic failback option.



D. You should consider configuring failover with the Prevent failback during business hours option.

Question 31
You work as a database administrator at 2hi Co., Ltd. It is using a SQL Server 2008 R2 instance. The SQL Server 2008 R2
instance contains a database, named 2hi_Prod, which are log shipped to a remote SQL Server 2008 R2 server.
Subsequent to rebooting the primary SQL Server instance, you notice that the log shipping is no longer functioning. You
have been tasked with finding the reason for the log shipping not functioning.
Which of the following actions should you take?
A. X You should make sure that the SQL Server Agent has been started on the main server.
B. You should consider making use of the EXTENDED_LOGICAL_CHECKS option to run a DBCC
INDEXDEFRAG statement on ABC_Prod.
C. You should make sure that the SQL Server Surface Area Configuration has been started on the main server.
D. You should make sure that the SQL Server Browser service has been started on the main server.

Question 1
You maintain a SQL Server instance. You use the Resource Governor to manage processor resources on the server for a
newly deployed application named App1. It is assigned to a custom workload group named MyApp.
You need to monitor processor resources. What should you do?
A. X Use the sys.dm_os_performance_counters to monitor the CPU usage % counter of the SQLServer: Workload
Group Stats performance object for the MyApp workload group.
B. Use the request_max_cpu_time_sec column of the sys.resource_governor_workload_groups catalog view.
C. Use the sys.dm_resource_governor_workoad_groups dynamic management view to monitor the CPU usage for
the default workload group.
D. Use the sys_dm_os_performance_counters to monitor the CPU usage % counter of the SQLServer: Workload
Group Stats performance object for the default workload group.

Question 2
You administer a Microsoft SQL Server 2008 database for an order-processing application. Users report intermittent poor
performance. You identify the cause as large reports being run by members of the Reporting group. The following TransactSQL statements have been run against the database:



CREATE TABLE UserClassification (GroupName SYSNAME, UserName SYSNAME );



INSERT into UserClassification VALUES (’ProductionGroup’, ‘User1’), (‘ProductionGroup’, ‘User2’),

H. (‘Reporting Group’, ‘User3’), (‘Reporting Group’, ‘User4’);
CREATE FUNCTION UserClassifier () RETURNS SYSNAME
WITH SCHEMABINDING AS
BEGIN
DECLARE @group SYSNAME
SELECT TOP 1
@group = uc.GroupName FROM
dbo.UserClassification uc WHERE


uc.UserName = SUSER_SNAME ()
If (@Group IS NOT NULL) BEGIN
RETURN @Group END
RETURN N’default’ END;
You need to ensure that members of the reporting group can use only up to 35 percent of the CPU and up to 45 percent of
the available RAM.
Which four Transact-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of
statements to the answer area and arrange them in the correct order.)
Select and Place:

Correct Answer:



Question 3
You administer a Microsoft SQL Server 2008 R2 database instance. The service account used by SQL Server services must
not have administrative permissions. You configure a new SQL Server Agent job to run every night. One of the steps in the
job runs a Powershell (Operating System - CmdExec) step. The job continuously fails on this step and throws the following
error message:
"The process could not be created for step 1 of job (reason: A required privilege is not held by the client). The step failed."
You need to ensure that the SQL Server Agent Job executes successfully.
Which four actions should you perform in sequence?
Select and Place:


Correct Answer:


Question 4
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.
Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 instance. You need to check the physical consistency of the database.
What should you do?
I.

Execute sp_helpfile.

J.

X Execute DBCC CHECKDB.

K. Examine the msdb...suspect_pages table.

L. Execute DBCC CHECKDB along with the REPAIR_FAST clause.
M. Execute DBCC CHECKDB along with the REPAIR_REBUILD clause.
N. Restore the database from the most recent full backup. Apply any differential and log backups.
O. Use the ALTER DATABASE statement along with the SET EMERGENCY clause.
P.

Use the RESTORE DATABASE statement along with the PAGE clause. Create a new log backup. Apply all
differential and log backups, including the most recent backup.

Q. Use the RESTORE DATABASE statement along with the PAGE clause. Apply any differential and log
backups. Create a new log backup and then restore the new log backup.


Question 5
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.
Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 instance. You need to rectify a damaged index without losing any data.
What should you do?
R. Execute sp_helpfile.
S.

Execute DBCC CHECKDB.

T. Examine the msdb...suspect_pages table.
U. Execute DBCC CHECKDB along with the REPAIR_FAST clause.
V.

X Execute DBCC CHECKDB along with the REPAIR_REBUILD clause.


W. Restore the database from the most recent full backup. Apply any differential and log backups.
X. Use the ALTER DATABASE statement along with the SET EMERGENCY clause.
Y. Use the RESTORE DATABASE statement along with the PAGE clause. Create a new log backup. Apply all
differential and log backups, including the most recent backup.
Z. Use the RESTORE DATABASE statement along with the PAGE clause. Apply any differential and log
backups. Create a new log backup and then restore the new log backup.

Question 6
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.
Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 instance. A disk drive that contains the files for the database is lost. The
drive has been replaced, but the data files have been irrevocably lost. You need to restore the database. What should you
do?
A

Execute sp_helpfile.

AA. Execute DBCC CHECKDB.
AB. Examine the msdb...suspect_pages table.
AC. Execute DBCC CHECKDB along with the REPAIR_FAST clause.
AD. Execute DBCC CHECKDB along with the REPAIR_REBUILD clause.
AE. X Restore the database from the most recent full backup. Apply any differential and log backups.
AF. Use the ALTER DATABASE statement along with the SET EMERGENCY clause.
AG. Use the RESTORE DATABASE statement along with the PAGE clause. Create a new log backup. Apply all
differential and log backups, including the most recent backup.
A. Use the RESTORE DATABASE statement along with the PAGE clause. Apply any differential and log backups.
Create a new log backup and then restore the new log backup.

Question 7

You administer a Microsoft SQL Server 2008 R2 database instance. Occasionally, the following problems occur:


The SQL Server service fails to start.
A query from the application runs slower than expected.
You need to be able to diagnose each of these problems. Which tool or tools should you use?
Select and Place:

Correct Answer:

Question 8
You administer three SQL Server 2008 instances on separate servers named Server1, Server2 and Server3.
The AdventureWorks database is configured for mirroring between the instances. In the mirroring session, Sever1 and
Server2 act as partners and Server3 as the witness.
You have the following requirements:
All three servers run a maintenance process that requires occasional restart of the computer.
The SQL Server service on each server is shut down only during the actual restart of the computer.
After completion of the maintenance process, re-enable automatic failover and synchronize the mirroring session in
minimum possible time.


You need to ensure that automatic failover is disabled during the maintenance process. What should you do first?
A. Suspend the mirroring session.
B. Configure the mirroring session with the SAFETY option set to ON.
C. X Remove the witness server from the mirroring session.
D. Remove mirroring from the database.

Question 9
You administer two SQL Server 2008 instances on separate servers named Server1 and Server2. The AdventureWorks
database is set up for synchronous mirroring between the two instances.

You need to configure the database to support automatic failover. What should you do?
A. Configure the mirroring session by using the FAILOVER option.
B. X Configure the mirroring session by adding a witness server to it.
C. Configure the mirroring session with the SAFETY option set to OFF.
D. Configure the mirroring session with the SAFETY option set to FULL.

Question 10
You administer a Microsoft SQL Server 2008 R2 instance that contains two databases named Northwind2008R2 and
AdventureWorks.
The Northwind2008R2 database uses the SQL_Latin1_General_CP1_CI_AS collation
The AdventureWorks database uses the SQL_Latin1_General_CP1_CS_AS collation.
You need to write a query that returns all customers having the same name in each database. You also need to ensure that
the query is not case-sensitive.
Which Transact-SQL query should you use?
A. X SELECT* FROM AdventureWorks.dbo.customer adv INNER JOIN Northwind2008R2.dbo.customer nrt ON
adv.CustomerName = nrt.CustomerName COLLATE SQL_Latin1_General_CP1_CI_AS;
B. SELECT* FROM AdventureWorks.dbo.customer adv INNER JOIN Northwind2008R2.dbo.customer nrt ON
adv.CustomerName = nrt.CustomerName USING COLLATION SQL_Latin1_General_CP1_CI_AS;
C. SET COLLATE SQL_Latin1_General_CP1_CI_AS; SELECT* FROMAdventureWorks.dbo.customer adv
INNER JOIN Northwind2008R2.dbo.customer nrt ON adv.CustomerName = nrt.CustomerName
D. SELECT * FROM AdventureWorks.dbo.customer adv INNER JOIN Northwind2008R2.dbo.customer nrt ON
adv.CustomerName = nrt.CustomerName COLLATE SQL_Latin1_General_CP1_CS_AS;

Question 11
You administer a Microsoft SQL Server 2008 instance that has TCP/IP enabled. You need to verify the port that the SQL
Server instance listens on.
What should you do?
A. X Open SQL Server Configuration Manager. Expand the SQL Server Network Configuration services. Select the
Protocols for (InstanceName) service. In the right panel, right click TCP/IP, select the Properties option, and then
select the IP Addresses tab.

B. Open SQL Server Configuration Manager. Expand the SQL Native Client 10.0 Configuration service. Select the
Client Protocols service. Set the Properties option.
C. Open SQL Server Configuration Manager Select the SQL Server Service service. In the right panel, right click
SQL Server (InstanceName), right-click Properties and then select the Advanced tab.


D. Open SQL Server Configuration Manager Select the SQL Server Service service. In the right panel, right click
SQL Server Browser, right-click Properties, and then select the Advanced tab.

Question 12
You administer a database for an online ordering system.
You plan to create a disaster recovery plan that uses transaction log backups by using only Microsoft SQL Server native
tools. You need to ensure that the transaction log backup schedule meets the following requirements:


Log backups occur every 15 minutes between 9:00 hours and 17:00 hours.



Log backups occur every hour between 17:00 hours and 9:00 hours.

What should you do?
A. Create two SQL Server Integration Services (SSIS) packages by using a single schedule.
B. Create a single SQL Server Integration Services (SSIS) package by using two schedules.
C. Insert a new row to dm_os_schedulers.
D. X Create a database maintenance plan by using the Database Maintenance Wizard.

Question 13
You administer a Microsoft SQL Server 2008 R2 instance by using a database named AdventureWorks2008R2. You need
to implement transparent data encryption for a database hosted by the server.

Which four Transaction-SQL statements should you use?
Select and Place:

Correct

Answer:


QUESTION 14
You administer two SQL Server 2008 instance that contains a database named DB1. DB1 contains a table named
Sales.Table1. You need to obtain the effective permissions of a user named User1 to access the Sales.Table1 table.
Which Transact-SQL statement(s) should you execute in the DB1 database?
A. EXEC sp_helprotect 'Sales.Table1', 'User1';
B. X EXECUTE AS USER = 'User1'; SELECT * FROM sys.fn_my_permissions('Sales.Table1', 'OBJECT');
C. SELECT * FROM sys.database_permissions WHERE class_desc = OBJECT_ID('Sales.Table1') AND
grantee_principal_id = USER_ID('User1');
D. SELECT * FROM sys.sysprotects WHERE uid = USER_ID('User1') AND id = OBJECT_ID('Sales.Table1');

Question 15
You administer a Microsoft SQL Server 2008 R2 database installed along with the default settings.
You want to migrate a database from a SQL Server 2000 server that is being decommissioned. The application executes a
number of Windows command-line calls from stored procedures in the database. You need to configure SQL Server 2008
R2 to allow command-line calls from the database.
Which three actions should you perform in sequence?
Select and Place:


Correct Answer:



Question 16
You administer two SQL Server 2008 instances named Instance1 and Instance2. A database named Customers resides on
Instance1. You move the Customers database from Instance1 to Instance2.The user attempts to access the Customers
database on Instance2 by using the SQL Server login User1. However, the user receives an error message which indicates
that the access to the Customers database is denied. You need to ensure the User1 can access the Customers database.
Which Transact-SQL statements should you execute on Instance2?
A. USE Customers; ALTER USER User1 ENABLE;
B. USE Customers; ALTER LOGIN User1 WITH PASSWORD = '111999' UNLOCK;
C. X USE Customers;

ALTER USER User1 WITH LOGIN = User1;

D. USE Customers; ALTER LOGIN User1 WITH DEFAULT_DATABASE = Customers;

Question 17
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.
Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 database that contains an OrderItems table. The table has the following
definition:
CREATE TABLE [OrderItems] (OrderID INT NOT NULL, OrderDate DATETIME NOT NULL,
OrderLine INT NOT NULL, ProductID INT NOT NULL, Quantity INT NOT NULL, PriceEach MONEY NOT NULL,


);
Currently, the table is partitioned by year with each in its own filegroup. You need to add a new partition for the upcoming
year. What should you do?
A. Remove the clustered index from the table.
B. Use the ALTER PARTITION FUNCTION … SPLIT RANGE statement.
C. Use the ALTER TABLE statement to remove the COLLATE option.

D. Execute the DBCC CLEANTABLE command on the OrderItems table.
E. Create a new Filegroup. Create a new database file.
Use the ALTER PARTITION SCHEME statement along with NEXT USED clause. Use ALTER INDEX REORGANIZE
statement.
F.

X Create a new Filegroup. Create a new database file.

Use the ALTER PARTITION SCHEME statement along with NEXT USED clause Use ALTER PARTITION
FUNCTION statement along with the SPLIT RANGE clause
G. Create a new table.
Use the ALTER TABLE statement along with the SWITCH PARTITION clause.
Use ALTER PARTITION FUNCTION statement along with the MERGE RANGE clause.
H. Create a new partition function. Create a new partition scheme.
Add a clustered index to place the data onto the partition scheme.
I.

Run the following statement:

CREATE PARTITION SCHEME SEC_FG AS PARTITION FUNC_FG
ALL TO ( SECONDARY );
J. Run the following statement:
EXECUTE sp_tableoption
@TableNamePattern ='OrderItems',
@OptionName= 'PartitionByYear',
@OptionValue= 'true';.

Question 20
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.

Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 database that contains an OrderItems table. The table has the following
definition:
CREATE TABLE [OrderItems] (OrderID INT NOT NULL, OrderDate DATETIME NOT NULL,
OrderLine INT NOT NULL, ProductID INT NOT NULL, Quantity INT NOT NULL, PriceEach MONEY NOT NULL,


);
Data is grouped into quarterly partitions.
You need to configure the groupings into 12 monthly partitions. What should you do?
A. Remove the clustered index from the table.
B.

X Use the ALTER PARTITION FUNCTION … SPLIT RANGE statement.

C. Use the ALTER TABLE statement to remove the COLLATE option.
D. Execute the DBCC CLEANTABLE command on the OrderItems table.
E. Create a new Filegroup. Create a new database file.
Use the ALTER PARTITION SCHEME statement along with NEXT USED clause Use ALTER INDEX REORGANIZE
statement.
F. Create a new Filegroup. Create a new database file.
Use the ALTER PARTITION SCHEME statement along with NEXT USED clause Use ALTER PARTITION
FUNCTION statement along with the SPLIT RANGE clause
G. Create a new table.
Use the ALTER TABLE statement along with the SWITCH PARTITION clause.
Use ALTER PARTITION FUNCTION statement along with the MERGE RANGE clause.
H. Create a new partition function. Create a new partition scheme.
Add a clustered index to place the data onto the partition scheme.
I.


Run the following statement:

CREATE PARTITION SCHEME SEC_FG AS PARTITION FUNC_FG
ALL TO ( SECONDARY );
J. Run the following statement:
EXECUTE sp_tableoption
@TableNamePattern ='OrderItems',
@OptionName= 'PartitionByYear',
@OptionValue= 'true';.

Question 21
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be
correct for more than one question in the series. Each question is independent of the other questions in this series.
Information and details provided in a question apply only to that question.
You administer a Microsoft SQL Server 2008 R2 database that contains an OrderItems table. The table has the following
definition:
CREATE TABLE [OrderItems] (OrderID INT NOT NULL, OrderDate DATETIME NOT NULL,
OrderLine INT NOT NULL, ProductID INT NOT NULL, Quantity INT NOT NULL, PriceEach MONEY NOT NULL,


);
Currently, the table is partitioned by year with each year in its own filegroup.
You need to move the data from the oldest year into a new table in a different Schema to archive the data. What should you
do?
A. Remove the clustered index from the table.
B. Use the ALTER PARTITION FUNCTION … SPLIT RANGE statement.
C. Use the ALTER TABLE statement to remove the COLLATE option.
D. Execute the DBCC CLEANTABLE command on the OrderItems table.
E. Create a new Filegroup. Create a new database file.
Use the ALTER PARTITION SCHEME statement along with NEXT USED clause Use ALTER INDEX REORGANIZE

statement.
F. Create a new Filegroup. Create a new database file.
Use the ALTER PARTITION SCHEME statement along with NEXT USED clause Use ALTER PARTITION
FUNCTION statement along with the SPLIT RANGE clause
G.

X Create a new table.

Use the ALTER TABLE statement along with the SWITCH PARTITION clause.
Use ALTER PARTITION FUNCTION statement along with the MERGE RANGE clause.
H. Create a new partition function. Create a new partition scheme.
Add a clustered index to place the data onto the partition scheme.
I.

Run the following statement:

CREATE PARTITION SCHEME SEC_FG AS PARTITION FUNC_FG
ALL TO ( SECONDARY );
J. Run the following statement:
EXECUTE sp_tableoption
@TableNamePattern ='OrderItems',
@OptionName= 'PartitionByYear',
@OptionValue= 'true';.

Question 24
You install a 64-bit version of a SQL Server 2008 instance by using the default setup and configuration settings. You
receive the following error message:
"Your SQL Server installation completed with failures."
You close the error window before noting the location where additional information about the error is recorded. You need
to located the additional information.

Where would you search?


A. The Event Viewer System log file
B. The C:\Program Files\Microsoft SQL Server\MSSQL\LOG folder
C.

X The C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\ folder

D. The Event Viewer Application log file

Question 25
You administer a Microsoft SQL Server 2008 R2 database that hosts an order-processing application. You need to ensure
that the database allows full-text searches on the Customers table. You also need to ensure that the full-text index is ready
for use by the users. You execute a Transact-SQL statement to create the full-text index on the Customers table by using the
CHANGE_TRACKING OFF and NO POPULATION clauses in the CREATE FULLTEXT INDEX statement. You
execute an ALTER FULLTEXT INDEX.
Which command or commands should you use next?
A. ALTER INDEX Customers REORGANIZE
B. X ALTER FULLTEXT INDEX on Customers START FULL POPULATION
C. DROP FULLTEXT INDEX
D. ALTER FULLTEXT INDEX on Customers ENABLE

Question 26
You administer a SQL Server 2008 instance. You configure a single Database Mail profile that is used to send reports to all
the employees of your organization. The sp_send_dbmail stored procedure is used to send a large volume of reports during
business hours. The reports to the manager take a long time to be delivered. You need to ensure that the reports to the
manager are sent as quickly as possible. What should you do?
A. Modify the SMTP relay settings.
B. Modify the parameters of the email that contains the reports.

C. X Create a separate Database Mail profile for the reports.
D. Configure the security settings of the Database Mail system.

Question 27
You administer a SQL Server 2008 instance.You need to configure the instance to use a single thread for queries that have
an estimated execution cost of less than 3.
Which sp_configure configuration option should you set?
A. X cost threshold for parallelism
B. precompute rank
C. max worker threads
D. priority boost
E. query governor cost limit

Question 28
You maintain a SQL Server 2008 instance that contains a database named AdventureWorks. The AdventureWorks database
contains a table named OrderSpecs. The OrderSpecs table has a clustered primary key named OrderID on the OrderID
column. The OrderSpecs table has a single XML column named ProductSpecs that stores XML data, and there is an XML
index on the same XML column. You add a new column named ProductID to the OrderSpecs table. You need to include
ProductId in the primary key. What should you do?


A.

Alter the XML index and set the ALLOW_ROW_LOCKS = OFF option. Alter the primary key and set the
ALLOW_ROW_LOCKS = ON option.

B.

Disable the XML index on the ProductSpecs column. Modify the primary key.


Enable the XML index on the ProductSpecs column.
C.

X Drop the XML index on the table. Modify the primary key. Recreate the XML index.

D.

Move the XML data to a temporary.

Create the XML data from the original table by setting the ProductsSpecs column to NULL. Modify the primary key.
Repopulate the ProductsSpecs column.

Question 29
You maintain a SQL Server 2008 instance that contains a database named Sales. The Sales database contains a table named
CompanyName. The current database collation is SQL_Latin1_General_Cp1_CI_AS. You need to ensure that the indexes
which include the CompanyName column are case-sensitive. You also need to ensure that other case-insensitive queries are
unaffected. What should you do?
A.

X Drop all indexes on the Customer table that include the CompanyName column in the index key. Modify the
column to specify the SQL_Latin1_General_Cp1_CS_AS collation.

Recreate the CompanyName indexes on the Customer table.
B.

Use the UPPER function in the filter criteria on all queries that filter on the CompanyName column.

C.

Use the CAST function in the filter criteria on all queries that filter on the CompanyName column.


D.

Drop all indexes on the Sales database.

Modify the column to specify the SQL_Latin1_General_Cp1_CS_AS collation. Rebuild all the indexes.

Question 30
You maintain a SQL Server 2008 instance that contains a database named AdventureWorks. You plan to use data
compression to conserve disk space. You compress a table named VeryLarge that has a clustered index named Index1 and a
non-clustered index named Index2. Both indexes are partitioned. You execute the following Transact_SQL statement.
ALTER INDEX Index2 ON VeryLarge REBUILD WITH (DATA_COMPRESSION = ROW);
You need to ensure that all the indexes of the VeryLarge table are compressed by using row-level compression. You need
to accomplish this goal by using minimum resources.
Which Transact-SQL statement should you execute?
A. X ALTER INDEX Index1 ON VeryLarge REBUILD WITH (DATA_COMPRESSION = ROW);
B. ALTER INDEX ALL ON VeryLarge REBUILD PARTITION=ALL WITH (DATA_COMPRESSION = ROW);
C. ALTER INDEX Index1 ON VeryLarge REORGANIZE WITH (LOB_COMPACTION = ON);
D. ALTER INDEX ALL ON VeryLarge REBUILD WITH (DATA_COMPRESSION = ROW);

Question 31
You administer a SQL Server 2008 instance. You have a stored procedure that implements a database maintenance process.
You need to create a SQL Server Agent job that runs the stored procedure. You also need to ensure that the job is removed
after successful completion.
What should you do?
A. X Create a job that uses the Automatically delete job option.
B. Create an Alert that will be raised when the job completes. This Alert will run another job to delete the
maintenance job.



×