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 2Question 32
    Hard1 markMultiple Choice
    Domain 4.1: Managing Compute Engine resourcesCompute EngineIAPSecuritySSH

    GCP ACE · Question 32 · Domain 4.1: Managing Compute Engine resources

    You have a Compute Engine instance that does NOT have an external public IP address. You need to SSH into this instance securely from your local laptop over the internet.

    Which TWO actions must you take to enable this using Identity-Aware Proxy (IAP)? (Select TWO)

    Answer options:

    A.

    Create a firewall rule allowing ingress from 0.0.0.0/0 on port 22.

    B.

    Create a firewall rule allowing ingress from 35.235.240.0/20 on port 22.

    C.

    Assign a temporary external IP address to the instance.

    D.

    Grant your user account the 'IAP-secured Tunnel User' IAM role.

    E.

    Configure a Cloud VPN connection.

    How to approach this question

    Know the network and IAM requirements for setting up IAP TCP forwarding.

    Full Answer

    To use IAP for SSH (TCP forwarding), you need two things: 1) A firewall rule allowing ingress on port 22 from Google's IAP IP range (35.235.240.0/20). 2) The IAM role `roles/iap.tunnelResourceAccessor` (IAP-secured Tunnel User) granted to the user attempting to connect.

    Common mistakes

    Opening port 22 to 0.0.0.0/0, which defeats the security benefits of IAP.
    Question 31All questionsQuestion 33

    Practice the full GCP Associate Cloud Engineer Practice Exam 2

    50 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01Your company is migrating to Google Cloud and needs to establish a resource hierarchy. You have t...EasyQ02You are managing access to a GCP project. You need to grant 15 developers the ability to view Com...MediumQ03You have created a new GCP project using the Cloud Console. You want to deploy a Cloud Function u...EasyQ04Your startup has a strict monthly cloud budget of $500. You want to be notified immediately if yo...EasyQ05Your finance team wants to perform complex SQL analysis on your GCP billing data to understand co...Medium
    View all 50 questions →