AWS Certified Solutions Architect – Associate (SAA-C03) — Question 171
A company has a web application that is based on Java and PHP. The company plans to move the application from on premises to AWS. The company needs the ability to test new site features frequently. The company also needs a highly available and managed solution that requires minimum operational overhead.
Which solution will meet these requirements?
Answer options
- A. Create an Amazon S3 bucket. Enable static web hosting on the S3 bucket. Upload the static content to the S3 bucket. Use AWS Lambda to process all dynamic content.
- B. Deploy the web application to an AWS Elastic Beanstalk environment. Use URL swapping to switch between multiple Elastic Beanstalk environments for feature testing.
- C. Deploy the web application to Amazon EC2 instances that are configured with Java and PHP. Use Auto Scaling groups and an Application Load Balancer to manage the website’s availability.
- D. Containerize the web application. Deploy the web application to Amazon EC2 instances. Use the AWS Load Balancer Controller to dynamically route traffic between containers that contain the new site features for testing.
Correct answer: B
Explanation
The correct answer is B because AWS Elastic Beanstalk provides a managed environment that allows for easy deployment and testing of applications, including URL swapping for feature testing. Option A is not suitable for dynamic content processing, while C requires more operational overhead for managing EC2 instances, and D introduces complexity with containerization that is not necessary for the requirements.