Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Developer practice bank has an additional 608 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your team is deploying an internal financial web application on Compute Engine behind an external HTTP(S) load balancer, and administrators need SSH access to the backend VMs. You must implement a zero-trust architecture with the following requirements:
Which configuration should you implement?
This configuration attempts to enable Identity-Aware Proxy (IAP) for a web application while applying a project-level scoped access policy, broad IAM project permissions, unverified identity headers, and IP-based SSH firewall rules.
roles/editor) or Owner (roles/owner). Principals must explicitly be granted roles/iap.httpsResourceAccessor (IAP-Secured Web App User) for HTTPS apps and roles/iap.tunnelResourceAccessor for VM tunnels.X-Goog-Authenticated-User-Email for convenience, applications must never rely on it alone for security. Without verifying the cryptographic signature and audience claim of the x-goog-iap-jwt-assertion header and restricting VPC firewall ingress, an attacker who reaches the backend directly could spoof the email header.iap.webServiceVersions.accessViaIAP permissions.Using X-Goog-Authenticated-User-Email is acceptable only for display or compatibility purposes after the application has already validated the x-goog-iap-jwt-assertion JWT and verified that the backend is isolated behind load balancer firewall rules.
Identity-Aware Proxy (IAP) is a Google Cloud global service that establishes a centralized authorization layer for HTTPS web applications and administrative TCP connections. Built on the BeyondCorp zero-trust security model, IAP evaluates every request in real time using identity, group membership, and contextual signals from Access Context Manager before permitting traffic to reach backend resources.
roles/iap.httpsResourceAccessor (IAP-Secured Web App User) and roles/iap.tunnelResourceAccessor (IAP-Secured Tunnel User) enforces context-aware access for both the web app and VMs.x-goog-iap-jwt-assertion HTTP header confirms at the application layer that requests came through IAP. Configuring VPC firewall rules to only allow ingress from Cloud Load Balancing (130.211.0.0/22 and 35.191.0.0/16) and IAP TCP forwarding (35.235.240.0/20) blocks direct access to the VMs.This architecture satisfies every zero-trust requirement natively on Google Cloud by combining centralized identity and device-posture verification with defense-in-depth at both the VPC firewall and application header levels.
This option enables Identity-Aware Proxy (IAP) alongside Cloud CDN on the HTTP(S) load balancer, opens application access to allAuthenticatedUsers from specific IP ranges, and relies on external VM IP addresses with OS Login for administrative SSH.
roles/iap.httpsResourceAccessor to allAuthenticatedUsers permits anyone with any valid Google account—not just authorized corporate employees or groups—to pass the identity check as long as they originate from the allowed IP range.allAuthenticatedUsers is designed for semi-public web portals, not sensitive internal financial applications.Enabling allAuthenticatedUsers is suitable when building a general user-facing portal (such as a public support ticket submission site) that does not require employee-only authorization or device posture enforcement, provided Cloud CDN is disabled.
This architecture implements a traditional network-perimeter security model using Cloud VPN, VPC firewall rules, application-managed OAuth 2.0, and OS Login without deploying Identity-Aware Proxy (IAP).
This model is appropriate when applications require direct, persistent Layer 3/Layer 4 private network connectivity to on-premises systems, or when workloads run on platforms that cannot sit behind an HTTPS load balancer or IAP TCP forwarding tunnel.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated