PrepAway - Latest Free Exam Questions & Answers

Category: 70-765 (v.1)

Exam 70-765: Provisioning SQL Databases (update July 12th, 2017)

Which Transact-SQL command should you use?

You administer a Windows 2008 server hosting an instance of Microsoft SQL Server 2012 Standard Edition.
The server hosts a database named Orders.
Users report that a query that filters on OrderDate is taking an exceptionally long time. You discover that an
index named IX_OrderDate on the CustomerOrder table is heavily fragmenteD.
You need to improve the performance of the IX_OrderDate index. The index should remain online during the
operation.
Which Transact-SQL command should you use?

Which Transact-SQL batch should you use?

You administer a Microsoft SQL Server 2012 database that contains a table named AccountTransaction.
You discover that query performance on the table is poor due to fragmentation on the
IDX_AccountTransaction_AccountCode non-clustered index. You need to defragment the index. You also need
to ensure that user queries are able to use the index during the defragmenting process.
Which Transact-SQL batch should you use?

Which Transact-SQL statement should you use?

You administer a SQL 2012 server that contains a database named SalesDB. SalesDb contains a schema
named Customers that has a table named Regions. A user named UserA is a member of a role named Sales.
UserA is granted the Select permission on the Regions table. The Sales role is granted the Select permission
on the Customers schema.
You need to remove the Select permission for UserA on the Regions table. You also need to ensure that UserA
can still access all the tables in the Customers schema, including the Regions table, through the Sales rolepermissions.
Which Transact-SQL statement should you use?

Which Transact-SQL statement should you use?

You administer a SQL Server 2012 server that contains a database named SalesDB. SalesDb contains a
schema named Customers that has a table named Regions. A user named UserA is a member of a role named
Sales.
UserA is granted the Select permission on the Regions table. The Sales role is granted 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?

Which Transact-SQL statement should you use?

You administer a SQL Server 2012 server that contains a database named SalesDB. SalesDb contains a
schema named Customers that has a table named Regions. A user named UserA is a member of a role named
Sales.
UserA is granted the Select permission on the Regions table. The Sales role is granted the Select permission
on the Customers schema.
You need to ensure that the Sales role, including UserA, is disallowed to select from any of the tables in the
Customers schema.
Which Transact-SQL statement should you use?

Which Transact-SQL statement should you use before atte…

You administer a Microsoft SQL Server 2012 database.
You configure Transparent Data Encryption (TDE) on the Orders database by using the following statements:
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘MyPassword1!’
CREATE CERTIFICATE TDE_Certificate WITH SUBJECT = ‘TDE Certificate’;
BACKUP CERTIFICATE TDE_Certificate TO FILE = ”d:\\TDE_Certificate.cer’
WITH PRIVATE KEY (FILE = ‘D:\\TDE_Certificate.key’,
ENCRYPTION BY PASSWORD = ‘MyPassword1!’);
CREATE DATABASE ENCRYPTION KEY
WITH ALGORITHM = AES_256
ENCRYPTION BY SERVER CERTIFICATE TDE_Certificate;
ALTER DATABASE Orders SET ENCRYPTION ON;
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?A. ALTER DATABASE Master SET ENCRYPTION OFF;


Page 4 of 11« First...23456...10...Last »