Topic 1 Question 19
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?
When creating the VM via the web console, specify the service account under the 'Identity and API Access' section.
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.
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.
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.
解説
ユーザの投票
コメント(17)
A is correct
👍 40Agents892020/05/01Either the question or the answers are wrong. The question says that we HAVE a Linux VM, so we should strike all the answers that include "when creating the VM.." - on the other hand, adding JSON Tokens to VM metadata is terrible because it's readable in clear-text for everyone. So, what do we need to do here?
👍 7jabrrJ68w02ond12021/12/12- 正解だと思う選択肢: C
A cannot be correct as you are creating after service account. You have a vm then you had create the service account. This is because A is not the right answer.
👍 2raselsys2023/03/05
シャッフルモード