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?
⚠ Common exam trap
AZ-400 often tests the distinction between variable groups (key-value), Key Vault (secrets/certs), and Secure files (arbitrary files), so candidates who default to 'Key Vault for everything secure' pick the wrong answer for file-based configuration.
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 provides a 'Secure files' library feature specifically designed to store files (like Helm values files, certificates, or keystores) that need to be downloaded securely during a pipeline run. The DownloadSecureFile task retrieves the file at runtime, and it can then be passed to the HelmDeploy task, keeping environment-specific configuration out of source control.
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.
Go deeper
Related to this question
Learn chapter
Managing Infrastructure as Code Using Azure
Key term
Task
A Task in Azure DevOps is a predefined, reusable step that performs a specific action during a build or release pipeline, like compiling code or running tests.
Key term
Library
In Azure DevOps, a Library is a central repository for managing reusable content like variable groups and secure files that can be shared across multiple pipelines.
About these practice questions
One of 696 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 →
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 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.