Question #625
A company is developing a serverless application using AWS Lambda. They need to create test events that can be modified by any developer in an IAM group. The test events should be stored once and accessible to all group members with edit permissions. Which solution meets these requirements?
Store test events in an Amazon S3 bucket with bucket policies granting read/write access to the IAM group.
Use AWS Lambda's test event sharing feature and configure the events to be shared within the developer group.
Store test events in Amazon DynamoDB and manage access using IAM policies for the developer group.
Save test events in AWS Systems Manager Parameter Store with IAM permissions for group access.
Explanation
The correct answer is B because AWS Lambda's built-in test event sharing feature enables developers in an IAM group to create, modify, and reuse test events directly within the Lambda service. This ensures a single source of truth for test events, with IAM policies managing group access.
Why other options are incorrect:
- A: Storing test events in S3 requires manual upload/download steps and lacks direct integration with Lambda's testing workflow.
- C: DynamoDB adds unnecessary complexity for simple test event storage and requires custom code/CLI interactions.
- D: Parameter Store is better suited for configuration/secrets, not Lambda-specific test events, and lacks native Lambda integration.
Key Points:
1. Lambda test events are natively managed and shared within the service.
2. IAM group policies control access to shared test events.
3. Avoid overcomplicating storage with external services when Lambda provides a purpose-built solution.
Answer
The correct answer is: B