
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company runs a containerized application on a Kubernetes cluster in an on-premises data center. The company is using a MongoDB database for data storage. The company wants to migrate some of these environments to AWS, but no code changes or deployment method changes are possible at this time. The company needs a solution that minimizes operational overhead.
Which solution meets these requirements?
A
Use Amazon Elastic Container Service (Amazon ECS) with Amazon EC2 worker nodes for compute and MongoDB on EC2 for data storage.
B
Use Amazon Elastic Container Service (Amazon ECS) with AWS Fargate for compute and Amazon DynamoDB for data storage
C
Use Amazon Elastic Kubernetes Service (Amazon EKS) with Amazon EC2 worker nodes for compute and Amazon DynamoDB for data storage.
D
Use Amazon Elastic Kubernetes Service (Amazon EKS) with AWS Fargate for compute and Amazon DocumentDB (with MongoDB compatibility) for data storage.
Explanation:
Correct Answer: D
Why Option D is correct:
No code changes or deployment method changes: The company is currently using Kubernetes and MongoDB. Amazon EKS (Elastic Kubernetes Service) is AWS's managed Kubernetes service, which maintains compatibility with existing Kubernetes deployments. This means the company can migrate their containerized application without changing their deployment methods.
AWS Fargate for compute: Fargate is a serverless compute engine for containers that eliminates the need to manage EC2 instances. This minimizes operational overhead as AWS handles the underlying infrastructure.
Amazon DocumentDB (with MongoDB compatibility): DocumentDB is AWS's managed document database service that is MongoDB-compatible. This allows the company to continue using MongoDB APIs and drivers without code changes, while AWS manages the database operations, reducing operational overhead.
Why other options are incorrect:
Option A: While ECS with EC2 worker nodes provides container orchestration, it requires managing EC2 instances (increasing operational overhead) and running MongoDB on EC2 requires database administration work.
Option B: ECS with Fargate reduces operational overhead for compute, but DynamoDB is a NoSQL key-value database, not MongoDB-compatible. This would require code changes to migrate from MongoDB to DynamoDB.
Option C: EKS with EC2 worker nodes maintains Kubernetes compatibility but requires managing EC2 instances (increasing operational overhead), and DynamoDB would require code changes from MongoDB.
Key AWS Services:
This solution provides the path of least resistance for migration while minimizing operational overhead through managed services.