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?
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:
Write a cron job on the EC2 instance that checks memory usage and restarts the service if it exceeds 90%.
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.
Migrate the application to AWS Elastic Beanstalk and configure health checks to automatically replace the instance on failure.
Use AWS Lambda triggered by VPC Flow Logs to detect dropped connections and restart the EC2 instance.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7
75 questions · hints · full answers · grading
Expert