Q40 Container Registry Domain 1 · 20–25% of exam Priority · Real Exam

Which authentication method should a GitHub Actions workflow use to push to ACR without storing long-lived secrets?

  1. A ACR admin username and password
  2. B Workload identity federation with an Azure AD app registration (correct answer)
  3. C A repository-scoped token committed as a secret
  4. D The kubelet managed identity

Shortcut: OIDC workload identity federation lets GitHub Actions exchange its short-lived OIDC token for an Azure AD access token. No client secret or admin credential is stored in the repository.