You created a Windows VM on Compute Engine and need RDP credentials. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM..
Why this is the answer
The gcloud compute reset-windows-password command is the correct and secure method to obtain RDP credentials for a Windows Compute Engine VM. This command generates a new random password for a specified user and securely displays it, along with the username, allowing you to log in via RDP. Using your Google Account credentials directly is not supported for RDP login. Adding windows-password as metadata during VM creation is not the standard or recommended way to set initial RDP passwords and can expose credentials. The JSON private key for the default Compute Engine service account is used for programmatic access to Google Cloud resources, not for RDP login to a Windows VM.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed