You plan to run a Jenkins service requiring Amazon EFS as a shared, persistent storage attached to an Amazon ECS cluster and using AWS Fargate.
What two statements are true in this context? (Select TWO).
Click on the arrows to vote for the correct answer
A. B. C. D. E.Correct Answers: B, D.
You must configure your container instance AMI to mount the Amazon EFS file system before the Docker daemon starts.
When specifying Amazon EFS volumes in tasks using the Fargate launch type, Fargate creates a supervisor container responsible for managing the Amazon EFS volume.
The supervisor container uses a small amount of the task's memory.
Incorrect Answers:
Option A is incorrect because the host and sourcePath parameters are not supported for Fargate tasks.
Option C is incorrect because for tasks using the Fargate launch type, Amazon EFS file system support was added when using platform version 1.4.0 or later.
Option E is incorrect because the supervisor container is visible when querying the task metadata version 4 endpoint.
But it is not visible in CloudWatch Container Insights.
References:
https://amzn.to/2WYRtlF https://amzn.to/3c8cezISure, I'd be happy to explain the two correct statements in this scenario!
First, let's review some basic concepts related to the components mentioned in the question:
Now, let's examine each answer option and determine which ones are true:
A. You define the host and sourcePath parameters in the task definition. This statement is true. In order to mount an Amazon EFS file system as a shared, persistent storage volume in an ECS task running on Fargate, you need to include the appropriate volume configuration in the task definition. Specifically, you need to specify the host and sourcePath parameters for the volume, as shown in the following example:
json{ "name": "efs-volume", "host": { "sourcePath": "/mnt/efs" } }
B. You mount the Amazon EFS file system before the Docker daemon starts. This statement is false. When using Fargate, you do not have direct access to the underlying EC2 instances and cannot mount the EFS file system before the Docker daemon starts. Instead, you must include the appropriate mount commands in the container definition of your ECS task, as shown in the following example:
json{ "name": "my-container", "image": "my-image", "mountPoints": [ { "sourceVolume": "efs-volume", "containerPath": "/var/www/html" } ] }
C. Amazon EFS file system support relies on platform version 1.3.0 or later. This statement is true. In order to use EFS file systems with ECS on Fargate, you must use platform version 1.3.0 or later. This platform version includes the necessary support for mounting EFS file systems in Fargate tasks.
D. The supervisor container is responsible for managing the Amazon EFS volume. This statement is false. There is no supervisor container in Fargate tasks, as Fargate is a serverless compute engine that does not require you to manage the underlying infrastructure. Instead, you can use the appropriate task definition and container definition settings to specify how to mount and manage the EFS file system.
E. The supervisor container is visible in CloudWatch Container Insights. This statement is false. There is no supervisor container in Fargate tasks, so there is no supervisor container to be visible in CloudWatch Container Insights. However, you can use Container Insights to monitor the performance and resource utilization of your Fargate tasks and containers, including those that use EFS file systems as shared storage.
Therefore, the two statements that are true in this context are:
A. You define the host and sourcePath parameters in the task definition. C. Amazon EFS file system support relies on platform version 1.3.0 or later.