- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Serverless Event Processing with Eventarc and Cloud Functions 2nd Gen
This guided lab teaches you how to connect Cloud Storage events to serverless code without managing servers. It also explains how Eventarc delivers CloudEvents to your function and what to do when everything deploys correctly but the trigger doesn’t fire. You’ll deploy a Cloud Function, create an Eventarc trigger for object finalized events, and diagnose a realistic trigger misconfiguration using Cloud Logging. You’ll also parse the CloudEvent payload and validate structured logs that you can query confidently. By the end of this lab, you’ll know how to wire storage events to serverless processing, troubleshoot Eventarc permission issues, and validate event data end-to-end so your event-driven applications remain reliable and debuggable in production.
Lab Info
Table of Contents
-
Challenge
Build an event-driven file processing pipeline
- Identify the event source and event type for Cloud Storage object finalized events.
- Define the trigger routing target (Cloud Function 2nd Gen) and ensure region alignment.
- Configure event filtering (bucket-specific filtering) to limit noise and keep debugging clean.
- Deploy the function using the preloaded artifact, focusing on deployment and runtime identity rather than code scaffolding.
- Create the trigger and perform a test upload to generate an event.
-
Challenge
Validate, diagnose, and remediate event delivery behavior
Observe the failure state (trigger exists but no invocation due to a misconfigured event type).
- Diagnose the issue using:
- Eventarc trigger status/signals
- Cloud Logging (Eventarc, audit logs, and Cloud Run invocation signals)
- IAM policy bindings to rule out permission issues
- Apply the minimal permission fix and re-test to confirm event delivery.
- Diagnose the issue using:
-
Challenge
Interpret CloudEvent payloads and produce searchable structured telemetry for operational use
- Inspect the CloudEvent payload fields relevant to Cloud Storage finalize events (bucket, object name, generation, metageneration, and time).
- Confirm the function extracts key fields and logs them as structured JSON.
- Query and filter logs in Logs Explorer to validate:
- The correct bucket and object triggered the event
- The function is receiving CloudEvent data (not legacy event formats)
- The log schema is consistent (fields are present and searchable)
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.