Free AWS Certified Solutions Architect Associate SAA-C03 Practice Question
Using AWS Fargate over Amazon EC2 can reduce costs when you have a highly variable workload with sporadic spikes of activity, since you only pay for the compute provisioned per container.
Fargate is a serverless compute engine for containers that works with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes Service (EKS). With Fargate, there is no need to manage servers or clusters of Amazon EC2 instances, as it automatically manages the task execution. This can lead to cost savings for sporadic or unpredictable workloads because you pay per container for the exact amount of vCPU and memory resources that your containerized application requests, removing the need to over-provision and potentially waste resources.