PROFESSIONAL-CLOUD-DEVELOPER · Question #267
You have an application running on Google Kubernetes Engine (GKE). The application is currently using a logging library and is outputting to standard output. You need to export the logs to Cloud Loggi
Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #267. The question stem and answer options stay visible for context.
Question
You have an application running on Google Kubernetes Engine (GKE). The application is currently using a logging library and is outputting to standard output. You need to export the logs to Cloud Logging, and you need the logs to include metadata about each request. You want to use the simplest method to accomplish this. What should you do?
Options
- AChange your application's logging library to the Cloud Logging library, and configure your
- BUpdate your application to output logs in JSON format, and add the necessary metadata to the
- CUpdate your application to output logs in CSV format, and add the necessary metadata to the
- DInstall the Fluent Bit agent on each of your GKE nodes, and have the agent export all logs from
Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer
You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.