🔥 40% Off Crucial Exams Memberships — Deal ends today!

10 minutes, 45 seconds remaining!

GCP Professional Cloud Security Engineer Practice Question

Your security team must guarantee that, across the entire organization, newly created Compute Engine VMs never receive a public IPv4 or IPv6 address, to satisfy a regulatory mandate that all workloads remain unreachable from the public Internet. A small bastion project operated by the networking team is the only exception: VMs whose service account email starts with bastion- must still be able to obtain an external IP so that administrators can SSH in. You manage the Google Cloud resource hierarchy shown below:

  • Organization node
    • Folder prod
      • Project prod-app-1, prod-app-2
    • Folder shared-infra
      • Project bastion-east, bastion-west

Which single action will enforce the requirement with the least operational overhead while allowing the required exception?

  • Remove the compute.instances.setMetadata permission from all IAM roles at the prod folder; grant it back only in bastion projects to stop other projects from adding external IPs.

  • Create an organization-wide compute.vmExternalIpAccess Organization Policy, set denyAll to true, and add allowedServiceAccounts: bastion-* so only service accounts whose name begins with bastion- can receive external IPs.

  • Deploy a Cloud Function triggered by Cloud Audit Logs for compute.instances.insert that automatically strips any external IP from instances unless their project ID starts with bastion-.

  • At the shared-infra folder level, create a VPC firewall rule that denies egress to 0.0.0.0/0 except from instances with the bastion-* network tag; inherit this rule down to all projects.

GCP Professional Cloud Security Engineer
Supporting compliance requirements
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