Q2 Monitor Domain 4 · 20–25% of exam

A Container Apps application needs to emit structured JSON logs readable in Log Analytics. What is the recommended approach?

  1. A Write logs to a file and configure a log agent
  2. B Write JSON to stdout; Container Apps routes stdout to Log Analytics automatically (correct answer)
  3. C Use Serilog with a custom sink
  4. D Configure a separate log forwarder container

Shortcut: Container Apps collects stdout/stderr from containers and forwards them to the associated Log Analytics workspace. Writing structured JSON to stdout enables KQL queries with | extend or | parse operators.