What should a solutions architect recommend to meet these requirements?
Increase the size of the EC2 instance to process messages faster.
Use Amazon EventBridge to turn off the EC2 instance when the instance is underutilized.
Migrate the script on the EC2 instance to an AWS Lambda function with the appropriate runtime.
Use AWS Systems Manager Run Command to run the script on demand.
Explanations:
Increasing the EC2 instance size increases operational costs and does not efficiently handle variable workloads. It is not a cost-effective solution for scaling.
Using EventBridge to turn off the instance reduces costs only when the instance is idle, not when demand spikes. It does not support dynamic scaling or reduce costs well.
Migrating to AWS Lambda enables cost-effective, serverless, and scalable processing. Lambda scales automatically with the workload, aligning with cost and scaling needs.
Systems Manager Run Command can run the script on demand but does not provide automated scaling, which is necessary to handle the growing message volume effectively.