Your team is planning on hosting an application in Elastic Beanstalk.
The underlying environment will contain multiple Linux EC2 Instances.
You need these instances to share data via a shared file system.
Which of the following would you use for this purpose?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - D.
The AWS Documentation also mentions the following.
With Amazon Elastic File System (Amazon EFS), you can create network file systems that can be mounted by instances across multiple Availability Zones.
An Amazon EFS file system is an AWS resource that uses security groups to control access over the network in your default or custom VPC.In an Elastic Beanstalk environment, you can use Amazon EFS to create a shared directory that stores files uploaded or modified by users of your application.
Your application can treat a mounted Amazon EFS volume like local storage.
So you don't have to change your application code to scale up to multiple instances.
Option A is incorrect since this is used for object-based storage.
Option B is incorrect since this is used for archive storage.
Option C is incorrect since this is used for local block storage for EC2 Instances.
For more information on Elastic beanstalk and EFS, please refer to the below URL-
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/services-efs.htmlThe correct option for this scenario is D. AWS EFS.
AWS Elastic File System (EFS) is a fully-managed, scalable, and highly-available file storage service that is designed to provide shared file storage across multiple EC2 instances. With EFS, multiple EC2 instances can share common data, which makes it an ideal choice for scenarios such as web content management, media processing workflows, big data analytics, and more.
AWS S3 (Simple Storage Service) is an object storage service that is designed to store and retrieve large amounts of data. While S3 can be used to share files between multiple EC2 instances, it is not a file system and is not designed for shared file storage.
AWS Glacier is a low-cost, long-term data archival service that is designed for data that is infrequently accessed and can tolerate retrieval times of several hours.
AWS EBS (Elastic Block Store) is a block-level storage service that is designed to provide persistent storage volumes that can be attached to EC2 instances. While EBS volumes can be shared between multiple EC2 instances, they are not designed for shared file storage.
In summary, for the scenario described in the question, AWS EFS is the best option to provide shared file storage across multiple EC2 instances in Elastic Beanstalk.