AWS Certified Developer – Associate — Question 107

A company configures an Amazon S3 bucket to deliver S3 object events to Amazon EventBridge (Amazon CloudWatch Events). An EventBridge rule invokes an AWS Lambda function for each object event that is received from the S3 bucket.

A developer is working on a new version of the Lambda function. To ensure that the new Lambda function works as expected, the developer must run a repeatable test that uses realistic S3 bucket object events. The developer must minimize the amount of code and infrastructure that are required to support the test.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because it allows the developer to use actual production S3 object events in a repeatable manner, minimizing code and infrastructure requirements. Option A involves creating unnecessary infrastructure, while Option B complicates the testing process by triggering both Lambda functions. Option D requires additional tooling and does not utilize realistic production events, which is less efficient for testing.