AWS Certified Developer – Associate (DVA-C02) — Question 250
A developer is creating a machine learning (ML) pipeline in AWS Step Functions that contains AWS Lambda functions. The developer has configured an Amazon Simple Queue Service (Amazon SQS) queue to deliver ML model parameters to the ML pipeline to train ML models. The developer uploads the trained models are uploaded to an Amazon S3 bucket.
The developer needs a solution that can locally test the ML pipeline without making service integration calls to Amazon SQS and Amazon S3.
Which solution will meet these requirements?
Answer options
- A. Use the Amazon CodeGuru Profiler to analyze the Lambda functions used in the AWS Step Functions pipeline.
- B. Use the AWS Step Functions Local Docker Image to run and locally test the Lambda functions.
- C. Use the AWS Serverless Application Model (AWS SAM) CLI to run and locally test the Lambda functions.
- D. Use AWS Step Functions Local with mocked service integrations.
Correct answer: D
Explanation
The correct answer is D because AWS Step Functions Local with mocked service integrations allows testing the pipeline without actual calls to external services like SQS and S3. Option A focuses on analyzing functions rather than testing. Option B runs the functions but does not simulate service integrations, and option C is focused solely on Lambda functions without addressing the complete pipeline integration aspect.