Google Cloud Associate Cloud Engineer — Question 83

You want to configure an SSH connection to a single Compute Engine instance for users in the dev1 group. This instance is the only resource in this particular
Google Cloud Platform project that the dev1 users should be able to connect to. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because enabling oslogin and granting the compute.osLogin role allows for easier management of SSH access through IAM roles, specifically tailored for the dev1 group. Options B, C, and D either do not utilize oslogin properly or involve manual SSH key management, which is less secure and more cumbersome for user access control.