Hard1 markMultiple Choice

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

Create a firewall rule allowing ingress from 35.235.240.0/20 on port 22., Grant your user account the 'IAP-secured Tunnel User' IAM role.
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.

Practice the full GCP Associate Cloud Engineer Practice Exam 2

50 questions · hints · full answers · grading

More questions from this exam