Courseiva
mediumMultiple ChoiceObjective-mapped

Google ACE Practice Question: Grant a third-party monitoring vendor's service…

You need to grant a third-party monitoring vendor's service account `roles/monitoring.viewer` on your project, but only for the next 90 days. After 90 days, the access should automatically expire. Which IAM feature enables time-limited access?

⚠ Common exam trap

Google Cloud often tests the misconception that session duration limits or service account lifecycle management can enforce time-bound permissions, when in fact only IAM Conditions provide a native, policy-based expiration mechanism for role bindings.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Add an IAM Condition with a date/time expression that expires the binding after 90 days.

IAM Conditions allow you to attach a time-based expression to a role binding, such as `request.time < timestamp('2025-01-01T00:00:00Z')`, which automatically revokes the binding after the specified date. This is the native, auditable, and policy-driven way to enforce time-limited access in Google Cloud without manual intervention or resource lifecycle management.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set a session duration limit in the vendor's service account settings.

    Why it's wrong here

    Session duration limits in a service account's settings control how long a delegated OAuth token remains valid, forcing re-authentication after the configured period, but they do not expire the IAM role binding itself. After the session limit elapses, the service account can generate a new token and continue to exercise the role, so the binding retains access indefinitely. Only an IAM Condition on the binding can enforce a hard expiration at the authorization layer.

  • Add an IAM Condition with a date/time expression that expires the binding after 90 days.

    Why this is correct

    Attaching an IAM Condition with a date/time expression such as `request.time < timestamp('2025-08-01T00:00:00Z')` to the role binding makes the permission valid only until that timestamp. When a service account attempts to access a resource after the expiry, Cloud IAM evaluates the condition and returns `PERMISSION_DENIED` because the condition is false. This enforces the 90-day limit automatically at authorization time, without manual steps or separate cleanup jobs.

  • Grant the role and set a reminder to manually revoke it in 90 days.

    Why it's wrong here

    Granting the role and relying on a calendar reminder to revoke it after 90 days depends on a human executing the cleanup promptly; a missed or delayed action leaves the binding active and grants unintended access. Cloud IAM provides no built-in reminder system, so this approach is not enforceable. A policy-enforced IAM Condition evaluates request.time at every access attempt and denies access automatically once the expiration timestamp passes, eliminating the need for manual revocation.

  • Use a temporary service account that is automatically deleted after 90 days via a Cloud Scheduler job.

    Why it's wrong here

    Creating a temporary service account with a Cloud Scheduler deletion job does not enforce a 90-day expiry on the IAM role binding itself; the account could be deleted prematurely or persist if the job fails, and the role remains on the project until the account is removed. This option is tempting because Cloud Scheduler can automate resource lifecycle tasks, and in a scenario where the entire service account must be ephemeral (e.g., for a short-lived batch workload), deleting the account after 90 days would be a valid approach.

About these practice questions

Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.