Google Cloud Professional Cloud Database Engineer — Question 146

Your company uses a custom application to service thousands of users. The application is running on a Compute Engine and a Cloud SQL for PostgreSQL database. The company requires database passwords to be changed every 60 days. You need to ensure that the credentials used by the web application to connect to the database are managed securely. What should you do?

Answer options

Correct answer: B

Explanation

Option B is correct because Secret Manager provides a secure way to store and manage sensitive information such as database credentials, along with built-in support for automatic rotation. The other options involve less secure methods, such as storing credentials in files, either encrypted or not, which can expose sensitive data if not handled properly.