A cloud administrator is setting up centralized compliance controls for a data analytics department organized inside a Google Cloud folder named 'Analytics'. The administrator needs to prevent Cloud Storage buckets within any projects under this folder from being publicly accessible, and also ensure that new projects under this folder do not automatically create a default VPC network. Which TWO of the following configurations correctly achieve these objectives using Organization Policies?
- Apply the `constraints/storage.publicAccessPrevention` constraint at the 'Analytics' folder level and configure it to enforce public access prevention for all nested projects.Answer
- Apply the `constraints/compute.skipDefaultVpcCreation` constraint at the 'Analytics' folder level to disable automatic default network creation when new projects are created.Answer
- CGrant the Organization Policy Administrator role (`roles/orgpolicy.policyAdmin`) to the service accounts managing project creation under the 'Analytics' folder to restrict public bucket creation.
- DAttach an IAM Deny policy at the child project level to override and revoke inherited Organization Policy restrictions enforced at the parent folder level.
Answer
The correct configurations are enforcing `constraints/storage.publicAccessPrevention` at the 'Analytics' folder level and enforcing `constraints/compute.skipDefaultVpcCreation` at the same folder level.
To satisfy both requirements, an administrator must enforce specific Organization Policy constraints at the target folder level ('Analytics'). Setting `constraints/storage.publicAccessPrevention` prevents public bucket exposure across all contained projects. Setting `constraints/compute.skipDefaultVpcCreation` ensures that auto-creation of default VPC networks is skipped whenever a new project is created in that folder.
Step-by-Step Solution
Key Concept
Organization Policy constraints enforced at a folder level automatically inherit down the resource hierarchy to all contained projects, allowing centralized enforcement of resource restrictions such as public storage prevention and default network creation suppression.
Estimated Time:1m 30s