nerdexam
Amazon

DOP-C02 · Question #191

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 particula

Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #191. The question stem and answer options stay visible for context.

Submitted by andreas_gr· Mar 6, 2026Configuration Management and Infrastructure as Code

Question

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?

Options

  • AIncrease the memory of the Lambda function to give the function the ability to process large files
  • BCreate a resource policy on the Lambda function to grant Amazon S3 the permission to invoke
  • CConfigure an Amazon Simple Queue Service (Amazon SQS) queue as an OnFailure destination
  • DProvision space in the /tmp folder of the Lambda function to give the function the ability to

Unlock DOP-C02 to see the answer

You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Lambda#S3#Permissions#Resource policies
Full DOP-C02 Practice