AWS Fargate uses AWSVPC mode which assigns each task its own elastic network interface (ENI). This provides task-level isolation and allows tasks to have their own IP addresses.
To scale Fargate tasks automatically, you configure AWS Auto Scaling with ECS Service Auto Scaling policies that respond to CloudWatch metrics like CPU usage.
The Execution Role is specified in the task definition and grants permissions to pull images from ECR and send logs to CloudWatch Logs.
Fargate requires specific CPU and memory combinations. For 2 vCPU, valid memory values include 4 GB (4096 MB). Option B matches this.
Using AWS Secrets Manager to store and reference sensitive data in the task definition is the best practice. It avoids hardcoding and keeps secrets encrypted and managed.