Google Cloud Professional Cloud Developer — Question 325

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because emitting logs in JSON format improves their structure, making it easier to index and search within Cloud Logging. Options A and B do not address logging improvements directly, and option D, while beneficial for observability, does not specifically enhance log indexing or searchability.