
Answer-first summary for fast verification
Answer: Create a queue for alarm notifications and a queue for information notifications. Update the application to collect messages from the alarm notifications queue first.
Amazon SQS does not natively support message prioritization within a single queue. To prioritize certain types of messages over others, you should use separate queues for each priority level and configure your consumer application to poll the higher priority queue before the lower priority one.
Author: Ritesh Yadav
Ultimate access to all questions.
Question #29
A company has an application that collects notifications from thousands of alarm systems. The notifications include alarm notifications and information notifications. The information notifications include the system arming processes, disarming processes, and sensor status.
All notifications are kept as messages in an Amazon Simple Queue Service (Amazon SQS) queue. Amazon EC2 instances that are in an Auto Scaling group process the messages. A CloudOps engineer needs to implement a solution that prioritizes alarm notifications over information notifications.
Which solution will meet these requirements?
A
Adjust the Auto Scaling group to scale faster when a high number of messages is in the queue.
B
Use the Amazon Simple Notification Service (Amazon SNS) fanout feature with Amazon SQS to send the notifications in parallel to all the EC2 instances.
C
Add an Amazon DynamoDB stream to accelerate the message processing.
D
Create a queue for alarm notifications and a queue for information notifications. Update the application to collect messages from the alarm notifications queue first.
No comments yet.