Google Cloud Professional Cloud Developer — Question 294

You are using App Engine and Cloud SQL for PostgreSQL to develop an application. You want to test your application code locally before deploying new application versions to the development environment that is shared with other developers. You need to set up your App Engine local development environment to test your application while keeping all traffic to Cloud SQL instances encrypted and authenticated to Cloud IAM and PostgreSQL. What should you do before starting the local development server?

Answer options

Correct answer: B

Explanation

The correct answer is B because the Cloud SQL Auth Proxy provides a secure way to connect to Cloud SQL instances by handling authentication and encryption. Option A is incorrect as it doesn't ensure secure connections to the Cloud SQL instance. Option C involves unnecessary complexity by using a Compute Engine instance, and option D does not meet the requirement for encrypted and authenticated access to Cloud SQL.