AWS Certified DevOps Engineer – Professional — Question 37

A DevOps engineer wants to find a solution to migrate an application from on premises to AWS. The application is running on Linux and needs to run on specific versions of Apache Tomcat, HAProxy, and Varnish Cache to function properly. The application's operating system-level parameters require tuning. The solution must include a way to automate the deployment of new application versions. The infrastructure should be scalable and faulty servers should be replaced automatically.
Which solution should the DevOps engineer use?

Answer options

Correct answer: D

Explanation

The correct answer is D because it allows for precise configuration and installation of the software using appspec.yml, while also leveraging AWS CodeDeploy for deployments and EC2 Auto Scaling for scalability and automatic recovery from failures. Options A, B, and C do not fully meet the requirement for OS parameter tuning and automated server replacement, making them less suitable for this scenario.