hands-on lab

Respond to Events with Google Cloud Functions

Beginner
Up to 40m
1,991
4.3/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

Cloud Functions provide an event-driven serverless compute platform in Google's Cloud. Some of the benefits of using Cloud Functions are:

  • No server management
  • Pay only what you use pricing model
  • Autoscaling
  • Event-driven triggers

This lab teaches you how to use Cloud Functions. Along the way, the lab introduces you to all of the key concepts and trade-offs that you need to understand to work effectively with Cloud Functions. The lab is performed using the Console web browser interface to Google Cloud. 

Lab Objectives

Upon completion of this lab you will be able to:

  • Understand key concepts in Cloud Function including functions, triggers
  • Deploying an HTTP Cloud Function from the Console
  • Deploying a Cloud Function that receives Google Cloud events (e.g., Cloud Pub/Sub events, Cloud Storage object change notification events).

Lab Prerequisites

This lab has no prerequisites.

Updates

August 29th, 2023 - Updated the instructions and screenshots to reflect the latest UI

July 25th, 2023 - Addressed user ban issue and added warning

May 1st, 2023 - Updated the instructions and screenshots to reflect the latest UI

September 2nd, 2021 - Improved function creation screenshot to emphasize the selection of the Allow unauthenticated invocations option

February 14th, 2021 - Updated screenshots to match the latest console experience

May 21st, 2019 - Added a validation Lab Step to check the work you perform in the lab

Environment before

Environment after

About the author

Students
2,020
Labs
6
Learning paths
1

Full Stack Engineer and Hands-On Labs team member. Passionate about AWS, Google Cloud and everything about cloud technologies.

Covered topics

Lab steps

Signing In to the Google Cloud Console
Creating a new HTTP Google Cloud Function in the Console
Testing a Google Cloud Function
Creating a new Google Cloud Function with a Cloud Storage Trigger
Testing a Google Cloud Function with Cloud Storage