Designing and Implementing Microsoft DevOps Solutions — Question 38
You have an Azure DevOps project that produces Node Package Manager (npm) packages. Multiple projects consume the packages.
You need to configure Azure Artifacts to ensure that both the latest and pre-release versions of the packages are available for consumption.
What should you do?
Answer options
- A. Create two feed views named @prerelease and @release, Set @release as the default view. Configure a release pipeline that tags the packages as release after successful testing.
- B. Create a feed view named @prerelease. Configure a release pipeline that tags the packages as release after successful testing.
- C. Create two feed views named @prerelease and @default. Configure a release pipeline that promotes a package to the @default view after successful testing.
- D. Create two feed views named @prerelease and @release. Set @release as the default view. Configure a release pipeline that promotes a package to the @release view after successful testing.
Correct answer: D
Explanation
Answer D is correct because it ensures both pre-release and release versions are available by creating distinct views and promoting packages accordingly. Option A incorrectly promotes packages to the @release view after testing but does not clarify the handling of pre-releases. Option B only addresses the @prerelease view without handling the release versions. Option C mentions a default view but does not correctly promote to the @release view, which is necessary for this scenario.