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 7Question 31
    Medium1 markMultiple Choice
    Domain 4.1: Managing Compute Engine resourcesCompute EngineIAPSecuritySSH

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

    You need to SSH into a Compute Engine instance that does not have an external public IP address. Your local workstation is not connected to the VPC via VPN or Interconnect.

    What is the most secure and Google-recommended way to connect to this instance?

    Answer options:

    A.

    Assign an ephemeral external IP address to the instance temporarily.

    B.

    Deploy a bastion host with a public IP address and SSH through it.

    C.

    Use Identity-Aware Proxy (IAP) for TCP forwarding.

    D.

    Configure Cloud NAT to allow inbound SSH connections.

    How to approach this question

    Identify the GCP service that replaces traditional bastion hosts for secure remote access.

    Full Answer

    C.Use Identity-Aware Proxy (IAP) for TCP forwarding.✓ Correct
    Identity-Aware Proxy (IAP) TCP forwarding enables you to connect to VM instances that do not have external IP addresses. It works by wrapping the SSH connection inside an HTTPS request to Google's infrastructure, which verifies your IAM permissions before forwarding the traffic to the private VM. This eliminates the need for bastion hosts or public IPs.

    Common mistakes

    Choosing a bastion host. While valid, IAP is the 'most secure and Google-recommended' modern approach because it requires zero infrastructure management.
    Question 30All questionsQuestion 32

    Practice the full GCP Associate Cloud Engineer Practice Exam 7

    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 Cloud S...EasyQ02Your company is migrating to Google Cloud and wants to manage user identities centrally. They cur...MediumQ03You have just created a new Google Cloud project and want to deploy a containerized application u...MediumQ04Your finance team wants to perform complex SQL queries on your Google Cloud billing data to analy...MediumQ05You are managing a development project in Google Cloud. You want to ensure that you are notified ...Easy
    View all 50 questions →