Which solutions should a solutions architect recommend to optimize costs?
(Choose two.)
Migrate the front end of the website to an Amazon S3 bucket Deploy an Amazon CloudFront distribution. Set the S3 bucket as the distribution’s origin.
Deploy an Amazon CloudFront distribution. Configure the distribution to use the ALB endpoint as the origin.
Migrate the front-end services to the ECS cluster. Increase the minimum number of nodes in the Auto Scaling group.
Turn on Auto Scaling for the front-end EC2 instances. Configure a new listener rule on the ALB to serve the front end.
Migrate the backend of the website to an Amazon S3 bucket. Deploy an Amazon CloudFront distribution. Set the S3 bucket as the distribution’s origin.
Explanations:
Migrating the front end to an S3 bucket and using CloudFront as a distribution reduces the need for EC2 instances to serve static content, optimizing costs.
Using CloudFront with the ALB endpoint as the origin improves content delivery performance and reduces direct load on EC2 instances, optimizing costs.
Moving the front end to ECS and increasing EC2 nodes will increase complexity and cost instead of reducing them.
While auto-scaling the front-end EC2 instances can help with scaling, it doesn’t necessarily optimize costs for static content which could be served more cheaply from S3.
Migrating the backend to S3 doesn’t make sense as S3 is designed for static content, not dynamic backend services. It would not help optimize backend infrastructure.