GCP Professional Cloud Security Engineer Practice Question
Your security team must allow the external vendor support group ([email protected] Google Group) to query a sensitive BigQuery dataset in the prod-analytics project, but only when requests come from the vendor's on-premises public CIDR range 203.0.113.0/24 and only on weekdays between 09:00 and 17:00 (America/New_York). The organization wants to avoid adding new proxy or networking components and must follow the principle of least privilege. Which approach best meets these requirements?
Configure an Access Context Manager service perimeter that specifies the vendor's IP range and business-hours access level, then grant the [email protected] group the BigQuery Data Viewer role at the project level without additional conditions.
Add an IAM policy binding on the dataset that grants the BigQuery Data Viewer role to the [email protected] group with a condition limiting access to requests from 203.0.113.0/24 and to times between 09:00 and 17:00 on weekdays.
Create a VPC Service Controls perimeter around the prod-analytics project and allow ingress only from 203.0.113.0/24 during business hours.
Define a custom BigQuery Viewer role, assign it to the [email protected] group, and require users to access the dataset through Cloud Identity-Aware Proxy restricted to the vendor's IP range and schedule.
Google Cloud IAM Conditions let you attach an attribute-based Boolean expression to an individual role binding. The condition language supports both request.ip and request.time attributes, so you can restrict the BigQuery Data Viewer role to apply only when the caller's source IP is within 203.0.113.0/24 and the access time falls between 09:00 and 17:00 on weekdays. This enforces the required constraints while granting the minimal BigQuery Data Viewer permissions to the vendor group and does not require any additional infrastructure.
VPC Service Controls service perimeters restrict data egress but cannot enforce time-of-day constraints. Identity-Aware Proxy governs web access to applications, not direct BigQuery API calls, and a custom role without conditions would lack the necessary contextual controls. Access Context Manager service perimeters also cannot grant BigQuery IAM roles; they only define network and device restrictions for requests that are already authorized by IAM, so they would still need an IAM binding with the proper condition. Therefore, an IAM conditional role binding is the correct and most straightforward solution.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are IAM Conditions in Google Cloud?
Open an interactive chat with Bash
What is the principle of least privilege?
Open an interactive chat with Bash
How does request.ip and request.time work in IAM Conditions?
Open an interactive chat with Bash
What is IAM Conditions in Google Cloud?
Open an interactive chat with Bash
How does IAM Conditions use attributes like request.ip and request.time?
Open an interactive chat with Bash
Why is IAM conditional role binding preferred over VPC Service Controls or Access Context Manager in this scenario?
Open an interactive chat with Bash
GCP Professional Cloud Security Engineer
Configuring Access
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .