Courseiva
Design and implement build and release pipelineshardMultiple ChoiceObjective-mapped

AZ-400 Practice Question: Design and implement build and release pipelines

Your Azure DevOps pipeline deploys a microservice to a Kubernetes cluster using Helm. The Helm chart requires a values file that contains environment-specific configurations. You want to store the values file securely and use it during deployment. What is the recommended approach?

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

Store the values file as a secure file in Azure Pipelines library.

Azure Pipelines Library's Secure Files feature allows storing files like Helm values securely and referencing them in pipeline tasks (e.g., HelmDeploy with the 'filePath' parameter). Option A is incorrect because variable groups store key-value pairs, not entire files. Option B is incorrect because the HelmDeploy task's 'overrideValues' parameter expects individual key-value overrides, not a file; Azure Key Vault is for secrets, but using it for a whole values file is not straightforward. Option D is incorrect because storing the values file in a separate Git repository still exposes it to source control, reducing security compared to Secure Files.

Answer analysis

Option-by-option breakdown

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

  • Store the values in a variable group and map them to Helm values.

    Why it's wrong here

    Variable groups store individual key-value pairs, not the content of an entire Helm values file. Mapping every value to Helm's overrideValues parameter is brittle, loses YAML structure, and the values remain visible as plaintext unless explicitly marked as secret, so this does not protect the file as a unit.

  • Store the values file in Azure Key Vault and use the HelmDeploy task's 'overrideValues' parameter to set values.

    Why it's wrong here

    Azure Key Vault is designed for storing individual secrets (e.g., connection strings, passwords) as string values, not for storing complete YAML files. To apply a Helm values file from Key Vault, you would need to retrieve each secret separately, flatten the YAML structure into a comma-separated list of key=value pairs, and pass that to the HelmDeploy task's overrideValues parameter — which breaks nested Helm values and is unmaintainable for a multi-configuration microservice. This approach also exposes the mapping logic in the pipeline and provides no way to preserve comments or file-level structure, so it does not meet the requirement of securely storing the values file as a unit.

  • Store the values file as a secure file in Azure Pipelines library.

    Why this is correct

    Secure files in the Azure Pipelines Library are encrypted at rest and can be downloaded during a pipeline run using the DownloadSecureFile task, which yields a temporary file path. This makes it the correct choice for storing a sensitive Helm values file because the original file never resides in source control and is exposed only as an encrypted library artifact.

  • Store the values file in a separate Git repository and clone it during the pipeline.

    Why it's wrong here

    Storing the values file in a separate Git repository and cloning it during the pipeline provides no encryption; the file is plaintext in the repository and visible to anyone with read access to that repo. Even with strict permissions, blobs of sensitive data in Git history remain exposed, so this lacks the security guarantees of Azure Pipelines secure files.

About these practice questions

One of 823 original AZ-400 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-400 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-400 exam.