Deploying a Machine Learning Model with Amazon SageMaker

Deploying a Machine Learning Model with Amazon SageMaker
Deploying a Machine Learning Model with Amazon SageMaker

CLOUD LABS

Deploying a Machine Learning Model with Amazon SageMaker

In this Cloud Lab, you’ll learn how to deploy a machine learning model with Amazon SageMaker, provide access to it with a Lambda function, and trigger the Lambda function with API Gateway.

9 Tasks

beginner

1hr 30m

Certificate of Completion

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

Learning Objectives

Working knowledge of using Amazon SageMaker
Working knowledge of building and deploying a machine learning model
The ability to create and invoke a Lambda function
The ability to trigger a Lambda function with API Gateway

Technologies
Lambda logoLambda
API Gateway logoAPI Gateway
SageMaker
Cloud Lab Overview

Amazon SageMaker is an AWS-managed service that provides machine learning services. It provides an integrated Jupyter Notebook. Data scientists can easily access data, analyze and extract its features, train a machine learning model, evaluate it, and deploy it on a hosted environment. It provides native support for making our own machine learning algorithms and some commonly used algorithms that perform well on huge datasets.

In this Cloud Lab, you’ll make a notebook instance in Amazon SageMaker, deploy a machine learning model on the notebook instance, and host the model on an endpoint. Moreover, you’ll use a Lambda function to access the endpoint. At the end of the Cloud Lab, you’ll use an API gateway to trigger the Lambda function with a payload and get predictions in response.

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

The architecture diagram
The architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started
2.Working with Amazon SageMaker
Create the Notebook Instance
Set Up the Notebook
3.Set Up the Lambda Function And the API Gateway
Create an Execution Role
Create a Lambda Function
Create an API Gateway
Deploy and Test the Function
4.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.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image