nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #308

PROFESSIONAL-CLOUD-DEVELOPER Question #308: Real Exam Question with Answer & Explanation

The correct answer is C: Run the kubectl logs POD_NAME command where the POD_NAME parameter is the name of the. https://komodor.com/learn/how-to-fix-crashloopbackoff-kubernetes-error/

Operating and Troubleshooting GKE Applications

Question

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?

Options

  • AConnect to the problematic Pod by running the kubectl exec -it POD_NAME - /bin/bash command
  • BExecute the gcloud projects get-iam-policy PROJECT_ID command where the PROJECT_ID
  • CRun the kubectl logs POD_NAME command where the POD_NAME parameter is the name of the
  • DIn the Google Cloud console, navigate to Cloud Logging in the project of the cluster's VPC. Enter

Explanation

https://komodor.com/learn/how-to-fix-crashloopbackoff-kubernetes-error/

Topics

#Kubernetes Troubleshooting#GKE Operations#Pod Lifecycle#kubectl commands

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions