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

A developer is using an AWS Lambda function to generate avatars for profile pictures that are uploaded to an Amazon S3 bucket. The Lambda function is automatically invoked for profile pictures that are saved under the /original/ S3 prefix. The developer notices that some pictures cause the Lambda function to time out. The developer wants to implement a fallback mechanism by using another Lambda function that resizes the profile picture.
Which solution will meet these requirements with the LEAST development effort?

  • A. Set the image resize Lambda function as a destination of the avatar generator Lambda function for the events that fail processing.
  • B. Create an Amazon Simple Queue Service (Amazon SQS) queue. Set the SQS queue as a destination with an on failure condition for the avatar generator Lambda function. Configure the image resize Lambda function to poll from the SQS queue.
  • C. Create an AWS Step Functions state machine that invokes the avatar generator Lambda function and uses the image resize Lambda function as a fallback. Create an Amazon EventBridge rule that matches events from the S3 bucket to invoke the state machine.
  • D. Create an Amazon Simple Notification Service (Amazon SNS) topic. Set the SNS topic as a destination with an on failure condition for the avatar generator Lambda function. Subscribe the image resize Lambda function to the SNS topic.
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
March2023
Highly Voted 2 years, 1 month ago
Selected Answer: A
Wouldn't A be the Least Effort
upvoted 14 times
...
jingle4944
Highly Voted 1 year, 7 months ago
Selected Answer: A
Previously, you needed to write the SQS/SNS/EventBridge handling code within your Lambda function and manage retries and failures yourself. With Destinations, you can route asynchronous function results as an execution record to a destination resource without writing additional code. https://aws.amazon.com/ru/blogs/compute/introducing-aws-lambda-destinations/
upvoted 10 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: A
AWS Lambda supports Destinations for asynchronous invocations. You can configure a failure destination that triggers a fallback mechanism, such as invoking another Lambda function. This removes the need for additional services like SQS, SNS, or Step Functions, simplifying the architecture.
upvoted 2 times
...
f271c23
4 months, 3 weeks ago
Selected Answer: B
Least development effort does not mean incomplete solution. what happens when the number of such issues are high and request needs to be queued. does not sound convincing
upvoted 1 times
...
lambdaFun
6 months, 2 weeks ago
A is the correct Answer if we read the question in the last part "The developer wants to implement a fallback mechanism by using another Lambda function"
upvoted 2 times
...
PrinceMughal
10 months, 1 week ago
Selected Answer: A
I will go with A as it is the simplest solution among other three option
upvoted 1 times
...
fabiomonta18
10 months, 2 weeks ago
Selected Answer: B
This seems to be a tricky one. It's true that you can set Lambda destination, but you better set SQS as destination, exactly what the article suggests, go check it. The correct one is B. https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: A
A is the correct answer.
upvoted 1 times
...
vipyodha
1 year, 1 month ago
B is right. A.wrong because Lambda Function Chaining: While Lambda function chaining is possible, it would require modifying the avatar generation Lambda function to include the resize function as a destination for failed events. This might involve additional coding and potentially more complex error handling within the Lambda function.
upvoted 2 times
Tluszczyk
9 months, 2 weeks ago
With AWS Lambda destinations you don't need to interact with code to change this
upvoted 2 times
...
...
KarBiswa
1 year, 4 months ago
Selected Answer: A
Least development effort no emphasis on orchestration
upvoted 3 times
KarBiswa
1 year, 2 months ago
https://aws.amazon.com/ru/blogs/compute/introducing-aws-lambda-destinations/ this link justifies the answer
upvoted 2 times
fabiomonta18
10 months, 2 weeks ago
The article says "For each execution status such as Success or Failure you can choose one of four destinations: another Lambda function, SNS, SQS, or EventBridge." It hink for this reason the correct one is B.
upvoted 2 times
fabiomonta18
10 months, 2 weeks ago
I mean, which destination other then SQS can you set in this case?
upvoted 1 times
...
...
...
...
Jonalb
1 year, 6 months ago
Selected Answer: A
A. Defina a função Lambda de redimensionamento de imagem como um destino da função Lambda do gerador de avatar para os eventos que falham no processamento
upvoted 1 times
...
appuNBablu
1 year, 7 months ago
A, because we can map another Lambda function as destination alongside (SQS, SNS, Event Bridge)
upvoted 1 times
...
ninomfr64
1 year, 8 months ago
Selected Answer: A
A is the easiest option https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
upvoted 1 times
...
jayvarma
1 year, 8 months ago
Option B is the right answer. Can someone say why B cannot be the right answer for this question? Option A fails when there are huge amounts of requests coming to the lambda functions. There is every chance for lambda to throw ProvisionedThrougputExceeded Exception because of the throttling issues. Which is almost the similar reason why Option C will also fail at some point. However, you could use SNS but it is not the best solution. Definitely Option B.
upvoted 8 times
...
backfringe
1 year, 9 months ago
Selected Answer: A
least amount of effort to set up destination on failure events to REsize Lambda
upvoted 1 times
...
AWSdeveloper08
1 year, 9 months ago
Selected Answer: B
I agree with the explanation for option B. Scalability is the key
upvoted 2 times
...
[Removed]
1 year, 9 months ago
Selected Answer: A
A is a simplest solution https://aws.amazon.com/ru/blogs/compute/introducing-aws-lambda-destinations/ https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
upvoted 3 times
jipark
1 year, 9 months ago
your explanation looks correct. Lambda "Denstination" seems exact solution for this. it explains how to handle success, failed case.
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