Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam
Design and implement package feeds and views for local and upstream packages
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
Build agents restore different dependency versions from day to day because the project uses floating version ranges, causing intermittent failures. What gives reproducible CI restores?
- ACommit the lock file and restore in locked mode
- BUse a larger Microsoft-hosted agent
- CRun npm install with --force on every build
- DDisable the package cache
Show the answer
A. Lock files plus commands that honour them make builds reproducible. Dependabot or Renovate can then propose controlled version updates as pull requests.
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 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
- Develop pipelines by using YAML