A company runs a web application on multiple EC2 instances across multiple Availability Zones. All instances need to access and share the same file system simultaneously to read and write shared configuration files. Which AWS storage service supports simultaneous access from multiple EC2 instances?
Amazon EFS is a fully managed, POSIX-compliant network file system built on NFSv4 that can be mounted concurrently by hundreds of EC2 instances across multiple Availability Zones. It scales storage capacity and throughput automatically as files are added or removed, eliminating capacity provisioning. With features like VPC mount targets, security groups, and IAM authorization, EFS provides a native shared file system that supports consistent, low-latency reads and writes from many instances, exactly matching the scenario.
Why this answer
Amazon EFS is a fully managed, NFS-based file system that can be mounted concurrently by multiple EC2 instances across different Availability Zones, providing shared access for reading and writing configuration files. It uses the NFSv4.1 protocol and supports thousands of simultaneous connections, making it ideal for shared storage scenarios.
Exam trap
The trap here is that candidates may confuse Amazon EBS with a shared file system, not realizing that standard EBS volumes are single-instance attachable, while EFS is purpose-built for multi-instance shared access.
How to eliminate wrong answers
Option A is wrong because Amazon EBS volumes are block-level storage that can only be attached to a single EC2 instance at a time (except for multi-attach EBS io1/io2 volumes, which are limited to a few instances and not designed for general shared file access). Option B is wrong because Instance Store provides temporary, block-level storage that is physically attached to the host server and cannot be shared across instances; data is lost if the instance stops or terminates. Option D is wrong because Amazon S3 is object storage accessed via HTTP/HTTPS APIs, not a POSIX-compliant file system, and does not support standard file locking or direct mount as a shared file system for EC2 instances.