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

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.