DOP-C02 · Question #453
A company runs an application on an Amazon Elastic Container Service (Amazon ECS) service by using the AWS Fargate launch type. The application consumes messages from an Amazon Simple Queue Service…
The correct answer is A. Register the ECS service as a scalable target in AWS Application Auto Scaling. Configure a. AWS recommends Application Auto Scaling for ECS services to dynamically adjust the number of running tasks based on Amazon SQS queue metrics such as ApproximateNumberOfMessagesVisible. By using target tracking scaling policies, ECS on Fargate scales automatically when the queue…
Question
A company runs an application on an Amazon Elastic Container Service (Amazon ECS) service by using the AWS Fargate launch type. The application consumes messages from an Amazon Simple Queue Service (Amazon SQS) queue. The application can take several minutes to process each message from the queue. When the application processes a message, the application reads a file from an Amazon S3 bucket and processes the data in the file. The application writes the processed output to a second S3 bucket. The company uses Amazon CloudWatch Logs to monitor processing errors and to ensure that the application processes messages successfully. The SQS queue typically receives a low volume of messages. However, occasionally the queue receives higher volumes of messages. A DevOps engineer needs to implement a solution to reduce the processing time of message bursts. Which solution will meet this requirement in the MOST cost-effective way?
Options
- ARegister the ECS service as a scalable target in AWS Application Auto Scaling. Configure a
- BIncrease the maximum number of messages that Amazon SQS requests to batch messages
- CSend messages to an Amazon EventBridge event bus instead of the SQS queue. Replace the
- DCreate an Auto Scaling group of EC2 instances. Create a capacity provider in the ECS cluster by
How the community answered
(23 responses)- A78% (18)
- B4% (1)
- C13% (3)
- D4% (1)
Explanation
AWS recommends Application Auto Scaling for ECS services to dynamically adjust the number of running tasks based on Amazon SQS queue metrics such as ApproximateNumberOfMessagesVisible. By using target tracking scaling policies, ECS on Fargate scales automatically when the queue backlog grows and scales down when traffic decreases -- a fully managed, cost-efficient solution (see ECS Service Auto Scaling Developer
Topics
Community Discussion
No community discussion yet for this question.