Welcome to QA's learning platform (formerly Cloud Academy). Learn more about our journey here, opens in a new tab.
hands-on lab

Respond to Events with Google Cloud Run Functions

Difficulty: Beginner
Duration: Up to 40 minutes
Students: 2,144
Rating: 4.1/5
On average, students complete this lab in30m
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 Run functions provide an event-driven serverless compute platform in Google's Cloud. Some of the benefits of using Cloud Run functions are:

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

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

Lab Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Understand key concepts in Cloud Run functions including functions, and triggers
  • Deploying an HTTP Cloud Run function from the Console
  • Deploying a Cloud Run 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

March 14th, 2025 - Adapted the lab to Cloud Run functions, formerly Cloud Functions

July 30th, 2024 - Updated the instructions and screenshots to reflect the latest UI

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

Covered topics

Hands-on Lab UUID

Lab steps

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