Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 380 discussion

A company has a solution that analyzes weather data from thousands of weather stations. The weather stations send the data over an Amazon API Gateway REST API that has an AWS Lambda function integration. The Lambda function calls a third-party service for data pre-processing. The third-party service gets overloaded and fails the pre-processing, causing a loss of data.

A solutions architect must improve the resiliency of the solution. The solutions architect must ensure that no data is lost and that data can be processed later if failures occur.

What should the solutions architect do to meet these requirements?

  • A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure the queue as the dead-letter queue for the API.
  • B. Create two Amazon Simple Queue Service (Amazon SQS) queues: a primary queue and a secondary queue. Configure the secondary queue as the dead-letter queue for the primary queue. Update the API to use a new integration to the primary queue. Configure the Lambda function as the invocation target for the primary queue.
  • C. Create two Amazon EventBridge event buses: a primary event bus and a secondary event bus. Update the API to use a new integration to the primary event bus. Configure an EventBridge rule to react to all events on the primary event bus. Specify the Lambda function as the target of the rule. Configure the secondary event bus as the failure destination for the Lambda function.
  • D. Create a custom Amazon EventBridge event bus. Configure the event bus as the failure destination for the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
heatblur
Highly Voted 1 year ago
Selected Answer: B
B is the best solution. It uses two Amazon SQS queues to ensure that incoming data is not lost and can be processed later in case of failures. The primary queue acts as the initial landing point for data from the API Gateway, and the secondary queue serves as a dead-letter queue, capturing data that could not be processed due to third-party service failures or other issues. This setup maintains data integrity and allows for later processing, effectively improving the solution's resiliency.
upvoted 7 times
...
AzureDP900
Most Recent 1 week, 2 days ago
B is right By creating two Amazon SQS queues (primary and secondary) and configuring the secondary queue as a dead-letter queue for the primary queue, you can ensure that failed messages are not lost. The primary queue will receive successful messages and be used as the main processing queue. The secondary queue will serve as a catch-all for failed messages, allowing them to be processed later if the failure is temporary or recoverable.
upvoted 1 times
...
career360guru
10 months, 2 weeks ago
Selected Answer: B
Option B is most suitable. Eventbridge can not be target for API Gateway
upvoted 2 times
career360guru
10 months, 2 weeks ago
API gateway will need to do http post to post an event to Eventbridge bus and a single eventbus has throttle limits on events/sec. SQS will be a better and more scalable in this case.
upvoted 2 times
...
...
shaaam80
12 months ago
Selected Answer: B
Answer - B. Create 2 SQS queues, one for tasks and second as DLQ. Create Lambda as target invocation.
upvoted 3 times
...
devalenzuela86
1 year ago
Selected Answer: B
B for sure
upvoted 4 times
...
cypkir
1 year ago
Selected Answer: C
Answer: C
upvoted 1 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 ...