🔥 40% Off Crucial Exams Memberships — Deal ends today!

2 hours, 31 minutes remaining!

GCP Associate Cloud Engineer Practice Question

A startup is migrating a data-processing script to a Linux VM on Google Cloud. The script must upload result files to a Cloud Storage bucket in the same project. The security team requires that no long-lived user credentials or other static secrets be stored on the instance. Which approach follows Google-recommended practices for authenticating the script to Cloud Storage?

  • Create a new user-managed service account, grant it the Storage Object Creator role on the bucket, and configure the VM to run as that service account.

  • Enable Cloud Shell, copy its temporary access token to the VM at runtime, and reuse the token for the script.

  • Create an API key in the Google Cloud console and set it as an environment variable on the VM for the script to call Cloud Storage.

  • Generate a JSON key file for a Google Account, copy the key to the VM, and have the script use it to obtain an access token.

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