exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 229 discussion

An online photo application lets users upload photos and perform image editing operations. The application offers two classes of service: free and paid. Photos submitted by paid users are processed before those submitted by free users. Photos are uploaded to Amazon S3 and the job information is sent to Amazon SQS.
Which configuration should a solutions architect recommend?

  • A. Use one SQS FIFO queue. Assign a higher priority to the paid photos so they are processed first.
  • B. Use two SQS FIFO queues: one for paid and one for free. Set the free queue to use short polling and the paid queue to use long polling.
  • C. Use two SQS standard queues: one for paid and one for free. Configure Amazon EC2 instances to prioritize polling for the paid queue over the free queue.
  • D. Use one SQS standard queue. Set the visibility timeout of the paid photos to zero. Configure Amazon EC2 instances to prioritize visibility settings so paid photos are processed first.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DarthYoda
Highly Voted 3 years, 9 months ago
C, check this out: https://acloud.guru/forums/guru-of-the-week/discussion/-L7Be8rOao3InQxdQcXj/
upvoted 44 times
...
FeatheredandDeadly
Highly Voted 3 years, 9 months ago
Answer is C. https://aws.amazon.com/sqs/features/
upvoted 30 times
noahsark
3 years, 8 months ago
agree - as per AWS - Priority: Use separate queues to provide prioritization of work.
upvoted 4 times
...
...
Uzbekistan
Most Recent 1 year, 3 months ago
Selected Answer: A
A. Use one SQS FIFO queue. Assign a higher priority to the paid photos so they are processed first. Using a single SQS FIFO (First-In-First-Out) queue allows for ordered processing of messages, ensuring that the messages are processed in the order they were sent. By assigning a higher priority to the paid photos, you can ensure that they are processed before the free photos.
upvoted 1 times
...
AmbrishK
2 years, 4 months ago
Selected Answer: A
Answer from ChatGPT Option A. Use one SQS FIFO queue. Assign a higher priority to the paid photos so they are processed first. Using one Amazon SQS FIFO queue with message prioritization is the recommended approach for this scenario. The paid photo messages can be assigned a higher priority than free photo messages so they are processed first. FIFO queues ensure that messages are processed in the order they are received and are a good fit for scenarios where message sequencing and deduplication is important. This approach also simplifies the configuration and reduces costs by using a single queue.
upvoted 1 times
...
zailsingh
2 years, 4 months ago
In standard Q messages can be processed more than once so how thats correct?
upvoted 1 times
...
alexsanteeno
2 years, 5 months ago
Selected Answer: A
https://aws.amazon.com/sqs/features/
upvoted 1 times
...
queen101
2 years, 10 months ago
CCCCCCCCCCCCCCCC
upvoted 1 times
...
marklovesaws143
2 years, 11 months ago
Selected Answer: C
CCCCCCCCCCCCCCCCC
upvoted 1 times
...
Salem_Express
3 years, 5 months ago
Selected Answer: C
message prioritise is not an option in SQS.
upvoted 2 times
...
EmeraldTech
3 years, 6 months ago
The answer is C. Priority: Use separate queues to provide prioritization of work. https://aws.amazon.com/sqs/features/
upvoted 3 times
...
weilun_tann
3 years, 6 months ago
C - https://aws.amazon.com/sqs/features/#:~:text=Priority%3A%20Use%20separate%20queues%20to%20provide%20prioritization%20of%20work.
upvoted 1 times
...
jj22222
3 years, 6 months ago
Selected Answer: C
cccc- 2 queues and prioritize paid
upvoted 1 times
...
rav009
3 years, 6 months ago
B is wrong, there is no short polling... Ans is C
upvoted 1 times
ChiefArch
2 years, 10 months ago
False, there is indeed short polling: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-short-and-long-polling.html
upvoted 1 times
...
envest
3 years, 5 months ago
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-short-and-long-polling.html
upvoted 2 times
...
...
kow4a9
3 years, 7 months ago
Selected Answer: C
I think its c
upvoted 2 times
...
gargaditya
3 years, 7 months ago
I think B is the answer. Priority: Use separate queues to provide prioritization of work. 2 different FIFO queues would logically ensure that those who upload first get the output first. A is out because we do not have priority as a configurable property. Further, long polling would help: When a consumer requests messages from the queue, it can optionally “wait” for messages to arrive if there are none in the queue. LongPolling decreases the number of API callsmade to SQS while increasing the efficiency and latency of your application. In D,just one queue will not help separate premium content. Settign visibility timeout to 0 would likely result in duplicates as message will not be processed so fast and SQS will resend. Between B and C, perhaps B looks like better choice.
upvoted 2 times
...
RagnarLodbrok
3 years, 7 months ago
Answers are D and E
upvoted 1 times
...
K_Rupesh
3 years, 7 months ago
'C' is the correct answer, C. Use two SQS standard queues: one for paid and one for free. Configure Amazon EC2 instances to prioritize polling for the paid queue over the free queue. Explanation AWS recommend using separate queues when you need to provide prioritization of work. The logic can then be implemented at the application layer to prioritize the queue for the paid photos over the queue for the free photos.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...