AWS Certified SysOps Administrator – Associate — Question 331

A company has developed a service that is deployed on a fleet of Linux-based Amazon EC2 instances that are in an Auto Scaling group. The service occasionally fails unexpectedly because of an error in the application code. The company's engineering team determines that resolving the underlying cause of the service failure could take several weeks.

A SysOps administrator needs to create a solution to automate recovery if the service crashes on any of the EC2 instances.

Which solutions will meet this requirement? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because the Amazon CloudWatch agent can monitor internal system logs and services, allowing you to trigger a restart action if the health check fails. Option C is correct because AWS Systems Manager State Manager allows you to define a consistent state for EC2 instances, such as ensuring a service is running, and can execute a script via AWS-RunShellScript on a 5-minute schedule. Options B, D, and E are incorrect because Lambda cannot easily leverage Session Manager for periodic CLI scripts, user data only runs once at instance launch rather than continuously, and ensuring startup execution does not remediate post-launch crashes.