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.
An installation access token generated from a GitHub App is short-lived (one hour by default), can be scoped to specific repositories, and its permissions (for example, contents:read and packages:read) are defined centrally in the App configuration. The token is generated programmatically when the build begins, so no long-lived secrets are stored on the server.
The default GITHUB_TOKEN only exists inside GitHub Actions runners and therefore cannot be used by an external build server. A fine-grained personal access token is long-lived and must be rotated manually, violating policy. A deploy key provides read-only Git access but cannot authenticate to GHCR and is also an SSH key that does not rotate automatically.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a GitHub App and how is it used in authentication?
Open an interactive chat with Bash
Why can't the default GITHUB_TOKEN be used for external build servers?
Open an interactive chat with Bash
What is the difference between a deploy key and a GitHub App in terms of authentication?
Open an interactive chat with Bash
What is a GitHub App, and how does it help in securing access to repositories and packages?
Open an interactive chat with Bash
How does an installation access token work within a GitHub App?
Open an interactive chat with Bash
Why are other authentication methods, like personal access tokens or deploy keys, less secure in this scenario?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Develop a security and compliance plan
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .