To ensure your SSH public key is available on every VM in a project with minimal effort, what should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Upload your public ssh key to the project Metadata..
Why this is the answer
Uploading your public SSH key to the project metadata ensures it's automatically available to all new and existing VMs within that project. This is the most efficient method for project-wide key distribution. Uploading to each instance's metadata is tedious and doesn't scale. Creating a custom image with the key embedded is less flexible, as it requires creating new images for key updates and doesn't affect existing instances. While gcloud compute ssh can copy a key, it's a per-instance operation and doesn't persist the key across reboots or new instances, nor does it make the key globally available to the project.
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