Q25 — AWS DVA-C02 Ch.2
Question 25 of 100 | ← Chapter 2
A developer is migrating an on-premises application to AWS. The application currently stores user uploads in a local directory on the server. All uploads must be immediately accessible to every instance in an Auto Scaling group.
- A. Use Amazon EBS and configure the application AMI to use a snapshot of the same EBS volume at launch.
- B. Use Amazon S3 and refactor the application so all uploads are stored in S3. ✓
- C. Use instance store and share it across instances launched from the same Amazon Machine Image (AMI).
- D. Use Amazon EBS and file synchronization software to achieve eventual consistency across Auto Scaling group instances.
Correct Answer: B. Use Amazon S3 and refactor the application so all uploads are stored in S3.
Explanation
The best approach is to store all uploads in Amazon S3, enabling any instance in the Auto Scaling group to access uploaded data immediately—S3 provides durable, highly available, shared object storage with no synchronization overhead. Option A fails because EBS volumes are attached to single instances and snapshots cannot be mounted concurrently. Option C is invalid: instance store volumes are ephemeral and not shareable across instances. Option D introduces complexity, delay, and failure risk with eventual consistency—contradicting the requirement for immediate accessibility.