Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
Your organization is establishing security controls for continuous deployment pipelines targeting a critical production Google Cloud project. You need to implement an environment-aware access control mechanism for engineers who trigger and approve production release pipelines to enforce least privilege.
The solution must satisfy the following requirements:
Which approach should you implement?
Implement an IAM condition using request.time and resource.type expressions on the pipeline role binding, and trigger a Cloud Function to rewrite the policy with allowed IP addresses during releases.
Create an Access Level in Access Context Manager specifying the corporate IP subnets and device posture requirements, and configure an IAM conditional role binding on the project using the expression request.auth.access_levels.contains('accessPolicies/POLICY_ID/accessLevels/ACCESS_LEVEL_NAME').
Configure a VPC Service Controls perimeter enclosing the production project, and deploy a Cloud Armor security policy to filter incoming API calls based on device posture headers and corporate IP ranges.
Configure Identity-Aware Proxy (IAP) TCP-forwarding with OS Login two-step verification, and assign permanent project owner roles to the deployer group without IAM condition expressions.
Implement an IAM condition using request.time and resource.type expressions on the pipeline role binding, and trigger a Cloud Function to rewrite the policy with allowed IP addresses during releases.
Create an Access Level in Access Context Manager specifying the corporate IP subnets and device posture requirements, and configure an IAM conditional role binding on the project using the expression request.auth.access_levels.contains('accessPolicies/POLICY_ID/accessLevels/ACCESS_LEVEL_NAME').
Context-Aware Access in Google Cloud combines Access Context Manager (ACM), Chrome Enterprise Premium, and Identity and Access Management (IAM) Conditions. This framework enables organizations to define granular, attribute-based access policies that dynamically grant or deny permissions based on the context of the caller (such as source IP address, geographic location, and device security posture) rather than relying exclusively on user identity.
request.auth.access_levels.contains(...), IAM validates whether the incoming request satisfies the specified access level on every individual API call.Using native IAM Conditions linked to an Access Context Manager access level provides direct, programmatic enforcement at the Google Cloud resource management plane without needing custom proxy infrastructure or manual policy synchronization scripts.
Configure a VPC Service Controls perimeter enclosing the production project, and deploy a Cloud Armor security policy to filter incoming API calls based on device posture headers and corporate IP ranges.
Configure Identity-Aware Proxy (IAP) TCP-forwarding with OS Login two-step verification, and assign permanent project owner roles to the deployer group without IAM condition expressions.