AWS Certified Developer – Associate — Question 55
A developer wants to run a PHP website with an NGINX proxy and package them as Docker containers in one environment. The developer wants a managed environment with automated provisioning and load balancing. The developer cannot change the configuration and must minimize operational overhead.
How should the developer build the website to meet these requirements?
Answer options
- A. Create a new application in AWS Elastic Beanstalk that is preconfigured for a multicontainer Docker environment. Upload the code, and deploy it to a web server environment.
- B. Deploy the code on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer.
- C. Construct an AWS CloudFormation template that launches Amazon EC2 instances. Install and configure the PHP code by using cfn helper scripts.
- D. Upload the code for the PHP website into an Amazon S3 bucket. Host the website from the S3 bucket.
Correct answer: A
Explanation
The correct answer is A because AWS Elastic Beanstalk provides a fully managed environment for deploying multicontainer Docker applications, aligning with the developer's requirements for automated provisioning and minimal operational overhead. Option B would require more manual setup and management, while option C involves more complexity with CloudFormation templates and configurations. Option D is not suitable as S3 is not designed for running dynamic PHP applications.