Tracing Step Functions Errors Using AWS X-Ray

Tracing Step Functions Errors Using AWS X-Ray
Tracing Step Functions Errors Using AWS X-Ray

CLOUD LABS



Tracing Step Functions Errors Using AWS X-Ray

In this Cloud Lab, you’ll use the Lambda function to perform operations on DynamoDB. You’ll use Step Functions to create the application logic and identify issues with the help of AWS X-Ray.

8 Tasks

intermediate

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of Step Functions and its application to orchestrate, coordinate, and optimize workflows across AWS services
Hands-on experience creating Lambda functions to perform operations on DynamoDB
Hands-on experience designing and visualizing our workflows using a state machine
The ability to debug and monitor state machines using AWS X-Ray

Technologies
Step Functions
X-Ray
DynamoDB logoDynamoDB
Lambda logoLambda
Cloud Lab Overview

AWS Step Functions helps build business-critical applications by integrating other AWS services. Step Functions provides built-in controls to examine the state of each step. It also helps ensure that your application runs in order and as expected.

AWS X-Ray helps analyze and debug distributed applications. You can use AWS X-Ray to monitor application traces, including the performance of calls to downstream components or services. X-Ray also helps identify issues and opportunities for optimization.

In this Cloud Lab, you’ll configure a state machine using AWS Step Functions and monitor the execution of your state machine using AWS X-Ray. The state machine will simulate a simple transaction processing service that uses a Lambda function to process the transactions. The transactions are validated using data stored in a DynamoDB table, and the transaction history is maintained in another DynamoDB table.

By the end of this Cloud Lab, you’ll be able to configure state machines using AWS Step Functions, set up Lambda functions, and configure DynamoDB tables. The provisioned infrastructure diagram by the end of this Cloud Lab is shown below:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.DynamoDB Configuration
Create DynamoDB Tables
3.Lambda Function Configuration
Verify Transactions
Add Transactions to the Backlog Table
4.Putting It All Together
Create a State Machine
Test the Workflow
5.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like