nerdexam
Amazon

DOP-C02 · Question #350

A company runs an application in an Auto Scaling group of Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run Docker containers that make requests to a MySQL database

The correct answer is B. Replace the containers that run on EC2 instances with AWS Fargate. Replace the MySQL. This solution achieves a serverless architecture with the fewest changes. By moving the application containers from EC2 instances to AWS Fargate, the DevOps engineer eliminates the need to manage EC2 instances, creating a serverless, containerized solution. Replacing the MySQL da

Submitted by devops_kid· Mar 6, 2026Resilient Cloud Solutions

Question

A company runs an application in an Auto Scaling group of Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run Docker containers that make requests to a MySQL database that runs on separate EC2 instances. A DevOps engineer needs to update the application to use a serverless architecture. Which solution will meet this requirement with the FEWEST changes?

Options

  • AReplace the containers that run on EC2 instances and the ALB with AWS Lambda functions.
  • BReplace the containers that run on EC2 instances with AWS Fargate. Replace the MySQL
  • CReplace the containers that run on EC2 instances and the ALB with AWS Lambda functions.
  • DReplace the containers that run on EC2 instances with AWS Fargate. Replace the MySQL

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    72% (18)
  • C
    16% (4)
  • D
    8% (2)

Explanation

This solution achieves a serverless architecture with the fewest changes. By moving the application containers from EC2 instances to AWS Fargate, the DevOps engineer eliminates the need to manage EC2 instances, creating a serverless, containerized solution. Replacing the MySQL database with Amazon Aurora Serverless v2 (which is MySQL-compatible) allows the application to continue using a relational database without requiring extensive modifications to the database layer or schema. This approach preserves compatibility with the existing MySQL database while leveraging serverless benefits.

Topics

#Serverless Migration#AWS Fargate#Amazon RDS#Application Modernization

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice