Skip to main content

Associate Cloud Engineer practice question · Configuring access and security

An internal web application runs on Compute Engine behind an external Application Load Balancer, and Identity-Aware…

An internal web application runs on Compute Engine behind an external Application Load Balancer, and Identity-Aware Proxy (IAP) already checks that each user is authorized. Security now also requires that requests come only from company-managed devices that meet a device policy and from the corporate IP ranges. What should you do?

  • ACreate an Access Context Manager access level with device policy and IP subnetwork conditions, and require it on the IAP-secured resource through an IAM condition
  • BAttach a Google Cloud Armor security policy to the load balancer backend that allows only the corporate IP ranges
  • CCreate VPC firewall rules on the application's network that allow ingress only from the corporate IP ranges
  • DPlace the project in a VPC Service Controls perimeter and add the corporate IP ranges to an ingress rule
Show the answer and explanation

Correct answer: A) Create an Access Context Manager access level with device policy and IP subnetwork conditions, and require it on the IAP-secured resource through an IAM condition

To add device and network conditions on top of IAP's identity check, create an Access Context Manager access level (device policy plus IP subnetworks) and require it on the IAP-secured resource with an IAM condition. This is IAP context-aware access.

Why each option is right or wrong

  • A) Correct. With context-aware access, IAP can require an access level. An access level is a set of request attributes, such as IP subnetworks, regions, and device policy, that is checked in addition to user identity. You bind it to the IAP-secured resource with an IAM conditional role binding. Device attributes require a Chrome Enterprise Premium license.
  • B) Incorrect. Cloud Armor can filter by source IP at the load balancer, but it cannot check whether the device is company-managed or meets a device policy, so it covers only part of the requirement.
  • C) Incorrect. VPC firewall rules work on packets reaching the VMs, and the source of that traffic is the load balancer and proxy, not the end user. They have no information about device posture either.
  • D) Incorrect. VPC Service Controls protects access to Google Cloud service APIs, such as Cloud Storage and BigQuery, against data exfiltration. It does not control end-user access to a web application served through a load balancer and IAP.
Exam domain
Configuring access and security · ~20% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.