Google Cloud Professional Cloud Architect — Question 136

You have deployed several instances on Compute Engine. As a security requirement, instances cannot have a public IP address. There is no VPN connection between Google Cloud and your office, and you need to connect via SSH into a specific machine without violating the security requirements. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because configuring Identity-Aware Proxy (IAP) allows you to securely connect to instances without public IPs, provided you have the necessary role. Option A is incorrect as Cloud NAT is used for outbound connections, not for SSH access. Option B is not suitable since TCP Proxy Load Balancing is not designed for direct SSH connections to instances. Option D involves additional steps with a bastion host, which is unnecessary when IAP can provide direct access.