exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 176 discussion

A company has configured an Amazon S3 event source on an AWS Lambda function. The company needs the Lambda function to run when a new object is created or an existing object is modified in a particular S3 bucket. The Lambda function will use the S3 bucket name and the S3 object key of the incoming event to read the contents of the created or modified S3 object. The Lambda function will parse the contents and save the parsed contents to an Amazon DynamoDB table.

The Lambda function's execution role has permissions to read from the S3 bucket and to write to the DynamoDB table. During testing, a DevOps engineer discovers that the Lambda function does not run when objects are added to the S3 bucket or when existing objects are modified.

Which solution will resolve this problem?

  • A. Increase the memory of the Lambda function to give the function the ability to process large files from the S3 bucket.
  • B. Create a resource policy on the Lambda function to grant Amazon S3 the permission to invoke the Lambda function for the S3 bucket.
  • C. Configure an Amazon Simple Queue Service (Amazon SQS) queue as an OnFailure destination for the Lambda function.
  • D. Provision space in the /tmp folder of the Lambda function to give the function the ability to process large files from the S3 bucket.
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
thanhnv142
Highly Voted 1 year, 2 months ago
Selected Answer: B
B: is correct: Need to add a permission in lambda resource-based policy, which allow S3 to invode lambda A: If there is insufficient memory, lambda still runs. This case is about lambda not running at all C: We dont need SQS for dead-letter queue here D: Lambda does not run in a test, which proves that the problem does not lie in disk space because in tests, testers usually wont use large objects
upvoted 6 times
...
jamesf
Most Recent 9 months, 1 week ago
Selected Answer: B
B due to permission issue
upvoted 1 times
...
dkp
1 year ago
Selected Answer: B
b is correct
upvoted 2 times
...
DanShone
1 year, 1 month ago
Selected Answer: B
B - Is correct A C and D have no relevance to the problem
upvoted 2 times
...
twogyt
1 year, 3 months ago
Selected Answer: B
b is correct
upvoted 3 times
...
d262e67
1 year, 4 months ago
Selected Answer: B
Lambda must allow S3 to invoke it
upvoted 3 times
...
PrasannaBalaji
1 year, 4 months ago
Selected Answer: B
B is correct
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