A company migrated its web application to AWS. The application currently runs multiple processes on a single EC2 instance: an Apache web server that serves static content, a PHP application, and a local Redis server used for sessions. The company wants a highly available redesign that uses AWS managed services. Which solution meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure an Amazon CloudFront distribution with an Amazon S3 origin that hosts the static content. Configure an Application Load Balancer that targets an Amazon Elastic Container Service (Amazon ECS) service that runs AWS Fargate tasks for the PHP application. Configure the PHP application to use an Amazon ElastiCache for Redis cluster that runs in multiple Availability Zones..
Why this is the answer
The correct solution provides a highly available, managed architecture. CloudFront with S3 efficiently delivers static content globally. ECS Fargate offers a scalable, highly available, and managed compute environment for the PHP application, removing the need to manage EC2 instances directly. An Application Load Balancer distributes traffic across Fargate tasks, ensuring high availability. ElastiCache for Redis in multiple Availability Zones provides a highly available, managed session store. Incorrect options: Elastic Beanstalk can host the application, but deploying a single EC2 instance into a public subnet with a public IP does not inherently provide high availability or fully leverage managed services for all components. Lambda is suitable for serverless applications, but hosting static content directly on Lambda is not ideal, and managing session state with Lambda requires additional considerations not fully addressed. Keeping the backend on a single EC2 instance does not meet the high availability requirement. While ElastiCache for Redis is a good choice, the core application remains a single point of failure.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed