Q20 — AWS SAA-C03 Ch.16

Question 20 of 100 | ← Chapter 16

Q1220. A solutions architect needs to design a serverless architecture to run an application that is packaged as a Docker container image. The container requires 50 GB of available storage for temporary files.Which solution will meet these requirements?

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 that has an Amazon Elastic File System (Amazon EFS) volume. Use the task definition to create an ECS service.

Explanation

ACC.To meet the requirement of running a serverless architecture for an application packaged as a Docker container image that requires 50 GB of available storage for temporary files, the most suitable solution 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 that has an Amazon Elastic File System (Amazon EFS) volume. Use the task definition to create an ECS service.Analysis:AWS Fargate with Amazon EFS:Serverless Architecture: AWS Fargate is a serverless compute engine for containers that works with both Amazon ECS and Amazon Elastic Kubernetes Service (Amazon EKS). It allows you to run containers without managing servers or clusters.Storage Requirements: Amazon EFS provides scalable file storage for use with AWS Cloud services and on-premises resources. It is well-suited for applications that require shared file storage or large amounts of temporary storage. By attaching an EFS volume to the task definition in ECS, you can provide the container with the required 50 GB of storage for temporary files.Configuration: You can create an ECS cluster using the Fargate launch type, define a task specification that includes the container image and the EFS volume, and then create an ECS service to run the task.AWS App Runner (Option A):Limitations: While AWS App Runner is a fully managed container application service that makes it easy to deploy web applications and APIs from container images, it does not provide direct configuration options for ephemeral storage in the same way that ECS with Fargate and EFS does. App Runner is more focused on simplifying the deployment and scaling of containerized applications rather than providing fine-grained control over storage.AWS Lambda with Docker Container Image (Option B):Inapplicability: AWS Lambda supports running container images, but it is not designed for applications that require large amounts of storage for temporary files. Lambda functions are intended for short-lived, event- driven workloads and have limitations on the amount of storage and execution time.Amazon ECS with Amazon EC2 Launch Type (Option D):Non-Serverless: While this option would technically work by attaching an Amazon EBS volume to the EC2 instances in the ECS cluster, it does not meet the requirement of a serverless architecture. The EC2 launch type requires you to manage the underlying EC2 instances, which goes against the serverless principle of not managing servers.In summary, using Amazon ECS with the AWS Fargate launch type and attaching an Amazon EFS volume to the task definition is the most suitable solution for meeting the requirement of running a serverless architecture for a Docker container image that requires 50 GB of available storage for temporary files.