exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 184 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 184
Topic #: 1
[All AWS Certified Developer Associate Questions]

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?

  • A. Create another S3 bucket that can deliver object events to EventBridge. Add another EventBridge rule to deliver data events from the new S3 bucket to the new Lambda function Develop a tool to update objects in the new S3 bucket to produce the test S3 object events.
  • B. Add the new Lambda function as an additional target of the existing EventBridge rule. Deliver the S3 object events to the existing Lambda function and the new Lambda function simultaneously.
  • C. Use EventBridge to archive and replay production S3 object events. Set up a new EventBridge rule to deliver replayed S3 object events to the new Lambda function.
  • D. Develop a tool that uses the EventBridge PutEvents API operation to publish aws.s3 data events. Add a new EventBridge rule that delivers the aws.s3 events to the new Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
51b1f29
1 year, 3 months ago
Answer C. Must be able to run repeatable tests is the keyword. with archived Amazon Event Bridge events you can then replay events from the archive.
upvoted 1 times
...
rcaliandro
2 years ago
why B is not correct? it require really minimal effort. If I have to say something of negative is that we are not sure we can create events in prod. And if we don't we have to wait realistic events. I don't know the functionality in C so I will take a look but I am not voting
upvoted 3 times
Sardor_uz
2 years ago
I also thought the answer is B. Canary testing is also popular
upvoted 2 times
...
...
MMaquis
2 years, 4 months ago
Selected Answer: C
Option C is the most appropriate solution because it uses EventBridge to archive and replay production S3 object events, allowing the developer to test the new Lambda function with realistic events. This option requires minimal code and infrastructure changes and ensures that the test data is representative of real-world scenarios.
upvoted 4 times
...
jra777
2 years, 4 months ago
Selected Answer: C
ccccccc
upvoted 2 times
...
Krt5894
2 years, 4 months ago
Selected Answer: C
https://docs.amazonaws.cn/en_us/eventbridge/latest/userguide/eb-replay-archived-event.html
upvoted 1 times
...
mistral
2 years, 5 months ago
Selected Answer: C
The developer must minimize the amount of code and infrastructure that are required to support the test.
upvoted 1 times
...
aws_proton
2 years, 5 months ago
Selected Answer: B
You can add multiple targets for one EventBridge rule, and this requires the least amount of set up. In C, you need to configure an additional EB rule
upvoted 3 times
captainpike
2 years, 3 months ago
The problem with this approach is that you have to wait for a production event to test, since you are not actively adding events. That's why I choose C
upvoted 2 times
konatus
2 years ago
This doesn't make sense. For C, you only replay the event, which means you still need to wait for a production event to happen.
upvoted 2 times
...
CrescentShared
1 year, 8 months ago
replying to events also needs to wait for real events. The only thing I can think of that might affect is that if we want to test some functionalities like archive, the testing lambda might interfere the current one.
upvoted 1 times
...
...
...
michaldavid
2 years, 7 months ago
Selected Answer: C
cccccc
upvoted 1 times
...
kapil206001
2 years, 7 months ago
C https://docs.amazonaws.cn/en_us/eventbridge/latest/userguide/eb-replay-archived-event.html
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 ...