Google Cloud Professional Cloud Developer — Question 286

You are currently pushing container images to Artifact Registry and deploying a containerized microservices application to GKE. After deploying the application, you notice that the services do not behave as expected. You use the kubectl get pods command to inspect the state of the application Pods, and discover that one of the Pods has a state of CrashLoopBackoff. How should you troubleshoot the Pod?

Answer options

Correct answer: C

Explanation

The correct answer is C because reviewing the logs of the Pod allows you to understand the errors or issues causing the CrashLoopBackoff state. Option A is incorrect as accessing the Pod's shell may not provide relevant information about the crash. Option B is not applicable in this scenario, as IAM policies do not directly relate to why a Pod is crashing. Option D pertains to network traffic issues, which are not the primary concern when a Pod fails to start.