EFS Flashcards

1
Q

EFS

A

A fully-managed file storage service that makes it easy to set up and scale file storage in the Amazon Cloud. The service manages all the file storage infrastructure for you, avoiding the complexity of deploying, patching, and maintaining complex file system configurations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What NFS version does EFS support?

A

EFS supports the Network File System version 4 protocol.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What operating systems support EFS?

A

You can mount EFS filesystems onto EC2 instances running Linux or MacOS Big Sur. Windows is not supported.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can EFS filesystems be mounted other than EC2?

A

Aside from EC2 instances, you can also mount EFS filesystems on ECS tasks, EKS pods, and Lambda functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True/False. Multiple Amazon EC2 instances cannot access an EFS file system at the same time, providing a common data source for workloads and applications running on more than one instance or server.

A

False. Multiple Amazon EC2 instances CAN access an EFS file system at the same time, providing a common data source for workloads and applications running on more than one instance or server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does EFS store data and metadata?

A

EFS file systems store data and metadata across multiple Availability Zones in an AWS Region.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How large can file systems grow?

A

EFS file systems can grow to petabyte scale, drive high levels of throughput, and allow massively parallel access from EC2 instances to your data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What file system access semantics does EFS provide?

A

EFS provides file system access semantics, such as strong data consistency and file locking.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you control access to EFS?

A

EFS enables you to control access to your file systems through Portable Operating System Interface (POSIX) permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the best way to move data between on-premises storage and Amazon EFS?

A

Moving your EFS file data can be managed simply with AWS DataSync – a managed data transfer service that makes it faster and simpler to move data between on-premises storage and Amazon EFS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How can you schedule backups for EFS and how is EFS backed up?

A

You can schedule automatic incremental backups of your EFS file system using the EFS-to-EFS Backup solution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is EFS Infrequent Access (EFS IA)?

A

Amazon EFS Infrequent Access (EFS IA) is a new storage class for Amazon EFS that is cost-optimized for files that are accessed less frequently. Customers can use EFS IA by creating a new file system and enabling Lifecycle Management. With Lifecycle Management enabled, EFS automatically will move files that have not been accessed for 30 days from the Standard storage class to the Infrequent Access storage class. To further lower your costs in exchange for durability, you can use the EFS IA-One Zone storage class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What performance modes are offered by EFS?

A

-General purpose performance mode (default)
–Ideal for latency-sensitive use cases.
-Max I/O mode
–Can scale to higher levels of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for file operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What throughput modes are offered by EFS?

A

-Bursting Throughput mode (default)
–Throughput scales as your file system grows.
-Provisioned Throughput mode
–You specify the throughput of your file system independent of the amount of data stored.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a mount target?

A

To access your EFS file system in a VPC, you create one or more mount targets in the VPC. A mount target provides an IP address for an NFSv4 endpoint.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How many mount targets can you create in each AZ?

A

You can create one mount target in each Availability Zone in a region.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How do you mount your file systems?

A

You mount your file system using its DNS name, which will resolve to the IP address of the EFS mount target. Format of DNS is
File-system-id.efs.aws-region.amazonaws.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the requirement for using EFS on an on-premises server?

A

When using Amazon EFS with an on-premises server, your on-premises server must have a Linux based operating system.

19
Q

What are EFS Access Points?

A

EFS Access Points simplify how applications are provided access to shared data sets in an EFS file system.

20
Q

True/False. EFS Access Points work together with AWS IAM and enforce an operating system user and group, and a directory for every file system request made through the access point.

A

True.

21
Q

What are components of a file system?

A

-ID
-creation token
-creation time
-file system size in bytes
-number of mount targets created for the file system
-file system state
-mount target

22
Q

What are data consistencies in EFS?

A

-EFS provides the open-after-close consistency semantics that applications expect from NFS.
-Write operations will be durably stored across Availability Zones.
-Applications that perform synchronous data access and perform non-appending writes will have read-after-write consistency for data access.

23
Q

What encryption does EFS support?

A

You can create encrypted file systems. EFS supports encryption in transit and encryption at rest.

24
Q

How do you manage file system accessibility?

A

-Managing file system network accessibility refers to managing the mount targets:
–Creating and deleting mount targets in a VPC
–Updating the mount target configuration

25
Q

True/False. You can create new tags, update values of existing tags, or delete tags associated with a file system.

A

True

26
Q

What is the metered data size of a regular file?

A

