Topic 1 Question 332
Your company recently modernized their monolith ecommerce site to a microservices application in GKE. Your team uses Google Cloud's operations suite for monitoring and logging. You want to improve the logging indexing and searchabilty in Cloud Logging across your microservices with the least amount of effort. What should you do?
Ask the SRE team to enable Managed Service for Prometheus on your GKE cluster.
Reconfigure your applications to write logs to an emptyDir volume. Configure a sidecar agent to read the logs and send them to the Cloud Logging API.
Update your microservices code to emit logs in JSON format.
Instrument your microservices code with OpenTelemetry libraries.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: C
Emitting logs in structured JSON format allows Cloud Logging to automatically parse, index, and make fields searchable. This approach improves log searchability and reduces the need for custom parsing or additional tooling, achieving the goal with minimal changes to your application code.
👍 2Sandesh242025/03/01
シャッフルモード