Google Cloud Professional Cloud Architect — Question 7
You have deployed an application to Google Kubernetes Engine (GKE), and are using the Cloud SQL proxy container to make the Cloud SQL database available to the services running on Kubernetes. You are notified that the application is reporting database connection issues. Your company policies require a post- mortem. What should you do?
Answer options
- A. Use gcloud sql instances restart.
- B. Validate that the Service Account used by the Cloud SQL proxy container still has the Cloud Build Editor role.
- C. In the GCP Console, navigate to Stackdriver Logging. Consult logs for (GKE) and Cloud SQL.
- D. In the GCP Console, navigate to Cloud SQL. Restore the latest backup. Use kubectl to restart all pods.
Correct answer: C
Explanation
The correct answer is C because consulting the logs in Stackdriver Logging can provide insights into the specific connection issues occurring between GKE and Cloud SQL. Option A is incorrect as restarting the SQL instance may not resolve connection issues related to the proxy. Option B does not directly address the problem at hand, while Option D may lead to data loss and is not necessary for diagnosing the connection problem.