Q76 — AWS SAA-C03 Ch.10

Question 76 of 100 | ← Chapter 10

Q676. A solutions architect needs to design the architecture for an application that a vendor provides as a Docker container image.The container needs 50 GB of storage available for temporary files.The infrastructure must be serverless.Which solution meets these requirements with the LEAST operational overhead?

Correct Answer: C. Create an Amazon Elastic Container Service(Amazon ECS) cluster that uses the AWS Fargate launch type. Create a task definition for the container image with an Amazon Elastic File System (Amazon EFS) volume. Create a service with that task definition

Explanation

To meet the requirements of providing 50 GB of storage for temporary files for a Docker container image, while also ensuring a serverless infrastructure with the least operational overhead, the solution that would best fit these criteria is:C. Create an Amazon Elastic Container Service (Amazon ECS) cluster that uses the AWS Fargate launch type. Create a task definition for the container image with an Amazon Elastic File System (Amazon EFS) volume. Create a service with that task definition.Here's the rationale behind this solution:Option C: Create an Amazon Elastic Container Service (Amazon ECS) cluster that uses the AWS Fargate launch type. Create a task definition for the container image with an Amazon Elastic File System (Amazon EFS) volume. Create a service with that task definition.AWS Fargate is a serverless compute engine for containers that eliminates the need to manage the underlying infrastructure. By using Fargate, you can deploy and run containers without provisioning or managing servers.In this solution, you would create an Amazon ECS cluster using the AWS Fargate launch type. You would then define a task definition for the Docker container image and include an Amazon EFS volume, which can provide the required 50 GB of storage for temporary files. Finally, you would create a service with that task definition to ensure the container is continuously running.This solution offers a serverless infrastructure with the least operational overhead because you don't need to manage any servers or manually provision storage. AWS Fargate takes care of the underlying infrastructure, and Amazon EFS provides scalable and shared file storage that can be mounted to the container as needed.Option A: Create an AWS Lambda function that uses the Docker container image with an Amazon S3 mounted volume that has more than 50 GB of space.While AWS Lambda can execute code in response to events and supports Docker container images, it is primarily designed for short-lived functions rather than long-running containerized applications. It doesn't provide a straightforward way to allocate a specific amount of storage for temporary files. Although you can mount an Amazon S3 bucket as storage, it may not be the most efficient or suitable solution for temporary files.Option B: Create an AWS Lambda function that uses the Docker container image with an Amazon Elastic Block Store (Amazon EBS) volume that has more than 50 GB of space. Similar to Option A, AWS Lambda is not the ideal choice for long-running containerized applications. While you can attach an Amazon EBS volume to an EC2 instance running the Lambda function, it introduces unnecessary complexity and operational overhead compared to a serverless container service like AWS Fargate.Option D: Create an Amazon Elastic Container Service (Amazon ECS) cluster that uses the Amazon EC2 launch type with an Amazon Elastic Block Store (Amazon EBS) volume that has more than 50 GB of space. Create a task definition for the container image. Create a service with that task definition. Using the EC2 launch type for Amazon ECS introduces server management and maintenance overhead, which goes against the requirement of a serverless infrastructure with low operational overhead. Additionally, managing an Amazon EBS volume manually adds complexity and is not as scalable or cost- effective as using Amazon EFS.Therefore, the most suitable solution that meets the requirements with the least operational overhead is to create an Amazon Elastic Container Service (Amazon ECS) cluster that uses the AWS Fargate launch type. You would create a task definition for the Docker container image with an Amazon Elastic File System (Amazon EFS) volume and create a service with that task definition (Option C). This solution provides a serverless infrastructure, eliminates the need for manual server management, and offers scalable and shared file storage for the temporary files.