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

A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch.

Which of the following is a possible reason for the Lambda function's inability to launch?

  • A. The S3 event notification does not activate for files that are larger than 1,000 MB.
  • B. The resource-based policy for the Lambda function does not have the required permissions to be invoked by Amazon S3.
  • C. Lambda functions cannot be invoked directly from an S3 event.
  • D. The S3 bucket needs to be made public.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Jamshif01
Highly Voted 1 year, 5 months ago
Selected Answer: B
B - is right answer A is incorrect because the size of the file should not affect whether the event notification is triggered. C is incorrect because Lambda functions can indeed be invoked directly from an S3 event. D is incorrect because the S3 bucket does not need to be made public for the Lambda function to be invoked. (c)chatgpt
upvoted 12 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: B
A) Eliminated - S3 event notifications do not have a size limitation for triggering Lambda functions. C) Eliminated - AWS Lambda functions can be triggered directly by S3 event notifications. D) Eliminated - Making the S3 bucket public is not required for it to trigger an event notification
upvoted 2 times
...
65703c1
5 months, 1 week ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
ec8or
7 months, 1 week ago
Answer is A. The notification work normally. They should work for files up to 5TB but not once the dev uploads a file of 3000MB. Seems the dev did not set up the notification correctly for files of this size.
upvoted 1 times
...
Melisa202401
8 months, 2 weeks ago
Why answer B while dev deployed and tested via CLI is ok, but the reason would be lack of resource policy?
upvoted 1 times
TheFivePips
7 months, 3 weeks ago
The Lambda function, which reacts to an event and sends a message, can be invoked manually using the AWS CLI or other methods, even if there are issues with the S3 event triggering mechanism. This is because manual invocation typically bypasses the event source (S3 in this case) and directly triggers the Lambda function. While Lambda functions can be invoked manually, they also need the correct permissions to be triggered by specific event sources like S3. If the resource-based policy for the Lambda function does not have the necessary permissions, it may not be invoked by S3 events.
upvoted 1 times
...
...
Prem28
1 year, 4 months ago
B A. The S3 event notification does not activate for files that are larger than 1,000 MB. This is not the case. S3 event notifications can activate for files that are larger than 1,000 MB. C. Lambda functions cannot be invoked directly from an S3 event. This is also not the case. Lambda functions can be invoked directly from an S3 event. D. The S3 bucket needs to be made public. This is not necessary. The S3 bucket does not need to be made public in order for the Lambda function to be invoked.
upvoted 2 times
...
chumji
1 year, 5 months ago
Selected Answer: B
anser is B
upvoted 2 times
...
junrun3
1 year, 5 months ago
Selected Answer: A
Ansewer A
upvoted 1 times
junrun3
1 year, 5 months ago
not A, answer is B
upvoted 4 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