For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeGCP Associate Cloud Engineer (ACE)GCP Associate Cloud Engineer Practice Exam 5Question 21
    Hard1 markMultiple Choice
    Domain 3.1: Deploying and implementing Compute Engine resourcesDomain 3Compute EngineSecurityOS Login

    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

    Enable OS Login at the project or instance level, Grant the roles/compute.osLogin or roles/compute.osAdminLogin role to authorized users
    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).
    Question 20All questionsQuestion 22

    Practice the full GCP Associate Cloud Engineer Practice Exam 5

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01You are starting a new initiative and need to create a new Google Cloud project using the command...EasyQ02A developer on your team needs to manage App Engine applications, including deploying new version...MediumQ03You have created a new Google Cloud project. You need to allow a specific group of developers to ...MediumQ04Which statement best describes the relationship between Google Cloud projects and billing accounts?EasyQ05Your company wants to be notified immediately in their Slack channel whenever their monthly Googl...Medium
    View all 50 questions →