az-305 Practice Question 1957

Exam: az-305
Domain: Design identity, governance, and monitoring solutions
Topic: Design logging and monitoring solutions
Difficulty: medium
In a scenario where you need to monitor the performance of an Azure Function App and correlate logs with traces from multiple microservices, which solution would you recommend to achieve this? Given that the Azure Function App is deployed in an Azure App Service and the microservices are deployed as Docker containers on Azure Kubernetes Service (AKS), choose the best approach.

Answer Options

A
Use Azure Monitor for both monitoring and tracing.
B
Deploy Application Insights to monitor the Azure Function App and use Log Analytics Workspace for tracing.
C
Use Log Analytics Workspace for all monitoring and tracing needs.
D
Use Azure Monitor for monitoring and Application Insights for tracing.

Correct Answer

B: Deploy Application Insights to monitor the Azure Function App and use Log Analytics Workspace for tracing.

Explanation

Application Insights provides end-to-end monitoring and distributed tracing capabilities, making it ideal for correlating logs and traces across different services. Log Analytics Workspace can be used for storing and querying logs but does not provide built-in tracing capabilities. Azure Monitor can also be used for monitoring but lacks the distributed tracing feature. Application Insights is the best choice for this scenario due to its comprehensive monitoring and tracing features.

Related Practice Questions