Courseiva
Configure and manage automation of taskseasyMultiple ChoiceObjective-mapped

DP-300 Configure and manage automation of tasks Practice Question

You need to automate the deployment of Azure SQL Database logical servers and databases using Bicep. What is the best practice for storing the administrative password securely?

⚠ Common exam trap

Watch out — candidates often think environment variables or generated passwords are acceptable for automation, but the DP-300 exam specifically tests the secure secret management pattern using Azure Key Vault with Bicep's `getSecret` function, not just any method of hiding the password.

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

Reference the password from Azure Key Vault using the getSecret function

Azure Key Vault is the recommended secure storage for secrets like administrative passwords in Azure deployments. Using the `getSecret` function in Bicep allows you to reference a secret from Key Vault at deployment time without exposing the password in the Bicep file or deployment logs, aligning with Azure security best practices and the principle of least privilege.

Answer analysis

Option-by-option breakdown

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

  • Reference the password from Azure Key Vault using the getSecret function

    Why this is correct

    Key Vault integration securely retrieves secrets during deployment.

  • Use the adminPassword property with a generated password

    Why it's wrong here

    This does not securely store the password for future use.

  • Use an environment variable in the deployment script

    Why it's wrong here

    Environment variables can be exposed and are not secure.

  • Store the password as a plain text parameter in the Bicep file

    Why it's wrong here

    Plain text is insecure and not recommended.

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.