GCP Associate Cloud Engineer Practice Question

Your security team bans long-lived service account keys. A developer must run a local script that uploads files to a production Cloud Storage bucket for the next hour. The developer should not gain permanent Storage permissions. Which approach best meets the requirement?

  • Generate an HMAC access key for the service account, share it with the developer, and require them to rotate it after seven days.

  • Grant the developer the Storage Object Admin role on the bucket and have them authenticate with gcloud auth login before running the script.

  • Impersonate a dedicated service account by running gcloud auth print-access-token --impersonate-service-account and use the returned token with gsutil; give the developer only the Service Account Token Creator role on that account.

  • Download a JSON key for the service account, set the GOOGLE_APPLICATION_CREDENTIALS environment variable, and run the script with gsutil.

GCP Associate Cloud Engineer
Configuring access and security
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