AZ-400 exam dumps

AZ-400 practice question 97 of 306

Designing and Implementing Microsoft DevOps Solutions. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AZ-400 Question 97

Single answer

Your organization manages multiple microservices using both .NET and Node.js. The source code for these services is stored in GitHub, and the CI/CD pipelines run in Azure DevOps. You want to set up private feeds for internal .NET libraries and npm packages, as well as a registry for container images used across microservices. The solution must leverage both GitHub and Azure DevOps in a straightforward manner. Which option should you recommend?

  1. A

    Use only Azure Artifacts to host NuGet, npm, and Docker images.

  2. B

    Use only GitHub Packages registry for all package types including Docker images.

  3. C

    Use Azure Artifacts for NuGet and npm feeds, and GitHub Packages registry for Docker images.

  4. D

    Use GitHub Packages registry for .NET feeds and Azure Container Registry for Docker images, and leave npm packages unmanaged.

Show answer and explanation

Correct answer: C

Explanation

For organizations that use both GitHub and Azure DevOps, it's common to use Azure Artifacts for robust feed management of NuGet and npm packages while storing Docker images in GitHub Packages registry if they need to link images closely with GitHub-based repositories. Azure Artifacts offers advanced controls for developers working with pipelines in Azure DevOps, and GitHub Packages registry integrates naturally with repositories in GitHub. Refer to Microsoft� official documentation for more details on how to configure Azure Artifacts (https://docs.microsoft.com/azure/devops/artifacts/) and GitHub Packages (https://docs.github.com/packages/).

  • A. Incorrect.

    Option 1: While Azure Artifacts can host all these package types (NuGet, npm, Docker), it does not take advantage of GitHub Packages for container images. This may be simpler for some scenarios, but it does not fulfill the requirement of leveraging GitHub� registry capabilities for Docker images.

  • B. Incorrect.

    Option 2: GitHub Packages registry can indeed store NuGet, npm, and Docker images. However, relying solely on GitHub Packages might not offer as seamless an integration with Azure DevOps pipelines for .NET and npm as Azure Artifacts does, particularly if you need features like deeper feed management and granular access control inside Azure DevOps.

  • C. Correct.

    Option 3: This is the best choice for balancing both services. Azure Artifacts integrates natively with Azure DevOps pipelines for strong versioning, feed management, and permissions on .NET and npm packages. Meanwhile, GitHub Packages registry can be a convenient choice for hosting Docker images alongside the GitHub repositories. It meets the requirement of leveraging both tools effectively.

  • D. Incorrect.

    Option 4: This approach leaves npm packages without a dedicated private feed and splits container hosting to a different service (Azure Container Registry) rather than GitHub Packages registry. It does not fulfill the requirement of integrating GitHub Packages for Docker images and does not provide a private feed for npm.

Timed practice exam

Take a AZ-400 practice test under exam conditions

70 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam