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?

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?

A.
CREATE ASSEMBLY TDE_Assembly FROM ‘d:\TDE_Certificate.cer’
WITH PERMISSION_SET = SAFE;
GO
CREATE CERTIFICATE TDE_Certificate FROM ASSEMBLY TDE_Assembly;

B.
CREATE CERTIFICATE TDE_Certificate FROM EXECUTABLE FILE = ‘d:\TDE_Certificate.cer’

C.
CREATE CERTIFICATE TDE_Certificate FROM FILE = ‘d:\TDE_Certificate.cer’
WITH PRIVATE KEY (FILE = ‘d:\TDE_Certificate.key’,
DECRYPTION BY PASSWORD ‘MyPassword1!’);

D.
DECLARE @startdate date
SET @startdate = GETDATE()
CREATE CERTIFICATE TDE_Certificate FROM FILE = ‘d:\TDE_Certificate.cer’
WITH START_DATE = @startdate;

Explanation:
According to these references, this answer looks correct.
Reference:
http://msdn.microsoft.com/en-us/library/ff773063.aspx
http://msdn.microsoft.com/en-us/library/bb510663.aspx
http://msdn.microsoft.com/en-us/library/bb934049.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *