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 100 discussion

A company is running an application in the AWS Cloud. Recent application metrics show inconsistent response times and a significant increase in error rates. Calls to third-party services are causing the delays. Currently, the application calls third-party services synchronously by directly invoking an AWS Lambda function.

A solutions architect needs to decouple the third-party service calls and ensure that all the calls are eventually completed.

Which solution will meet these requirements?

  • A. Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.
  • B. Use an AWS Step Functions state machine to pass events to the Lambda function.
  • C. Use an Amazon EventBridge rule to pass events to the Lambda function.
  • D. Use an Amazon Simple Notification Service (Amazon SNS) topic to store events and Invoke the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
masetromain
Highly Voted 1 year, 12 months ago
Selected Answer: A
The correct answer is A. Using an Amazon Simple Queue Service (SQS) queue to store events and invoke the Lambda function is a good solution to decouple the third-party service calls and ensure that all the calls are eventually completed. SQS is a fully managed, reliable, and highly scalable message queuing service that allows applications to send, store, and receive messages between distributed components. By sending the third-party service calls to an SQS queue, it allows the application to continue processing without waiting for the third-party services to respond, which can result in faster response times and lower error rates.
upvoted 5 times
masetromain
1 year, 12 months ago
Other options like AWS Step Functions state machine, Amazon EventBridge, and Amazon Simple Notification Service (SNS) topic are not appropriate for this use case. AWS Step Functions is a service that makes it easy to coordinate the components of distributed applications and microservices using visual workflows. Amazon EventBridge is a serverless event bus that makes it easy to connect applications together using data from your own applications, integrated SaaS applications, and AWS services. Amazon SNS is a fully managed messaging service for both application-to-application and application-to-person (A2P) communication. These services are not focused on providing message queues and would not be the best fit for this use case.
upvoted 1 times
...
...
GabrielShiao
Most Recent 1 day, 9 hours ago
Selected Answer: A
while polling a, c is another solution accomodating the requirement. In the real case, i would pick c for a large scale eda app scenario
upvoted 1 times
...
AWSum1
2 months, 3 weeks ago
Selected Answer: A
Decoupling = SQS
upvoted 1 times
...
nimbus_00
3 months ago
Selected Answer: A
SQS Queue = Decoupling the service calls + Eventual completion + Error handling and retries (DLQ)
upvoted 1 times
...
amministrazione
4 months, 2 weeks ago
A. Use an Amazon Simple Queue Service (Amazon SQS) queue to store events and invoke the Lambda function.
upvoted 1 times
...
career360guru
10 months ago
Selected Answer: A
Option A
upvoted 1 times
...
career360guru
1 year ago
Selected Answer: A
Option A
upvoted 2 times
...
HC888
1 year, 1 month ago
Selected Answer: A
SQS support dead letter queue and retry if the event processed fails
upvoted 1 times
...
NikkyDicky
1 year, 6 months ago
Selected Answer: A
A no brainer
upvoted 1 times
...
rbm2023
1 year, 8 months ago
Selected Answer: A
step functions would not help on the decoupling if you are not using an asynchronous element in this architecture which is SQS. the application need to have the ability to move out from synchronous calls to the third party services. correct answer is A.
upvoted 2 times
...
hpipit
1 year, 9 months ago
Selected Answer: A
A : SQS QUEUE
upvoted 1 times
...
mfsec
1 year, 9 months ago
Selected Answer: A
SQS for decoupling
upvoted 2 times
...
c73bf38
1 year, 10 months ago
Selected Answer: A
SQS ---> Lambda is the correct option
upvoted 2 times
...
zozza2023
1 year, 11 months ago
Selected Answer: A
decouple ==> SQS
upvoted 1 times
...
Untamables
1 year, 11 months ago
Selected Answer: A
The application needs to pass the initiative to the next step. That means the application does not wait the response from the Lambda function, it should have the responsibility only to call the Lambda function. To do so, the application only throw the job information to Amazon SQS queue and finish. After that, AWS Lambda function can pull the job information from SQS queue and start processing actively. https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
upvoted 2 times
...
Qing
1 year, 11 months ago
I vote for C - use Step Functions with its callback feature to throttle the third party api call.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago