Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud Security Engineer practice bank has 1,343 more like it. Try 10 free: instant score, no account.
A security engineer is preparing to remove several broad IAM roles, including roles/editor, from a production project to enforce least privilege across automated workloads. Before applying the updated allow policy, the engineer must validate that the change will not disrupt production services by evaluating the impact against recent historical API access attempts across the project and its child resources.
During an initial command-line test replay, several permissions evaluated to an access state of UNKNOWN_INFO_DENIED with an error indicating missing permissions to retrieve IAM policies.
Which tool should the engineer use, and how should they resolve the evaluation errors?
gcloud recommender); resolve the errors by activating the Security Command Center IAM Recommender Response playbook.IAM Recommender uses machine learning and 90-day permission usage insights to generate proactive recommendations for replacing over-privileged roles with more restrictive predefined or custom roles.
REPLACE_ROLE and REPLACE_ROLE_CUSTOMIZABLE recommendations.The security engineer wanted automated, system-generated recommendations on how to replace excessive basic roles with smaller custom roles without manually drafting policy files.
simulate orgpolicy); resolve the errors by assigning the roles/policysimulator.orgPolicyAdmin role at the organization level.Policy Simulator for Organization Policies is a specialized simulator used to test proposed custom constraints and organization policy configurations against existing cloud asset inventory configurations to identify compliance violations before enforcing constraints.
diffs) for principals.roles/policysimulator.orgPolicyAdmin and Cloud Asset list permissions.The engineer was authoring an Organization Policy constraint (such as disabling service account key creation or enforcing uniform bucket-level access) and needed to discover which existing production resources violate that proposed rule prior to enforcement.
iam:troubleshoot); resolve the errors by providing explicit conditionContext attributes including resource service and destination IP.IAM Policy Troubleshooter is a diagnostic tool designed to explain why a specific principal has or does not have a particular permission on a specific Google Cloud resource at a given point in time.
principal, fullResourceName, permission, and optional conditionContext). It does not replay batches of recent access logs across proposed allow policy files to assess broad impact.UNKNOWN_INFO_DENIED in simulation: Supplying conditionContext attributes resolves condition evaluation ambiguities in Policy Troubleshooter, but it does not resolve permission discovery errors within Policy Simulator.true or false based on contextual request headers.A single developer or automated pipeline was actively receiving an Access Denied (403 Forbidden) error in production and the engineer needed to diagnose why an existing IAM Condition or role binding failed for that specific request.
replay-recent-access); resolve the errors by granting getIamPolicy permissions on ancestor and descendant resources (or an administrative role on a common ancestor).IAM Policy Simulator is a Policy Intelligence tool that enables administrators and security teams to test and validate proposed changes to IAM allow policies before committing them to production. By replaying recent access logs against a proposed allow policy (or policy overlay), Policy Simulator determines whether principals who previously exercised permissions would retain access (GRANTED), lose access (ACCESS_REVOKED), or potentially experience access changes (ACCESS_MAYBE_REVOKED).
gcloud iam simulator replay-recent-access command or the Cloud Console Test changes feature, the security engineer can supply a proposed allow policy and compare simulated access states against baseline historical API calls.UNKNOWN_INFO_DENIED errors: When Policy Simulator evaluates effective access, it must inspect the allow policies of ancestor resources (such as parent folders and the organization) as well as descendant resources (such as Cloud Storage buckets or Pub/Sub topics) that appear in the access logs. If the calling identity lacks getIamPolicy permissions (such as resourcemanager.folders.getIamPolicy or storage.buckets.getIamPolicy), the engine cannot evaluate the full hierarchy and returns an UNKNOWN_INFO_DENIED access state. Granting these permissions—or assigning an administrative reader role on a common ancestor resource—allows the simulator to read all relevant policies in the hierarchy.JSON, YAML, or flattened CSV formats for auditing and change management reviews.groups.read) are available.IAM Policy Simulator is specifically architected for batch validation of modified allow policies against historical access patterns, unlike Policy Troubleshooter (which evaluates a single real-time access tuple) or dry-run organization policies (which test constraint violations rather than IAM allow policy bindings).
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