Microsoft
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 2
You administer all the deployments of Microsof SQL Server 2012 in your company.
You need to ensure that an OLTP database that includes up-to-the-minute reportnn requirements can be of-loaded
from the primary database to another server. You also need to be able to add indexes to the secondary database.
Which confnuraton should you use?
A.
Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
One server confnured as an Actve Secondary
B.
Two servers confnured in the same data center
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
One server confnured as an Actve Secondary
C.
Two servers confnured in the same data center
A primary server confnured to perform lon-shippinn every 10 minutes
A backup server confnured as a warm standby
D.
Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
E.
Two servers confnured on the same subnet
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
F.
SQL Server that includes an applicaton database confnured to perform transactonal replicaton
G.
SQL Server that includes an applicaton database confnured to perform snapshot replicaton
H.
Two servers confnured in a Windows Failover Cluster in the same data center
SQL Server confnured as a clustered instance
Aoswern F
Reference:
htp:::msdn.microsof.com:en-us:library:jj542414.aspx
Question 2
You administer all the deployments of Microsof SQL Server 2012 in your company.
You need to ensure that data channes are sent to a non-SQL Server database server in near real tme.
You also need to ensure that data on the primary server is unafected.
Which confnuraton should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 3
A. SQL Server that includes an applicaton database confnured to perform transactonal replicaton
B. Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
C. Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
One server confnured as an Actve Secondary
D. SQL Server that includes an applicaton database confnured to perform snapshot replicaton
E. Two servers confnured in the same data center
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
One server confnured as an Actve Secondary
F. Two servers confnured on the same subnet
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
G. Two servers confnured in a Windows Failover Cluster in the same data center
SQL Server confnured as a clustered instance
H. Two servers confnured in the same data center
A primary server confnured to perform lon-shippinn every 10 minutes
A backup server confnured as a warm standby
Aoswern A
Reference:
htp:::msdn.microsof.com:en-us:library:ms151149.aspx
Question 3
You administer all the deployments of Microsof SQL Server 2012 in your company.
A database contains a larne product catalon that is updated periodically.
You need to be able to send the entre product catalon to all branch ofces on a monthly basis.
Which confnuraton should you use?
A.
Two servers confnured in the same data center
A primary server confnured to perform lon-shippinn every 10 minutes
A backup server confnured as a warm standby
B.
SQL Server that includes an applicaton database confnured to perform transactonal replicaton
C.
Two servers confnured in the same data center
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
One server confnured as an Actve Secondary
D
Two servers confnured in a Windows Failover Cluster in the same data center
SQL Server confnured as a clustered instance
E.
SQL Server that includes an applicaton database confnured to perform snapshot replicaton
F.
Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
One server confnured as an Actve Secondary
G.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 4
Aoswern E
Question 4
You administer all the deployments of Microsof SQL Server 2012 in your company.
You need to ensure that an OLTP database that uses a storane area network (SAN) remains available if any of the
servers fail.
You also need to minimize the amount of storane used by the database.
Which confnuraton should you use?
A.
Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
One server confnured as an Actve Secondary
B.
SQL Server that includes an applicaton database confnured to perform transactonal replicaton
C.
Two servers confnured in the same data center
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
One server confnured as an Actve Secondary
D.
Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
E.
Two servers confnured in the same data center
A primary server confnured to perform lon-shippinn every 10 minutes
A backup server confnured as a warm standby
F.
Two servers confnured on the same subnet
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
G.
SQL Server that includes an applicaton database confnured to perform snapshot replicaton
H.
Two servers confnured in a Windows Failover Cluster in the same data center
SQL Server confnured as a clustered instance
Aoswern H
Question 5
You administer a Microsof SQL Server 2012 server that hosts a transactonal database and a reportnn database. The
transactonal database is updated throunh a web applicaton and is operatonal throunhout the day. The reportnn
database is only updated from the transactonal database.
The recovery model and backup schedule are confnured as shown in the followinn table:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 5
The diferental backup of the reportnn database fails. Then, the reportnn database fails at 14:00 hours.
You need to ensure that the reportnn database is restored. You also need to ensure that data loss is minimal.
What should you do?
A. Restore the latest full backup, and restore the latest diferental backup. Then, restore the latest lon backup.
B. Perform a point-in-tme restore.
C. Restore the latest full backup.
D. Restore the latest full backup, and restore the latest diferental backup. Then, restore each lon backup taken before
the tme of failure from the most recent diferental backup.
E. Restore the latest full backup. Then, restore the latest diferental backup.
F. Restore the latest full backup. Then, restore each diferental backup taken before the tme of failure from the most
recent full backup.
G. Perform a pane restore.
H. Perform a partal restore.
Aoswern C
Question 6
You administer a Microsof SQL Server 2012 server that hosts a transactonal database and a reportnn database. The
transactonal database is updated throunh a web applicaton and is operatonal throunhout the day. The reportnn
database is only updated from the transactonal database.
The recovery model and backup schedule are confnured as shown in the followinn table:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 6
At 14:00 hours, you discover that panes 71, 520, and 713 on one of the database fles are corrupted on the reportnn
database.
You also need to ensure that data loss is minimal.
What should you do?
Aoswern H
Explanaton:
Restores a fle or flenroup in a mult-flenroup database. Note that under the simple recovery model, the fle must
belonn to a read-only flenroup. Afer a full fle restore, a diferental fle backup can be restored.
Pane restore
Restores individual panes. Pane restore is available only under the full and bulk-lonned recovery models.
Piecemeal restore
Restores the database in stanes, beninninn with the primary flenroup and one or more secondary flenroups. A
piecemeal restore benins with a RESTORE DATABASE usinn the PARTIAL opton and specifyinn one or more secondary
flenroups to be restored.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 7
Question 7
You administer a Microsof SQL Server 2012 server that hosts a transactonal database and a reportnn database. The
transactonal database is updated throunh a web applicaton and is operatonal throunhout the day. The reportnn
database is only updated from the transactonal database.
The recovery model and backup schedule are confnured as shown in the followinn table:
At 16:20 hours, you discover that panes 17, 137, and 205 on one of the database fles are corrupted on the
transactonal database.
You need to ensure that the transactonal database is restored.
You also need to ensure that data loss is minimal.
What should you do?
Aoswern F
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 8
Question 8
You administer a Microsof SQL Server 2012 server that hosts a transactonal database and a reportnn database. The
transactonal database is updated throunh a web applicaton and is operatonal throunhout the day. The reportnn
database is only updated from the transactonal database.
The recovery model and backup schedule are confnured as shown in the followinn table:
One of the hard disk drives that stores the reportnn database fails at 16:40 hours.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 9
You need to ensure that the reportnn database is restored. You also need to ensure that data loss is minimal.
What should you do?
A. Restore the latest full backup. Then, restore each diferental backup taken before the tme of failure from the most
recent full backup.
B. Perform a partal restore.
C. Restore the latest full backup, and restore the latest diferental backup. Then, restore the latest lon backup.
D. Perform a point-in-tme restore.
E. Restore the latest full backup.
F. Perform a pane restore.
G. Restore the latest full backup, and restore the latest diferental backup. Then, restore each lon backup taken before
the tme of failure from the most recent diferental backup.
H. Restore the latest full backup. Then, restore the latest diferental backup.
Aoswern H
Question 9
DRAG DROP
You administer three Microsof SQL Server 2012 servers named ServerA, ServerB, and ServerC.
ServerA is the actnn principal and ServerB is the mirror.
You need to add ServerC as a witness to the existnn mirrorinn session between ServerA and ServerB.
You need to achieve this noal without delayinn synchronizaton.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 10
Question 10
You administer a Microsof SQL Server 2012 database.
You create an availability nroup named haContosoDbs. Your primary replica is available at Server01\Contoso01.
You need to confnure the availability nroup to have the hinhest availability.
You also need to ensure that no data is lost.
Which Transact-SQL statement should you use?
A. Opton A
B. Opton B
C. Opton C
D. Opton D
Aoswern C
Question 11
DRAG DROP
You administer several Microsof SQL Server 2012 servers. Your company has a number of ofces across the world
connected by usinn a wide area network (WAN).
Connectons between ofces vary sinnifcantly in both bandwidth and reliability.
You need to identfy the correct replicaton method for each scenario.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 11
What should you do? (To answer, dran the appropriate replicaton method or methods to the correct locaton or
locatons in the answer area. Each replicaton method may be used once, more than once, or not at all.)
Aoswern
Reference:
htp:::msdn.microsof.com:en-us:library:ms151198.aspx
Question 12
You administer several Microsof SQL Server 2012 database servers. Merne replicaton has been confnured for an
applicaton that is distributed across ofces throunhout a wide area network (WAN).
Many of the tables involved in replicaton use the XML and varchar (max) data types. Occasionally, merne replicaton
fails due to tmeout errors.
You need to reduce the occurrence of these tmeout errors.
What should you do?
A. Set the Merne anent on the problem subscribers to use the slow link anent profle.
B. Create a snapshot publicaton, and reconfnure the problem subscribers to use the snapshot publicaton.
C. Channe the Merne anent on the problem subscribers to run contnuously.
D. Set the Remote Connecton Timeout on the Publisher to 0.
Aoswern A
Explanaton:Reference:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 12
When replicaton is confnured, a set of anent profles is installed on the Distributor. An anent profle contains a set of
parameters that are used each tme an anent runs: each anent lons in to the Distributor durinn its startup process and
queries for the parameters in its profle.
For merne subscriptons that use Web synchronizaton, profles are downloaded and stored at the Subscriber. If the
profle is channed, the profle at the Subscriber is updated the next tme the Merne Anent runs. For more informaton
about Web synchronizaton, see Web Synchronizaton for Merne Replicaton.
Replicaton provides a default profle for each anent and additonal predefned profles for the
Lon Reader Anent, Distributon Anent, and Merne Anent. In additon to the profles provided, you can create profles
suited to your applicaton requirements. An anent profle allows you to channe key parameters easily for all anents
associated with that profle. For example, if you have 20 Snapshot Anents and need to channe the query tmeout value
(the - QueryTimeout parameter), you can update the profle used by the Snapshot Anents and all anents of that type
will benin usinn the new value automatcally the next tme they run.
You minht also have diferent profles for diferent instances of an anent. For example, a
Merne Anent that connects to the Publisher and Distributor over a dialup connecton could use a set of parameters
that are beter suited to the slower communicatons link by usinn the slow link profle.
Question 13
DRAG DROP
You administer two Microsof SQL Server 2012 servers named ServerA and ServerB. You use a database named
AdventureWorks.
You need to prepare the AdventureWorks database for database mirrorinn. ServerB will act as the mirror in a
mirrorinn partnership alonn with Server
A.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 13
Reference:
htp:::msdn.microsof.com:en-us:library:ms189852.aspx
htp:::msdn.microsof.com:en-us:library:ms190941.aspx
Question 14
You create an availability nroup named HaContoso that has replicas named Server01:HA, Server02:HA, and
Server03:HA.
Currently, Server01l:HA is the primary replicA.
You need to ensure that the followinn requirements are met:
Backup operatons occur on Server02:HA.
If Server02:HA is unavailable, backup operatons occur on Server03:HA.
Backup operatons do not occur on Server01:HA.
How should you confnure HaContoso?
A.
Set the backup preference of HaContoso to Prefer Secondary.
Set the backup priority of Server02:HA to 20.
Set the backup priority of Server03:HA to 10.
B.
Set the backup preference of HaContoso to Secondary only.
Set the backup priority of Server02:HA to 20.
Set the backup priority of Server03:HA to 10.
C.
Set the backup preference of HaContoso to Secondary only.
Set the backup priority of Server02:HA to 10.
Set the backup priority of Server03:HA to 20.
D.
Set the exclude replica of Server01:HA to true.
Set the backup priority of Server02:HA to 10.
Set the backup priority of Server03:HA to 20.
Aoswern B
Reference:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 14
htp:::msdn.microsof.com:en-us:library:f877884.aspx
Question 15
You administer a Microsof SQL Server 2012 instance that has several SQL Server Anent jobs confnured.
When SQL Server Anent jobs fail, the error messanes returned by the job steps are truncated.
The followinn error messane is an example of the truncated error messane:
"Executed as user CONTOSO\ServiceAccount....0.4035.00 for 64-bit Copyrinht (C) Microsof Corp 1984-2011. All rinhts
reserveD. Started 63513 PM Error 2012-06-23 183536.87 Code 0XC001000E Source UserImport Descripton Code
0x00000000 Source Lon Import Actvity Descript... The packane executon f
A. .. The step failed. "
You need to ensure that all the details of the job step failures are retained for SQL Server Anent jobs.
What should you do?
A. Expand anent lonninn to include informaton from all events.
B. Disable the Limit size of job history lon feature.
C. Confnure event forwardinn.
D. Confnure output fles.
Aoswern D
Question 16
DRAG DROP
You administer a Microsof SQL Server 2012 environment that contains a producton SQL Server 2005 instance named
SQL2005 and a development SQL Server 2012 instance named SQL2012.
The development team develops a new applicaton that uses the SQL Server 2012 functonality. You are planninn to
minrate a database from SQL2005 to SQL2012 so that the development team can test their new applicaton.
You need to minrate the database without afectnn the producton environment.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 15
Reference: htp:::msdn.microsof.com:en-us:library:ms177429.aspx
Question 17
DRAG DROP
You administer three Microsof SQL Server 2008 R2 instances.
Database mirrorinn is confnured in Hinh-Safety mode with Automatc Failover between the followinn three servers:
SQL1 is the Principal server.
SQL2 is the mirror server.
SQL3 is the witness server.
You need to upnrade SQL1 and SQL2 to SQL Server 2012. You need to ensure that downtme is minimized durinn the
upnrade.
Which six actons should you perform in sequence? (To answer, move the appropriate actons from the list of actons
to the answer area and arranne them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 16
Reference:
htp:::msdn.microsof.com:en-us:library:bb677181.aspx
Question 18
You administer a Microsof SQL Server 2012 server that has SQL Server Intenraton Services (SSIS) installed.
You plan to deploy new SSIS packanes to the server. The SSIS packanes use the Project Deployment Model tonether
with parameters and Intenraton Services environment variables.
You need to confnure the SQL Server environment to support these packanes.
What should you do?
Aoswern B
Question 19
A. SQL Mail
B. An Extended Events session
C. Alerts and operators in SQL Server Anent
D. Policies under Policy-Based Mananement
Aoswern C
Question 20
You administer two instances of Microsof SQL Server 2012. You deploy an applicaton that uses a database on the
named instance.
The applicaton is unable to connect to the database on the named instance.
You need to ensure that the applicaton can connect to the named instance.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 17
Aoswern B
Question 21
DRAG DROP
You administer a Microsof SQL Server 2012 database.
You use an OrderDetail table that has the followinn defniton:
You need to create a non-clustered index on the SalesOrderID column in the OrderDetail table to include only rows
that contain a value in the SpecialOferID column.
Which four Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of
statements to the answer area and arranne them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 18
Explanaton:
Accordinn to these references, this answer looks correct.
References:
htp:::msdn.microsof.com:en-us:library:ms188783.aspx
htp:::msdn.microsof.com:en-us:library:ms189280.aspx
Question 22
HOTSPOT
You administer a Microsof SQL Server 2012 database.
The database contains a table that has the followinn defniton:
You want to export data from the table to a fat fle by usinn the SQL Server Import and Export Wizard.
You need to ensure that the followinn requirements are met:
The frst row of the fle contains the frst row of data.
Each record is of the same lennth.
The date follows the U.S. date format.
The fle supports internatonal characters.
What should you do? (To answer, confnure the appropriate opton or optons in the dialon box in the answer area.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 19
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 20
References:
htp:::msdn.microsof.com:en-us:library:ms178804.aspx
htp:::msdn.microsof.com:en-us:library:ms187828.aspx
Question 23
You administer a Microsof SQL Server 2012 database. The database has a table named Customers owned by UserA
and another table named Orders owned by UserB. You also have a stored procedure named GetCustomerOrderInfo
owned by UserB. GetCustomerOrderInfo selects data from both tables.
You create a new user named UserC.
You need to ensure that UserC can call the GetCustomerOrderInfo stored procedure. You also need to assinn only the
minimum required permissions to UserC.
Which permission or permissions should you assinn to UserC? Choose all that apply.
Aoswern A, B
References:
htp:::msdn.microsof.com:en-us:library:ms188676.aspx
htp:::stackoverfow.com:questons:2212044:sql-server-how-to-permission-schemas
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 21
htp:::sqlservercentral.com:blons:steve_jones:2012:03:14:ownership-chains-in-sql-server
Question 24
You administer a Microsof SQL Server 2012 database named ContosoDB. The database contains a table named
Suppliers and a column named IsActve in the Purchases schem
A.
You create a new user named ContosoUser in ContosoDB. ContosoUser has no permissions to the Suppliers table.
You need to ensure that ContosoUser can delete rows that are not actve from Suppliers. You also need to nrant
ContosoUser only the minimum required permissions.
Which Transact-SQL statement should you use?
A. GRANT DELETE ON Purchases. Suppliers TC ContosoUser
B. CREATE PROCEDURE Purchases.PurnelnactveSuppliers
WITH EXECUTE AS USER = 'dbo'
AS
DELETE FROM Purchases.Suppliers WHERE IsActve = 0
GO
GRANT EXECUTE ON Purchases.PurnelnactveSuppliers TO ContosoUser
C. GRANT SELECT ON Purchases.Suppliers TO ContosoUser
D. CREATE PROCEDURE Purchases. PurneInactveSuppliers
AS
DELETE FROM Purchases.Suppliers WHERE IsActve = 0
GO
GRANT EXECUTE ON Purchases. PurneInactveSuppliers TO ContosoUser
Aoswern B
References:
htp:::msdn.microsof.com:en-us:library:ms188354.aspx
htp:::msdn.microsof.com:en-us:library:ms187926.aspx
Question 25
Aoswern C
Question 26
You administer a Microsof SQL Server 2012 database that has multple tables in the Sales schema.
Some users must be prevented from deletnn records in any of the tables in the Sales schema.
You need to manane users who are prevented from deletnn records in the Sales schema. You need to achieve this
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 22
A. Create a custom database role that includes the users. Deny Delete permissions on the Sales schema for the
custom database role.
B. Include the Sales schema as an owned schema for the db_denydatawriter role. Add the users to the
db_denydatawriter role.
C. Deny Delete permissions on each table in the Sales schema for each user.
D. Create a custom database role that includes the users. Deny Delete permissions on each table in the Sales schema
for the custom database role.
Aoswern A
Question 27
You are the lead database administrator (DBA) of a Microsof SQL Server 2012 environment.
All DBAs are members of the DOMAIN\JrDBAs Actve Directory nroup. You nrant DOMAIN\JrDBAs access to the SQL
Server.
You need to create a server role named SpecialDBARole that can perform the followinn functons:
View all databases.
View the server state.
Assinn GRANT, DENY, and REVOKE permissions on lonins.
You need to add DOMAIN\JrDBAs to the server role. You also need to provide the least level of privilenes necessary.
Which SQL statement or statements should you use? Choose all that apply.
Aoswern B, C, F
Question 28
DRAG DROP
You administer a Microsof SQL Server 2012 database.
All database trafc to the SQL Server must be encrypted by usinn secure socket layer (SSL) certfcates or the
connecton must be refused.
Network administrators have deployed server certfcates to the Windows store of all Windows servers on the
network from a trusted Certfcate Authority. This is the only Certfcate Authority allowed to distribute certfcates on
the network.
You enable the Force Encrypton fan for the MSSQLServer protocols, but client computers are unable to connect. They
receive the followinn error messane:
"A connecton was successfully established with the server, but then an error occurred durinn the pre-lonin
handshake, (provider: SSL Provider, error: 0 - The certfcate chain was issued by an authority that is not trusted.)
(Microsof SQL Server)"
You notce the followinn entry in the SQL Server lon:
"A self-nenerated certfcate was successfully loaded for encrypton."
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 23
You need to confnure SQL Server to encrypt all client trafc across the network.
You also need to ensure that client computers are able to connect to the server by usinn a trusted certfcate.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
Reference:
htp:::thesqldude.com:2012:04:21:seenn-up-ssl-encrypton-for-sql-server-usinn-certfcates-issuestps-tricks:
Question 29
You administer a Microsof SQL Server 2012 database that has Trustworthy set to On. You create a stored procedure
that returns database-level informaton from Dynamic Mananement Views.
You nrant User1 access to execute the stored procedure.
You need to ensure that the stored procedure returns the required informaton when User1 executes the stored
procedure. You need to achieve this noal by nrantnn the minimum permissions required.
What should you do? (Each correct answer presents a complete soluton. Choose all that apply.)
A. Create a SQL Server lonin that has VIEW SERVER STATE permissions.
Create an applicaton role and a secured password for the role.
B. Modify the stored procedure to include the EXECUTE AS OWNER statement.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 24
Grant VIEW SERVER STATE permissions to the owner of the stored procedure.
C. Create a SQL Server lonin that has VIEW SERVER STATE permissions.
Modify the stored procedure to include the EXECUTE AS {newlonin} statement.
D. Grant the db_owner role on the database to User1.
E. Grant the sysadmin role on the database to User1.
Aoswern B, C
Question 30
You are minratnn a database named Orders to a new server that runs Microsof SQL Server 2012.
You atempt to add the [Corpnet\User1] lonin to the database. However, you receive the followinn error messane:
"User already exists in current database."
You need to confnure the [Corpnet\User1] lonin to be able to access the Orders database and retain the orininal
permissions. You need to achieve this noal by usinn the minimum required permissions.
Which Transact-SQL statement should you use?
Aoswern C
Reference:
htp:::msdn.microsof.com:en-us:library:ms176060.aspx
Question 31
You atempt to restore the Orders database and the restore fails. You copy the encrypton fle to the orininal locaton.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 25
A hardware failure occurs and so a new server must be installed and confnured.
Afer installinn SQL Server to the new server, you restore the Orders database and copy the encrypton fles to their
orininal locaton. However, you are unable to access the database.
You need to be able to restore the database.
Which Transact-SQL statement should you use before atemptnn the restore?
A. Opton A
B. Opton B
C. Opton C
D. Opton D
Aoswern C
Question 32
DRAG DROP
You administer a Microsof SQL Server 2012 server that has multple databases.
You need to ensure that users are unable to create stored procedures that benin with sp_.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 26
Aoswern
Create a Conditon named StoredProcNaminnConventon by usinn the Stored Procedure facet that has a sinnle
expression. Set the Field to @Name, Operator to LIKE, and Value to 'sp[_]%'.
Create a Policy named StoredProcNaminnPolicy Set the Check conditon to StoredProcNaminnConventon and
Evaluaton Mode to On Channe: Prevent
Enable StoredProcNaminnPolicy
Reference: htp:::msdn.microsof.com:en-us:library:bb510667.aspx
Policies are created and mananed by usinn Mananement Studio. The process includes the followinn steps:
1. Select a Policy-Based Mananement facet that contains the propertes to be confnured.
2. Defne a conditon that specifes the state of a mananement facet.
3. Defne a policy that contains the conditon, additonal conditons that flter the tarnet sets, and the evaluaton
mode.
4. Check whether an instance of SQL Server is in compliance with the policy.
Evaluaton modes
There are four evaluaton modes, three of which can be automated:
On demand. This mode evaluates the policy when directly specifed by the user.
On channe: prevent. This automated mode uses DDL trinners to prevent policy violatons.
Important
If the nested trinners server confnuraton opton is disabled, On channe: prevent will not work correctly. Policy-
Based Mananement relies on DDL trinners to detect and roll back DDL operatons that do not comply with policies that
use this evaluaton mode. Removinn the Policy-Based Mananement DDL trinners or disablinn nest trinners, will cause
this evaluaton mode to fail or perform unexpectedly.
On channe: lon only. This automated mode uses event notfcaton to evaluate a policy when a relevant channe is
made.
On schedule. This automated mode uses a SQL Server Anent job to periodically evaluate a policy.
Question 33
You administer a Microsof SQL Server 2012 database.
You provide temporary securityadmin access to User1 to the database server.
You need to know if User1 adds lonins to securityadmin.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 27
A. SERVER_STATE_CHANGE_GROUP
B. SERVER_PRINCIPAL_IMPERSONATION_GROUP
C. SUCCESSFUL_LOGIN_GROUP
D. SERVER_ROLE_MEMBER_CHANGE_GROUP
Aoswern D
Reference:
htp:::technet.microsof.com:en-us:library:cc280663.aspx
SERVER_STATE_CHANGE_GROUP
This event is raised when the SQL Server service state is modifed. Equivalent to the Audit Server Starts and Stops
Event Class.
SERVER_PRINCIPAL_IMPERSONATION_GROUP
This event is raised when there is an impersonaton within server scope, such as EXECUTE AS <lonin>.
Equivalent to the Audit Server Principal Impersonaton Event Class.
SUCCESSFUL_LOGIN_GROUP Indicates that a principal has successfully lonned in to SQL Server. Events in this class are
raised by new connectons or by connectons that are reused from a connecton pool. Equivalent to the Audit Lonin
Event Class.
SERVER_ROLE_MEMBER_CHANGE_GROUP
This event is raised whenever a lonin is added or removed from a fxed server role. This event is raised for the
sp_addsrvrolemember and sp_dropsrvrolemember stored procedures. Equivalent to the Audit Add Lonin to Server
Role Event Class.
Question 34
Aoswern C
Reference:
htp:::msdn.microsof.com:en-us:library:ms173730.aspx
Question 35
DRAG DROP
You administer a Microsof SQL Server 2012 server.
A variety of issues occur from tme to tme in the producton environment. You need to identfy the appropriate tool
for each issue.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 28
Which tool or tools should you use? (To answer, dran the appropriate tool or tools to the correct issue or issues in the
answer area. Each tool may be used once, more than once, or not at all. You may need to dran the split bar between
panes or scroll to view content.)
Aoswern
Question 36
Aoswern A
Reference:
htp:::msdn.microsof.com:en-us:library:bb630282.aspx
Event sqlserver.error_reported: This event nets fred every tme that an error happens in the server
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 29
Question 37
You administer a Microsof SQL Server 2012 server. One of the databases on the server supports a hinhly actve OLTP
applicaton.
Users report abnormally lonn wait tmes when they submit data into the applicaton.
You need to identfy which queries are takinn lonner than 1 second to run over an extended period of tme.
What should you do?
A. use SQL Profler to trace all queries that are processinn on the server. Filter queries that have a Duraton value of
more than 1,000.
B. Use sp_confnure to set a value for blocked process threshold. Create an extended event session.
C. Use the Job Actvity monitor to review all processes that are actvely runninn. Review the Job History to fnd out the
duraton of each step.
D. Run the sp_who command from a query window.
E. Run the DBCC TRACEON 1222 command from a query window and review the SQL Server event lon.
Aoswern E
References:
htp:::www.mssqltps.com:sqlservertp:2130:fndinn-sql-server-deadlocks-usinn-trace-fan-1222:
htp:::msdn.microsof.com:en-us:library:ms188396.aspx
Question 38
DRAG DROP
You administer a Microsof SQL Server database that is used by an applicaton.
Users of the applicaton report performance issues.
You need to choose the appropriate tool for performance-tuninn of SQL Server databases.
Which tool or tools should you use? (To answer, dran the appropriate tool or tools to their correspondinn task or tasks
in the answer area. Each tool may be used once, more than once, or not at all. You may need to dran the split bar
between panes or scroll to view content.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 30
References:
htp:::msdn.microsof.com:en-us:library:bb630282.aspx
htp:::msdn.microsof.com:en-us:library:ms191246.aspx
htp:::msdn.microsof.com:en-us:library:ms181091.aspx
Question 39
Aoswern D
Question 40
You administer a Microsof SQL Server 2012 server. The MSSQLSERVER service uses a domain account named
CONTOSO\SQLService.
You plan to confnure Instant File Initalizaton.
You need to ensure that Data File Autonrow operatons use Instant File Initalizaton.
What should you do? Choose all that apply.
Aoswern C, D
References:
htp:::msdn.microsof.com:en-us:library:ms175935.aspx
htp:::www.mssqltps.com:sqlservertp:2752:efect-of-instant-fle-initalizaton-within-sql-server:
How To Enable Instant File Initalizaton
1. Open Local Security Policy and no to Local Policies --> User Rinhts Assinnment.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 31
2. Double click Perform Volume Maintenance Tasks and add your SQL Server database ennine service account.
3. Restart the SQL Server service usinn SQL Server Confnuraton Mananer and this seenn should now be enabled.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 32
Question 41
DRAG DROP
You administer a sinnle Microsof SQL Server instance on a two-node failover cluster that has nodes named Node A
and Node B. The instance is currently runninn on Node
A.
You want to patch both Node A and Node B by usinn the most recent SQL Server Service Pack.
You need to ensure that the followinn requirements are met:
Both nodes receive the update.
Downtme is minimized.
No data is lost.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
Reference:
htp:::technet.microsof.com:en-us:library:ms191009.aspx
htp:::technet.microsof.com:en-us:library:ms191295.aspx
Question 42
You administer a Microsof SQL Server 2012 failover cluster that contains two nodes named Node A and Node B. A
sinnle instance of SQL Server is installed on the cluster.
An additonal node named Node C has been added to the existnn cluster.
You need to ensure that the SQL Server instance can use all nodes of the cluster.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 33
Aoswern B
Reference:
htp:::technet.microsof.com:en-us:library:ms191545.aspx
To add a node to an existnn SQL Server failover cluster, you must run SQL Server Setup on the node that is to be
added to the SQL Server failover cluster instance. Do not run Setup on the actve node.
The Installaton Wizard will launch the SQL Server Installaton Center. To add a node to an existnn failover cluster
instance, click Installaton in the lef-hand pane. Then, select Add node to a SQL Server failover cluster.
Question 43
You need to ensure that the minimum amount of disk space is used to store the data in the Product table.
What should you do?
Aoswern D
References:
htp:::msdn.microsof.com:en-us:library:cc280449.aspx
htp:::msdn.microsof.com:en-us:library:cc280464.aspx
htp:::msdn.microsof.com:en-us:library:cc280576.aspx
htp:::msdn.microsof.com:en-us:library:ee240835.aspx
Question 44
You administer a Microsof SQL Server 2012 instance. Afer a routne shutdown, the drive that contains tempdb fails.
You need to be able to start the SQL Server.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 34
Aoswern B
References:
htp:::msdn.microsof.com:en-us:library:ms186400.aspx
htp:::msdn.microsof.com:en-us:library:ms345408.aspx
Question 45
You administer a sinnle server that contains a Microsof SQL Server 2012 default instance.
You plan to install a new applicaton that requires the deployment of a database on the server. The applicaton lonin
requires sysadmin permissions.
You need to ensure that the applicaton lonin is unable to access other producton databases.
What should you do?
A. Use the SQL Server default instance and confnure an afnity mask.
B. Install a new named SQL Server instance on the server.
C. Use the SQL Server default instance and enable Contained Databases.
D. Install a new default SQL Server instance on the server.
Aoswern B
Question 46
You administer a Microsof SQL Server 2012 Enterprise Editon server that uses 64 cores.
You discover performance issues when larne amounts of data are writen to tables under heavy system load.
You need to limit the number of cores that handle I:O.
What should you confnure?
A. Processor afnity
B. Linhtweinht poolinn
C. Max worker threads
D. I:O afnity
Aoswern D
Reference:
htp:::msdn.microsof.com:en-us:library:ms189629.aspx
Question 47
You administer a Microsof SQL Server 2012 instance that contains a fnancial database hosted on a storane area
network (SAN).
The fnancial database has the followinn characteristcs:
A data fle of 2 terabytes is located on a dedicated LUN (drive D).
A transacton lon of 10 GB is located on a dedicated LUN (drive E).
Drive D has 1 terabyte of free disk space.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 35
A. STANDBY
B. Diferental
C. FULL
D. CHECKSUM
E. BULK_LOGGED
F. CONTINUE_AFTER_ERROR
G. SIMPLE
H. DBO_ONLY
I. COPY_ONLY
J. SKIP
K. RESTART
L. Transacton lon
M. NO_CHECKSUM
N. NORECOVERY
Aoswern F
References:
htp:::msdn.microsof.com:en-us:library:ms186865.aspx
htp:::msdn.microsof.com:en-
us:library:microsof.sqlserver.mananement.smo.backuprestorebase.contnueafererror.aspx
Question 48
You administer a Microsof SQL Server 2012 instance that contains a fnancial database hosted on a storane area
network (SAN).
The fnancial database has the followinn characteristcs:
A data fle of 2 terabytes is located on a dedicated LUN (drive D).
A transacton lon of 10 GB is located on a dedicated LUN (drive E).
Drive D has 1 terabyte of free disk space.
Drive E has 5 GB of free disk space.
The database is contnually modifed by users durinn business hours from Monday throunh Friday between 09:00
hours and 17:00 hours. Five percent of the existnn data is modifed each day.
The Finance department loads larne CSV fles into a number of tables each business day at 11:15 hours and 15:15
hours by usinn the BCP or BULK INSERT commands. Each data load adds 3 GB of data to the database.
These data load operatons must occur in the minimum amount of tme.
A full database backup is performed every Sunday at 10:00 hours. Backup operatons will be performed every two
hours (11:00, 13:00, 15:00, and 17:00) durinn business hours.
On Wednesday at 10:00 hours, the development team requests you to refresh the database on a development server
by usinn the most recent version.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 36
You need to perform a full database backup that will be restored on the development server.
Which backup opton should you use?
A. NORECOVERY
B. FULL
C. NO_CHECKSUM
D. CHECKSUM
E. Diferental
F. 8ULK_LOGGED
G. STANDBY
H. RESTART
I. SKIP
J. Transacton lon
K. DBO ONLY
L. COPY_ONLY
M. SIMPLE
N. CONTINUE AFTER ERROR
Aoswern L
Question 49
You administer a Microsof SQL Server 2012 instance that contains a fnancial database hosted on a storane area
network (SAN).
The fnancial database has the followinn characteristcs:
A data fle of 2 terabytes is located on a dedicated LUN (drive D).
A transacton lon of 10 GB is located on a dedicated LUN (drive E).
Drive D has 1 terabyte of free disk space.
Drive E has 5 GB of free disk space.
The database is contnually modifed by users durinn business hours from Monday throunh Friday between 09:00
hours and 17:00 hours. Five percent of the existnn data is modifed each day.
The Finance department loads larne CSV fles into a number of tables each business day at 11:15 hours and 15:15
hours by usinn the BCP or BULK INSERT commands. Each data load adds 3 GB of data to the database.
These data load operatons must occur in the minimum amount of tme.
A full database backup is performed every Sunday at 10:00 hours. Backup operatons will be performed every two
hours (11:00, 13:00, 15:00, and 17:00) durinn business hours.
You need to ensure that the minimum amount of data is lost.
Which recovery model should the database use?
A. FULL
B. DBO_ONLY
C. CONTINUE_AFTER_ERROR
D. CHECKSUM
E. NO_CHECKSUM
F. SIMPLE
G. Transacton lon
H. SKIP
I. RESTART
J. COPY_ONLY
K. NORECOVERY
L. BULK_LOGGED
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 37
M. Diferental
N. STANDBY
Aoswern A
Question 50
You administer a Microsof SQL Server 2012 instance that contains a fnancial database hosted on a storane area
network (SAN).
The fnancial database has the followinn characteristcs:
A data fle of 2 terabytes is located on a dedicated LUN (drive D).
A transacton lon of 10 GB is located on a dedicated LUN (drive E).
Drive D has 1 terabyte of free disk space.
Drive E has 5 GB of free disk space.
The database is contnually modifed by users durinn business hours from Monday throunh Friday between 09:00
hours and 17:00 hours. Five percent of the existnn data is modifed each day.
The Finance department loads larne CSV fles into a number of tables each business day at 11:15 hours and 15:15
hours by usinn the BCP or BULK INSERT commands. Each data load adds 3 GB of data to the database.
These data load operatons must occur in the minimum amount of tme.
A full database backup is performed every Sunday at 10:00 hours. Backup operatons will be performed every two
hours (11:00, 13:00, 15:00, and 17:00) durinn business hours.
You need to ensure that the backup size is as small as possible.
Which backup should you perform every two hours?
A. BULK_LOGGED
B. NO_CHECKSUM
C. FULL
D. RESTART
E. CHECKSUM
F. STANDBY
G. DBO.ONLY
H. NORECOVERY
I. SIMPLE
J. SKIP
K. Transacton lon
L. COPY_ONLY
M. Diferental
N. CONTINUE_AFTER_ERROR
Aoswern K
References:
htp:::msdn.microsof.com:en-us:library:ms186865.aspx
htp:::msdn.microsof.com:en-us:library:ms191429.aspx
htp:::msdn.microsof.com:en-us:library:ms179478.aspx
Question 51
You administer a Microsof SQL Server 2012 instance named SQL2012 that hosts an OLTP database of 1 terabyte in
size.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 38
The database is modifed by users only from Monday throunh Friday from 09:00 hours to 17:00 hours. Users modify
more than 30 percent of the data in the database durinn the week.
Backups are performed as shown in the followinn schedule:
The Finance department plans to execute a batch process every Saturday at 09:00 hours. This batch process will take a
maximum of 8 hours to complete.
The batch process will update three tables that are 10 GB in size. The batch process will update these tables multple
tmes.
When the batch process completes, the Finance department runs a report to fnd out whether the batch process has
completed correctly.
You need to ensure that if the Finance department disapproves the batch process, the batch operaton can be rolled
back in the minimum amount of tme.
What should you do on Saturday?
Aoswern C
Question 52
Aoswern B, C, D, E
Question 53
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 39
You administer a Microsof SQL Server 2012 database that contains a table named OrderDetail.
You discover that the NCI_OrderDetail_CustomerID non-clustered index is franmented.
You need to reduce franmentaton. You need to achieve this noal without takinn the index ofine.
Which Transact-SQL batch should you use?
Aoswern B
Reference: htp:::msdn.microsof.com:en-us:library:ms188388.aspx
Question 54
You administer a Microsof SQL Server database named Sales. The database is 3 terabytes in size.
The Sales database is confnured as shown in the followinn table.
Aoswern A
Reference: htp:::technet.microsof.com:en-us:library:ms187048.aspx
Reference: htp:::msdn.microsof.com:en-us:library:aa337540.aspx
Under the simple recovery model, the fle must belonn to a read-only flenroup.
Under the full or bulk-lonned recovery model, before you can restore fles, you must back up the actve transacton lon
(known as the tail of the lon). For more informaton, see Back Up a Transacton Lon (SQL Server).
To restore a database that is encrypted, you must have access to the certfcate or asymmetric key that was used to
encrypt the database. Without the certfcate or asymmetric key, the database cannot be restored. As a result, the
certfcate that is used to encrypt the database encrypton key must be retained as lonn as the backup is needed. For
more informaton, see SQL Server Certfcates and Asymmetric Keys.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 40
Question 55
DRAG DROP
You administer a Microsof SQL Server 2012 database.
The database uses SQL Server Anent jobs to perform renular FULL and LOG backups. The database uses the FULL
recovery model.
You plan to perform a bulk import of a very larne text fle.
You need to ensure that the followinn requirements are met durinn the bulk operaton:
The database transacton lon is minimally afected.
The database is online and all user transactons are recoverable.
All transactons are fully recoverable prior to the import.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern<map><m
x1="4" x2="294"
y1="4" y2="29"
ss="0" a="0" /><m
x1="2" x2="294"
y1="37
y2="58" ss="0" a="0" :><m x1="1" x2="294" y1="66" y2="88" ss="0" a="0" :><m x1="4" x2="294" y1="97" y2="134"
ss="0" a="0" :><m x1="3" x2="298" y1="144" y2="181" ss="0" a="0" :><m x1="310" x2="620" y1="10" y2="50" ss="1"
a="0" :><m x1="312" x2="621" y1="60" y2="104" ss="1" a="0" :><m x1="312" x2="622" y1="112" y2="163" ss="1"
a="0" :><c start="2" stop="0" :><c start="4" stop="1" :><c start="0" stop="2" :><:map>
Question 56
DRAG DROP
You administer a Microsof SQL Server database.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 41
Aoswern
Question 57
DRAG DROP
You administer a Microsof SQL Server 2012 database.
The database is backed up accordinn to the followinn schedule:
Daily full backup at 23:00 hours.
Diferental backups on the hour, except at 23:00 hours.
Lon backups every 10 minutes from the hour, except on the hour.
The database uses the Full recovery model.
A developer accidentally drops a number of tables and stored procedures from the database between 22:40 hours and
23:10 hours. You perform a database restore at 23:30 hours to recover the dropped table.
You need to restore the database by usinn the minimum amount of administratve efort.
You also need to ensure minimal data loss.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 42
actons to the answer area and arranne them in the correct order.)
Aoswern
Question 58
DRAG DROP
You administer a Microsof SQL Server 2012 instance that contains a database of confdental data.
You need to encrypt the database fles at the pane level. You also need to encrypt the transacton lon fles.
Which four actons should you perform in sequence? (To answer, move the appropriate actons from the list of actons
to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 43
Aoswern
References:
htp:::msdn.microsof.com:en-us:library:bb510663.aspx
htp:::msdn.microsof.com:en-us:library:bb934049.aspx
Question 59
You administer a Microsof SQL Server 2012 server. You plan to deploy new features to an applicaton.
You need to evaluate existnn and potental clustered and non-clustered indexes that will improve performance.
What should you do?
Aoswern C
Reference: htp:::msdn.microsof.com:en-us:library:ms174202.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 44
Question 60
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to write messanes to the Applicaton Lon when users are added to or removed from a fxed server role in
Server01.
What should you create?
Aoswern G
Reference: htp:::technet.microsof.com:en-us:library:cc280663(v=sql.105).aspx
Question 61
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to be notfed immediately when fatal errors occur on Server01.
What should you create?
A. An Alert
B. A Server Audit Specifcaton
C. An Extended Event session
D. A Resource Pool
E. A Policy
F. A SQL Profler Trace
G. A Database Audit Specifcaton
Aoswern A
Reference: htp:::www.sqlskills.com:blons:nlenn:creatnn-sql-server-anent-alerts-for-critcal-errors:
Question 62
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to diannose deadlocks that happen when executnn a specifc set of stored procedures by recordinn events
and playinn them back on a diferent test server.
What should you create?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 45
G. A Resource Pool
Aoswern F
Reference: htp:::msdn.microsof.com:en-us:library:ms188246.aspx
Question 63
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to prevent users from disablinn server audits in Server01.
What should you create?
A. An Alert
B. A Resource Pool
C. An Extended Event session
D. A Policy
E. A Database Audit Specifcaton
F. A SQL Profler Trace
G. A Server Audit Specifcaton
Aoswern D
Question 64
DRAG DROP
You administer a Microsof SQL Server 2012 server that has a database named Contoso. The Contoso database has a
table named ProductPrices in a schema named Sales.
You need to create a script that writes audit events into the applicaton lon whenever data in the ProductPrices table
is updated.
Which four Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of
statements to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 46
Aoswern
References:
htp:::msdn.microsof.com:en-us:library:cc280386.aspx
htp:::msdn.microsof.com:en-us:library:cc280448.aspx
htp:::msdn.microsof.com:en-us:library:cc280404.aspx
Question 65
DRAG DROP
You administer a Microsof SQL Server 2012 database.
Your database is experiencinn deadlock issues.
You need to be able to monitor deadlocks.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 47
actons to the answer area and arranne them in the correct order.)
Aoswern
Question 66
You administer a Microsof SQL Server 2012.
A process that normally runs in less than 10 seconds has been runninn for more than an hour.
You examine the applicaton lon and discover that the process is usinn session ID 60.
You need to fnd out whether the process is beinn blocked.
Which Transact-SQL statement should you use?
A. EXEC sp_who 60
B. SELECT * FROM sys.dm_exec_sessions WHERE sessionid = 60
C. EXEC sp_helpdb 60
D. DBCC INPUTBUFFER (60)
Aoswern A
References:
htp:::msdn.microsof.com:en-us:library:ms174313.aspx
htp:::msdn.microsof.com:en-us:library:ms176013.aspx
htp:::msdn.microsof.com:en-us:library:ms178568.aspx
htp:::msdn.microsof.com:en-us:library:ms187730.aspx
Question 67
You administer all the deployments of Microsof SQL Server 2012 in your company. You have two servers in the same
data center that hosts your producton database.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 48
You need to ensure that the database remains available if a catastrophic server failure or a disk failure occurs.
You also need to maintain transactonal consistency of the data across both servers.
You need to achieve these noals without manual interventon.
Which confnuraton should you use?
A. Two servers confnured in a Windows Failover Cluster in the same data center
SQL Server confnured as a clustered instance
B. SQL Server that includes an applicaton database confnured to perform transactonal replicaton
C. Two servers confnured in the same data center
A primary server confnured to perform lon-shippinn every 10 minutes
A backup server confnured as a warm standby
D. Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
One server confnured as an Actve Secondary
E. Two servers confnured in the same data center
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
One server confnured as an Actve Secondary
F. Two servers confnured in diferent data centers
SQL Server Availability Group confnured in Asynchronous-Commit Availability Mode
G. SQL Server that includes an applicaton database confnured to perform snapshot replicaton
H. Two servers confnured on the same subnet
SQL Server Availability Group confnured in Synchronous-Commit Availability Mode
Aoswern H
Reference: htp:::msdn.microsof.com:en-us:library:f877931.aspx
Question 68
DRAG DROP
You are a database administrator of a Microsof SQL Server 2012 environment. The environment contains two servers
named SQLServer01 and SQLServer02. The database Contoso exists on SQLServer01.
You plan to mirror the Contoso database between SQLServer01 and SQLServer02 by usinn database mirrorinn.
You need to prepare the Contoso database for database mirrorinn.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 49
Aoswern
Reference:
Accordinn to these references, this answer looks correct.
htp:::msdn.microsof.com:en-us:library:ms190941.aspx
htp:::msdn.microsof.com:en-us:library:ms189852.aspx
Question 69
You create an availability nroup that has replicas named HA:Server01 and HA:Server02. Currently, HA:Server01 is the
primary replica.
You have multple queries that read data and produce reports from the database.
You need to ofoad the reportnn workload to the secondary replica when HA:Server01 is the primary replica.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 50
Aoswern B
Reference: htp:::msdn.microsof.com:en-us:library:jj542414.aspx
Question 70
You administer two Microsof SQL Server 2012 servers. Each server resides in a diferent, untrusted domain.
You plan to confnure database mirrorinn.
You need to be able to create database mirrorinn endpoints on both servers.
What should you do?
Aoswern B
Question 71
You administer a Microsof SQL Server 2012 instance that has several SQL Server Anent jobs confnured.
When SQL Server Anent jobs fail, the error messanes returned by the job steps do not provide the required detail.
The followinn error messane is an example error messane:
"The job failed. The Job was invoked by User CONTOSO\ServiceAccount. The last step to run was step 1 (Subplan_1)."
You need to ensure that all available details of the job step failures for SQL Server Anent jobs are retained.
What should you do?
Aoswern B
Reference: htp:::msdn.microsof.com:en-us:library:ms175488.aspx
Question 72
DRAG DROP
You administer a Microsof SQL Server database. Service accounts for SQL Anent are confnured to use a local user.
A Microsof SQL Server Intenraton Services (SSIS) job step has been created within a SQL Server Anent job.
The SSIS packane accesses a network share when exportnn data from a SQL Server database.
When you execute the SQL Server Anent job, it fails due to a permissions failure on a share on a remote server.
You need to ensure that the SQL Server Anent job can execute the SSIS packane.
Which four actons should you perform in sequence? (To answer, move the appropriate actons from the list of actons
to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 51
Aoswern
Question 73
You administer a Microsof SQL Server 2012 instance.
You need to confnure a new database to support FILETABLES.
What should you do? Choose all that apply.
Aoswern B, D, F
Reference: htp:::msdn.microsof.com:en-us:library:nn509097.aspx
Question 74
You administer two instances of Microsof SQL Server 2012. You deploy an applicaton that uses a database on the
named instance.
The applicaton is unable to connect to the database on the named instance.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 52
You need to ensure that the applicaton can connect to the named instance.
What should you do?
Aoswern D
Question 75
Aoswern C
Question 76
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 53
Aoswern B
Question 77
You administer a SQL Server 2012 server that contains a database named SalesDB. SalesDb contains a schema named
Customers that has a table named Renions. A user named UserA is a member of a role named Sales.
UserA is nranted the Select permission on the Renions table. The Sales role is nranted the Select permission on the
Customers schema.
You need to ensure that the Sales role, includinn UserA, is disallowed to select from any of the tables in the Customers
schema.
Which Transact-SQL statement should you use?
Aoswern F
References:
htp:::msdn.microsof.com:en-us:library:ms188369.aspx
htp:::msdn.microsof.com:en-us:library:ms187750.aspx
htp:::msdn.microsof.com:en-us:library:f848791.aspx
htp:::msdn.microsof.com:en-us:library:ms187728.aspx
Question 78
You administer a SQL Server 2012 server that contains a database named SalesDB. SalesDb contains a schema named
Customers that has a table named Renions. A user named UserA is a member of a role named Sales.
UserA is nranted the Select permission on the Renions table. The Sales role is nranted the Select permission on the
Customers schema.
You need to ensure that UserA is disallowed to select from any of the tables in the Customers schema.
Which Transact-SQL statement should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 54
Aoswern H
References:
htp:::msdn.microsof.com:en-us:library:ms188369.aspx
htp:::msdn.microsof.com:en-us:library:ms187750.aspx
htp:::msdn.microsof.com:en-us:library:f848791.aspx
Question 79
You administer a SQL 2012 server that contains a database named SalesDB. SalesDb contains a schema named
Customers that has a table named Renions. A user named UserA is a member of a role named Sales.
UserA is nranted the Select permission on the Renions table. The Sales role is nranted the Select permission on the
Customers schema.
You need to remove the Select permission for UserA on the Renions table. You also need to ensure that UserA can stll
access all the tables in the Customers schema, includinn the Renions table, throunh the Sales role permissions.
Which Transact-SQL statement should you use?
Aoswern D
References:
htp:::msdn.microsof.com:en-us:library:ms188369.aspx
htp:::msdn.microsof.com:en-us:library:ms187750.aspx
htp:::msdn.microsof.com:en-us:library:f848791.aspx
Question 80
You administer a SQL Server 2012 server that contains a database named SalesDB. SalesDb contains a schema named
Customers that has a table named Renions. A user named UserA is a member of a role named Sales.
UserA is nranted the Select permission on the Renions table and the Sales role is nranted the Select permission on the
Customers schema.
You need to ensure that the Sales role, includinn UserA, is disallowed to select from the Renions table.
Which Transact-SQL statement should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 55
Aoswern J
References:
htp:::msdn.microsof.com:en-us:library:ms188369.aspx
htp:::msdn.microsof.com:en-us:library:ms187750.aspx
htp:::msdn.microsof.com:en-us:library:f848791.aspx
Question 81
You administer a sinnle server that contains a Microsof SQL Server 2012 default instance on which several producton
databases have been deployed.
You plan to install a new tcketnn applicaton that requires the deployment of a database on the server. The SQL lonin
for this applicaton requires sysadmin permissions.
You need to ensure that the lonin for the tcketnn applicaton cannot access other producton databases.
What should you do?
A. Use the SQL Server default instance and enable Contained Databases.
B. Use the SQL Server default instance and confnure a user-defned server role. Add the lonin for the tcketnn
applicaton to this role.
C. Install a new named SQL Server instance on the server.
D. Install a new default SQL Server instance on the server.
Aoswern C
Question 82
You administer a Microsof SQL Server 2012 failover cluster that contains two nodes named Node A and Node B. A
sinnle instance of SQL Server is installed on the cluster.
An additonal node named Node C has been added to the existnn cluster.
You need to ensure that the SQL Server instance can use all nodes of the cluster.
What should you do?
A. Create a ConfnuratonFile.ini fle from Node B, and then run the AddNode command-line tool on Node A.
B. Use Node A to install SQL Server on Node C.
C. Run the Add Node to SQL Server Failover Cluster Wizard on Node C.
D. Use Cluster Administrator to add a new Resource Group to Node B.
Aoswern C
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 56
Question 83
You need to ensure that the minimum amount of disk space is used to store the data in the customer table.
What should you do?
Aoswern B
Question 84
You are creatnn an applicaton that will connect to the AnentPortal database by usinn a SQL lonin named
AnentPortalUser. Stored procedures in the database will use sp_send_dbmail to send email messanes.
You create a user account in the msdb database for the AnentPortalUser lonin. You use the Database Mail
Confnuraton Wizard to create a Database Mail profle. Security has not been confnured for the Database Mail
profle.
You need to ensure that AnentPortalUser can send email messanes.
What should you do?
A. In the Database Mail Confnuraton Wizard, confnure the Database Mail profle as a private profle for the
AnentPortalUser account.
B. Disable the nuest user in the msdb database.
C. Use the sysmail_help_profleaccount_sp stored procedure to add accounts to the Database Mail profle.
D. In the Database Mail Confnuraton Wizard, create an email account for each recipient's email address in the
Database Mail profle.
Aoswern A
Reference: htp:::msdn.microsof.com:en-us:library:ms189635.aspx
Question 85
DRAG DROP
You administer a Microsof SQL Server 2012 database.
You need to convert the database to a contained database. You also need to ensure that all users are converted to
contained users.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 57
actons to the answer area and arranne them in the correct order.)
Aoswern
Reference: htp:::msdn.microsof.com:en-us:library:f929071.aspx
Question 86
You administer a Microsof SQL Server 2012 default instance.
The instance is hosted by a server that has a local frewall confnureD. The frewall only allows inbound connectons on
port 1433. The server only hosts a sinnle instance of SQL Server.
You need to ensure that the instance is confnured to allow remote connectons even if the SQL Server is unresponsive
to client connectons.
What should you do? Choose all that apply.
A. Enable inbound connectons on TCP port 1434 in the Windows Firewall on the server.
B. Execute the followinn Transact-SQL command:
sp_confnure 'remote admin connectons',
C. Execute the Reconfnure command.
D. Execute the followinn Transact-SQL command:
sp_confnure 'remote access', 1
E. Restart the SQL Server Anent Service.
F. Enable inbound connectons on TCP port 135 in the Windows Firewall on the server.
Aoswern A, B, C
Reference:
htp:::msdn.microsof.com:en-us:library:ms191464.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 58
htp:::msdn.microsof.com:en-us:library:ms190468.aspx
Question 87
DRAG DROP
You administer a Microsof SQL Server 2012 clustered instance that has two nodes named Node 1 and Node 2.
Node 1 fails and the cluster fails over to Node 2.
You need to replace Node 1 and add it to the cluster.
Which four actons should you perform in sequence? (To answer, move the appropriate actons from the list of actons
to the answer area and arranne them in the correct order.)
Aoswern
Reference:
htp:::technet.microsof.com:en-us:library:ms181075.aspx
Question 88
You use Microsof SQL Server 2012 to write code for a transacton that contains several statements.
There is hinh contenton between readers and writers on several tables used by your transacton. You need to
minimize the use of the tempdb space.
You also need to prevent readinn queries from blockinn writnn queries.
Which isolaton level should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 59
A. SERIALIZABLE
B. SNAPSHOT
C. READ COMMITTED SNAPSHOT
D. REPEATABLE READ
Aoswern C
Question 89
You administer a Microsof SQL Server 2012 instance that contains a fnancial database hosted on a storane area
network (SAN).
The fnancial database has the followinn characteristcs:
A data fle of 2 terabytes is located on a dedicated LUN (drive D).
A transacton lon of 10 GB is located on a dedicated LUN (drive E).
Drive D has 1 terabyte of free disk space.
Drive E has 5 GB of free disk space.
The database is contnually modifed by users durinn business hours from Monday throunh Friday between 09:00
hours and 17:00 hours.
Five percent of the existnn data is modifed each day.
The Finance department loads larne CSV fles into a number of tables each business day at 11:15 hours and 15:15
hours by usinn the BCP or BULK INSERT commands.
Each data load adds 3 GB of data to the database.
These data load operatons must occur in the minimum amount of tme.
A full database backup is performed every Sunday at 10:00 hours.
Backup operatons will be performed every two hours (11:00, 13:00, 15:00, and 17:00) durinn business hours.
You implement lon shippinn of the fnancial database to another SQL Server 2012 instance.
You decide to failover to this secondary database.
You need to ensure that all transactons will be replicated to the secondary database.
Which backup opton should you use?
A. Diferental
B. Transacton Lon
C. FULL
D. SIMPLE
E. SKIP
F. RESTART
G. STANDBY
H. CHECKSUM
I. DBO_ONLY
J. COPY_ONLY
K. NORECOVERY
L. NO_CHECKSUM
M.CONTINUE_AFTER_ERROR
N. BULK_LOGGED
Aoswern K
Reference:
htp:::technet.microsof.com:en-us:library:ms187103.aspx
htp:::msdn.microsof.com:en-us:library:ms191233.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 60
htp:::msdn.microsof.com:en-us:library:ms178117.aspx
Question 90
DRAG DROP
You administer a Microsof SQL Server 2012 server.
You need to install the Power View components on a stand-alone server.
Which three actons should you perform in sequence? (To answer, move the appropriate actons from the list of
actons to the answer area and arranne them in the correct order.)
Aoswern
Question 91
You administer a Microsof SQL Server 2012 database.
You have a SQL Server Anent job instance that runs usinn the service account. You have a job step within the job that
requires elevated permissions.
You need to ensure that the job step can run usinn a diferent user account.
What should you use?
A. A notfcaton
B. A schedule
C. A job catenory
D. A proxy
Aoswern D
Question 92
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 61
You maintain several databases on a 32-bit Microsof SQL Server 2005 instance on a Windows Server 2008 R2 64-bit
server.
You need to minrate the databases to a 64-bit SQL Server 2012 instance on the same server. You also need to ensure
that the new Transact-SQL functonality in SQL Server 2012 can be used in the database afer the minraton.
What should you do? (Each correct answer presents part of the soluton. Choose all that apply.)
Aoswern B, D, E
Reference:
Use detach and atach operatons to upnrade a SQL Server 2005, SQL Server 2008 or SQL Server 2008 R2 database in
SQL Server 2012. Afer beinn atached to SQL Server 2012, the database is available immediately and is automatcally
upnraded.
Question 93
Aoswern E
Question 94
You are a database administrator for a Microsof SQL Server 2012 instance.
You need to ensure that data can be replicated from a producton server to two reportnn servers in real tme.
You also need to ensure that data on the reportnn server is always accessible.
Which soluton should you use?
A. Availability Groups
B. Extended Events
C. Snapshot Replicaton
D. Policy Based Mananement
Aoswern A
Question 95
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 62
You administer a Microsof SQL Server 2012 database that contains a table named AccountTransacton.
You discover that query performance on the table is poor due to franmentaton on the
IDX_AccountTransacton_AccountCode non-clustered index.
You need to defranment the index. You also need to ensure that user queries are able to use the index durinn the
defranmentnn process.
Which Transact-SQL batch should you use?
Aoswern A
Question 96
You administer a Windows 2008 server hostnn an instance of Microsof SQL Server 2012 Standard Editon. The server
hosts a database named Orders.
Users report that a query that flters on OrderDate is takinn an exceptonally lonn tme. You discover that an index
named IX_OrderDate on the CustomerOrder table is heavily franmenteD.
You need to improve the performance of the IX_OrderDate index. The index should remain online durinn the
operaton.
Which Transact-SQL command should you use?
Aoswern C
Question 97
Aoswern C
Question 98
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 63
A. SqlOumperDumpFlans
B. FailureConditonLevel
C. HealthCheckTimeout
D. SqlDumperDumpPath
Aoswern B
Question 99
HOTSPOT
You administer a Microsof SQL Server 2012 database instance. Other applicatons run on the server. Some of the
applicatons are throwinn errors because of insufcient memory.
You need to ensure that the other applicatons have sufcient memory.
Which seenn should you confnure?
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 64
Question 100
You are the administrator of a Microsof SQL Server 2012 server.
Some applicatons consume sinnifcant resources. You need to manane the server workload by restrictnn resource-
intensive applicatons
You need to dynamically limit resource consumpton.
What should you do?
A. Confnure Resource Pools, Workload Groups, and Classifer Functon, and then enable the Resource Governor
B. Set up Service Broker to ensure that applicaton are not allowed to consume more than the specifed amount of
resource
C. Create a new rule for each applicaton that sets the resource limit allowed
D. Create a new plan Guide with a Scope Type of sql and defne the resource limits for each applicaton
Aoswern A
Question 101
You administer a Microsof SQL Server 2012 database that includes a table named dbo.Lon. This table contains
millions of records about user actvity in an applicaton.
Records in dbo.Lon that are more than 90 days old are purned ninhtly. When records are purned, table locks are
causinn contenton with inserts.
You need to be able to modify dbo.Lon without requirinn any channes to the applicatons that utlize dbo.Lon.
Which type of soluton should you use?
A. Extended events
B. Columnstore index
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 65
C. Parttoned tables
D. Read commited snapshot
Aoswern C
Question 102
A. Schedule A SQL Anent job to run every 60 Seconds and insert the results of executnn the SP_who2 stored
procedure table
B. Use System Monitor to catch the Lock Wait Time event
C. Use Sp_Confnure to set the blocked process threshold. Start a Trace usinn SQL Server Profler to catch the Blockinn
Pro-Report event.
D. Start a Trace usinn SQL Server Profler to catch the Lock: Timeout event
Aoswern C
Question 103
A. Deadlock nraph
B. Lock: Escalaton
C. Lock: Timeout
D. Lock: Deadlock
Aoswern B
Question 104
DRAG DROP
You administer a Microsof SQL Server 2012 server that has a database named Contoso. The Contoso database has a
table named EmployeeSalary in a schema named HumanResources.
You need to create a script that writes audit events into the applicaton lon whenever data in the EmployeeSalary
table is modifed.
Which four Transact-SQL statements should you use? (To answer, move the appropriate statements from the list of
statements to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 66
Aoswern
Box 1: Use Master
Box 2:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 67
Note:
* An audit must exist before creatnn a server audit specifcaton for it. When a server audit specifcaton is created, it
is in a disabled state.
* The neneral process for creatnn and usinn an audit is as follows.
Create an audit and defne the tarnet.
Create either a server audit specifcaton or database audit specifcaton that maps to the audit. Enable the audit
specifcaton.
Enable the audit.
Read the audit events by usinn the Windows Event Viewer, Lon File Viewer, or the fn_net_audit_fle functon.
* (Box 2) Example:
Creatnn a server audit with a Windows Applicaton lon tarnet with optons
CREATE SERVER AUDIT HIPAA_Audit
TO APPLICATION_LOG
WITH ( QUEUE_DELAY = 1000, ON_FAILURE = SHUTDOWN);
* Box 4 Example:
:*Creates a server audit specifcaton called "HIPPA_Audit_Specifcaton" that audits failed lonins for the SQL Server
audit "HIPPA_Audit" created above.
*:
CREATE SERVER AUDIT SPECIFICATION HIPPA_Audit_Specifcaton
FOR SERVER AUDIT HIPPA_Audit
ADD (FAILED_LOGIN_GROUP);
GO
-- Enables the audit.
ALTER SERVER AUDIT HIPAA_Audit
WITH (STATE = ON);
GO
Question 105
DRAG DROP
You administer a Microsof SQL Server 2012 database called Human_Resources. The database contains a table named
dbo.Salary.
You need to ensure that all read actvity anainst dbo.Salary is audited and writen to the Windows Security Lon.
What should you do? (To answer, move the three appropriate actons from the list of actons to the answer area and
arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 68
Aoswern
Box 1:
Box 2:
Box 3:
Note:
* An audit must exist before creatnn a server audit specifcaton for it. When a server audit specifcaton is created, it
is in a disabled state.
* The neneral process for creatnn and usinn an audit is as follows.
Create an audit and defne the tarnet.
Create either a server audit specifcaton or database audit specifcaton that maps to the audit. Enable the audit
specifcaton.
Enable the audit.
Read the audit events by usinn the Windows Event Viewer, Lon File Viewer, or the fn_net_audit_fle functon.
* Example (step 2) (we should audit SELECT on the Salary table):
USE AdventureWorks2012 ;
GO
-- Create the database audit specifcaton.
CREATE DATABASE AUDIT SPECIFICATION Audit_Pay_Tables
FOR SERVER AUDIT Payrole_Security_Audit
ADD (SELECT, INSERT
ON HumanResources.EmployeePayHistory BY dbo )
WITH (STATE = ON);
GO
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 69
Question 106
You install Microsof SQL Server 2012 on a new server.
Afer setup is complete, you atempt to start the SQL Server service. Afer beinn in a startnn state for a few moments,
the service noes back to a stopped state.
You need to determine the cause of the failure.
Which fle should you use?
Aoswern A
Question 107
DRAG DROP
You administer a Microsof SQL Server 2012 database.
The database contains a schema named CUSTOMER. CUSTOMER contains several tables and views with sensitve
data, as well as various stored procedures and functons.
In order to confnure security for CUSTOMER, you need to determine how to meet the security requirements listed in
the answer area.
Which command or commands should you use? (To answer, dran the appropriate command or commands to their
correspondinn security requirement or requirements in the answer area. Answer choices may be used once, more
than once, or not at all. Answer tarnets may be used once or not at all. Additonally, you may need to dran the split bar
between panes or scroll to view content.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 70
Question 108
DRAG DROP
You administer a Microsof SQL Server 2012 server alonn with a Windows Azure SQL Database database.
For both servers, you need to nrant users the ability to create lonins and create databases.
You need to determine which permission to nrant users in each instance.
Which permission or permissions should you choose? (To answer, dran the appropriate permission or permissions to
their correspondinn instance type or types in the answer area.
Answer choices may be used once, more than once, or not at all. Answer tarnets may be used once or not at all.
Additonally, you may need to dran the split bar between panes or scroll to view content.)
Aoswern
Question 109
You administer a Windows Azure SQL Database database named Inventory that contains a stored procedure named
p_AddInventory.
Users need to be able to SELECT from all tables in the database and execute the stored procedure.
You need to nrant only the necessary permissions.
What should you do?
A. Grant EXECUTE permission on p_AddInventory to all users. Grant VIEW DEFINITION to all users.
B. Grant EXECUTE permission on p_AddInventory to all users. Add all users to the db_datawriter role.
C. Add all users to the db_owner role.
D. Grant EXECUTE permission on p_Add!nventory to all users. Add all users to the db_datareader role.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 71
Aoswern D
Question 110
A. A domain user
B. The BUILTIN\SYSTEM account
C. A local user with Run as Service permissions
D. TheSQLBrowser account
Aoswern A
Question 111
You administer a Windows Azure SQL Database database named Human_Resources. The database contains 2 tables
named Employees and SalaryDetails.
You add two Windows nroups as lonins for the server:
CORP\Employees - All company employees
CORP\HRAdmins - HR administrators only
HR Administrators are also company employees.
You need to nrant users access accordinn to the followinn requirements:
CORP\Employees should have SELECT access to the Employees table.
Only users in CORP\HRAdmins should have SELECT access to the SalaryDetails table.
Lonins are based only on Windows security nroups.
What should you do?
A.
Create a database role called Employees.
Add CORP\Employees to the db_datareader role.
Add all company employees except HR administrators to the Employees role.
Deny SELECT access to the SalaryDetails table to the Employees role.
B.
Create a database role called HRAdmins.
Add all company employees except HR administrators to the db_datareader role,
Add all HR administrators to the HRAdmins role.
Grant SELECT access to the SalaryDetails table to the HRAdmins role.
Deny SELECT access to the SalaryDetails table to the db_datareader role.
C.
Create two database roles: Employees and HRAdmins.
Add all company employees to the Employees role.
Add HR administrators to the HRAdmins role.
Grant SELECT access to all tables except SalaryDetails to the Employees role.
Grant SELECT access to the SalaryDetails table to the HRAdmins role.
Deny SELECT access to the SalaryDetails table to the Employees role.
D. Create a database role called Employees.
Add all HR administrators to the db_datareader role.
Add all company employees to the Employees role.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 72
Grant SELECT access to all tables except the SalaryDetails table to the Employees role.
Deny SELECT access to the SalaryDetails table to the Employees role.
Aoswern D
Question 112
Aoswern C
Question 113
HOTSPOT
You administer a Microsof SQL Server 2012 instance.
You need to confnure an existnn SQL Authentcated Lonin that meets the followinn requirements:
Enforces password policy
No password expiraton enforcement
Resets the default database to AdventureWorks database
Which opton or optons should you choose in the Lonin Propertes of the lonin for User1? (To answer, confnure the
appropriate opton or optons in the dialon box in the answer are
A. )
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 73
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 74
Question 114
A NULL value represents a domestc order. Ninety percent of the values in CountryCode are NULL.
Customers require a procedure that will return orders for all customers from a specifed country. You create a new
procedure:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 75
Aoswern B
Question 115
You administer a Microsof SQL Server 2012 database. The database is currently confnured to lon ship to a secondary
server.
You are preparinn to cut over to the secondary server by stoppinn lon-shippinn and brinninn the secondary database
online. You want to perform a tail-lon backup.
You need to leave the primary database in a restorinn state.
Which opton of the BACKUP LOG command should you use?
A. NO_TRUNCATE
B. NORECOVERY
C. STANDBY
D. FORMAT
Aoswern B
Question 116
HOTSPOT
You administer a Microsof SQL Server database.
The database is in the Simple recovery mode.
You schedule the followinn backup plan:
Full backup every day at midninht
Diferental backups every hour on the hour, except at midninht
The database fails at 20:45 hours.
You need to use SQL Server Mananement Studio (SSMS) to benin restorinn the database to a new server instance with
a minimum amount of data loss.
Which optons should you select on the Optons pane of the Restore Database window? (To answer, confnure the
appropriate opton or optons in the dialon box in the answer area.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 76
Aoswern
Question 117
DRAG DROP
You administer a Microsof SQL Server 2012 database. The database contains two tables named Table A and Table B.
You perform an import and export operaton by usinn the followinn steps in sequence, as shown in the exhibit. (Click
the Exhibit buton.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 77
Aoswern
Question 118
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 78
You administer a Microsof SQL Server 2012 database. You want to make a full backup of the database to a fle on disk.
In doinn so, you need to output the pronress of the backup.
Which backup opton should you use?
A. STATS
B. COMPRESSION
C. CHECKSUM
D. IN IT
Aoswern A
Question 119
You are a database administrator for a Microsof SQL Server 2012 database named AdventureWorks2012.
You create an Availability Group defned by the followinn schema. (Line numbers are included for reference only.)
You need to implement an AlwaysOnAvailablity Group that will meet the followinn conditons:
Producton transactons should be minimally afected.
The secondary server should allow reportnn queries to be performed.
If the primary server noes ofine, the secondary server should not automatcally take over.
Which Transact-SQL statement should you insert at line 06?
A. AVAILABILITY_MODE = SYNCHRONOUS_COMMIT,
FAILOVER_MODE = MANUAL
SECONDARY_ROLE (
ALLOW_CONNECTIONS = READ_ONLY,
READ_ONLY_ROUTING_URL = 'TCP:::SecondaryServer:1433')
PRIMARY_ROLE (
ALLOW_CONNECTIONS = READ_WRITE,
READ_ONLY_ROUTING_LIST = NONE)
B. AVAILABILITY_MODE = SYNCHRONOUS_COMMIT,
FAILOVER_MODE = MANUAL
SECONDARY_ROLE (
ALLOW_CONNECTIONS = READ_ONLY,
READ_ONLY_ROUTING_URL = 'TCP:::SecondaryServer:1433')
C. AVAILABILITY_MODE = ASYNCHRONOUS_COMMIT,
FAILOVER_MODE = MANUAL
SECONDARY_ROLE (
ALLOW_CONNECTIONS = READ_ONLY,
READ_ONLY_ROUTING_URL = 'TCP:::SecondaryServer:1433')
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 79
D. AVAILABILITY_MODE = ASYNCHRONOUS_COMMIT,
FAILOVER_MODE = MANUAL
SECONDARY_ROLE (
ALLOW_CONNECTIONS = YES,
READ_ONLY_ROUTING_URL = 'TCP:::SecondaryServer:1433')
Aoswern D
Question 120
DRAG DROP
You are a database administrator for a Microsof SQL Server 2012 environment that contains two SQL Server instances
named Server01 and Server02. The Contoso database is located on Server01. Throunh database mirrorinn, a copy of
the Contoso database is on Server02.
Durinn the last manual failover of database mirrorinn, the recovery took lonner than usual.
You need to determine where the synchronizaton botleneck is for the database mirrorinn topolony.
Which performance counter or counters should you use for each server? (To answer, dran the appropriate
performance counter or counters to their correspondinn server or servers in the answer area. Answer choices may be
used once, more than once, or not at all. Answer tarnets may be used once or not at all. Additonally, you may need to
dran the split bar between panes or scroll to view content.)
Aoswern
Question 121
You administer two Microsof SQL Server 2012 servers named ProdSrv1 and ProdSrv2. ProdSrv1 is confnured as a
Distributor. Both servers are confnured to use the Windows NT Service virtual accounts for all SQL Services.
You are confnurinn snapshot replicaton from ProdSrv1 to ProdSrv2 by usinn ProdSrv2 as a pull subscriber.
The distributon anent on ProdSrv2 renularly fails, displayinn the followinn error messane:
"Cannot access the fle. Operatnn system error code 5 (Access is denied.)."
You need to confnure the distributon anent by nrantnn only the minimum required access to all accounts.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 80
Aoswern D
Question 122
You are a database administrator for a Microsof SQL Server 2012 environment.
You want to deploy a new applicaton that will scale out the workload to at least fve diferent SQL Server instances.
You need to ensure that for each copy of the database, users are able to read and write data that will then be
synchronized between all of the database instances.
Which feature should you use?
A. Database Mirrorinn
B. Peer-to-Peer Replicaton
C. Lon Shippinn
D. Availability Groups
Aoswern B
Question 123
You administer a Microsof SQL Server 2012 instance that has multple databases. You have a two-node SQL Server
failover cluster. The cluster uses a storane area network (SAN).
You discover I:O issues. The SAN is at capacity and additonal disks cannot be added.
You need to reduce the I:O workload on the SAN at a minimal cost.
What should you do?
Aoswern D
Question 124
You administer a Microsof SQL Server 2012 database that includes a table named Applicaton.Events.
Applicaton.Events contains millions of records about user actvity in an applicaton.
Records in Applicaton.Events that are more than 90 days old are purned ninhtly. When records are purned, table locks
are causinn contenton with inserts.
You need to be able to modify Applicaton.Events without requirinn any channes to the applicatons that utlize
Applicaton.Events.
Which type of soluton should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 81
A. Parttoned tables
B. Online index rebuild
C. Channe data capture
D. Channe trackinn
Aoswern A
Question 125
DRAG DROP
You administer a Microsof SQL Server 2012 instance.
An applicaton executes a larne volume of dynamic queries.
You need to reduce the amount of memory used for cached query plans.
What should you do? (To answer, move the appropriate statements from the list of statements to the answer area and
arranne them in the correct order.)
Aoswern
Box 1:
Box 2:
Box 3:
Note:
* SQL SERVER 2008 Optmize for Ad hoc Workloads Advance Performance Optmizaton
Every batch (T-SQL, SP etc) when ran creates executon plan which is stored in system for re-use. Due to this reason a
larne number of query plans are stored in system. However, there are plenty of plans which are only used once and
have never re-used anain. One tme ran batch plans wastes memory and resources.
* Let us now enable the opton of optmizinn ad hoc workload. This feature is available in all the versions of SQL
Server 2008.
sp_CONFIGURE 'show advanced optons',1
RECONFIGURE
GO
sp_CONFIGURE optmize for ad hoc workloads,1
RECONFIGURE
GO
SQL Server 2008 has feature of optmizinn ad hoc workloads.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 82
Question 126
HOTSPOT
You administer a Microsof SQL Server 2012 database instance.
The instance is runninn on a server with the followinn confnuraton:
1TB RAM
SAN storane for database and lon fles
4 quad-core processors
64-Bit Windows 2008R2 operatnn system
This instance hosts a database with larne parttoned tables. Users report that complex queries are takinn a lonn tme
to complete.
While troubleshootnn, you discover that CPU utlizaton is low (less than 20 percent), disk actvity is low (litle or no
waitnn processes), and no sinnifcant blockinn is occurrinn.
You need to ensure that the instance can process queries as quickly and efciently as possible.
Which seenn should you confnure?
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 83
Question 127
You administer a Microsof SQL Server 2012 environment. One of the SQL Server 2012 instances contains a database
named Sales.
You plan to minrate Sales to Windows Azure SQL Database.
To do so, you need to implement a contained database.
What should you do? (Each correct answer presents part of the soluton. Choose all that apply.)
Aoswern B, D
Question 128
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to track all SELECT statements issued in the Contoso database only by users in a role named Sales.
What should you create?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 84
A. An Alert
B. A Resource Pool
C. An Extended Event session
D. A Server Audit Specifcaton
E. A SQL Profler Trace
F. A Database Audit Specifcaton
G. A Policy
H. A Data Collector Set
Aoswern F
Question 129
You administer a Microsof SQL Server 2012 database named Contoso on a server named Server01.
You need to collect data for a lonn period of tme to troubleshoot wait statstcs when queryinn Contoso. You also
need to ensure minimum impact to the server.
What should you create?
A. An Alert
B. A Resource Pool
C. An Extended Event session
D. A Server Audit Specifcaton
E. A SQL Profler Trace
F. A Database Audit Specifcaton
G. A Policy
Aoswern C
Question 130
You plan to install Microsof SQL Server 2012 for a web hostnn company.
The company plans to host multple web sites, each supported by a SQL Server database.
You need to select an editon of SQL Server that features backup compression of databases, basic data intenraton
features, and low total cost of ownership.
Which editon should you choose?
Aoswern B
Question 131
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 85
A. Excel Services
B. FILESTREAM
C. SQL Server Intenraton Services (SSIS)
D. OpenXML
Aoswern B
Question 132
You administer a Microsof SQL Server 2012 instance named SQL2012. You are in the process of minratnn a database
from a SQL Server 2008 instance named SQL2008 to the SQL2012 instance.
You have upnraded a database from the SQL2008 instance by usinn the side-by-side minraton technique.
You need to minrate the SQL Server lonins from the SQL2008 instance to the SQL2012 instance.
What should you do?
A. Back up the master database on the SQL2008 instance. Restore the master database on the SQL2012 instance
B. Use the Transfer Lonins task in a Microsof SQL Server Intenrated Services packane
C. Use sp_nrantlonin
D. Use xp_lonininfo.
Aoswern B
Question 133
You administer a Microsof SQL Server 2012 database instance. You create a new user named User
A.
You need to ensure that UserA is able to create SQL Server Anent jobs and execute SQL Server anent jobs owned by
UserA
To which role should you add UserA?
A. DatabaseMailUserRole
B. ServerGroupAdministratorGroup
C. SQLAnentUserRole
D. Securityadmin
Aoswern C
Question 134
A. a schedule
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 86
B. an alert
C. an operator
D. a proxy
Aoswern D
Question 135
Aoswern B
Question 136
You administer a Microsof SQL Server environment. You purchase a new server and plan to minrate your database
from SQL Server 2008 to SQL Server 2012.
You want to evaluate to prepare for possible conficts and issues that may arise durinn or afer the minraton.
Which SQL Server tool should you use?
A. Distributed Replay
B. Minraton Assistant
C. Data Tools
D. Upnrade Advisor
Aoswern D
Question 137
DRAG DROP
You are minratnn an OLTP database from Windows Azure SQL Database to on-premise. You are planninn the
installaton of a Microsof SQL Server 2012 server failover cluster. The server has the followinn parttons:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 87
The OLTP database needs to be on the fastest disk subsystem possible. The database is currently 200GB in size. It will
not substantally increase in size in the next 3 years.
You need to plan the usane of the disk subsystems.
To which hard disk should each database belonn? (To answer, dran the appropriate database or databases to their
correspondinn hard disk or disks in the answer area. Answer choices may be used once, more than once, or not at all.
Answer tarnets may be used once or not at all. Additonally, you may need to dran the split bar between panes or
scroll to view content.)
Aoswern
Question 138
DRAG DROP
You administer several Microsof SQL Server 2012 servers.
You want to run scheduled checks to confrm that the databases on the servers are not confnured to AutoShrink.
You need to create a policy to check the conditon.
What should you do? (To answer, move the appropriate actons from the list of actons to the answer area and arranne
them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 88
Aoswern
Box 1:
Box 2:
Box 3:
Note:
* @autoshrink is used to enable:disable the autoshrink feature.
* The Evaluaton Mode defnes the combinaton of 1) when the policy will be evaluated and 2) what the system will
do in case of policy violaton. The followinn evaluaton modes are supported:
Question 139
DRAG DROP
You administer a Windows Azure SQL Database database used for data warehouse operatons.
The database contains a table named OrdersHistory, defned as follows:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 89
A weekly ETL (extract-transform-load) runs a larne INSERT statement to add data into the OrdersHistory table. The
process is takinn a lonn tme to complete. You discover that the bulk of the process is performinn non-clustered index
updates on the OrdersHistory table.
You need to improve the performance of the ETL process faster. You need to meet the followinn requirements:
Avoid losinn existnn permissions on existnn objects.
Use minimal administratve efort.
What should you do? (To answer, move the appropriate actons from the list of actons to the answer area and arranne
them in the correct order.)
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 90
Question 140
You administer a Microsof SQL Server 2012 Enterprise Editon server that uses 64 cores.
You discover performance issues when complex calculatons are performed on larne amounts of data under heavy
system load.
You need to limit the number of cores that handle the processinn.
What should you confnure?
Aoswern B
Question 141
Aoswern D
htps:::technet.microsof.com:en-us:library:cc731739.aspx
Question 142
HOTSPOT
You administer two Microsof SQL Server 2012 databases named Contoso and ContosoWarehouse.
You plan to replicate tables from the Contoso database to the ContosoWarehouse database.
Indexes will be added to the tables in ContosoWarehouse to improve the performance of reports.
You need to ensure that the followinn requirements are met:
Indexes are not modifed when the subscriptons are reinitalized.
Only the clustered index from Contoso will be replicated.
Minimal transacton lon actvity durinn the reinitalizaton.
What should you do? Choose the correct opton(s).
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 91
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 92
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 93
Question 143
You administer a SQL Server 2012 database instance.
You need to confnure the SQL Server Database Ennine service on a failover cluster.
Which user account should you use?
Aoswern B
Question 144
You administer a Microsof SQL Server 2012 database named Contoso that contains a sinnle user-defned database
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 94
role namedBillinnUsers.
All objects in Contoso are in the dbo schem
A.
You need to nrant EXECUTE permission for all stored procedures in Contoso to BillinnUsers.
Which Transact-SQL statement should you use?
A. CREATE ROLE proc_caller
GRANT EXECUTE ON Schema: : dbo TO proc_caller
ALTER ROLE proc_caller ADD MEMBER BillinnUsers
B. GRANT EXECUTE ON INFORMATION_SCHEMA.ROUTINES TO BillinnUsers
C. EXEC sp_addrolemember 'executor', 'BillinnUsers'
D. CREATE ROLE proc_caller
GRANT EXECUTE ON ALL PROCEDURES TO proc_caller
ALTER MEMBER BillinnUsers ADD TO ROLE proc_caller
Aoswern D
Question 145
You have been hired as a Database Consultant by ABC.com to desinn a SQL Server 2012 database soluton.
You are tasked with desinninn a scale-out and hinh-availability SQL Server 2012 Online
Transacton Processinn (OLTP) database soluton that will maintain copies of data across two server instances.
Your soluton must provide scale-out of read operatons by distributnn the reads from clients across two SQL Server
2012 nodes. The data in both SQL Server nodes needs to be indexed.
What should you include in your soluton?
A. You should include a primary database with scheduled lon shippinn to the secondary database confnured.
B. You should include two servers confnured in an Actve-Passive SQL Server 2012 Cluster.
C. You should include a primary SQL Server 2012 database that uses transactonal replicaton to replicate data to the
secondary database.
D. You should include two servers in an Asynchronous-Commit Availability Mode Availability Group.
E. You should include two servers in a Synchronous-Commit Availability Mode Availability Group.
Aoswern C
Question 146
You are a database developer of a Microsof SQL Server 2012 database. You are desinninn a table that will store
Customer data from diferent sources. The table will include a column that contains the CustomerID from the source
system and a column that contains the SourceID. A sample of this data is as shown in the followinn table.
You need to ensure that the table has no duplicate CustomerID within a SourceID. You also need to ensure that the
data in the table is in the order of SourceID and then CustomerID. Which Transact- SQL statement should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 95
Aoswern D
Question 147
You administer a Microsof SQL Server 2012 database named ContosoDb. Tables are defned as shown in the exhibit.
(Click the Exhibit buton.)
You need to display rows from the Orders table for the Customers row havinn the CustomerId value set to 1 in the
followinn XML format.
A. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 96
Customers
ON Orders.CustomerId = Customers-CustomerId WHERE Customers.CustomerId = 1
FOR XML RAW
B. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1
FOR XML RAW, ELEMENTS
C. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1
FOR XML AUTO
D. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId Customers.CustomerId WHERE Customers.CustomerId= 1
FOR XML AUTO, ELEMENTS
E. SELECT Name, Country, Orderld, OrderDate, Amount FROM Orders INNER JOIN
Customers ON Orders.CustomerId= Customers.CustomerId WHERE
Customers.CustomerId= 1
FOR XML AUTO, ELEMENTS
F. SELECT Name, Country, Crderld, OrderDate, Amount FROM Orders INNER JOIN
Customers
ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=
FOR XML AUTO, ELEMENTS
G. SELECT Name AS @Name, Country AS @Country, OrderId, OrderDate, Amount
FROM
Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.
CustomerId= 1
FOR XML PATH (Customers)
H. SELECT Name AS Customers:Name, Country AS Customers:Country, OrderId,
OrderDate, Amount
FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId
WHERE Customers.CustomerId= 1
FOR XML PATH (Customers)
Aoswern E
Question 148
You administer a Microsof SQL Server 2012 database named ContosoDb. Tables are defned as shown in the exhibit.
(Click the Exhibit buton.)
You need to display rows from the Orders table for the Customers row havinn the CustomerId value set to 1 in the
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 97
A. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId = Customers-CustomerId WHERE Customers.CustomerId = 1
FOR XML RAW
B. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1
FOR XML RAW, ELEMENTS
C. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId = Customers.CustomerId WHERE Customers.CustomerId = 1
FOR XML AUTO
D. SELECT OrderId, OrderDate, Amount, Name, Country FROM Orders INNER JOIN
Customers
ON Orders.CustomerId Customers.CustomerId WHERE Customers.CustomerId= 1
FOR XML AUTO, ELEMENTS
E. SELECT Name, Country, OrderId, OrderDate, Amount FROM Orders INNER JOIN
Customers
ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=
FOR XML AUTO
F. SELECT Name, Country, Crderld, OrderDate, Amount FROM Orders INNER JOIN
Customers
ON Orders.CustomerId= Customers.CustomerId WHERE Customers.CustomerId=
FOR XML AUTO, ELEMENTS
G. SELECT Name AS @Name, Country AS @Country, OrderId, OrderDate, Amount
FROM
Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId WHERE Customers.
CustomerId= 1
FOR XML PATH (Customers)
H. SELECT Name AS Customers:Name, Country AS Customers:Country, OrderId,
OrderDate, Amount
FROM Orders INNER JOIN Customers ON Orders.CustomerId= Customers.CustomerId
WHERE Customers.CustomerId= 1
FOR XML PATH (Customers)
Aoswern G
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 98
Question 149
You use Microsof SQL Server 2012 to develop a database applicaton. You need to implement a computed column
that references a lookup table by usinn an INNER JOIN anainst another table.
What should you do?
Aoswern A
Question 150
You use a Microsof SQL Server 2012 database that contains two tables named SalesOrderHeader and
SalesOrderDetail. The indexes on the tables are as shown in the exhibit. (Click the Exhibit buton.)
You discover that the performance of the query is slow. Analysis of the query plan shows table scans where the
estmated rows do not match the actual rows for SalesOrderHeader by usinn an unexpected index on
SalesOrderDetail.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 99
Aoswern D
Reference:
htp:::msdn.microsof.com:en-us:library:ms187348.aspx
Question 151
You are a database developer for an applicaton hosted on a Microsof SQL Server 2012 server. The database contains
two tables that have the followinn defnitons:
Global customers place orders from several countries. You need to view the country from which each customer has
placed the most orders.
Which Transact-SQL query do you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 100
FROM Customer c
INNER JOIN
(SELECT CustomerID, ShippinnCountry,
RANK() OVER (PARTITION BY CustomerID
ORDER BY OrderAmount DESC) AS Rnk
FROM Orders
GROUP BY CustomerID, ShippinnCountry) AS o
ON c.CustomerID = o.CustomerID
WHERE o.Rnk = 1
D. SELECT c.CustomerID, c.CustomerName, o.ShippinnCountry
FROM Customer c
INNER JOIN
(SELECT CustomerID, ShippinnCountry,
COUNT(OrderAmount) DESC) AS OrderAmount
FROM Orders
GROUP BY CustomerID, ShippinnCountry) AS o
ON c.CustomerID = o.CustomerID
ORDER BY OrderAmount DESC
Aoswern A
Question 152
DRAG DROP
You use a Microsof SQL Server 2012 database. You need to create an indexed view within the database for a report
that displays Customer Name and the total revenue for that customer.
Which four T-SQL statements should you use? (To answer, move the appropriate SQL statements from the list of
statements to the answer area and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 101
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 102
Reference: htp:::msdn.microsof.com:en-us:library:ms191432.aspx
Question 153
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 103
You use Microsof SQL Server 2012 to develop a database applicaton. You need to create an object that meets the
followinn requirements:
Takes an input variable
Returns a table of values
Cannot be referenced within a view
Which object should you use?
A. Scalar-valued functon
B. Inline functon
C. User-defned data type
D. Stored procedure
Aoswern D
Question 154
You administer a SQL Server 2012 server that contains a database named SalesDb. SalesDb contains a schema named
Customers that has a table named Renions. A user named UserA is a member of a role named Sales. UserA is nranted
the Select permission on the Renions table. The Sales role is nranted the Select permission on the Customers schema.
You need to ensure that the followinn requirements are met:
The Sales role does not have the Select permission on the Customers schema.
UserA has the Select permission on the Renions table.
Which Transact-SQL statement should you use?
Aoswern D
References:
htp:::msdn.microsof.com:en-us:library:ms188369.aspx
htp:::msdn.microsof.com:en-us:library:ms187750.aspx
htp:::msdn.microsof.com:en-us:library:f848791.aspx
Question 155
You develop a Microsof SQL Server 2012 database that contains a heap named OrdersHistoncal.
You write the followinn Transact-SQL query:
INSERT INTO OrdersHistorical
SELECT * FROM CompletedOrders
You need to optmize transacton lonninn and lockinn for the statement.
Which table hint should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 104
A. HOLDLOCK
B. ROWLOCK
C. XLOCK
D. UPDLOCK
E. TABLOCK
Aoswern E
Reference:
htp:::technet.microsof.com:en-us:library:ms189857.aspx
htp:::msdn.microsof.com:en-us:library:ms187373.aspx
Question 156
Your database contains a table named Purchases. The table includes a DATETIME column named PurchaseTime that
stores the date and tme each purchase is made. There is a non-clustered index on the PurchaseTime column. The
business team wants a report that displays the total number of purchases made on the current day. You need to write
a query that will return the correct results in the most efcient manner.
Which Transact-SQL query should you use?
A. SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime = CONVERT(DATE, GETDATE())
B. SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime = GETDATE()
C. SELECT COUNT(*)
FROM Purchases
WHERE CONVERT(VARCHAR, PurchaseTime, 112) = CONVERT(VARCHAR, GETDATE(), 112)
D. SELECT COUNT(*)
FROM Purchases
WHERE PurchaseTime >= CONVERT(DATE, GETDATE())
AND PurchaseTime < DATEADD(DAY, 1, CONVERT(DATE, GETDATE()))
Aoswern D
Reference: htp:::technet.microsof.com:en-us:library:ms181034.aspx
Question 157
You develop a database for a travel applicaton. You need to desinn tables and other database objects. You need to
store media fles in several tables. Each media fle is less than 1 MB in size.
The media fles will require fast access and will be retrieved frequently.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 105
Aoswern F
Reference: htp:::msdn.microsof.com:en-us:library:ms188362.aspx
Question 158
You develop a database for a travel applicaton. You need to desinn tables and other database objects. You create a
view that displays the dates and tmes of the airline schedules on a report.
You need to display dates and tmes in several internatonal formats.
What should you do?
Aoswern C
Reference: htp:::msdn.microsof.com:en-us:library:hh213505.aspx
Question 159
You have three tables that contain data for vendors, customers, and anents. You create a view that is used to look up
telephone numbers for these companies.
The view has the followinn defniton:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 106
You need to ensure that users can update only the phone numbers by usinn this view. What should you do?
A. Alter the view. Use the EXPAND VIEWS query hint alonn with each SELECT statement.
B. Drop the view. Re-create the view by usinn the SCHEMABINDING clause, and then create an index on the view.
C. Create an AFTER UPDATE trinner on the view.
D. Create an INSTEAD OF UPDATE trinner on the view.
Aoswern D
Question 160
You develop a Microsof SQL Server 2012 database that contains tables named Employee and Person. The tables have
the followinn defnitons:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 107
You create a view named VwEmployee as shown in the followinn Transact-SQL statement.
Users are able to use sinnle INSERT statements or INSERT...SELECT statements into this view. You need to ensure that
users are able to use a sinnle statement to insert records into both Employee and Person tables by usinn the
VwEmployee view.
Which Transact-SQL statement should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 108
INSTEAD OF INSERT
AS
BEGIN
DECLARE @ID INT, @FirstName NVARCHAR(25), @LastName NVARCHAR(25), @PersonID INT,
@EmployeeNumber NVARCHAR(15)
SELECT @ID = ID, @FirstName = FirstName, @LastName = LastName, @EmployeeNumber =
EmployeeNumber
FROM inserted
INSERT INTO Person(Id, FirstName, LastName)
VALUES(@ID, @FirstName, @LastName)
INSERT INTO Employee(PersonID, EmployeeNumber)
VALUES(@PersonID, @EmployeeNumber
End
D. CREATE TRIGGER TrnVwEmployee
ON VwEmployee
INSTEAD OF INSERT
AS
BEGIN
INSERT INTO Person(Id, FirstName, LastName)
SELECT Id, FirstName, LastName FROM VwEmployee
INSERT INTO Employee(PersonID, EmployeeNumber)
SELECT Id, EmployeeNumber FROM VwEmployee
End
Aoswern B
Question 161
You develop a Microsof SQL Server 2012 database. You create a view from the Orders and OrderDetails tables by
usinn the followinn defniton.
You need to improve the performance of the view by persistnn data to disk.
What should you do?
Aoswern D
Reference: htp:::msdn.microsof.com:en-us:library:ms188783.aspx
Question 162
Your database contains tables named Products and ProductsPriceLon. The Products table contains columns named
ProductCode and Price. The ProductsPriceLon table contains columns named ProductCode, OldPrice, and NewPrice.
The ProductsPriceLon table stores the previous price in the OldPrice column and the new price in the NewPrice
column.
You need to increase the values in the Price column of all products in the Products table by 5 percent.
You also need to lon the channes to the ProductsPriceLon table.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 109
Aoswern A
Reference: htp:::msdn.microsof.com:en-us:library:ms177564.aspx
Question 163
A table named Profts stores the total proft made each year within a territory. The Profts table has columns named
Territory, Year, and Proft. You need to create a report that displays the profts made by each territory for each year
and its previous year.
Which Transact-SQL query should you use?
Aoswern C
Reference:
htp:::msdn.microsof.com:en-us:library:hh231256.aspx
htp:::msdn.microsof.com:en-us:library:hh213125.aspx
Question 164
Your database contains a table named SalesOrders. The table includes a DATETIME column named OrderTime that
stores the date and tme each order is placed. There is a non-clustered index on the OrderTime column. The business
team wants a report that displays the total number of orders placed on the current day.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 110
You need to write a query that will return the correct results in the most efcient manner.
Which Transact-SQL query should you use?
Aoswern D
Question 165
You use Microsof SQL Server 2012 to develop a database applicaton. You create a stored procedure named
dbo.ModifyData that can modify rows.
You need to ensure that when the transacton fails, dbo.ModifyData meets the followinn requirements:
Does not return an error
Closes all opened transactons
Which Transact-SQL statement should you use?
A. BEGIN TRANSACTION
BEGIN TRY
EXEC dbo.ModifyData
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF @@ TRANCOUNT = 0
ROLLBACK TRANSACTION;
END CATCH
B. BEGIN TRANSACTION
BEGIN TRY
EXEC dbo.ModifyData
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF @@ERROR != 0
ROLLBACK TRANSACTION;
THROW;
END CATCH
C. BEGIN TRANSACTION
BEGIN TRY
EXEC dbo.ModifyData
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF @@TRANCOUNT = 0
ROLLBACK TRANSACTION;
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 111
THROW;
END CATCH
D. BEGIN TRANSACTION
BEGIN TRY
EXEC dbo.ModifyData
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF @@ERROR != 0
ROLLBACK TRANSACTION;
END CATCH
Aoswern D
Question 166
You are developinn a database applicaton by usinn Microsof SQL Server 2012. You have a query that runs slower than
expected.
You need to capture executon plans that will include detailed informaton on missinn indexes recommended by the
query optmizer.
What should you do?
Aoswern K
Question 167
You are developinn a database applicaton by usinn Microsof SQL Server 2012. An applicaton that uses a database
benins to run slowly.
You discover that a larne amount of memory is consumed by sinnle-use dynamic queries.
You need to reduce procedure cache usane from these statements without creatnn any additonal indexes.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 112
Aoswern G
Reference: htp:::msdn.microsof.com:en-us:library:cc645587.aspx
Question 168
You create a table that has the StudentCode, SubjectCode, and Marks columns to record mid-year marks for students.
The table has marks obtained by 50 students for various subjects.
You need to ensure that the top half of the students arranned by their averane marks must be niven a rank of 1 and
the remaininn students must be niven a rank of 2.
Which Transact-SQL query should you use?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 113
Aoswern D
Question 169
Aoswern I
Reference:
htp:::msdn.microsof.com:en-us:library:f848733.aspx
htp:::msdn.microsof.com:en-us:library:bb630289.aspx
Question 170
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 114
Aoswern E
Question 171
You develop a Microsof SQL Server 2012 database. The database is used by two web applicatons that access a table
named Products. You want to create an object that will prevent the applicatons from accessinn the table directly
while stll providinn access to the required data.
You need to ensure that the followinn requirements are met:
Future modifcatons to the table defniton will not afect the applicatons' ability to access data.
The new object can accommodate data retrieval and data modifcaton.
You need to achieve this noal by usinn the minimum amount of channes to the applicatons.
What should you create for each applicaton?
A. Synonyms
B. Common table expressions
C. Views
D. Temporary tables
Aoswern C
Reference: htp:::msdn.microsof.com:en-us:library:ms190174.aspx
Question 172
DRAG DROP
You want to add a new GUID column named BookGUID to a table named dbo.Book that already contains data.
BookGUID will have a constraint to ensure that it always has a value when new rows are inserted into dbo.Book. You
need to ensure that the new column is assinned a GUID for existnn rows. 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
arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 115
Aoswern
Reference: htp:::msdn.microsof.com:en-us:library:ms190273.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 116
Question 173
DRAG DROP
You create a view based on the followinn statement:
You nrant the Select permission to User1 for this view. You need to channe the view so that it displays only the records
that were processed in the month prior to the current month. You need to ensure that afer the channes, the view
functons correctly for User1. 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 arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 117
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 118
Explanaton:Reference:
htp:::msdn.microsof.com:en-us:library:hh213020.aspx
htp:::msdn.microsof.com:en-us:library:ms186819.aspx
htp:::msdn.microsof.com:en-us:library:ms173846.aspx
Question 174
You are a database administrator for a Microsof SQL Server 2012 instance.
You need to ensure that data can be minrated from a producton server to two reportnn servers with minimal data to
ensure that data on the reportnn server is always accessible which soluton should you use?
A. Database snapshot
B. Lon Shippinn
C. Channe Data Capture
D. Availability Groups
Aoswern D
Question 175
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 119
Aoswern D
Question 176
You install a Microsof SQL Server 2012 instance. The instance will store data extracted from two database runninn on
windows Azure SQL Database.
You hire a data steward to perform interactve data cleaninn and ad hoc queryinn and updatnn of the data.
You need to ensure that the data steward is niven the correct client tools to perform these tasks.
Which set of tools should you install?
Aoswern D
Question 177
You work as the Senior Database Administrator (DBA) at ABC.com. The company has a main ofce and 10 branch
ofces. Each branch ofce contains a sinnle database server runninn Microsof SQL Server 2012. The main ofce has
multple clustered servers runninn Microsof SQL Server 2012.
Your role includes the mananement of the entre Microsof SQL Server 2012 infrastructure.
The company runs a custom applicaton that stores data in a larne Microsof SQL Server 2012 database.
The primary database is hosted in the main ofce. Each branch ofce SQL Server hosts a copy of the database.
You need to confnure a soluton that will replicate the entre primary database from the main ofce SQL Server every
weekend.
What should you include in your soluton?
A. Transactonal Replicaton
B. Lon Shippinn
C. Snapshot Replicaton
D. SQL Server Availability Group
Aoswern C
Question 178
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 120
You work as a Database Administrator (DBA) at ABC.com. The infrastructure includes servers runninn Microsof SQL
Server 2012. All databases are hosted on a SAN (Storane Area Network).
You need to desinn a database soluton for a new applicaton.
You are tasked with desinninn a hinh-availability database soluton.
The soluton must include a sinnle copy of the database to save disk space and the database must remain online in the
event of a SQL Server failure. What should you include in your soluton?
Aoswern A
Question 179
You work as a Database Administrator (DBA) at ABC.com. The infrastructure includes servers runninn Windows Server
2008 R2 and Microsof SQL Server 2012. The company uses several custom applicatons that store data in databases
on the Microsof SQL Server 2012 servers.
A full backup of all databases is taken every ninht at midninht.
A diferental backup of all databases is taken on the hour every hour startnn at 3am untl the last backup at 11pm.
A lon backup is taken every 15 minutes for databases confnured with the Full Recovery Model.
One applicaton named ABCApp1 stores data in a database named ABCApp1DB.
ABCApp1DB is confnured with the Simple Recovery Model. ABCApp1DB fails at 3:25am.
You discover that the last diferental backup of ABCApp1DB failed.
You need to restore ABCApp1DB from backup as quickly as possible and minimize data loss.
Which of the followinn steps should you perform to restore ABCApp1DB? (Choose one or more answers).
Aoswern A
Question 180
A. db_accessadmin
B. db_ddladmin
C. db_datawriter
D. db_datareader
E. db_owner
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 121
Aoswern A, B, C, D
Question 181
You are planninn on deployinn a server that will be dedicated for ETL (Extracton, Transformaton, and Loadinn)
processes.
You want to ensure that SSIS (SQL Server Intenraton Services) packanes will run on this dedicated ETL server and not
on any other server on which they were started.
Which of the followinn features must you install on the ETL server in additon to SSIS to accomplish this noal?
A. Database Ennine
B. SQL Server Reportnn Services
C. SQL Server Analysis Services
D. Client Tools SDK
Aoswern A
Question 182
You have installed the SQL Server Intenraton Services (SSIS) feature on a server runninn Windows Server 2008 R2 SP1.
Which of the followinn features must you install if you want to ensure that you can run packanes in 32-bit mode?
Aoswern C
Question 183
You want to reproduce the same SQL Server 2012 installaton confnuraton across fve servers.
Which of the followinn fles will you nenerate by usinn SQL Server Setup to accomplish this noal?
A. Confnuraton.xml
B. Setup.ini
C. Setup.xml
D. ConfnuratonFile.ini
Aoswern D
Question 184
You want to remove SQL Server Intenraton Services from a server runninn the Windows Server 2008 R2 operatnn
system that also has the Database Ennine and SQL Server Analysis Services installed.
Which of the followinn tools can you use to accomplish this noal?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 122
Aoswern C
Question 185
You have recently removed a SQL 2012 Database Ennine instance from a computer runninn the Windows Server 2008
R2 operatnn system. Prior to the removal of the instance, you had confnured afnity so that the default instance used
CPU 0 and 1 and the second instance used CPU 2 and 3.
You want to ensure that the default instance can use all processors available to the host.
Which of the followinn commands would you use to accomplish this noal?
Aoswern A
Question 186
Which feature should you enable and confnure so session requests addressed to a specifc instance can be allocated
diferent processor resources based on session request propertes?
A. Resource Governor
B. Windows System Resource Mananer
C. Processor afnity
D. I:O afnity
Aoswern C
Question 187
A. 30%
B. 50%
C. 70%
D. 100%
Aoswern B
Question 188
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 123
On which of the followinn operatnn systems can you deploy the 64-bit version of SQL Server 2012 Enterprise editon?
(Choose all that apply.)
Aoswern B, C
Question 189
Which of the followinn editons of SQL Server 2012 can you run on a computer that is runninn the Windows 7
Professional (x64) operatnn system? (Choose all that apply.)
Aoswern A, D
Question 190
Which of the followinn features can you install if you are installinn SQL Server 2012 Enterprise editon on a computer
runninn Windows Server 2008 R2 SP1 Enterprise editon in the Server Core confnuraton? (Choose all that apply.)
Aoswern A, B, C
Question 191
What is the minimum recommended amount of RAM for SQL Server 2012 Enterprise?
A. 512 MB
B. 1 GB
C. 2 GB
D. 4 GB
Aoswern B
Question 192
You want to simulate read, write, checkpoint, backup, sort, and read-ahead actvites for your ornanizatons SQL
Server 2012 deployment.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 124
Which of the followinn tools would you use to accomplish this noal?
A. SQLIO
B. SQLIOSim
C. SQLIOStress
D. chkdsk
Aoswern B
Question 193
What is the maximum number of SQL Server 2012 Enterprise editon Database Ennine instances that you can deploy
on a non-clustered server runninn Windows Server 2008 R2 Enterprise editon?
A. 10
B. 25
C. 50
D. 100
Aoswern C
Question 194
You administer a Microsof SQL Server 2012 server that hosts a transactonal database and a reportnn database. The
transactonal database is updated throunh a web applicaton and is operatonal throunhout the day. The reportnn
database is only updated from the transactonal database.
The recovery model and backup schedule are confnured as shown in the followinn table:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 125
One of the hard disk drives that stores the reportnn database fails at 23:32 hours.
You need to ensure that the reportnn database is restored. You also need to ensure that data loss is minimal.
What should you do?
Aoswern E
Explanaton:
To recover the database, you must restore the latest full backup and then restore the latest diferental backup.
Incorrect answers:
A: A pane restore is used to repair isolated damaned panes. It is faster than a fle restore id only a few individual panes
are damaned.
B: Partal restores allow a database that contains multple flenroups to be restored and recovered in stanes. It works
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 126
with all recovery models, but is more fexible for the full and bulk-lonned models than for the simple model.
C: Point in tme restores are not supported for the simple backup model as lon fles are not part of the backup.
D: The latest full backup was performed at 01:00 hours, 22 hours and 32 minutes before the hard disk failure. A
diferental backup was made at 13:00 hours, 10 hours and 32 minutes before the hard disk failure. A diferental
backup contains data that has been added or updated since the last full backup and should be restored to minimize
data loss.
F, G: There is not lon backup in the simple backup model.
H: Only the latest diferental backup needs to be restored.
References:
htps:::msdn.microsof.com:en-us:library:ms186216%28v=sql.110%29.aspx
htps:::technet.microsof.com:en-us:library:ms175168%28v=sql.110%29.aspx
htps:::msdn.microsof.com:en-us:library:ms177425%28v=sql.110%29.aspx
htps:::msdn.microsof.com:en-us:library:ms175526%28v=sql.110%29.aspx
Question 195
DRAG DROP
You administer a Microsof SQL Server 2012 database named Human_Resources.
You need to ensure that all read actvity anainst any object in the Human_Resources database is audited and writen
to a text fle.
What should you do? (To answer, move the appropriate actons from the list of actons to the answer area and arranne
them in the correct order.)
Aoswern
Create a new Audit. For destnaton, select File.
Create a new Database Audit Specifcaton on Human_Resources. For Audit Acton Type, select Select, and for Object
Class, select Database.
Enable Audi and Audi Specifcaton.
Explanaton:
The neneral process for creatnn and usinn an audit is as follows.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 127
Question 196
You administer a Microsof SQL Server 2012 Enterprise Editon server that uses 64 cores.
You discover performance issues when complex calculatons are performed on larne amounts of data under heavy
system load.
You need to limit the number of cores that process the calculatons.
What should you confnure?
Aoswern B
Explanaton:
To carry out multtaskinn, the operatnn system sometmes moves process threads amonn diferent processors. This is
efcient from an operatnn system point of view, but can reduce SQL Server performance under heavy system loads,
as each processor cache is repeatedly reloaded with data. Assinninn processors to specifc threads can improve
performance under these conditons by eliminatnn processor reloads; such an associaton between a thread and a
processor is called processor afnity.
References:
htps:::msdn.microsof.com:en-us:library:ms189629%28v=sql.110%29.aspx
Question 197
DRAG DROP
You administer a Microsof SQL Server 2012 database instance that uses transparent database encrypton.
You plan to move the database from the current server to a new server by usinn Backup and Restore.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 128
Aoswern
Backup the Private Key
Backup the Database
Restore the Private Key
Restore the Database
References:
htp:::sqlsailor.com:2011:12:29:tdetransparent-data-encrypton-in-sql-server-2012-rc-0:
Question 198
DRAG DROP
You are confnurinn a Microsof SQL Server 2012 server and seenn up a new database.
You need to ensure that the followinn requirements are met:
Provide access to the database for a Windows nroup named CORP\Employees.
The database can be moved to another server with no additonal channes to the security confnuraton of the
database or server.
What should you do? (To answer, move the appropriate acton or actons from the list of actons to the answer area
and arranne them in the correct order.)
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 129
Aoswern
Use sp_confnure to channe the contained database authentcaton seenn to 1
Create the database and set the Containment seenn to Partal.
Create a contained database user named CORP:Employees in the database.
References:
htps:::msdn.microsof.com:en-us:library:f929139%28v=sql.110%29.aspx
htp:::www.sqlcofee.com:SQLServer2012_0009.htm
Question 199
Which of the followinn conditons must exist prior to restorinn a system database in SQL Server 2012?
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms188236(v=sql.110).aspx
Question 200
Which of the followinn is the default instance name in an SQL Server 2012 installaton?
A. SQLSERVER12
B. MSSQLSERVER
C. MSSQL
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 130
D. 2012SQL
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms143547(v=sql.110).aspx
Question 201
In which of the followinn statements about audit informaton stored in an SQL Server 2012 environment is TRUE?
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:cc280525(v=sql.110).aspx
Question 202
Which of the followinn transacton safety seenn in SQL Server 2012 mirrorinn forces the mirror to be synchronized
with the primary at all tmes?
A. SAFETY FULL
B. SAFETY OFF
C. MIRROR SYNC
D. MIRROR 100
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms189852%28v=sql.110%29.aspx
Question 203
Which of the followinn is a hinh availability feature with SQL Server 2012?
A. Clusterinn
B. AlwaysOn
C. Lon Shippinn
D. Actve-Actve
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms190202%28v=sql.110%29.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 131
Question 204
Which of the followinn is NOT a pre-defned server role in SQL Server 2012?
A. securityadmin
B. serveradmin
C. sysdba
D. dbcreator
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms188659%28v=sql.110%29.aspx
Question 205
Which of the followinn is required in order for a diferental backup to be useful for recovery purposes?
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms175526%28v=sql.110%29.aspx
Question 206
Which of the followinn statements about the tempdb system database is FALSE?
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms190768%28v=sql.110%29.aspx
Question 207
You have an index called Employee_IDX on the table Employees. Which of the followinn will rebuild this index online?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 132
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms177442%28v=sql.110%29.aspx
Question 208
Which of the followinn is a valid data source which you can import into SQL Server 2012?
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms141209%28v=sql.110%29.aspxv
Question 209
Which of the followinn SQL Server 2012 indexes stores data in a column-wise fashion instead of the traditonal row-
wise method?
A. Bitmap Index
B. Clustered Index
C. Functon-based Index
D. Columnstore Index
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:nn492088%28v=sql.110%29.aspx
Question 210
Which of the followinn is the default port for an SQL Server database to communicate over?
A. 1433
B. 21
C. 1344
D. 1521
Aoswern A
References:
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 133
htps:::msdn.microsof.com:en-us:library:ms177440%28v=sql.110%29.aspx
Question 211
Which of the followinn SQL Server 2012 indexes is ordered independently of the actual physical order of the table data
on which the index is based?
A. CLUSTERED
B. BITMAP
C. NONCLUSTERED
D. IND_ORDERED
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms188783%28v=sql.110%29.aspx
Question 212
Which of the followinn fles keeps track of all transactons that occur in an SQL Server database?
A. Transacton Lon
B. Redo Lon
C. Archive Lon
D. Data File
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms190925%28v=sql.110%29.aspx
Question 213
Which of the followinn will show you a history of job errors that have occurred in jobs scheduled to run in an SQL
Server 2012 installaton?
Aoswern D
Question 214
Which of the followinn SQL Server 2012 tools assists DBAs in runninn and analyzinn trace results?
A. SSIS
B. SQL Profler
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 134
C. AlwaysOn
D. EXP
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms187929%28v=sql.110%29.aspx
Question 215
Which of the followinn statements will set the maximum amount of system memory that is mananed by the SQL
Server Memory Mananer to 4GB?
Aoswern D
References:
htps:::msdn.microsof.com:en-us:library:ms178067%28v=sql.110%29.aspx
Question 216
Which of the followinn fle systems is supported for an SQL Server 2012 installaton?
A. EXT4
B. NTFS
C. FAT16
D. EXT3
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms143506%28v=sql.110%29.aspx#storanetypes
Question 217
Which of the followinn is NOT a method of failover for an SQL Server 2012 mirror?
A. Automatc Failover
B. Manual Failover
C. Forced Failover
D. Intermediate Failover
Aoswern D
Question 218
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 135
Which of the followinn is a disaster recovery soluton ofered in SQL Server 2012 and involves maintaininn a standby
copy of a primary database?
A. AlwaysOn
B. Lon Shippinn
C. Clusterinn
D. DataGuard
Aoswern A
Question 219
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms143506%28v=sql.110%29.aspx
Question 220
Which of the followinn SQL Server 2012 features nenerates numeric values at a defned interval and order?
A. sequence
B. number table
C. index
D. binint
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:f878091%28v=sql.110%29.aspx
Question 221
Which of the followinn DBCC commands can you use to check the physical and lonical intenrity of an SQL Server 2012
database?
A. CVU
B. VERIFYINTEGRITY
C. CHECKINTEGRITY
D. CHECKDB
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 136
Aoswern D
References:
htps:::msdn.microsof.com:en-us:library:ms176064%28v=sql.110%29.aspx
Question 222
If you are required to move an SQL 2012 database from one server to another, which of the followinn will do this at
the database level?
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms187858%28v=sql.110%29.aspx
Question 223
Which of the followinn is a valid upnrade path for SQL Server 2012?
Aoswern B
References:
htps:::technet.microsof.com:en-us:library:ms143393%28v=sql.110%29.aspx
htps:::technet.microsof.com:en-us:library:ms143393%28v=sql.90%29.aspx
Question 224
Which of the followinn is NOT a valid recovery model for an SQL 2012 database?
A. ArchiveLon
B. Simple
C. Bulk-lonned
D. Full
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms189275%28v=sql.110%29.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 137
Question 225
Which of the followinn is NOT a database role that you can assinn users in SQL Server 2012?
A. db_ddladmin
B. db_owner
C. db_datawriter
D. db_databaseadmin
Aoswern D
References:
htps:::msdn.microsof.com:en-us:library:ms189121%28v=sql.110%29.aspx
Question 226
Every SQL Server 2012 database must have a datafle and which of the followinn fle types associated with it?
A. lon fle
B. index fle
C. transacton lon fle
D. instance fle
Aoswern C
Question 227
Before movinn an SQL Server 2012 database fle to a new locaton, which of the followinn must frst be accomplished?
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms345483%28v=sql.110%29.aspx
Question 228
Which of the followinn statements will create an index called SalesDate on the DATEOFSALE column on the SALES
table residinn in the WAREHOUSE database?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 138
Aoswern A
References:
htps:::msdn.microsof.com:en-us:library:ms188783%28v=sql.110%29.aspx
Question 229
Which of the followinn SQL Server 2012 database is NOT created by default in a new installaton?
A. model
B. msdb
C. tempdb
D. sql
E. master
Aoswern A
Question 230
If you fnd that session ID 42 is blockinn several other sessions, which of the followinn will kill that session?
A. REMOVE 42;
B. TERMINATE 42;
C. KILL SESSION 42;
D. KILL 42;
Aoswern D
References
htps:::msdn.microsof.com:en-us:library:ms173730%28v=sql.110%29.aspx
Question 231
Which of the followinn is NOT a hardware requirement for SQL Server 2012?
Aoswern D
References:
htps:::msdn.microsof.com:en-us:library:ms143506%28v=sql.110%29.aspx
Question 232
Which of the followinn SQL Server 2012 tools coordinates transactons across SQL Servers in a clustered environment?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 139
Aoswern D
References:
htp:::blons.msdn.com:b:alwaysonpro:archive:2014:01:15:msdtc-recommendatons-on-sql-failover-cluster.aspx
Question 233
Which of the followinn permissions must a user have in order to query all of the built-in Dynamic Mananement views?
A. VIEW ALL
B. SELECT ALL VEWS
C. VIEW SERVER INFO
D. VIEW SERVER STATE
Aoswern D
References:
htps:::msdn.microsof.com:en-us:library:ms188754%28v=sql.110%29.aspx
Question 234
Which of the followinn is NOT a potental Cluster resource when confnurinn clusterinn in SQL Server 2012?
Aoswern D
Question 235
Which of the followinn recovery models must be in use for point-in-tme recovery to be possible for an SQL Server
2012 database?
A. Diferental
B. Full
C. Simple
D. ArchiveLon
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms189275%28v=sql.110%29.aspx
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 140
Question 236
Which of the followinn is the default fle extension for an SQL Server 2012 backup fle?
A. .rman
B. .bac
C. .bak
D. .db
Aoswern C
Question 237
If you are restorinn and recoverinn a database, which of the followinn keywords must you specify if you intend to roll
forward a transacton lon backup afer restorinn a database?
A. NOFINISH
B. NORECOVERY
C. TRANSACTIONLOG RECOVER
D. NEXTLOG
Aoswern B
References:
htps:::msdn.microsof.com:en-us:library:ms186858%28v=sql.110%29.aspx
Question 238
Which of the followinn Microsof SQL Server 2012 components is responsible for executnn scheduled administratve
tasks?
Aoswern C
References:
htps:::msdn.microsof.com:en-us:library:ms189237%28v=sql.110%29.aspx
Question 239
Which of the followinn DBCC commands shows optmizer statstcs for objects such as tables?
A. STATS
B. SHOW_STATISTICS
C. OBJECT_STATS
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 141
D. OPTIMIZER
Aoswern B
References:
htps:::technet.microsof.com:en-us:library:ms174384%28v=sql.110%29.aspx
Question 240
You administer a Microsof SQL Server 2012 server. One of the databases on the server supports a hinhly actve OLTP
applicaton.
Users report abnormally lonn wait tmes when they submit data into the applicaton.
You need to nather blockinn data over an extended period of tme. You also need to ensure minimum impact to server
performance.
What should you do?
A. use SQL Profler to trace all queries that are processinn on the server. Filter queries that have a Duraton value of
more than 1,000.
B. Use sp_confnure to set a value for blocked process threshold. Create an extended event session.
C. Use the Job Actvity monitor to review all processes that are actvely runninn. Review the Job History to fnd out the
duraton of each step.
D. Run the sp_who command from a query window and examine the BlkBy column.
E. Run the DBCC TRACEON 1222 command from a query window and review the SQL Server event lon.
Aoswern C
Question 241
DRAG DROP
You administer a database named SalesDb that has users named UserA, UserB, and UserC.
You need to ensure that the followinn requirements are met:
* UserA must be able to provide Windows lonin access to the database.
* UserB must be able to select, update, delete and insert data to the database tables.
* UserC must be able to create new tables and stores procedures
You need to achieve this noal by nrantnn only the minimum permissions required.
To which fxed database role or roles should you add the users?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 142
Aoswern
Question 242
DRAG DROP
You administer a Microsof SQL Server database instance that uses transparent database encrypton.
You plan to move the database from the current server to a new server by usinn Backup and Restore.
You need to ensure that the database can be restored to the new server. You also need to ensure that the database
remains encrypted at all tmes.
Which four actons should you perform in sequence? To answer, move the appropriate actons from the list of actons
to the answer area and arranne them in the correct order.
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 143
Aoswern
Question 243
You administer a Microsof SQL Server 2012 database.
Users report that an applicaton that accesses the database displays an error, but the error does not provide
meaninnful informaton. No entries are found in the SQL Server lon or Windows event lons related to the error.
You need to identfy the root cause of the issue by retrievinn the error messane.
What should you do?
Aoswern A
Question 244
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 144
Aoswern D
Question 245
DRAG DROP
Every Sunday afernoon, a process inserts a larne volume of data. Users nenerate reports and modify additonal data
throunhout the week.
You need to create a backup strateny that:
* minimizes the size of the transacton lon.
* minimizes the size of the backups, and
* ensures a 24-hour recovery point objectve (RPO)
Which Strateny or stratenies should you use?
Aoswern
Question 246
You have a larne parttoned fact table in a data warehouse. The table is stored as a clustered index.
You need to modify the indexinn soluton to minimize the amount of disk space required to store the table.
What should you do?
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 145
Aoswern D
Question 247
Aoswern A
Question 248
DRAG DROP
You have a SQL server database server that contains a database named CustomerDB. CustomerDB is protected by
usinn transparent data encrypton (TDE) and a certfcate named TDE_cert.
The Server fails.
You deploy a new server and restore all of the backups to a folder named C:\backups.
You need to restre the database to the new server.
Which Statements should you execure in sequence?
Aoswern
________________________________________________________________________________________________
https://www. pass4sures.com/
Page No | 146
________________________________________________________________________________________________
https://www. pass4sures.com/