Courseiva

DP-300 Configure and manage automation of tasks Practice Question

Exhibit

Invoke-AzSqlDatabaseTransparentDataEncryptionProtector -ServerName "myserver" -ResourceGroupName "myrg" -ProtectorType "AzureKeyVault" -KeyVaultKeyId "https://myvault.vault.azure.net/keys/mykey/abc123"

Refer to the exhibit. You run the above PowerShell command to set the Transparent Data Encryption (TDE) protector for an Azure SQL Database server. What is the result?

⚠ Common exam trap

The trap is confusing server-level and database-level TDE operations — candidates may pick the database-scoped answer because the question mentions a database name, but the cmdlet and the TDE protector are server-scoped objects.

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

✓

The server’s TDE protector is changed to a customer-managed key from Azure Key Vault.

The PowerShell command Set-AzSqlServerTransparentDataEncryptionProtector with -Type AzureKeyVault changes the server-level TDE protector to a customer-managed key stored in Azure Key Vault. This is the documented cmdlet for configuring Bring Your Own Key (BYOK) TDE at the Azure SQL logical server level, and the result is that the server's TDE protector is now the specified Key Vault key.

Answer analysis

Option-by-option breakdown

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

  • ✗

    The command fails because the service principal does not have permissions to the key vault.

    Why it's wrong here

    The service principal is granted key vault access via the access policy or RBAC role before this cmdlet runs, so permission failure is not the outcome. It is tempting because wrapping a key with a key vault does require authorisation, but the exhibit shows the principal already holds the necessary wrap and unwrap permissions.

  • ✗

    Transparent Data Encryption is disabled.

    Why it's wrong here

    Setting a server TDE protector enables or rotates encryption; it never disables TDE, which requires a separate disable operation. It is tempting because protector changes feel destructive, but the cmdlet's purpose is to assign the asymmetric key that encrypts the database encryption key, leaving encryption active.

  • ✗

    The TDE protector for the database "mydb" is updated.

    Why it's wrong here

    The cmdlet targets the server-level TDE protector, so it rotates the protector for the logical server, affecting all databases on it, rather than updating a single named database. It is tempting because database-scoped TDE cmdlets exist, but this command's parameter set operates at server scope.

  • ✓

    The server’s TDE protector is changed to a customer-managed key from Azure Key Vault.

    Why this is correct

    The cmdlet sets a customer-managed key as the server's TDE protector, satisfying the requirement to move encryption key custody from Microsoft-managed to your own Azure Key Vault. The protector must reside in the same region as the server, and the key's permissions grant the server access for wrap and unwrap operations.

Go deeper

Related to this question

About these practice questions

Courseiva writes every DP-300 question from scratch — 574 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

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.