SAA-C03 practice question 33 of 35

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.

Full set: 972 questions

Domain Design High-Performing Architectures

Answer options
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. Correct answer
Correct Answer:
D. Use Amazon Elastic Kubernetes Service (Amazon EKS) with AWS Fargate for compute and Amazon DocumentDB (with MongoDB compatibility) for data storage.
Explanation

The solution must accommodate an existing Kubernetes application using MongoDB without code or deployment changes, while minimizing operational overhead.
1. Compute: Amazon Elastic Kubernetes Service (Amazon EKS) is the appropriate managed service for migrating Kubernetes workloads, satisfying the "no deployment method changes" requirement. Using AWS Fargate with EKS provides serverless compute, which abstracts away server management and directly addresses the need to minimize operational overhead.
2. Database: Amazon DocumentDB is a managed database service with MongoDB compatibility. This allows the application to connect to the new database without requiring code changes, fulfilling a critical constraint. As a fully managed service, it also minimizes database administration overhead.

Why Incorrect

A. Amazon ECS is not Kubernetes, which would require changing deployment methods. Self-hosting MongoDB on EC2 increases, rather than minimizes, operational overhead.
B. Amazon ECS is not Kubernetes-compatible. Amazon DynamoDB is not MongoDB-compatible, which would force code changes, violating a core requirement.
C. Amazon DynamoDB is not MongoDB-compatible, which would require forbidden code changes. Using EC2 worker nodes also incurs more operational overhead than the serverless Fargate option.

References

1. Amazon EKS: "Amazon EKS is a managed service that you can use to run Kubernetes on AWS without needing to install

operate

and maintain your own Kubernetes control plane or nodes."

Source: AWS Documentation

"What is Amazon EKS?"

Introduction.

2. AWS Fargate with Amazon EKS: "AWS Fargate is a serverless compute engine... With Fargate

you don't need to provision and manage servers... This makes it easier to build and operate your containerized applications."

Source: AWS Documentation

"AWS Fargate"

Introduction.

3. Amazon DocumentDB (with MongoDB compatibility): "Amazon DocumentDB is a scalable

highly durable

and fully managed database service for operating mission-critical MongoDB workloads... Amazon DocumentDB is designed to be compatible with your existing MongoDB applications... using your existing MongoDB drivers and tools."

Source: AWS Documentation

"What Is Amazon DocumentDB (with MongoDB Compatibility)?"

Introduction.

4. Comparing EKS Launch Types: "With AWS Fargate

the infrastructure that runs your containers is managed for you. You don't have to provision

patch

or scale groups of virtual machines." This contrasts with the EC2 launch type where the customer is responsible for managing the nodes.

Source: AWS Documentation

"AWS Fargate launch type"

Amazon EKS User Guide.

Scroll to Top