You run a website which hosts videos and you have two types of members, premium fee paying members and free members. All videos uploaded by both your premium members and free members are processed by a fleet of EC2 instances which will poll SQS as videos are uploaded. However you need to ensure that your premium fee paying members videos have a higher priority than your free members. How do you design SQS?
A. SQS allows you to set priorities on individual items within the queue, so simply set the fee paying members at a higher priority than your free members.
B. Create two SQS queues, one for premium members and one for free members. Program your EC2 fleet to poll the premium queue first and if empty, to then poll your free members SQS queue.
C. SQS would not be suitable for this scenario. It would be much better to use SNS to encode the videos.
Answer: B. Create two SQS queues, one for premium members and one for free members. Program your EC2 fleet to poll the premium queue first and if empty, to then poll your free members SQS queue.
You might also like to view...
You cannot ________ Access reports, macros, or modules to an Excel workbook
Fill in the blank(s) with correct word
The Group Policy setting for the Windows Store that says Allow Store to install apps on Windows To Go workspaces applies to the user or machine?
What will be an ideal response?
Which of the following is true of LibreOffice?
A. It cannot work with Microsoft Office files B. It is expensive C. It can be challenging to find support because it’s open-source application D. It has a very limited user base
Given the following function prototype: ? int test(float, char); ? which of the following statements is valid?
A. cout << test(12, &); B. cout << test("12.0", '&'); C. int u = test(5.0, '*'); D. cout << test('12', '&');