hands-on lab

AWS Serverless X-Ray Logging and Monitoring

Difficulty: Intermediate
Duration: Up to 1 hour and 30 minutes
Students: 28
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In the rapidly evolving landscape of cloud computing, serverless architecture has emerged as a revolutionary paradigm, enabling developers to focus on writing code without the hassle of managing servers. However, as applications become more distributed and complex, monitoring, analyzing, and troubleshooting performance issues become paramount.

In this hands-on lab you’ll learn how to instrument a lambda function using AWS X-Ray, allowing you to analyze and observe the distributed tracing and related metrics inside the AWS X-Ray console later. By doing this, you’ll be able to visualize and understand the interactions between the various serverless components. You’ll work with the AWS X-Ray console to trace requests, identify bottlenecks, and gain other valuable insights into the behavior of a distributed serverless application.

Learning objectives

Upon completion of this intermediate-level lab, you will:

  • Understand the basic steps and process to setup and deploy a Python3 Lambda function
  • Understand how to instrument the Python3 Lambda source code to work with AWS X-Ray
  • Understand how to use the AWS X-Ray console to visualize connections between components
  • Understand how to perform distributed tracing
  • Understand how to collect and analyze logging information using Amazon CloudWatch

Intended audience

  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • AWS Lambda
  • AWS X-Ray
  • Amazon CloudWatch

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
IDE Access
Deploy Lambda Function
Review Deployed Lambda Function
Perform X-Ray Analysis
Update Lambda Function