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…
Question
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)- A4% (1)
- B8% (2)
- C81% (21)
- D8% (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
Community Discussion
No community discussion yet for this question.