You have two Azure virtual machines named SQL1 and SQL2 that run SQL Server 2022. A database named Sales belongs to an Always On availability group. SQL1 hosts the primary replica and SQL2 hosts a secondary replica.
The master database on each server has a database master key. On SQL1, the master database contains a certificate named TDECert that is protected by the database master key. TDE is not enabled on any database.
Requirements:
- Encrypt the Sales database at rest by using TDE protected by TDECert.
- SQL2 must continue to host a copy of Sales after encryption.
- The encryption scan must not run during business hours.
Which three actions should you perform? Each correct answer presents part of the solution.
To encrypt Sales, create a DEK in Sales that is protected by TDECert from master, and then turn encryption on. Because Sales is in an availability group, SQL2 needs the same certificate, so you back it up with its private key on SQL1 and restore it on SQL2. Generating a new certificate with the same subject does not work. On SQL Server 2022, the TDE scan can be suspended during business hours and resumed afterwards. Setting encryption off would request decryption, which cannot start while encryption is still running.
- Protect data in-transit and at rest: Explore Transparent Data EncryptionMicrosoft Learn
- Transparent Data Encryption (TDE) - SQL ServerMicrosoft Learn