Question 280
A platform engineer has to let a trusted GitHub Actions workflow obtain access to Google Cloud without exporting long-lived service account keys. Which Google Cloud configuration is the most direct fit?
Explanation
Correct Answer
External workload identity federation pool directly provides the mechanism to let a trusted GitHub Actions workflow obtain access to Google Cloud without exporting long-lived service account keys. Before rollout, the team should configure a workload identity pool provider that trusts the correct external OIDC issuer and claims. Successful behavior means that only eligible workflow subjects exchange a valid token for Google Cloud access.
Incorrect Answers
Workload Identity Federation audience mapping fits a different requirement: to prevent tokens issued for a different relying party from authenticating to an organization's provider. Its direct acceptance evidence is that authorized external tokens pass audience validation while unrelated tokens are rejected; it is not the most specific solution to let a trusted GitHub Actions workflow obtain access to Google Cloud without exporting long-lived service account keys.
GKE Workload Identity Federation fits a different requirement: to allow a Kubernetes Pod to call Google Cloud services under a scoped workload identity instead of a node-wide credential. Its direct acceptance evidence is that the intended Pod can call the authorized API while other Pods lack the delegated permissions; it is not the most specific solution to let a trusted GitHub Actions workflow obtain access to Google Cloud without exporting long-lived service account keys.
Cloud Run workload identity for APIs fits a different requirement: to authenticate Cloud Run service-to-Google-API calls through a managed service identity without baking keys into containers. Its direct acceptance evidence is that Cloud Run requests to the authorized API use its runtime identity automatically; it is not the most specific solution to let a trusted GitHub Actions workflow obtain access to Google Cloud without exporting long-lived service account keys.






Associate Cloud Engineer Practice Tests