PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to achieve this goal by using the minimum amount of administrative effort

You administer a Microsoft SQL Server 2012 database that has multiple tables in the Sales schema.
Some users must be prevented from deleting records in any of the tables in the Sales schema.
You need to manage users who are prevented from deleting records in the Sales schema. You need
to achieve this goal by using the minimum amount of administrative effort.
What should you do?

Which SQL statement or statements should you use?

You are the lead database administrator (DBA) of a Microsoft SQL Server 2012 environment.
All DBAs are members of the DOMAIN\JrDBAs Active Directory group. You grant DOMAIN\JrDBAs
access to the SQL Server.
You need to create a server role named SpecialDBARole that can perform the following functions:
View all databases.
View the server state.
Assign GRANT, DENY, and REVOKE permissions on logins.
You need to add DOMAIN\JrDBAs to the server role. You also need to provide the least level of
privileges necessary.
Which SQL statement or statements should you use? Choose all that apply.

You need to achieve this goal by granting the minimum permissions required

You administer a Microsoft SQL Server 2012 database that has Trustworthy set to On. You create a
stored procedure that returns database-level information from Dynamic Management Views.
You grant User1 access to execute the stored procedure.
You need to ensure that the stored procedure returns the required information when User1
executes the stored procedure. You need to achieve this goal by granting the minimum permissions
required.
What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

Which three actions should you perform in sequence?

DRAG DROP
You administer a Microsoft SQL Server 2012 database.
All database traffic to the SQL Server must be encrypted by using secure socket layer (SSL)
certificates or the connection must be refused.
Network administrators have deployed server certificates to the Windows store of all Windows
servers on the network from a trusted Certificate Authority. This is the only Certificate Authority
allowed to distribute certificates on the network.
You enable the Force Encryption flag for the MSSQLServer protocols, but client computers are
unable to connect. They receive the following error message:
“A connection was successfully established with the server, but then an error occurred during the
pre-login handshake, (provider: SSL Provider, error: 0 – The certificate chain was issued by an
authority that is not trusted.) (Microsoft SQL Server)”
You notice the following entry in the SQL Server log:
“A self-generated certificate was successfully loaded for encryption.”
You need to configure SQL Server to encrypt all client traffic across the network.
You also need to ensure that client computers are able to connect to the server by using a trusted
certificate.
Which three actions should you perform in sequence? (To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.)

Which Transact-SQL statement should you use?

You are migrating a database named Orders to a new server that runs Microsoft SQL Server 2012.
You attempt to add the [Corpnet\User1] login to the database. However, you receive the following
error message:
“User already exists in current database.”

You need to configure the [Corpnet\User1] login to be able to access the Orders database and retain
the original permissions. You need to achieve this goal by using the minimum required permissions.
Which Transact-SQL statement should you use?

Which Transact-SQL statement should you use before attempting the restore?

You administer a Microsoft SQL Server 2012 database.
You configure Transparent Data Encryption (TDE) on the Orders database by using the following
statements:

You attempt to restore the Orders database and the restore fails. You copy the encryption file to the
original location.
A hardware failure occurs and so a new server must be installed and configured.
After installing SQL Server to the new server, you restore the Orders database and copy the
encryption files to their original location. 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 attempting the restore?

Which three actions should you perform in sequence?

DRAG DROP
You administer a Microsoft SQL Server 2012 server that has multiple databases.
You need to ensure that users are unable to create stored procedures that begin with sp_.
Which three actions should you perform in sequence? (To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.)