GCP Professional Cloud Security Engineer Practice Question

Your company has a Google Cloud organization containing hundreds of projects across several folders. A new compliance requirement mandates that no VM instances may obtain external IPv4 addresses anywhere in the organization, except in the following situations:

  • A hardened bastion host that runs under the service account [email protected] in project sec-bastion must keep its existing external IP so that on-call engineers can SSH into production networks.
  • Developers working in project api-dev may continue to create or update any VM instances with external IPv4 addresses for integration testing.

You are asked to design an Organization Policy solution that enforces the new rule set with the fewest policy bindings to create and maintain. Which approach meets the requirements while following the principle of least privilege?

  • Disable the Compute Engine default service account across the Organization, then create custom IAM roles in project api-dev that include compute.instances.setExternalIp and grant the role to developers.

  • At the Organization level, leave the constraint unenforced. Create folder-level policies that deny external IPs everywhere except the folder that contains api-dev, and attach an allowed list for the bastion host on every production project.

  • Set constraints/compute.vmExternalIpAccess to Deny all at the Organization level, then add the single allowed value serviceAccount:[email protected] in the same policy. On project api-dev, override the same constraint and set it to Allow all.

  • Apply a policy at the Organization root that denies external IPs for all VM instances unless they have the network tag allow-external-ip. Attach the tag to the bastion host and to every instance in project api-dev that needs an external IP.

GCP Professional Cloud Security Engineer
Configuring Access
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot