exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 209 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 209
Topic #: 1
[All AWS Certified Developer Associate Questions]

A company has migrated an application to Amazon EC2 instances. Automatic scaling is working well for the application user interface. However, the process to deliver shipping requests to the company's warehouse staff is encountering issues. Duplicate shipping requests are arriving, and some requests are lost or arrive out of order.

The company must avoid duplicate shipping requests and must process the requests in the order that the requests arrive. Requests are never more than 250 KB in size and take 5-10 minutes to process. A developer needs to rearchitect the application to improve the reliability of the delivery and processing of the requests.

What should the developer do to meet these requirements?

  • A. Create an Amazon Kinesis Data Firehose delivery stream to process the requests. Create an Amazon Kinesis data stream. Modify the application to write the requests to the Kinesis data stream.
  • B. Create an AWS Lambda function to process the requests. Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the Lambda function to the SNS topic. Modify the application to write the requests to the SNS topic.
  • C. Create an AWS Lambda function to process the requests. Create an Amazon Simple Queue Service (Amazon SQS) standard queue. Set the SQS queue as an event source for the Lambda function. Modify the application to write the requests to the SQS queue.
  • D. Create an AWS Lambda function to process the requests. Create an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Set the SQS queue as an event source for the Lambda function. Modify the application to write the requests to the SQS queue.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
rcaliandro
1 year, 11 months ago
Selected Answer: D
SQS FIFO queue are suitable for this scenarion given that the requirements say that we have to avoid duplicate and guarantee also the order. Definitely D.
upvoted 2 times
...
MrTee
2 years, 1 month ago
Selected Answer: D
Option D is the best solution because it meets the requirements of avoiding duplicate shipping requests and processing the requests in the order that they arrive. This is achieved by using an Amazon Simple Queue Service (Amazon SQS) FIFO (First-In-First-Out) queue. FIFO queues are designed to ensure that the order in which messages are sent and received is strictly preserved and that each message is delivered once and remains available until a consumer processes and deletes it. By creating an AWS Lambda function to process the requests and setting the SQS FIFO queue as an event source for the Lambda function, the application can write the requests to the SQS queue and the Lambda function will process them in the order that they arrive, without any duplicates. This improves the reliability of the delivery and processing of the requests.
upvoted 2 times
...
Syre
2 years, 1 month ago
Selected Answer: C
This question is tricky, answer is C. Option D suggests using an Amazon SQS FIFO queue to process the requests, which guarantees that the messages are processed in the order in which they are received. However, it does not address the issue of duplicate messages arriving. FIFO queues do not prevent duplicate messages from being sent, but they ensure that they are processed in the order that they are received. To prevent duplicates, the application needs to be modified to implement deduplication logic. Option C suggests using an AWS Lambda function to process the requests and an Amazon SQS standard queue as an event source. With this configuration, the application can enable deduplication on the queue to ensure that messages are not duplicated. Therefore, option C is a better solution than option D for this scenario.
upvoted 1 times
YanisGTR
1 year, 9 months ago
The company must avoid duplicate shipping requests and must process the requests in the order that the requests arrive <<< it's (D) bro pls read question again
upvoted 1 times
...
...
Jay1299
2 years, 2 months ago
Definitely D I was expecting a deduplication ID as well in this option but it is fine since 'FIFO' is mentioned
upvoted 1 times
...
pancman
2 years, 3 months ago
Selected Answer: D
You need an SQS FIFO queue to avoid duplicates. SQS Standard queue can introduce duplicates.
upvoted 1 times
...
A_Q
2 years, 3 months ago
Selected Answer: D
The question is asking "avoid duplicate shipping requests and must process the requests in the order that the requests arrive" which definitely means it's SQS FIFO.
upvoted 1 times
...
Krt5894
2 years, 3 months ago
Selected Answer: D
SQS FIFO. It is D
upvoted 1 times
...
Nosal
2 years, 5 months ago
Selected Answer: D
D is the correct answer
upvoted 3 times
...
k1kavi1
2 years, 6 months ago
Selected Answer: D
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-message-order.html
upvoted 3 times
...
michaldavid
2 years, 6 months ago
Selected Answer: D
We need SQS FIFO for this
upvoted 3 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 ...