
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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?
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.
Explanation:
Correct Answer: B - Deploy the web application to an AWS Elastic Beanstalk environment. Use URL swapping to switch between multiple Elastic Beanstalk environments for feature testing.
Why this is the correct answer:
Managed solution with minimum operational overhead: Elastic Beanstalk is a Platform-as-a-Service (PaaS) offering that handles infrastructure provisioning, load balancing, auto-scaling, and application health monitoring automatically. This significantly reduces operational overhead compared to managing EC2 instances directly.
Supports Java and PHP: Elastic Beanstalk natively supports both Java and PHP applications, which matches the company's technology stack.
Feature testing capability: The URL swapping feature in Elastic Beanstalk allows for easy blue/green deployments and feature testing. You can deploy new features to a separate environment, test them, and then swap URLs to promote the new version to production with minimal downtime.
High availability: Elastic Beanstalk automatically configures load balancing and auto-scaling groups to ensure high availability.
Why the other options are incorrect:
A: Amazon S3 with Lambda is primarily for static websites with serverless backend processing. It's not suitable for traditional Java/PHP web applications that require application servers and runtime environments.
C: While this provides high availability through Auto Scaling and Load Balancer, it requires significant operational overhead for managing EC2 instances, patching, monitoring, and deployment processes.
D: Containerization adds complexity and requires managing container orchestration. While it enables feature testing, it doesn't provide the "minimum operational overhead" requirement as effectively as Elastic Beanstalk.
Key AWS Services Mentioned:
This solution best balances the requirements for frequent feature testing, high availability, and minimal operational overhead.