exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 176 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 176
Topic #: 1
[All Associate Cloud Engineer Questions]

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?

  • A. When creating the instances, specify a Service Account for each instance.
  • B. When creating the instances, assign the name of each Service Account as instance metadata.
  • C. After starting the instances, use gcloud compute instances update to specify a Service Account for each instance.
  • D. After starting the instances, use gcloud compute instances update to assign the name of the relevant Service Account as instance metadata.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GoCloud
Highly Voted 2 years, 10 months ago
A .
upvoted 24 times
...
JieHeng
Highly Voted 2 years, 8 months ago
A, 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
upvoted 20 times
...
Captain1212
Most Recent 5 months, 4 weeks ago
Selected Answer: A
Option A is correct , when you create the instance , that time itself you can specify the service account of each instance
upvoted 2 times
...
Bobbybash
1 year ago
Selected Answer: A
A. When creating the instances, specify a Service Account for each instance. To specify a more granular level of service account for each Compute Engine instance, you should specify a Service Account for each instance when you create it. This can be done through the Compute Engine API or the Cloud Console. By doing so, the specified Service Account will be used when calling Google Cloud APIs from that instance. Option B, assigning the name of each Service Account as instance metadata, is not the best solution as metadata can be accessed by anyone with access to the instance, which could potentially lead to security issues. Options C and D, using gcloud compute instances update to specify a Service Account or assign the name of a Service Account as instance metadata after starting the instances, can also be done, but it is a less efficient approach as it requires additional steps and can lead to human error if not properly documented.
upvoted 4 times
VarunGo
12 months ago
used chatgpt
upvoted 3 times
...
...
ryumada
1 year, 6 months ago
Selected Answer: A
Vote for A, because there is no instance running yet. "You will have several applications running..."
upvoted 3 times
...
Roro_Brother
1 year, 8 months ago
Selected Answer: A
A, there is no instance running yet
upvoted 1 times
...
AzureDP900
1 year, 8 months ago
A is good option for given scenario.
upvoted 1 times
...
somenick
1 year, 11 months ago
Selected Answer: A
You can set/update the service account only when the instance is not running
upvoted 3 times
...
Majkl93
2 years ago
Selected Answer: A
A - the instances are not running yet
upvoted 2 times
...
Raz0r
2 years, 1 month ago
A: you can define which GCP service account is associated with a Compute Engine instance when creating one. It is still possible to change the service account later. Link to the GCP docs: https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#using
upvoted 1 times
...
liyux21
2 years, 4 months ago
A is correct. You can change the assigned service account, use gcloud compute instances set-service-account ...., not the update
upvoted 3 times
...
techabhi2_0
2 years, 5 months ago
Answer is C. The instances are already running. So you need to change the Service account
upvoted 2 times
techabhi2_0
2 years, 5 months ago
My bad - "you will have" . Correct asnwer - A
upvoted 8 times
kaes
8 months, 3 weeks ago
Even if they would be running, I don't think it's possible to change the service account with the "update" command. You need to use "set-service-account" appropriately: https://cloud.google.com/sdk/gcloud/reference/compute/instances/set-service-account
upvoted 1 times
...
...
...
AD_0525
2 years, 8 months ago
A should be correct
upvoted 4 times
...
norrec9
2 years, 10 months ago
A is the answer
upvoted 4 times
...
Biju1
2 years, 10 months ago
It should be A
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago