Courseiva
Plan and implement data platform resourcesmediumMultiple ChoiceObjective-mapped

DP-300 Plan and implement data platform resources Practice Question

You are migrating an on-premises SQL Server 2012 database to Azure SQL Managed Instance. The database is 5 TB and uses Transparent Data Encryption (TDE) with a certificate stored in the local machine store. What is the best approach to migrate while preserving TDE?

⚠ Common exam trap

It's easy for candidates to assume TDE certificates are automatically transferred or that disabling TDE is a safe shortcut, but in reality, the certificate must be explicitly backed up and restored to the target before the database restore can succeed.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Back up the certificate and private key to a .pfx file, restore the .pfx to the target managed instance, then restore the database backup.

TDE in SQL Server relies on a certificate (or asymmetric key) that must be present in the target instance to decrypt the database backup. By backing up the certificate and private key to a .pfx file and restoring it to Azure SQL Managed Instance, you ensure the target has the necessary encryption keys to read the backup. Azure SQL Managed Instance supports restoring TDE-protected backups only if the corresponding certificate is first restored into the master database.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Azure Data Studio to import the certificate directly from the local machine store during migration.

    Why it's wrong here

    Azure Data Studio cannot import certificates to SQL Managed Instance.

  • Disable TDE on the source database, migrate the backup, then enable TDE on the target.

    Why it's wrong here

    Disabling TDE exposes data at rest during migration; preserving TDE is more secure.

  • Back up the certificate and private key to a .pfx file, restore the .pfx to the target managed instance, then restore the database backup.

    Why this is correct

    This ensures the TDE keys are available to decrypt the database after restore.

  • Create a master key in the target managed instance and then restore the database; the certificate will be imported automatically.

    Why it's wrong here

    The certificate must be explicitly backed up and restored; automatic import does not occur.

Quick reference

Symmetric Encryption Algorithm Comparison

AlgorithmKey SizeBlock SizeStatusNotes
AES-128128-bit128-bitCurrent standardNIST approved; WPA3, TLS
AES-256256-bit128-bitCurrent standardPreferred for sensitive / govt data
3DES112-bit effective64-bitDeprecated (2023)Replaced by AES
DES56-bit64-bitBrokenCracked in < 24 h; never deploy
ChaCha20256-bitStream cipherCurrentTLS 1.3, WireGuard

Go deeper

Related to this question

About these practice questions

This DP-300 question is part of Courseiva's 906-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.