Microsoft Certified: Azure Developer Associate (AZ-204)Monitor, troubleshoot, and optimize Azure solutionsMedium

A financial services company is developing a new online banking application. The application processes sensitive customer transaction data and uses Azure Functions for various microservices. For auditing and security purposes, all HTTP requests to these Azure Functions must be logged, including request headers, body, and response status. The logging solution must be able to correlate requests across different microservices and provide real-time alerting for anomalies. Which Azure Monitor feature should you use to meet these requirements?

  1. AAzure Monitor Logs (Log Analytics)
  2. BAzure Network Watcher
  3. CAzure Monitor Metrics
  4. DAzure Activity Log
Show answer & explanation

Correct answer: A. Azure Monitor Logs (Log Analytics)

Azure Monitor Logs, powered by Log Analytics, allows for collecting, querying, and analyzing detailed log data, including full HTTP request/response details. Its Kusto Query Language (KQL) enables correlation across services and supports real-time alerting on custom log data.

Why the other options are wrong

  • B. Azure Network Watcher provides tools for monitoring, diagnosing, and viewing network-related issues, not for application-level HTTP request logging.
  • C. Azure Monitor Metrics collects numerical values over time, suitable for performance or availability, but not for detailed request/response content or correlation.
  • D. Azure Activity Log records control-plane events (management operations), not data-plane (application) request/response details.

Azure Monitor Logs (Log Analytics)

A service within Azure Monitor that collects and analyzes telemetry from Azure resources, on-premises environments, and other cloud providers. It uses a Log Analytics workspace as a data store and Kusto Query Language (KQL) for querying.

  • Collects diverse log data (application, infrastructure, custom).
  • Enables powerful querying and analysis using KQL.
  • Supports real-time alerting and dashboard creation.

Memory trick: Logs give you all the details, metrics give you the numbers, activity shows the actions.

More Monitor, troubleshoot, and optimize Azure solutions questions