0
0
GCPcloud~5 mins

Event triggered functions in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an event triggered function in Google Cloud?
An event triggered function runs automatically when a specific event happens, like a file upload or a message arrival. It reacts to changes without needing manual start.
Click to reveal answer
beginner
Name two common event sources for Google Cloud Functions.
1. Cloud Storage (e.g., file upload)<br>2. Pub/Sub (message arrival)<br>These trigger functions to run when events happen.
Click to reveal answer
beginner
How does an event triggered function differ from an HTTP triggered function?
Event triggered functions run automatically on events like file changes or messages. HTTP triggered functions run only when someone sends an HTTP request.
Click to reveal answer
beginner
What is a practical example of using an event triggered function?
Automatically resizing images when a new photo is uploaded to Cloud Storage. The upload event triggers the function to process the image.
Click to reveal answer
beginner
Why are event triggered functions useful in cloud architecture?
They allow automation and real-time response without manual intervention, saving time and resources by reacting only when needed.
Click to reveal answer
Which of these can trigger a Google Cloud event triggered function?
AA user clicking a button on a website
BA manual command in the terminal
CA new file uploaded to Cloud Storage
DA scheduled timer only
What type of event source is Pub/Sub in Google Cloud Functions?
AFile storage event source
BMessage queue event source
CHTTP request event source
DDatabase change event source
How does a Cloud Function know when to run if it is event triggered?
AIt runs only when manually started
BIt runs every hour automatically
CIt waits for a user to press a button
DIt listens for specific events configured during setup
Which is NOT a benefit of event triggered functions?
AManual start required every time
BEnables real-time automation
CSaves resources by running only when needed
DAutomatic response to events
What happens if an event triggered function fails during execution?
AIt can be retried automatically depending on configuration
BIt never runs again
CIt sends an email to all users
DIt shuts down the entire cloud project
Explain how event triggered functions work in Google Cloud and give an example use case.
Think about what happens when a file is uploaded or a message arrives.
You got /3 concepts.
    Describe the benefits of using event triggered functions in cloud applications.
    Consider how automation saves time and resources.
    You got /3 concepts.