An application currently runs in an Auto Scaling group of EC2 instances behind an ALB; the EC2 instances host Docker containers that call a MySQL database on separate EC2 instances. You need to convert the application to a serverless architecture while making the fewest changes. Which option accomplishes that with minimal changes?
Choose an answer
Tap an option to check your answer.
Correct answer: Replace the containers running on EC2 instances with AWS Fargate. Replace the MySQL database with Amazon Aurora Serverless v2 (MySQL-compatible)..
Why this is the answer
The correct option minimizes changes by keeping the containerized application architecture and the relational database. AWS Fargate allows you to run containers without managing EC2 instances, providing a serverless compute experience for containers. Amazon Aurora Serverless v2 (MySQL-compatible) offers a serverless relational database that is highly scalable and compatible with the existing MySQL database, requiring minimal application code changes. Replacing containers with AWS Lambda functions would necessitate significant refactoring of the application code to fit the Lambda event-driven model, which is not minimal. Replacing the MySQL database with Amazon DynamoDB would require substantial changes to the application's data access layer due to the shift from a relational to a NoSQL database model.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed