Cloud Digital Leader Trust and security with Google Cloud Practice Question
A company's security policy requires that when an employee is terminated, their access to all cloud resources must be revoked immediately — including any active sessions. Which approach most comprehensively achieves this in a Google Cloud environment integrated with Google Workspace?
⚠ Common exam trap
The GCDL exam often tests the misconception that changing a password or removing IAM roles is sufficient for immediate session termination, when in fact only disabling the identity account (or revoking tokens) stops active sessions — OAuth tokens are not invalidated by password changes or role removals.
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
✓
Disabling the employee's Google Workspace account (which immediately invalidates all active sessions and prevents new authentication), then auditing for and revoking any service account keys they created
Disabling the Google Workspace account immediately invalidates all active sessions and prevents new authentication because Google Cloud IAM relies on the Workspace identity for user-based access. This single action revokes access across all Google Cloud projects and services that use that identity, including Cloud Console, gcloud CLI, and API sessions. Auditing and revoking service account keys the user created is necessary because those keys are not tied to the user's Workspace account and remain valid until explicitly deleted.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Manually reviewing and removing the employee's IAM bindings across all Google Cloud projects one by one
Why it's wrong here
Manual IAM binding review across potentially dozens of projects is slow, error-prone, and incomplete — the employee may have IAM bindings in projects the IT team doesn't know about. During the review period, access remains active.
- ✓
Disabling the employee's Google Workspace account (which immediately invalidates all active sessions and prevents new authentication), then auditing for and revoking any service account keys they created
Why this is correct
This is the comprehensive approach. Disabling the Workspace identity immediately invalidates all active OAuth tokens and prevents new sign-ins — all GCP access based on that identity stops instantly. Auditing for service account keys they created closes the remaining gap (keys are separate credentials not tied to the user account).
- ✗
Changing the employee's password immediately — they can no longer log in with the old password
Why it's wrong here
Changing the employee's password only blocks future password-based sign-ins; it does not invalidate already-issued OAuth tokens or existing sessions, so the terminated employee can continue making authenticated API calls, accessing Cloud Storage, and using GCP services until those tokens expire. Moreover, if the employee uses federated login with SSO (e.g., SAML) or service account impersonation, a local password change may have little to no effect on their ability to authenticate. Proper termination requires disabling the user account, which revokes all active sessions and tokens immediately, not merely changing a credential that leaves the underlying session infrastructure intact.
- ✗
Waiting until the end of the business day to revoke access to avoid disrupting active workflows
Why it's wrong here
Delaying revocation until the end of the business day keeps the terminated employee's active Google Cloud sessions and OAuth tokens valid, allowing continued access to sensitive data and project resources throughout that entire period. An employee who is being terminated poses an insider threat, and any delay—even for workflow convenience—creates a window for data exfiltration or malicious changes. Immediate access revocation is a non-negotiable security control; if workflow disruption is a concern, use break-glass accounts or pre-staged handoff procedures rather than leaving a former employee's access live.
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Service account
A service account is a special type of account used by an application or a virtual machine, rather than a human user, to authenticate and interact with cloud services and APIs securely.
Key term
Authentication
Authentication is the process of verifying that someone or something is who or what it claims to be before granting access to a system or resource.
About these practice questions
This GCDL question is part of Courseiva's 829-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL 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 GCDL exam.