Associate Cloud Engineer practice question · Setting up a cloud solution environment
A company wants to make sure that, in every project in its organization, Compute Engine VM instances can only be created…
A company wants to make sure that, in every project in its organization, Compute Engine VM instances can only be created in a set of approved regions. Any attempt to create an instance anywhere else must be blocked. What should the company configure?
- AAn organization policy at the organization node that sets the resource locations constraint to the approved regions
- BAn IAM deny policy at the organization node that denies the compute.instances.create permission to all principals
- CA VPC Service Controls perimeter that includes the Compute Engine API and the approved regions
- DA custom IAM role, granted organization-wide, whose permissions allow instance creation only in the approved regions
Show the answer and explanation
Correct answer: A) An organization policy at the organization node that sets the resource locations constraint to the approved regions
Restricting where resources can be created is the job of the Organization Policy Service's resource locations constraint. Set at the organization node, it is inherited by every project.
Why each option is right or wrong
- A) Correct. The resource locations constraint (gcp.resourceLocations) in the Organization Policy Service defines the allowed locations where supported resources can be created. When set at the organization node, it is inherited by every folder and project, and attempts to create resources elsewhere are blocked.
- B) Incorrect. Deny policies block permissions based on the principal and on tag-based conditions, not on the region being requested. This policy would block instance creation everywhere, including in the approved regions.
- C) Incorrect. VPC Service Controls perimeters protect access to Google-managed service APIs and reduce the risk of data exfiltration. They do not restrict which regions resources can be created in.
- D) Incorrect. IAM permissions such as compute.instances.create cannot be limited to particular regions, so a custom role cannot enforce allowed locations.
- Exam domain
- Setting up a cloud solution environment · ~20% of Associate Cloud Engineer
- Question type
- Multiple choice (one answer)
Related Associate Cloud Engineer questions
- A user is signed in to the Google Cloud console and has access to several projects.Setting up a cloud solution environment
- A startup wants to use folders and organization policies, both of which require an organization resource in its Google…Setting up a cloud solution environment
- A company runs production workloads on Google Cloud and only has the Basic Support that every customer gets.Setting up a cloud solution environment
- An on-call engineer wants to get push notifications for alerts on their phone, check the status of Compute Engine…Setting up a cloud solution environment
All 60 free Associate Cloud Engineer questions by domain · 15 sample questions on one page
Practise the full Associate Cloud Engineer exam
This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.