GCP Professional Cloud Security Engineer Practice Question

Your organization relies on Cloud Identity and enforces least-privilege access. Human Resources produces a daily list of employees whose status has changed to TERMINATED. You have been asked to deploy an automated Cloud Run service that reads this list, suspends the user accounts, and removes them from every Google Group. The job must run unattended, avoid long-lived credentials such as stored passwords or service-account keys, and ensure each change is attributable to an identifiable principal in Cloud Audit Logs. Which approach best satisfies the requirements?

  • Create a dedicated service account with domain-wide delegation and only user and group admin privileges. Grant the Cloud Run runtime service account the iam.serviceAccountTokenCreator role on it, then have the workload impersonate the delegated account and invoke the Admin SDK Directory API.

  • Invoke the Cloud Identity API from Cloud Run using an API key generated in the Google Cloud console; pass the key in each request to disable users and update groups.

  • Assign the Super Admin role directly to the Cloud Run runtime service account and call the Directory API with its default access token obtained from the metadata server.

  • Develop the Cloud Run container to use a JSON key for a Super Admin user's service account stored in Secret Manager, then call the Admin SDK Directory API with that key.

GCP Professional Cloud Security Engineer
Configuring Access
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot