ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - Associate Cloud Engineer discussion

Report
Export

You built an application on your development laptop that uses Google Cloud services. Your application uses Application Default Credentials for authentication and works fine on your development laptop. You want to migrate this application to a Compute Engine virtual machine (VM) and set up authentication using Google- recommended practices and minimal changes. What should you do?

A.
Assign appropriate access for Google services to the service account used by the Compute Engine VM.
Answers
A.
Assign appropriate access for Google services to the service account used by the Compute Engine VM.
B.
Create a service account with appropriate access for Google services, and configure the application to use this account.
Answers
B.
Create a service account with appropriate access for Google services, and configure the application to use this account.
C.
Store credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
Answers
C.
Store credentials for service accounts with appropriate access for Google services in a config file, and deploy this config file with your application.
D.
Store credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.
Answers
D.
Store credentials for your user account with appropriate access for Google services in a config file, and deploy this config file with your application.
Suggested answer: B

Explanation:

In general, Google recommends that each instance that needs to call a Google API should run as a service account with the minimum permissions necessary for that instance to do its job. In practice, this means you should configure service accounts for your instances with the following process: Create a new service account rather than using the Compute Engine default service account. Grant IAM roles to that service account for only the resources that it needs. Configure the instance to run as that service account. Grant the instance the https://www.googleapis.com/auth/cloud-platform scope to allow full access to all Google Cloud APIs, so that the IAM permissions of the instance are completely determined by the IAM roles of the service account. Avoid granting more access than necessary and regularly check your service account permissions to make sure they are up-to-date. https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#best_practices

asked 18/09/2024
Zarate, Wilfredo
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first