Google Cloud Professional Cloud Developer — Question 120

You are developing a web application that will be accessible over both HTTP and HTTPS and will run on Compute Engine instances. On occasion, you will need to SSH from your remote laptop into one of the Compute Engine instances to conduct maintenance on the app. How should you configure the instances while following Google-recommended best practices?

Answer options

Correct answer: C

Explanation

The correct answer, C, ensures secure SSH access through Cloud Identity-Aware Proxy while maintaining private IPs for the Compute Engine servers, which is a best practice for security. Option A does not address SSH access, option B exposes the servers unnecessarily by allowing all ingress traffic, and option D complicates the setup by introducing a bastion host when not needed for this scenario.