Amazon Elastic File System (23rd Nov)
- AWS EFS is a managed, distributed file system service.
- Designed for
Linux-basedworkloads. - Uses NFS (Network File System) access protocol,supporting versions 4.0 and 4.1.
- Can be accessed from on-premises servers via VPN or Direct Connect.
- It is more expensive than S3 per GB but provides shared, low-latency and scalable file storage.
- Use Cases:
- Shared file storage for Linux-based applications.
- Compatible with Linux servers, Amazon ECS, EKS, and Lambda.
- Suitable for: home directories, content management, big data analytics, media processing, web hosting, and other shared workloads requiring high availability across multiple AZs.

1. What is a File System?
A file system is like a digital filing cabinet where you store and organize your files (documents, pictures, videos, etc.).
Types of File Systems:
- Disk File Systems – Used on physical or virtual disks. Eg, ext4, NTFS, XFS.
- Network File Systems – Accessed over a network. Eg,: NFS (used by Linux systems and AWS EFS), SMB/CIFS (used by Windows systems and AWS FSx for Windows).
- Flash File Systems – Optimized for flash memory. Eg, JFFS2, F2FS, YAFFS.
- Database File Systems – Store data in a database instead of a traditional hierarchy. Examples: Oracle DBFS.
- Special-Purpose File Systems – Designed for specific tasks or virtual environments. Examples: /proc, tmpfs.
Cloud Examples:
- EFS (Elastic File System) - Shared network file system for Linux workloads, accessed via NFS protocol.
- FSx (Amazon FSx) – High-performance file systems for Windows workloads or specialized use cases, accessed via SMB protocol.
2. Accessing EFS
Accessing EFS Across Different AWS Regions: There are two ways to achieve this:- Cross-Region VPC Peering: Traditional method for connecting VPCs in different regions.
- AWS Transit Gateway (TGW): A modern, robust, and scalable solution, preferred for complex many-to-many connectivity across multiple VPCs and regions.
Accessing EFS from On-Premises Servers: There are two options:- AWS Site-to-Site VPN: Provides an encrypted connection over the public internet. Standard and lower-cost solution. Steps:
- Virtual Private Gateway (VPG): Created in AWS and attached to VPC. Acts as the AWS endpoint for VPN connections. It is a virtual, AWS-managed component, not a physical device.
- Customer Gateway (CGW): Created in AWS, but represents on-premises VPN device. It is a configuration object in AWS, not an actual device.
- AWS Direct Connect (DX): Provides dedicated bandwidth and lower latency, ideal for high-performance or large-scale workloads.
- AWS Site-to-Site VPN: Provides an encrypted connection over the public internet. Standard and lower-cost solution. Steps:
3. EBS vs EFS
- EFS : Use it when required
Shared access by multipleEC2 instances- Elasticity and automatic scaling
- High availability across multiple AZs
Read-heavy, shared workloads like content management systems, big data, and home directories
- EBS: Use it when required
Persistent and directly attachedto a single EC2 instance- Databases, transactional applications
- Workloads that
need low-latency, high-throughput block storage
4. EFS vs FSx
Both EFS and FSx are AWS storage services, but they cater to different needs:
EFS(Elastic File System) is like a big shared folder that everyone can use. It’s perfect when multiple computers or servers need to access and work with files at the same time. It’s simple, scalable, and ideal for general-purpose workloads.FSx(Amazon FSx) is like a specialized folder built for specific tasks. It excels in high-performance applications or unique needs like Windows-based apps or workloads that require extra speed and specialized file system features.
Example:
- If your team is working on a shared project and everyone needs to access the same files at once,
EFSis a great choice. - If you’re running a Windows application that relies on Windows-specific file-sharing features or processing large datasets with high-speed requirements,
FSxis the better option.
5. How EFS and FSx can work together?
Let’s say you're running a video-making business:
- You have lots of videos and files that your team needs to share and edit. You’d use EFS for that, so everyone can access the same files easily.
- But for editing and rendering big videos super fast, you use FSx because it’s really good at handling heavy tasks like video editing.
6. Question
A company's website uses an Amazon EC2 instance store for its catalog of items. The company wants to make sure that the catalog is highly available and that the catalog is stored in a durable location. What should a solutions architect do to meet these requirements?
- Move the catalog to Amazon ElastiCache for Redis.
- Deploy a larger EC2 instance with a larger instance store.
- Move the catalog from the instance store to Amazon S3 Glacier Deep Archive.
Move the catalog to an Amazon Elastic File System (Amazon EFS) file system.(Correct Ans)
Explanation:
- EC2 instance store is ephemeral storage — data is lost if the instance stops, terminates, or fails. It is not durable.
- Amazon EFS provides:
- Highly available and durable storage, automatically replicated across multiple Availability Zones (AZs).
- Shared access for multiple EC2 instances.
- Why the other options are incorrect:
- ElastiCache for Redis: In-memory store, not durable for long-term storage.
- Larger EC2 instance store: Still ephemeral, doesn’t solve durability or availability.
- S3 Glacier Deep Archive: Extremely low-cost archival storage, not suitable for frequently accessed or highly available workloads.