exam questions

Exam 70-765 All Questions

View all questions & answers for the 70-765 exam

Exam 70-765 topic 3 question 115 discussion

Actual exam question from Microsoft's 70-765
Question #: 115
Topic #: 3
[All 70-765 Questions]

DRAG DROP -

Background -
You manage the Microsoft SQL Server environment for a company that manufactures and sells automobile parts.
The environment includes the following servers: SRV1 and SRV2. SRV1 has 16 logical cores and hosts a SQL Server instance that supports a mission-critical application. The application has approximately 30,000 concurrent users and relies heavily on the use of temporary tables.
The environment also includes the following databases: DB1, DB2, and Reporting. The Reporting database is protected with Transparent Data Encryption (TDE).
You plan to migrate this database to a new server. You detach the database and copy it to the new server.
You are performing tuning on a SQL Server database instance. The application which uses the database was written using an object relationship mapping (ORM) tool which maps tables as objects within the application code. There are 30 stored procedures that are regularly used by the application.
After reviewing the plan cache you have identified that a large number of simple queries are using parallelism, and that execution plans are not being kept in the plan cache for very long.
You review the properties of the instance (Click the Exhibit button).
Exhibit:

You need to restore the Reporting database to SRV2. What should you do? To answer, drag the appropriate options to the correct locations. Each option may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 2: Create: server certificate
Recreate the server certificate by using the original server certificate backup file.
Note: The password must be the same as the password that was used when the backup was created.
Step 3: Restore: Reporting database .mdf file.
-- Attach the database that is being moved.
-- The path of the database files must be the location where you have stored the database files.
Example:
CREATE DATABASE [CustRecords] ON
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\CustRecords.mdf' ),
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\CustRecords_log.LDF' )
FOR ATTACH ;

GO -
From scenario: The Reporting database is protected with Transparent Data Encryption (TDE). You plan to migrate this database to a new server. You detach the database and copy it to the new server.
References: https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DudeHere
Highly Voted 5 years, 2 months ago
I think the drag and drop is missing something. 1. Copy the backup file and the private key file to the server where you are going to restore the Transparent data encryption (TDE) enabled database backup. 2, Check if you have a master key on the master database already, create one if you do not have it. 3. Once the master key is created, restore the certificate using backup file and the private key. 4. Restore the database. https://www.sqlshack.com/restoring-transparent-data-encryption-tde-enabled-databases-on-a-different-server/
upvoted 7 times
KC
4 years, 12 months ago
Earlier on in the question, it states you've already copied the backup. I think the drag and drop is just skipping the initial steps, since the question mentions the process has already started.
upvoted 3 times
...
...
Slava_bcd81
Most Recent 4 years, 9 months ago
2 create SMK from backup (TDE use SMK - https://docs.microsoft.com/ru-ru/sql/relational-databases/security/encryption/transparent-data-encryption?view=sql-server-ver15) 3 restore the database
upvoted 1 times
Cococo
4 years, 7 months ago
2 - SMK 3 - Server Certificate 4 - Atttach DB Give this page a read: https://docs.microsoft.com/en-us/sql/relational-databases/security/encryption/move-a-tde-protected-database-to-another-sql-server?view=sql-server-ver15 .... Create a database master key on the destination instance of SQL Server. Recreate the server certificate by using the original server certificate backup file. In Object Explorer in SQL Server Management Studio, right-click the Databases folder and select Attach....
upvoted 3 times
Cococo
4 years, 7 months ago
oops, sorry guys, should be like this: 2 - master DB key 3 - Certificate SMK is being created automatically when the instance started the first time (more global thing)
upvoted 3 times
munro1900
4 years, 5 months ago
I agree with you here. 1. copy certificate and private key 2. create DMK (database master key) 3. restore certificate (aka create certificate from file) 4. attach database (it was specified in the text that "You plan to migrate this database to a new server. You detach the database and copy it to the new server.")
upvoted 1 times
...
...
...
munro1900
4 years, 5 months ago
so, according to the questions and your answers, it should be: 1. copy the certificate [...] 2. create SMK from backup (TDE uses DEK, not SMK ;) ) 3. restore the database 4. attach the Reporting database
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...