exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 332 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 332
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. Ask the SRE team to enable Managed Service for Prometheus on your GKE cluster.
  • B. 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.
  • C. Update your microservices code to emit logs in JSON format.
  • D. Instrument your microservices code with OpenTelemetry libraries.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sandesh24
2 months ago
Selected Answer: 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.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago