GCP Professional Cloud Security Engineer Practice Question

A security engineering team needs to build an automated tool that runs in Cloud Run and synchronizes a nightly CSV stored in Cloud Storage with Cloud Identity. The container must add any new contractor accounts, suspend accounts that were removed from the file, and ensure every active contractor is a member of the Google Group [email protected]. The solution must avoid storing long-lived human credentials inside the image or environment and must follow the principle of least privilege by granting only the permissions required for user and group administration. Which design meets these requirements?

  • Generate an OAuth 2.0 client ID for the Cloud Run service, bake a long-lived refresh token into the container image, and call the Cloud Identity API directly to create and suspend users and modify group membership.

  • Give the Cloud Run service account the roles/iam.serviceAccountAdmin role on the organization and have the container run gcloud iam service-accounts commands to create and delete Cloud Identity users and groups.

  • Create a dedicated service account, enable domain-wide delegation for it, grant it the Cloud Identity User Management Admin and Groups Admin roles in the Admin console, deploy the Cloud Run service to run as this account, and invoke the Admin SDK Directory API via Application Default Credentials to manage users and groups.

  • Store a super administrator's username and password in Secret Manager; have the Cloud Run service fetch them at runtime and use headless browser automation to update users and groups through the Google Admin UI.

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