
Answer-first summary for fast verification
Answer: After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
The correct answer is B. After the VM has been created, you should use the gcloud compute reset-windows-password command to retrieve the login credentials for the VM. This command will generate a new password for an existing Windows account or create a new account if it does not exist and return the password for that account. Options A, C, and D are incorrect because they do not provide valid methods for logging into a Windows VM via RDP on Compute Engine. Google Account credentials cannot be used (A), 'windows-password' is not a recognized metadata key (C), and using the JSON private key for the default Compute Engine service account is not applicable for RDP login (D).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
While setting up a Windows Virtual Machine (VM) on Google Cloud's Compute Engine, you need to ensure that you can successfully log in to the VM using Remote Desktop Protocol (RDP). What steps should you take to accomplish this?
A
After the VM has been created, use your Google Account credentials to log in into the VM.
B
After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
C
When creating the VM, add metadata to the instance using 'windows-password' as the key and a password as the value.
D
After the VM has been created, download the JSON private key for the default Compute Engine service account. Use the credentials in the JSON file to log in to the VM.
No comments yet.