Medium1 markMultiple Choice
Domain 2.1: Deployment StrategyArchitectureStep FunctionsMachine Learning

AWS SAP-C02 · Question 50 · Domain 2.1: Deployment Strategy

A company is building a machine learning pipeline. Data scientists upload raw images to an S3 bucket. An AWS Lambda function is triggered to resize the images. The resized images are then processed by an Amazon SageMaker training job. The pipeline must be fully automated, handle errors gracefully (with retries and exponential backoff), and provide a visual dashboard of the workflow state. Which combination of services and features should be used? (Select TWO)

Answer options:

A.

Use AWS Step Functions to orchestrate the workflow, including the Lambda function and SageMaker job.

B.

Configure the Step Functions state machine with Catch and Retry blocks to handle errors and implement exponential backoff.

C.

Use Amazon SQS to decouple the Lambda function and the SageMaker job.

D.

Use AWS CodePipeline to orchestrate the image processing and model training.

E.

Write a master Lambda function that calls the resizing Lambda and then synchronously calls the SageMaker API.

F.

Use Amazon EventBridge rules to trigger each step sequentially based on S3 event notifications.

How to approach this question

Identify the AWS service designed for visual workflow orchestration and its native error handling features.

Full Answer

AWS Step Functions is the ideal service for orchestrating complex, multi-step workflows like machine learning pipelines. It integrates directly with AWS Lambda and Amazon SageMaker. It provides a visual console to monitor the state of each execution. Furthermore, the Amazon States Language (ASL) allows you to easily define `Retry` and `Catch` blocks to handle errors gracefully with exponential backoff, without writing custom error-handling code.

Common mistakes

Using Lambda to orchestrate other Lambdas (anti-pattern) or confusing CI/CD (CodePipeline) with data orchestration.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5

75 questions · hints · full answers · grading

More questions from this exam