Question 620
In an approved change request: A GitHub workflow deploys containers using a manually shared publish profile with long-lived permissions. Which action most directly addresses the problem?
Explanation
Correct Answer
Use supported workload identity federation with least-privilege deployment authorization. The scenario specifically states: A GitHub workflow deploys containers using a manually shared publish profile with long-lived permissions. Federated deployment identities can grant short-lived scoped access instead of exposing reusable publishing secrets. This change targets the named service and constraints rather than a different workflow. Validate the result by checking Approved workflow deploys and an untrusted branch cannot acquire equivalent credentials. The important remaining qualification is: Federated authentication does not substitute for reviewing build artifacts.
Incorrect Answers
A supported App Service managed identity needs registry pull authorization and configured identity-based image retrieval. In the present case the governing issue is Federated deployment identities can grant short-lived scoped access instead, which this does not resolve.
App Service can resolve Key Vault references when its configured identity can retrieve the secret. That observation may hold without resolving the relevant issue: Use supported workload identity federation with least-privilege deployment authorization.
ACR tags can be reassigned but an image digest identifies specific content. It does not verify the requested outcome; here the decisive check concerns Use supported workload identity federation with least-privilege deployment authorization.