Topic 1 Question 316
A company uses an Amazon EC2 instance to run a script to poll for and process messages in an Amazon Simple Queue Service (Amazon SQS) queue. The company wants to reduce operational costs while maintaining its ability to process a growing number of messages that are added to the queue.
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.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: C
By migrating the script to AWS Lambda, the company can take advantage of the auto-scaling feature of the service. AWS Lambda will automatically scale resources to match the size of the workload. This means that the company will not have to worry about provisioning or managing instances as the number of messages increases, resulting in lower operational costs
👍 5kpato872023/02/18 - 正解だと思う選択肢: C
It Should be C. Lambda allows you to execute code without provisioning or managing servers, so it is ideal for running scripts that poll for and process messages in an Amazon SQS queue. The scaling of the Lambda function is automatic, and you only pay for the actual time it takes to process the messages.
👍 3zTopic2023/02/17 - 正解だと思う選択肢: D
To reduce the operational overhead, it should be: D. Use AWS Systems Manager Run Command to run the script on demand.
👍 2Bhawesh2023/02/17
シャッフルモード