Ultimate access to all questions.
You’ve been tasked with deploying all of your team’s public SSH keys to every instance in a specific project. After collecting all the keys, what is the most efficient method to deploy them?
Explanation:
The correct answer is B because project-wide SSH keys allow users to access all instances within a project that permit such keys. This method is efficient as it applies the keys across the entire project with a single command. The command gcloud compute project-info add-metadata --metadata-from-file ssh-keys=[LIST_PATH]
is used for this purpose.
gcloud compute ssh
is designed for connecting to instances, not for uploading SSH keys.