Courseiva
Implement Azure securityeasyMultiple ChoiceObjective-mapped

AZ-204 Implement Azure security Practice Question

Network Topology
az keyvault secret setvault-name MyVaultname MySecretvalue "P@ssw0rd!"Refer to the exhibit.

Refer to the exhibit. You run the Azure CLI command shown. What is the result?

⚠ Common exam trap

Candidates often confuse the verbs for different Key Vault operations (e.g., 'secret set' vs. 'key create' or 'certificate create'), leading them to misinterpret the command's purpose.

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

Stores a secret named MySecret with the value in the vault

The Azure CLI command `az keyvault secret set --vault-name MyVault --name MySecret --value 'MySecretValue'` is used to create or update a secret in an Azure Key Vault. The `--name` parameter specifies the secret's name, and `--value` provides the secret's value. Since the secret does not exist, it creates a new secret named MySecret with the specified value, making option C correct.

Answer analysis

Option-by-option breakdown

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

  • Creates a key named MySecret in the vault

    Why it's wrong here

    The command is 'secret set', not 'key set'.

  • Deletes the secret named MySecret from the vault

    Why it's wrong here

    The command is 'set', not 'delete'.

  • Stores a secret named MySecret with the value in the vault

    Why this is correct

    The command sets a secret with the specified name and value.

  • Creates a certificate named MySecret in the vault

    Why it's wrong here

    The command is for secrets, not certificates.

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 AZ-204 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 AZ-204 exam.