Associate Cloud Engineer
You are creating and deploying an application on Cloud Run that uses Cloud SQL for data storage. You need to track the number of database connections created by the application to ensure that database connections are reused. What should you do?
- A. In Cloud Monitoring, create a custom metric that tracks the creation of Cloud Run instances, and display the metric on a dashboard.
- B. Log each new database connection in the application. In Cloud Monitoring, create a custom metric for these logs, and display the metric on a dashboard.
- C. In the Google Cloud console, navigate to the Cloud SQL instance, and review the instance logs.
- D. In Cloud Trace, enable trace storage for your project, and use a filter to check for new database connections.