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?
A) Use the default Stackdriver Kubernetes Engine Monitoring agent configuration.
B) Deploy a Fluentd daemonset to GKE. Then create a customized input and output configuration to tail the log file in the application's pods and write to Stackdriver Logging.
C) Install Kubernetes on Google Compute Engine (GCE) and redeploy your applications. Then customize the built-in Stackdriver Logging configuration to tail the log file in the application's pods and write to Stackdriver Logging.
D) Write a script to tail the log file within the pod and write entries to standard output. Run the script as a sidecar container with the application's pod. Configure a shared volume between the containers to allow the script to have read access to /var/log in the application container.
Correct Answer:
Verified
Q11: Your application artifacts are being built and
Q12: You need to run a business-critical workload
Q13: You are performing a semi-annual capacity planning
Q14: You use Spinnaker to deploy your application
Q15: Your company follows Site Reliability Engineering practices.
Q17: You created a Stackdriver chart for CPU
Q18: You are managing the production deployment to
Q19: You use a multiple step Cloud Build
Q20: You are running an application in a
Q21: Your team has recently deployed an NGINX-based
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents