
Ultimate access to all questions.
You have an application running on Google Kubernetes Engine (GKE) that currently logs to standard output using a logging library. You need to export these logs to Cloud Logging while ensuring each log entry includes request metadata. What is the simplest method to achieve this?
A
Change your application’s logging library to the Cloud Logging library, and configure your application to export logs to Cloud Logging.
B
Update your application to output logs in JSON format, and add the necessary metadata to the JSON.
C
Update your application to output logs in CSV format, and add the necessary metadata to the CSV.
D
Install the Fluent Bit agent on each of your GKE nodes, and have the agent export all logs from /var/log.