A company is hosting a web application on AWS using a single Amazon EC2 instance that stores user-uploaded documents in an Amazon EBS volume. For better scalability and availability, the company duplicated the architecture and created a second EC2 instance and EBS volume in another Availability Zone, placing both behind an Application Load Balancer. After completing this change, users reported that, each time they refreshed the website, they could see one subset of their documents or the other, but never all of the documents at the same time.
What should a solutions architect propose to ensure users see all of their documents at once?
- Copy the data so both EBS volumes contain all the documents
- Configure the Application Load Balancer to direct a user to the server with the documents
- Copy the data from both EBS volumes to Amazon EFS. Modify the application to save new documents to Amazon EFS
- Configure the Application Load Balancer to send the request to both servers. Return each document from the correct server
Answer(s): C
Explanation:
The correct answer is C. EFS provides a shared, scalable file system accessible from multiple EC2 instances, enabling both servers to access the full set of documents consistently.
A is wrong because EBS volumes are instance-attached and not shared across AZs or instances; duplicating data defeats scalability and increases maintenance. B is wrong because ALB routing to a single server per request still limits visibility to that node’s data; it cannot synchronize across instances. D is wrong because ALB cannot aggregate and merge documents from two back-end servers in a single request; it would require application logic and data consistency handling. C satisfies data durability, consistency, and shared access across instances.
Reveal Solution Next Question