
Ultimate access to all questions.
You have deployed a virtual machine (VM) running Linux on Google Cloud. The VM needs to establish a connection to a Cloud SQL instance. To manage access securely, you have created a dedicated service account with the necessary permissions for the Cloud SQL instance. To ensure that the VM uses this newly created service account rather than the default Compute Engine service account, what steps should you take?
A
When creating the VM via the web console, specify the service account under the 'Identity and API Access' section.
B
Download a JSON Private Key for the service account. On the Project Metadata, add that JSON as the value for the key compute-engine-service-account.
C
Download a JSON Private Key for the service account. On the Custom Metadata of the VM, add that JSON as the value for the key compute-engine-service-account.
D
Download a JSON Private Key for the service account. After creating the VM, ssh into the VM and save the JSON under ~/.gcloud/compute-engine-service-account.json.