Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam
Design and implement a versioning strategy for pipeline artifacts
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
Which package manager to choose (Azure Artifacts or GitHub Packages), how feeds, views and upstream sources keep dependencies safe and promotable, and how SemVer, CalVer and build numbers give every package and pipeline artifact a traceable version.
Points to remember
- Azure Artifacts feed = NuGet, npm, Maven, Gradle, Python, Cargo and Universal Packages; 2 GiB free per organization.
- Upstream sources save a copy of each public package into the feed the first time it is requested.
- Views @Local, @Prerelease and @Release represent quality; promotion is one-way and promoted versions escape retention.
- Allow externally-sourced versions is off by default and protects against dependency confusion; Feed Owner only.
- Roles: Reader, Collaborator (saves from upstream), Feed Publisher/Contributor (publish, promote), Owner.
Try a question
A feed has retention policies enabled. The team wants every version that shipped to customers to be exempt from automatic deletion. What should they do?
- AUnlist them on NuGet.org
- BMove them to the Recycle Bin
- CPromote those versions to the @Release view
- DSet Days to keep recently downloaded packages to 3650
Show the answer
C. Retention deletes versions that exceed the configured limits. Promotion to a view is the supported way to retain a version, and promotion cannot be undone.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Packages, feeds and versioning teaches this objective (about 45 minutes), and 26 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 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
- Develop pipelines by using YAML