Exam-Answer

Home / Microsoft / AZ-400 / Question 61

Prev Question
Next Question

Question 61

You plan to share packages that you wrote, tested, validated, and deployed by using Azure Artifacts.

You need to release multiple builds of each package by using a single feeThe solution must limit the release of packages that are in development.

What should you use?

Answers


Advertisement

Explanation (click to expand)

Upstream sources enable you to manage all of your product's dependencies in a single feeWe recommend publishing all of the packages for a given product to that product's feed, and managing that product's dependencies from remote feeds in the same feed, via upstream sources. This setup has a few benefits:

Simplicity: your NuGet.config, .npmrc, or settings.xml contains exactly one feed (your feed).

Determinism: your feed resolves package requests in order, so rebuilding the same codebase at the same commit or changeset uses the same set of packages

Provenance: your feed knows the provenance of packages it saved via upstream sources, so you can verify that you're using the original package, not a custom or malicious copy published to your feed

Peace of minpackages used via upstream sources are guaranteed to be saved in the feed on first use; if the upstream source is disabled/removed, or the remote feed goes down or deletes a package you depend on, you can continue to develop and build

References (click to expand)

Prev Question
Next Question

Load more