Answer: B
Option A is incorrect because CloudTrail is a service for logging and storing AWS account and service API activity, not application logs. CloudTrail Insights is a feature that helps identify and alert any abnormal activity in the AWS account.
Option B is CORRECT because CloudWatch Application Insights for .NET and SQL Server collects metrics and logs of .NET and SQL Server applications across the stack (e.g., IIS server, OS, SQL Server database). It collects performance metrics and helps in troubleshooting by automatically correlating errors and creating visual dashboards.
Option C is incorrect because AWS Inspector is a network and security assessment service. It performs an assessment of EC2 instances for network vulnerabilities (e.g., exposed ports), Common Vulnerabilities and Exposures (CVE), and compares OS configurations to CIS security benchmarks. It is not used for collecting logs or correlating errors.
Option D is incorrect because X-Ray is an SDK and associated service for inspecting and measuring the performance of system integrations. It requires custom code development using the SDK to collect custom application logging and events. As such, it is generally used for tracing and correlating events of applications utilizing serverless services such as Lambda and DynamoDB.Reference:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/appinsights-what-is.html