PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #121
PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Question #121: Real Exam Question with Answer & Explanation
The correct answer is B: Deploy a Fluentd daemonset to GKE. Then create a customized input and output configuration to. https://cloud.google.com/stackdriver/docs/solutions/gke/managing-logs#custom_agents GKE's default logging agent provides a managed solution to deploy and manage the agents that send the logs for your clusters to Cloud Logging. Depending on your GKE cluster master version, either
Question
You have a set of applications running on a Google Kubernetes Engine (GKE) cluster, and you are using Stackdriver Kubernetes Engine Monitoring. You are bringing a new containerized application required by your company into production. This application is written by a third party and cannot be modified or reconfigured. The application writes its log information to /var/log/app_messages.log, and you want to send these log entries to Stackdriver Logging. What should you do?
Options
- AUse the default Stackdriver Kubernetes Engine Monitoring agent configuration.
- BDeploy a Fluentd daemonset to GKE. Then create a customized input and output configuration to
- CInstall Kubernetes on Google Compute Engine (GCE) and redeploy your applications. Then
- DWrite a script to tail the log file within the pod and write entries to standard output. Run the script
Explanation
https://cloud.google.com/stackdriver/docs/solutions/gke/managing-logs#custom_agents GKE's default logging agent provides a managed solution to deploy and manage the agents that send the logs for your clusters to Cloud Logging. Depending on your GKE cluster master version, either fluentd or fluentbit are used to collect logs. Common use cases include: - collecting additional logs not written to STDOUT or STDERR - customized log formatting
Topics
Community Discussion
No community discussion yet for this question.