PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #66
A third-party application needs to have a service account key to work properly. When you try to export the key from your cloud project, you receive an error: "The organization policy constraint…
The correct answer is D. Add a rule to set the iam.disableServiceAccountKeyCreation policy to off in your project, and. To allow service account key creation for a specific third-party application while adhering to security best practices, override the iam.disableServiceAccountKeyCreation policy at the project level.
Question
Options
- AEnable the default service account key, and download the key.
- BRemove the iam.disableServiceAccountKeyCreation policy at the organization level, and create a
- CDisable the service account key creation policy at the project's folder, and download the default
- DAdd a rule to set the iam.disableServiceAccountKeyCreation policy to off in your project, and
How the community answered
(56 responses)- A4% (2)
- B9% (5)
- C13% (7)
- D75% (42)
Why each option
To allow service account key creation for a specific third-party application while adhering to security best practices, override the `iam.disableServiceAccountKeyCreation` policy at the project level.
Enabling the default service account key is generally not a recommended security practice as default service accounts often have overly broad permissions, and the issue is specifically about *creating* a key.
Removing the policy at the organization level would significantly weaken security across the entire Google Cloud organization, which contradicts Google-recommended security practices.
Disabling the policy at the project's folder level is too broad if only one project requires key creation, potentially compromising security for other projects within that folder.
Google-recommended security practices involve applying policies at the most granular level possible. By adding a rule to override the `iam.disableServiceAccountKeyCreation` policy to 'off' specifically at the project level, you enable key creation only where necessary for the third-party application, while maintaining the restrictive policy for the rest of the organization or folder.
Concept tested: IAM organization policies and overrides
Source: https://cloud.google.com/resource-manager/docs/organization-policy/overview
Topics
Community Discussion
No community discussion yet for this question.