nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #220

You will have several applications running on different Compute Engine instances in the same project. You want to specify at a more granular level the service account each instance uses when calling G

The correct answer is A. When creating the instances, specify a Service Account for each instance. When you create an instance using the gcloud command-line tool or the Google Cloud Console, you can specify which service account the instance uses when calling Google Cloud APIs. https://cloud.google.com/compute/docs/access/service- accounts#associating_a_service_account_to_an_i

Submitted by andreas_gr· Mar 30, 2026Configuring access and security

Question

You will have several applications running on different Compute Engine instances in the same project. You want to specify at a more granular level the service account each instance uses when calling Google Cloud APIs. What should you do?

Options

  • AWhen creating the instances, specify a Service Account for each instance
  • BWhen creating the instances, assign the name of each Service Account as instance metadata
  • CAfter starting the instances, use gcloud compute instances update to specify a Service Account
  • DAfter starting the instances, use gcloud compute instances update to assign the name of the

How the community answered

(37 responses)
  • A
    95% (35)
  • B
    3% (1)
  • C
    3% (1)

Explanation

When you create an instance using the gcloud command-line tool or the Google Cloud Console, you can specify which service account the instance uses when calling Google Cloud APIs. https://cloud.google.com/compute/docs/access/service- accounts#associating_a_service_account_to_an_instance

Topics

#service accounts#Compute Engine#API access#IAM

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice