nerdexam
Google

PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #166

Your security team wants to reduce the risk of user-managed keys being mismanaged and compromised. To achieve this, you need to prevent developers from creating user-managed service account keys for…

The correct answer is C. Enable an organization policy to prevent service account keys from being created. https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys "To prevent unnecessary usage of service account keys, use organization policy constraints: At the root of your organization's resource hierarchy, apply the Disable service account key creation…

Submitted by yuriko_h· Apr 18, 2026Configuring access within a cloud solution environment

Question

Your security team wants to reduce the risk of user-managed keys being mismanaged and compromised. To achieve this, you need to prevent developers from creating user-managed service account keys for projects in their organization. How should you enforce this?

Options

  • AConfigure Secret Manager to manage service account keys.
  • BEnable an organization policy to disable service accounts from being created.
  • CEnable an organization policy to prevent service account keys from being created.
  • DRemove the iam.serviceAccounts.getAccessToken permission from users.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    81% (21)
  • D
    8% (2)

Explanation

https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys "To prevent unnecessary usage of service account keys, use organization policy constraints: At the root of your organization's resource hierarchy, apply the Disable service account key creation and Disable service account key upload constraints to establish a default where service account keys are disallowed. When needed, override one of the constraints for selected projects to re-enable service account key creation or upload."

Topics

#Organization Policy#Service Accounts#IAM#Key Management

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-SECURITY-ENGINEER Practice