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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 13 discussion

A company receives food orders from multiple partners. The company has a microservices application that uses Amazon API Gateway APIs with AWS Lambda integration. Each partner sends orders by calling a customized API that is exposed through API Gateway. The API call invokes a shared Lambda function to process the orders.
Partners need to be notified after the Lambda function processes the orders. Each partner must receive updates for only the partner's own orders. The company wants to add new partners in the future with the fewest code changes possible.
Which solution will meet these requirements in the MOST scalable way?

  • A. Create a different Amazon Simple Notification Service (Amazon SNS) topic for each partner. Configure the Lambda function to publish messages for each partner to the partner's SNS topic.
  • B. Create a different Lambda function for each partner. Configure the Lambda function to notify each partner's service endpoint directly.
  • C. Create an Amazon Simple Notification Service (Amazon SNS) topic. Configure the Lambda function to publish messages with specific attributes to the SNS topic. Subscribe each partner to the SNS topic. Apply the appropriate filter policy to the topic subscriptions.
  • D. Create one Amazon Simple Notification Service (Amazon SNS) topic. Subscribe all partners to the SNS topic.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Untamables
Highly Voted 1 year, 5 months ago
Selected Answer: C
C https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
upvoted 10 times
...
Bibay
Highly Voted 1 year, 4 months ago
Selected Answer: C
Option C is the most scalable way to meet the requirements. This solution allows for a single SNS topic to be used for all partners, which minimizes the need for code changes when adding new partners. By publishing messages with specific attributes to the SNS topic and applying the appropriate filter policy to the topic subscriptions, partners will only receive notifications for their own orders. This approach allows for a more flexible and scalable solution, where new partners can be added to the system with minimal changes to the existing codebase. Option A and D may not be scalable when there are a large number of partners, as creating a separate SNS topic for each partner or subscribing all partners to a single topic may not be feasible. Option B may result in a large number of Lambda functions that need to be managed separately.
upvoted 7 times
...
wail1997
Most Recent 2 weeks, 2 days ago
Selected Answer: A
because of the fact that By default, you can have up to 200 filter policies per topic, the C option can't be the wright answer, but it's the A choice. since we can go up to 100 00 topics per SNS
upvoted 1 times
...
ACurryDeveloper
1 month, 1 week ago
A works, but C is better, benchods. More efficient. Have to remember good curry cannot be had in a hurry
upvoted 1 times
...
Anandesh
1 month, 3 weeks ago
Selected Answer: C
https://docs.aws.amazon.com/sns/latest/dg/example-filter-policies.html
upvoted 1 times
...
65703c1
3 months, 2 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
Prosen2522
4 months ago
Selected Answer: C
Funny understand why some people want to create separate SNS for each partner. You have got the option to filter and send notifications to the appropriate partner.
upvoted 1 times
...
badsati
5 months ago
Selected Answer: C
Answer is C ... No Question
upvoted 1 times
...
xdkonorek2
8 months, 3 weeks ago
Selected Answer: A
you can create up to 10.000 filter policies per AWS account 200 filter policies per topic (not subscription!) limits option C to 200 partners 100 000 topics per AWS account, limits option A to 100 000 partners A and C works but A has better scalability with ability to add 100 000 partners
upvoted 5 times
drycleansing
5 months ago
the best answer
upvoted 1 times
...
...
leonardoliveros
9 months, 3 weeks ago
Selected Answer: C
You can using a filter policy to just sent the info by partner
upvoted 1 times
...
ninomfr64
1 year ago
Selected Answer: C
C. adding a new partner would only require to create a new subscription with the right filter
upvoted 1 times
...
tttamtttam
1 year, 1 month ago
Selected Answer: C
C seems the most efficient way. when you add more partners, you can just assign new codes for each partner. with the codes, you can send notifications to specific paters
upvoted 1 times
...
rlnd2000
1 year, 1 month ago
Selected Answer: A
The answer is A since this question has two crucial requirements: a) ... with the fewest code changes possible. b) ...in the MOST scalable way ChatGPT initially gives an incorrect answer and then adjusts its response when requirements are asked.
upvoted 1 times
rlnd2000
1 year, 1 month ago
OOH another important requirement: Each partner must receive updates for only the partner's own orders, that is not achievable with option C
upvoted 1 times
Jeremy11
1 year, 1 month ago
This part of C seems to meet that requirement: Apply the appropriate filter policy to the topic subscriptions.
upvoted 5 times
...
...
Skywalker23
11 months, 2 weeks ago
Cannot be A. It requires change of lambda function code to send notifications to new SNS topics for new partners. Not a scalable solution.
upvoted 2 times
...
...
geekdamsel
1 year, 4 months ago
Got this question in exam. Correct answer is C.
upvoted 4 times
...
Rpod
1 year, 4 months ago
Selected Answer: C
C is the answer
upvoted 2 times
...
robotgeek
1 year, 5 months ago
Selected Answer: A
The subscription depends on how the subscriber subcribes to the topic. It would be unsecure to allow customers to notify to whatever they want, they would get messages from other partners. This is more like a traditional queue scenario.
upvoted 2 times
Baalhammun
7 months ago
You apply message filtering on the SNS so they recieve only their messages, think C is the correct answer
upvoted 1 times
...
...
grimsdev
1 year, 5 months ago
Selected Answer: C
C is the best answer. A would work but is less scalable as you have to create new topics for each new partner.
upvoted 2 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 ...