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 tha

Sign in or unlock SOA-C02 to reveal the answer and full explanation for question #395. The question stem and answer options stay visible for context.

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

Unlock SOA-C02 to see the answer

You've previewed enough free SOA-C02 questions. Unlock SOA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#CloudWatch Logs metric filter#HTTP 404 monitoring#log-based metrics#web server logs
Full SOA-C02 Practice