Google Cloud Professional Cloud Network Engineer — Question 35
You need to ensure your personal SSH key works on every instance in your project. You want to accomplish this as efficiently as possible.
What should you do?
Answer options
- A. Upload your public ssh key to the project Metadata.
- B. Upload your public ssh key to each instance Metadata.
- C. Create a custom Google Compute Engine image with your public ssh key embedded.
- D. Use gcloud compute ssh to automatically copy your public ssh key to the instance.
Correct answer: A
Explanation
The correct answer is A because adding your public SSH key to the project Metadata allows it to be accessible to all instances within the project, ensuring efficiency and consistency. Options B and C require manual updates per instance or creating a new image, which is less efficient. Option D only copies the key to a single instance at a time, which does not ensure functionality across all instances.