nerdexam
AmazonAmazon

SOA-C03 · Question #9

SOA-C03 Question #9: Real Exam Question with Answer & Explanation

The correct answer is A: Deploy and configure the Amazon CloudWatch agent on the EC2 instances to log to a. The AWS Cloud Operations and Monitoring documentation specifies that the Amazon CloudWatch Agent is the recommended tool for collecting system and application logs from EC2 instances. The agent pushes these logs into a centralized CloudWatch Logs group, providing durable storage

Submitted by miguelv· Mar 5, 2026

Question

An application runs on Amazon EC2 instances that are in an Auto Scaling group. A CloudOps engineer needs to implement a solution that provides a central storage location for errors that the application logs to disk. The solution must also provide an alert when the application logs an error. What should the CloudOps engineer do to meet these requirements?

Options

  • ADeploy and configure the Amazon CloudWatch agent on the EC2 instances to log to a
  • BCreate a cron job on the EC2 instances to identify errors and push the errors to an Amazon
  • CDeploy an AWS Lambda function that pushes the errors directly to Amazon CloudWatch Logs.
  • DCreate an Auto Scaling lifecycle hook that invokes an EC2-based script to identify errors.

Explanation

The AWS Cloud Operations and Monitoring documentation specifies that the Amazon CloudWatch Agent is the recommended tool for collecting system and application logs from EC2 instances. The agent pushes these logs into a centralized CloudWatch Logs group, providing durable storage and real-time monitoring. Once the logs are centralized, a CloudWatch Metric Filter can be configured to search for specific error keywords (for example, "ERROR" or "FAILURE"). This filter transforms matching log entries into custom metrics. From there, a CloudWatch Alarm can monitor the metric threshold and publish notifications to an Amazon SNS topic, which can send email or SMS alerts to subscribed This combination provides a fully automated, managed, and serverless solution for log aggregation and error alerting. It eliminates the need for manual cron jobs (Option B), custom scripts (Option D), or Lambda-based log streaming (Option C).

Community Discussion

No community discussion yet for this question.

Full SOA-C03 PracticeBrowse All SOA-C03 Questions