Microsoft DevOps Engineer Expert AZ-400 Practice Question

Your organization runs an on-premises build system that must periodically clone a set of private GitHub repositories and pull container images from your private GitHub Container Registry (GHCR). Security policy requires the following:

  • Credentials must rotate automatically with a maximum lifetime of 60 minutes.
  • Access must be restricted to read-only operations on the specified repositories and packages.
  • No long-lived personal credentials may be stored on the build server.

Which authentication method best meets these requirements?

  • Add an SSH deploy key to each repository and use it for both Git operations and GHCR pulls.

  • Use the repository's default GITHUB_TOKEN secret inside the build process.

  • Generate a fine-grained personal access token with repo and packages read scopes and store it as an environment variable on the server.

  • Create a GitHub App with read-only contents and packages permissions, and have the build server request an installation access token at job start.

Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot