hands-on lab

AWS Serverless X-Ray Logging and Monitoring

Intermediate
Up to 1h 30m
19
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.
Lab 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
About the author
Avatar
Jeremy Cook, opens in a new tab
Content Lead Architect
Students
159,741
Labs
81
Courses
106
Learning paths
214

Jeremy is a Content Lead Architect and DevOps SME here at Cloud Academy where he specializes in developing DevOps technical training documentation.

He has a strong background in software engineering, and has been coding with various languages, frameworks, and systems for the past 25+ years. In recent times, Jeremy has been focused on DevOps, Cloud (AWS, Azure, GCP), Security, Kubernetes, and Machine Learning.

Jeremy holds professional certifications for AWS, Azure, GCP, Terraform, Kubernetes (CKA, CKAD, CKS).

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