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?
Choose an answer
Tap an option to check your answer.
Correct answer: In the GCP Console, navigate to Stackdriver Logging. Consult logs for (GKE) and Cloud SQL..
Why this is the answer
The correct answer is to consult logs in Stackdriver Logging for both GKE and Cloud SQL. This is the most effective first step in a post-mortem for connection issues, as logs provide direct insight into errors, network problems, or authentication failures that could be causing the database connection issues. Using gcloud sql instances restart might temporarily resolve some issues but doesn't identify the root cause, which is crucial for a post-mortem. Validating the Cloud Build Editor role is incorrect because the Cloud SQL proxy requires the Cloud SQL Client role, not Cloud Build Editor, and this check alone won't explain connection issues. Restoring a backup and restarting pods are drastic measures that should only be considered after diagnosing the problem, as they can cause data loss or service disruption without addressing the underlying cause.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed