You are investigating why a service account cannot read secrets from Secret Manager. The service account has roles/secretmanager.secretAccessor assigned at the project level. Which of the following should you check FIRST?
- A. Whether the Secret Manager API is enabled in the project
- B. Whether resource-level IAM bindings on the secret itself are restricting access✓ Correct
- C. Whether the service account is running on a GCE instance with sufficient disk space
- D. Whether the service account's key material is stored securely
Explanation
The correct answer is to check resource-level IAM bindings on the secret. Secret Manager supports resource-level access control in addition to project-level bindings. Even if a service account has the secretAccessor role at the project level, explicit allow policies on individual secrets can further restrict access. If the secret denies the service account, the role grant at the project level won't override it. If the API were disabled, the error would indicate API_NOT_ENABLED. Key storage and disk space are unrelated to Secret Manager access permissions.