Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How should a developer unit test an AWS Lambda function designed to process messages from an SQS queue within a CI/CD pipeline?
A
Utilize an AWS CloudFormation template to instantiate an SQS queue and deploy the Lambda function, then test the function by invoking it within the CI/CD pipeline after stack creation.
B
Generate an SQS event for testing and simulate message consumption from the SQS queue during the CI/CD process.
C
Establish a test SQS queue, integrate it with the unit tests, and execute these tests as part of the CI/CD pipeline.
D
Invoke the Lambda function with a predefined test event using the 'aws lambda invoke' command within the CI/CD process.