exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

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

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Untamables
Highly Voted 1 year, 8 months ago
Selected Answer: C
C https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
upvoted 11 times
...
Bibay
Highly Voted 2 months, 2 weeks 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
...
trieudo
Most Recent 2 days, 9 hours ago
Selected Answer: C
keyword: MOST scalable way, only the partner's own orders ==> Discard A: you must update lambda for new topic added, but it simple for case having few partners, and little change ==> Discard B: You must create duplicate lambda function and maintain it. But best case for customized comlexity requirements ==> Discard D: it is easy to scalable, but violate rule 'only the partner's own orders', when a partner can see msg of all anothers C: best choice, match with 2 keywords above
upvoted 1 times
...
wail1997
3 months, 3 weeks 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
AnthonyTL
3 months ago
With C, if it's more that 200 partners, we could create another SNS for the next 200 partners. so it couls support up to 2000000 partners.
upvoted 2 times
...
...
ACurryDeveloper
4 months, 2 weeks 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
5 months ago
Selected Answer: C
https://docs.aws.amazon.com/sns/latest/dg/example-filter-policies.html
upvoted 1 times
...
65703c1
6 months, 3 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
Prosen2522
7 months, 1 week 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
8 months, 1 week ago
Selected Answer: C
Answer is C ... No Question
upvoted 1 times
...
xdkonorek2
11 months, 4 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
8 months, 1 week ago
the best answer
upvoted 1 times
...
...
leonardoliveros
1 year ago
Selected Answer: C
You can using a filter policy to just sent the info by partner
upvoted 1 times
...
ninomfr64
1 year, 4 months 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, 5 months 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, 5 months 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, 5 months 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, 4 months ago
This part of C seems to meet that requirement: Apply the appropriate filter policy to the topic subscriptions.
upvoted 5 times
...
...
Skywalker23
1 year, 2 months 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, 7 months ago
Got this question in exam. Correct answer is C.
upvoted 4 times
...
Rpod
1 year, 7 months ago
Selected Answer: C
C is the answer
upvoted 2 times
...
robotgeek
1 year, 8 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
10 months, 1 week ago
You apply message filtering on the SNS so they recieve only their messages, think C is the correct answer
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