AWS Certified Solutions Architect Professional SAP-C02 Practice Question
An e-commerce company runs several containerized microservices as long-running tasks on Amazon ECS. The tasks are scheduled on a cluster of c6i.large instances that belong to an Auto Scaling group. Traffic peaks for about 3 hours each evening, so the operations team keeps enough EC2 capacity online to cover the peak and spends time every month patching AMIs and resizing instances. The company wants to modernize the workload so that it removes the need to provision and patch EC2 cluster instances, bills only for the vCPU and memory resources consumed while tasks are running, and does not require rebuilding container images or changing application code. Which approach will achieve these goals with the LEAST operational effort?
Keep the existing ECS cluster but enable predictive scaling on the Auto Scaling group and purchase 3-year Compute Savings Plans to lower EC2 costs.
Rebuild each microservice as an AWS Lambda function deployed from the current container images and expose them through Amazon API Gateway HTTP APIs.
Create an Amazon EKS cluster with managed node groups and migrate the services to Kubernetes Deployments that use the Cluster Autoscaler for scaling.
Update the ECS services to use an AWS Fargate and Fargate Spot capacity provider so that all tasks run on serverless container capacity instead of the Auto Scaling group.
Switching the existing ECS services to run on AWS Fargate (and optionally Fargate Spot) meets every stated objective. Fargate is a serverless compute engine for containers, so there are no EC2 hosts to provision, patch, or scale. Billing is per-second for the vCPU and memory resources that each task consumes, eliminating the need to keep idle EC2 instances for the daily peak. Because the services already run on Amazon ECS, the containers can be launched on Fargate without changing the application code or rebuilding the images-only the task definition and capacity-provider settings must be updated. Re-packaging the services as AWS Lambda functions would remove host management but requires significant code and architectural changes. Migrating to Amazon EKS with managed node groups still leaves responsibility for patching worker nodes. Adding predictive scaling and Savings Plans reduces cost but does not eliminate EC2 cluster management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is AWS Fargate's role in running ECS tasks serverlessly?
Open an interactive chat with Bash
How do Fargate and Fargate Spot differ in cost and usage scenarios?
Open an interactive chat with Bash
What changes are required to migrate ECS tasks from EC2 to Fargate?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .