GCP Professional Cloud Security Engineer Practice Question

Your security team must ensure that members of the group [email protected] can start, stop, or reset Compute Engine VMs in the production project only when both of the following are true:

  1. Their source IP is within the corporate VPN subnet 203.0.113.0/24.
  2. The request is made between 18:00 and 06:00 UTC on weekdays. All other IAM permissions for these users must remain unchanged, and the solution should introduce minimal ongoing operational effort. Which approach should you take?
  • Create a project-level IAM binding that grants the compute.instanceAdmin.v1 role to the group and add a CEL condition that allows the permission only when request.ip matches "203.0.113.0/24" and the request time is between 18:00 and 06:00 UTC on Monday-Friday.

  • Deploy Cloud Functions that grant the compute.instanceAdmin.v1 role to the group at 18:00 UTC and revoke it at 06:00 UTC, and add a firewall rule that only allows SSH from 203.0.113.0/24.

  • Set the organization policy constraint "compute.vmExternalIpAccess" to deny operations from addresses outside 203.0.113.0/24 and include a time-based condition covering 18:00-06:00 UTC on weekdays.

  • Define an Access Context Manager access level containing the VPN subnet and business-hour schedule, then place the production project in a VPC Service Controls perimeter that requires this access level for the Compute Engine API.

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