DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 Exam - Question 254


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?

Show Answer
Correct Answer: D

AWS Step Functions Local with mocked service integrations is the best solution for locally testing the ML pipeline without making service integration calls to Amazon SQS and Amazon S3. Step Functions Local allows developers to simulate their state machine executions and mock external service integrations, enabling comprehensive local testing of the pipeline, including the Lambda functions used.

Discussion

8 comments
Sign in to comment
tapan666Option: D
Oct 29, 2023

D. Use AWS Step Functions Local with mocked service integrations. Hide Solution

SerialiDrOption: D
Jan 27, 2024

AWS Step Functions Local allows developers to test Step Functions workflows on their local machines, without the need to deploy them to AWS. By using Step Functions Local, developers can simulate Step Functions and mock the integration with AWS services such as Amazon SQS and Amazon S3. This approach is ideal for testing the flow of the ML pipeline, including the interaction of Lambda functions, without actually triggering external AWS services.

Claire_KMT
Oct 29, 2023

D. Use AWS Step Functions Local with mocked service integrations.

deepak547
Nov 29, 2023

Step Functions Local, specifically allows mocking AWS services like SQS and S3. This enables end-to-end local testing of the state machine while simulating external calls. Therefore, AWS Step Functions Local with mocked integrations meets the requirements to test the pipeline offline without relying on live AWS services. This is the simplest way to achieve local testing.

KarBiswaOption: D
Mar 3, 2024

https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-test-sm-exec.html

65703c1Option: D
May 24, 2024

D is the correct answer.

tsangckl
Jun 17, 2024

This appear at 17 Jun exam

AnandeshOption: D
Jul 15, 2024

https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local-test-sm-exec.html