Simple Queue Service Quiz
Your application provides data transformation services. Files containing data to be transformed are first uploaded to Amazon S3 and then transformed by a fleet of Spot EC2 Instances. Files submitted by your premium customers must be transformed with the highest priority. How would you implement such a system?
A. Use a DynamoDB table with an attribute defining the priority level. Transformation instances will scan the table for tasks, sorting the results bypriority level.
B. Use Route 53 latency-based routing to send high priority tasks to the closesttransformation instances.
C. Use two SQS queues, one for high priority messages, the other for defaultpriority. Transformation instances first poll the high priority queue; if there is nomessage, they poll the default priority queue.
D. Use a single SQS queue. Each message contains the priority level. Transformation instances poll high-priority messages first.
C. Use two SQS queues, one for high priority messages, the other for defaultpriority. Transformation instances first poll the high priority queue; if there is nomessage, they poll the default priority queue.
The best way is to use 2 SQS queues. Each queue can be polled separately. The high priority queue can be polled first.
For more information on AWS SQS, please refer to the link below:
https://aws.amazon.com/sqs/