AWS Certified Solutions Architect – Associate (SAA-C02) — Question 649
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
AWS Elastic Beanstalk is a fully managed PaaS offering that natively supports Java and PHP, ensuring minimal operational overhead for deployment and management. Utilizing Elastic Beanstalk's URL swapping feature allows the company to easily perform blue-green deployments to test new features. In contrast, managing EC2 instances directly or refactoring the entire code base to run on AWS Lambda would increase administrative complexity and effort.