nerdexam
Amazon

SOA-C02 · Question #395

A company hosts a web application on an Amazon EC2 instance. The web server logs are published to Amazon CloudWatch Logs. The log events have the same structure and include the HTTP response codes…

The correct answer is A. Create a CloudWatch Logs metric filter that counts the number of times that the web server. https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

Submitted by thandi_sa· Mar 30, 2026Monitoring, Logging, and Remediation

Question

A company hosts a web application on an Amazon EC2 instance. The web server logs are published to Amazon CloudWatch Logs. The log events have the same structure and include the HTTP response codes that are associated with the user requests. The company needs to monitor the number of times that the web server returns an HTTP 404 response. What is the MOST operationally efficient solution that meets these requirements?

Options

  • ACreate a CloudWatch Logs metric filter that counts the number of times that the web server
  • BCreate a CloudWatch Logs subscription filter that counts the number of times that the web server
  • CCreate an AWS Lambda function that runs a CloudWatch Logs Insights query that counts the
  • DCreate a script that runs a CloudWatch Logs Insights query that counts the number of 404 codes

How the community answered

(30 responses)
  • A
    70% (21)
  • B
    17% (5)
  • C
    10% (3)
  • D
    3% (1)

Explanation

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

Topics

#CloudWatch Logs metric filter#HTTP 404 monitoring#log-based metrics#web server logs

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice