az-305 Practice Question 1958
Exam: az-305
Domain: Design identity, governance, and monitoring solutions
Topic: Design logging and monitoring solutions
Difficulty: medium
You are designing a logging solution for a web application hosted in Azure that needs to capture detailed logs for debugging purposes. The application consists of several microservices communicating through HTTP requests. Which combination of tools would you recommend to ensure efficient logging and trace correlation across these microservices?
Answer Options
A
Use Azure Monitor for monitoring and Log Analytics Workspace for logging.
B
Deploy Application Insights for both logging and tracing.
C
Use Log Analytics Workspace for logging and Azure Monitor for tracing.
D
Use Azure Monitor for monitoring and Application Insights for tracing.
Correct Answer
B: Deploy Application Insights for both logging and tracing.
Explanation
Log Analytics Workspace is suitable for storing and querying logs but lacks built-in tracing capabilities. Application Insights, on the other hand, offers both logging and distributed tracing, making it the best fit for capturing logs and tracing across multiple microservices. Azure Monitor can be used for monitoring but does not provide tracing capabilities. Therefore, Application Insights is the optimal choice for this scenario.