nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #100

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

The correct answer is B: gcloud logging read [PARAM]. https://cloud.google.com/blog/products/management-tools/using-logging-your-apps-running- kubernetes-engine gcloud command line tool – Using the gcloud logging read command, select the appropriate cluster, node, pod and container logs.

Logging and Monitoring Google Kubernetes Engine Applications

Question

Your application is running in multiple Google Kubernetes Engine clusters. It is managed by a Deployment in each cluster. The Deployment has created multiple replicas of your Pod in each cluster. You want to view the logs sent to stdout for all of the replicas in your Deployment in all clusters. Which command should you use? kubectl logs [PARAM] A.

Options

  • Bgcloud logging read [PARAM]
  • Ckubectl exec -it [PARAM] journalctl

Explanation

https://cloud.google.com/blog/products/management-tools/using-logging-your-apps-running- kubernetes-engine gcloud command line tool – Using the gcloud logging read command, select the appropriate cluster, node, pod and container logs.

Topics

#Cloud Logging#Google Kubernetes Engine (GKE)#Application Monitoring#Troubleshooting

Community Discussion

No community discussion yet for this question.

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