-Regular files – the metered data size of a regular file is the logical size of the file rounded to the next 4-KiB increment, except that it may be less for sparse files.
–A sparse file is a file to which data is not written to all positions of the file before its logical size is reached. For a sparse file, if the actual storage used is less than the logical size rounded to the next 4-KiB increment, Amazon EFS reports actual storage used as the metered data size.

27
Q

What is the metered data size of a directory?

A

Directories – the metered data size of a directory is the actual storage used for the directory entries and the data structure that holds them, rounded to the next 4 KiB increment. The metered data size doesn’t include the actual storage used by the file data.

28
Q

What is the metered data size of symbolic links and special files?

A

Symbolic links and special files – the metered data size for these objects is always 4 KiB.

29
Q

True/False. File system deletion is a destructive action that you can undo.

A

False. File system deletion is a destructive action that you CAN’T undo. You lose the file system and any data you have in it, and you can’t restore the data. You should always unmount a file system before you delete it.

30
Q

How can you automatically, efficiently, and securely copy files between two Amazon EFS resources?

A

You can use AWS DataSync to automatically, efficiently, and securely copy files between two Amazon EFS resources, including file systems in different AWS Regions and ones owned by different AWS accounts. Using DataSync to copy data between EFS file systems, you can perform one-time migrations, periodic ingest for distributed workloads, or automate replication for data protection and recovery.

31
Q

How are file systems backed up that are created using Amazon EFS console?

A

File systems created using the Amazon EFS console are automatically backed up daily through AWS Backup with a retention of 35 days. You can also disable automatic backups for your file systems at any time.

32
Q

How can you monitor your EFS file system?

A

Amazon Cloudwatch Metrics can monitor your EFS file system storage usage, including the size in each of the EFS storage classes.

33
Q

How do you mount your EFS file system on your EC2 instance?

A

To mount your EFS file system on your EC2 instance, use the mount helper in the amazon-efs-utils package.

34
Q

How can you mount your EFS file systems on your on-premises data center?

A

You can mount your EFS file systems on your on-premises data center servers when connected to your Amazon VPC with AWS Direct Connect or VPN.

35
Q

How can you automatically mount your file system on an EC2 instance on reboots?

A

You can use fstab to automatically mount your file system using the mount helper whenever the EC2 instance is mounted on reboots.

36
Q

What is lifecycle management and how many policies exist?

A

You can choose from five EFS Lifecycle Management policies (7, 14, 30, 60, or 90 days) to automatically move files into the EFS Infrequent Access (EFS IA) storage class and save up to 85% in cost.

37
Q

How can you monitor your file systems?

A

-Amazon CloudWatch Alarms
-Amazon CloudWatch Logs
-Amazon CloudWatch Events
-AWS CloudTrail Log Monitoring
-Log files on your file system

38
Q

True/False. When you first create the file system, there is only one root directory at /. By default, only the root user (UID 0) has read-write-execute permissions.

A

True

39
Q

True/False. You do not need to specify EC2 security groups for your EC2 instances and security groups for the EFS mount targets associated with the file system.

A

False. You do need to specify EC2 security groups for your EC2 instances and security groups for the EFS mount targets associated with the file system.

40
Q

How can you manage access for EFS?

A

You can use AWS IAM to manage Network File System (NFS) access for Amazon EFS. You can use IAM roles to identify NFS clients with cryptographic security and use IAM policies to manage client-specific permissions.

41
Q

How is EFS priced?

A

-You pay only for the storage used by your file system.
-Costs related to Provisioned Throughput are determined by the throughput values you specify.

42
Q

Performance comparison between EFS, EBS, and S3.

A

EFS: Low, consistent latency, multiple GBs per second throughput.

EBS Provisioned IOPS: Lowest, consistent latency, single GB per second.

S3: Low, for mixed request types, and integration with Cloudfront, multiple GBs per second.

43
Q

Storage comparison between EFS, EBS, and S3.

A

EFS: data stored redundantly across multiple AZs, up to thousands of EC2 instannces from multiple AZs can connect concurrently to a file system, for big data and analytics, for media processing workflows, for content management, for web serving, and for home directories.

EBS Provisioned IOPS: Data are stored redundantly in a single AZ, a single EC2 instannce in a single AZ can connect to a file system, and for boot volumes, for transactional and NoSQL databases, and for data warehousing, and for ETL.

S3: stored redundantly across multiple AZs, one to millions of connections over the web, and for web serving and content management, for media and entertainment, for backups, for big data analytics, and for data lake.