AWS Certified Developer – Associate (DVA-C02) — Question 41

An application uses an Amazon EC2 Auto Scaling group. A developer notices that EC2 instances are taking a long time to become available during scale-out events. The UserData script is taking a long time to run.
The developer must implement a solution to decrease the time that elapses before an EC2 instance becomes available. The solution must make the most recent version of the application available at all times and must apply all available security updates. The solution also must minimize the number of images that are created. The images must be validated.
Which combination of steps should the developer take to meet these requirements? (Choose two.)

Answer options

Correct answer: A, C

Explanation

Option A is correct because it involves creating a custom AMI with all required patches and configurations, which speeds up instance launch times. Option C is also correct as it allows deployment of the latest application version at runtime, reducing the need for updates during instance initialization. The other options either do not focus on reducing instance availability time effectively or involve unnecessary complexities.