AmazonAmazon DevOps Engineer Professional DOP-C02 Certification·EN·Updated 4 Aug 2026
You must migrate a Linux application to AWS that requires specific versions of Tomcat, HAProxy, and Varnish, needs OS-level tuning, automated application version deployments, scalable infrastructure, and automatic replacement of unhealthy servers. Which solution should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: Upload the application code to CodeCommit with an appspec.yml that installs and configures the required software. Create a CodeDeploy deployment group tied to an EC2 Auto Scaling group, and create a CodePipeline that uses CodeCommit as the source and CodeDeploy for deployments..
Why this is the answer
The correct solution leverages CodeDeploy with an appspec.yml to install and configure specific software versions and perform OS-level tuning on EC2 instances within an Auto Scaling group. This directly addresses the requirement for specific software versions and OS-level tuning, while the Auto Scaling group provides scalability and automatic replacement of unhealthy servers. CodePipeline automates deployments.
Incorrect options:
Fargate does not allow OS-level tuning or installation of specific software like HAProxy/Varnish directly on the underlying OS.
Elastic Beanstalk's Tomcat solution stack might not allow the precise control over specific versions of Tomcat, HAProxy, and Varnish, or the detailed OS-level tuning required. A worker environment is also not suitable for a web application.