
Answer-first summary for fast verification
Answer: 1. Set the instance metadata to “enable-oslogin=true”. 2. Assign the compute.osLogin role to the dev-1 group. 3. Instruct dev-1 team members to use Cloud Shell for SSH access to the VM.
Option A is correct because enabling OS Login via the metadata “enable-oslogin=true” and granting the compute.osLogin role to the dev-1 group ensures that members can only access their designated VM without broader project access. Using Cloud Shell for SSH connections adds a layer of security. Options B, C, and D are incorrect due to unnecessary steps (B), security risks associated with manual key distribution (C), and lack of access restriction to other project resources (D).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are managing a multi-tier gaming application on Compute Engine. A VM within this stack is managed by another team, dev-1, who has requested SSH access to their VM in your GCP project. Your goal is to ensure dev-1 team members can only access their VM and no other resources in the project. What is the best approach to configure this access?
A
B
C
D
No comments yet.