Microsoft Certified: DevOps Engineer ExpertDesign and implement source controlMedium

A company is implementing a new package management strategy using Azure Artifacts. They have internal NuGet packages published to a private feed, and they also consume several public NuGet packages from nuget.org. Developers currently configure multiple package sources in their local NuGet.config files. The company wants to simplify this configuration and ensure that developers can resolve both internal and public packages from a single, unified feed without manually configuring each source. Which Azure Artifacts feature should they use?

  1. ARetention Policies
  2. BViews
  3. CUpstream Sources
  4. DRecycle Bin
Show answer & explanation

Correct answer: C. Upstream Sources

Upstream sources in Azure Artifacts allow you to consolidate multiple package feeds (both private and public) into a single feed. When a request comes for a package, the feed first checks its own packages, then queries its upstream sources in a defined order. This simplifies client configuration as developers only need to configure one feed.

Why the other options are wrong

  • A. Retention policies are for managing the lifecycle of packages within a feed, not for consolidating sources.
  • B. Views are for controlling which versions of packages are visible to consumers within a single feed, not for combining multiple feeds.
  • D. Recycle Bin is for recovering deleted packages, not for managing package sources.

Azure Artifacts Upstream Sources

A feature in Azure Artifacts that allows a feed to act as a proxy for other package feeds, enabling consumption of packages from multiple sources (private and public) through a single endpoint.

  • Simplifies client configuration by reducing the number of package sources.
  • Can include other Azure Artifacts feeds, nuget.org, npmjs.com, etc.
  • Packages from upstream sources are cached in the feed for faster access.
  • Resolves packages in a defined order: feed's own packages, then upstream sources.

Memory trick: Upstream sources bring all packages down to one river.

More Design and implement source control questions