Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam
Design and implement a retention strategy for pipeline artifacts and dependencies
One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Design and implement build and release pipelines”. Here is what it covers, the points to remember and a question to try.
What it covers
How to choose and apply configuration management, define an IaC strategy with Bicep and deployment stacks, keep desired state with Azure Machine Configuration, plan for the retirement of State Configuration and Deployment Environments, then monitor, optimise, retain and migrate pipelines.
Points to remember
- Config management layers: provisioning (Bicep, Terraform), machine configuration (Ansible, DSC, Machine Configuration), app configuration (App Configuration, Key Vault).
- Ansible is agentless push; Chef and Puppet are agent-based pull; Azure Machine Configuration is policy-based and replaces Azure Automation State Configuration (retires 30 September 2027).
- IaC strategy = Git + PR review + automated validate, what-if and scans + same pipeline for every environment + drift detection.
- ARM/Bicep default to Incremental mode; Complete deletes unlisted resources; deployment stacks manage and protect a set of resources.
- Terraform state belongs in remote storage with locking, never in Git.
Try a question
Where should the Terraform state for a team deployment pipeline be stored?
- AIn a pipeline variable
- BOn each developer's laptop in a local file
- CCommitted to the Git repository next to the code
- DIn an Azure Storage blob backend with locking
Show the answer
D. Use remote state with locking, secured access and versioning, and never commit it. Authenticate the pipeline with workload identity federation.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Configuration management, infrastructure as code and pipeline operations teaches this objective (about 60 minutes), and 30 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Recommend package management tools including GitHub Packages and Azure Artifacts
- Design and implement package feeds and views for local and upstream packages
- Design and implement a dependency versioning strategy for code assets and packages, including semantic versioning (SemVer) and date-based (CalVer)
- Design and implement a versioning strategy for pipeline artifacts
- Design and implement quality and release gates, including security and governance
- Design a comprehensive testing strategy, including local tests, unit tests, integration tests, and load tests
- Implement tests in a pipeline, including configuring test tasks, configuring test agents, and integration of test results
- Implement code coverage analysis
- Select a deployment automation solution, including GitHub Actions and Azure Pipelines
- Design and implement a GitHub runner or Azure DevOps agent infrastructure, including cost, tool selection, licenses, connectivity, and maintainability
- Design and implement integration between GitHub repositories and Azure Pipelines
- Develop and implement pipeline trigger rules