You have a Linux VM that must connect to Cloud SQL.
You created a service account with the appropriate access rights.
You want to make sure that the VM uses this service account instead of the default Compute Engine service account.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.A.
https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instancesTo make sure that a Linux VM uses a specific service account instead of the default Compute Engine service account to connect to Cloud SQL, you can follow these steps:
Create a service account with the appropriate access rights. You can do this in the Cloud Console or using the gcloud command-line tool.
Download a JSON private key for the service account. You can do this in the Cloud Console or using the gcloud command-line tool.
Decide where to store the JSON private key. There are a few options:
Option A is the simplest option if you are creating a new VM, but if you have an existing VM, Options B, C, or D may be more appropriate.