Google Cloud Professional Cloud Developer — Question 322

You are using the latest stable version of Python 3 to develop an API that stores data in a Cloud SQL database. You need to perform CRUD operations on the production database securely and reliably with minimal effort. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because using the Cloud SQL connector library with a Cloud SQL Auth Proxy provides a secure and straightforward method for connecting to the database. Option A is incorrect as Cloud Composer is not typically used for direct API access, while B does not utilize the recommended secure connector approach. Option D is also not suitable for production use as the emulator is intended for development and testing rather than production connections.