Q61 — AWS SAA-C03 Ch.15
Question 61 of 100 | ← Chapter 15
Q1161. A company plans to deploy containerized microservices in the AWS Cloud. The containers must mount a persistent file store that the company can manage by using OS-level permissions. The company requires fully managed services to host the containers and file store.Which solution will meet these requirements?
- A. Use AWS Lambda functions and an Amazon API Gateway REST API to handle the microservices. Use Amazon S3 buckets for storage.
- B. Use Amazon EC2 instances to host the microservices. Use Amazon Elastic Block Store (Amazon EBS) volumes for storage.
- C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage. ✓
- D. Use Amazon Elastic Container Service(Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon EC2 instance that runs a dedicated file store for storage.
Correct Answer: C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage.
Explanation
To meet the requirements of deploying containerized microservices in AWS with a persistent file store that supports OS-level permissions and uses fully managed services, the best solution is:Key Requirements:Containerized microservices (Docker containers).Persistent file store with OS-level permissions (e.g., POSIX permissions).Fully managed services (no manual server management).Option Analysis:A. Use AWS Lambda functions and an Amazon API Gateway REST API to handle the microservices. Use Amazon S3 buckets for storage.AWS Lambda is for serverless functions, not containerized microservices. Amazon S3 is an object storage service (does not support OS-level permissions or file system mounts). Does not meet the containerized or file store requirements. B. Use Amazon EC2 instances to host the microservices. Use Amazon Elastic Block Store (Amazon EBS) volumes for storage.Amazon EC2 is not a fully managed service (requires server management). EBS is block storage (not a shared file system) and does not support OS-level permissions across multiple containers.Does not meet the fully managed requirement.C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage. Amazon ECS on AWS Fargate is a fully managed container orchestration service (no server management). Amazon EFS is a fully managed, scalable file system that supports OS-level permissions (POSIX) and can be mounted by multiple containers.Best fit for the requirements.D. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon EC2 instance that runs a dedicated file store for storage. Amazon ECS on Fargate is fully managed, but running a dedicated file store on EC2 is not (requires server management).Not fully managed (violates the requirement).Correct Answer:C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage.This solution provides:Fully managed container orchestration (ECS on Fargate).Fully managed, POSIX-compliant file storage (EFS).No manual server management.Final Answer:C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage. The solution that will meet the requirements for deploying containerized microservices with a persistent file store managed using OS-level permissions is:C. Use Amazon Elastic Container Service (Amazon ECS) containers on AWS Fargate to handle the microservices. Use an Amazon Elastic File System (Amazon EFS) file system for storage.Amazon ECS on AWS Fargate: This is a fully managed service for running containers without needing to manage the underlying infrastructure. It simplifies deployment and scaling of containerized microservices. Amazon EFS: This service provides a fully managed, scalable, and elastic file system that can be mounted by multiple ECS tasks. It supports NFS access, allowing you to manage file permissions at the OS level. OS-level Permissions: EFS allows you to set file permissions similar to a traditional file system, meeting the company's requirement for managing access.This combination effectively provides a managed solution for both container orchestration and persistent storage.