Medium1 markMultiple Choice
Domain 3.1: Operational ExcellenceOperational ExcellenceSystems ManagerCloudWatch

AWS SAP-C02 · Question 11 · Domain 3.1: Operational Excellence

A company has a legacy monolithic application running on a single large EC2 instance. The application frequently crashes due to memory leaks. The company wants to improve operational excellence by automatically detecting these crashes and restarting the application service without manual intervention. Which solution requires the LEAST operational overhead?

Answer options:

A.

Write a cron job on the EC2 instance that checks memory usage and restarts the service if it exceeds 90%.

B.

Install the CloudWatch agent on the EC2 instance to monitor memory usage. Create a CloudWatch alarm that triggers an AWS Systems Manager Automation document to restart the service.

C.

Migrate the application to AWS Elastic Beanstalk and configure health checks to automatically replace the instance on failure.

D.

Use AWS Lambda triggered by VPC Flow Logs to detect dropped connections and restart the EC2 instance.

How to approach this question

Identify the native AWS service for automated remediation on EC2.

Full Answer

B.Install the CloudWatch agent on the EC2 instance to monitor memory usage. Create a CloudWatch alarm that triggers an AWS Systems Manager Automation document to restart the service.✓ Correct
Install the CloudWatch agent on the EC2 instance to monitor memory usage. Create a CloudWatch alarm that triggers an AWS Systems Manager Automation document to restart the service.
AWS Systems Manager Automation can be triggered by CloudWatch alarms to perform automated remediation tasks, such as restarting a service, minimizing manual intervention.

Common mistakes

Choosing instance replacement when only a service restart is needed.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

75 questions · hints · full answers · grading

More questions from this exam