GCP Professional Cloud Security Engineer Practice Question

Your security team is rolling out context-aware access for an internal dashboard that is protected by Identity-Aware Proxy (IAP). Access must be granted only when all of the following conditions are simultaneously true:

  • The request originates from the corporate IPv4/IPv6 ranges 203.0.113.0/24 and 2001:db8:cafe::/48.
  • The user is on a company-managed device that is encrypted, has a screen-lock, and is running an up-to-date operating system.
  • The request is sent Monday through Friday between 08:00 and 18:00 in the Europe/Paris time zone.

You want a solution that minimises future maintenance while keeping the configuration readable for auditors. How should you implement the access level that will be added to the IAP-secured resource policy?

  • Create a basic access level for the IP ranges, a second basic access level for the device policy, and a third basic access level for the time window; then use required_access_levels in each level to chain all three together.

  • Create two basic access levels-one specifying the corporate IP subnets and another specifying the device policy-and list them both in the resource's required access levels; ignore the time window because basic levels do not support it.

  • Create one custom (advanced) access level that uses a single Common Expression Language (CEL) Boolean expression to combine the IP subnet match, the required device.* attributes, and a time-of-day check.

  • Create a basic access level for the IP ranges and device policy, then configure an IAM-based conditional role binding on the IAP-secured backend to refuse access outside business hours.

GCP Professional Cloud Security Engineer
Securing communications and establishing boundary protection
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