Hard1 markMultiple Choice

GCP ACE · Question 21 · Domain 3.1: Deploying and implementing Compute Engine resources

Your security team requires that SSH access to Compute Engine instances be managed centrally using IAM roles. They want to ensure that when an employee leaves the company, their SSH access is automatically revoked when their Google Workspace account is suspended. They also want to disable project-wide SSH keys.

Which TWO actions should you take? (Select TWO)

Answer options:

A.

Enable OS Login at the project or instance level

B.

Grant the roles/compute.osLogin or roles/compute.osAdminLogin role to authorized users

C.

Add the users' public SSH keys to the project metadata

D.

Distribute private SSH keys to users via a secure Cloud Storage bucket

E.

Use Cloud IAP (Identity-Aware Proxy) without enabling OS Login

How to approach this question

Identify the GCP feature that links Linux SSH access directly to Google Cloud IAM identities.

Full Answer

OS Login is the Google Cloud feature that links SSH access to IAM. By enabling OS Login (`enable-oslogin=TRUE` in metadata), you disable traditional metadata-based SSH keys. Access is then granted by assigning the `roles/compute.osLogin` (standard user) or `roles/compute.osAdminLogin` (sudo access) IAM roles. When a user's Google account is disabled, their SSH access is instantly revoked.

Common mistakes

Confusing Cloud IAP (which secures the network tunnel) with OS Login (which manages the OS-level authentication).

Practice the full GCP Associate Cloud Engineer Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam