0
0
GCPcloud~20 mins

Eventarc for event routing in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Eventarc Routing Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does Eventarc route events in Google Cloud?

Which statement best describes how Eventarc routes events to targets?

AEventarc stores all events in a database before sending them to targets in batches every hour.
BEventarc listens for events from sources and forwards them to specified Cloud Run services or other targets based on filters.
CEventarc requires manual polling of event sources to retrieve events and then pushes them to targets.
DEventarc only routes events between Compute Engine instances using internal IP addresses.
Attempts:
2 left
💡 Hint

Think about how Eventarc connects event sources to services automatically.

Architecture
intermediate
2:00remaining
Eventarc architecture for multi-region event delivery

You want to design an Eventarc setup that delivers events from multiple regions to a single Cloud Run service in us-central1. Which architecture ensures low latency and reliability?

ACreate Eventarc triggers in each source region forwarding events directly to the Cloud Run service in us-central1.
BUse a single Eventarc trigger in us-central1 that pulls events from all regions using a global event bus.
CDeploy Cloud Run services in each region and use Eventarc triggers to route events locally, then forward results to us-central1 manually.
DConfigure Eventarc to replicate events to Pub/Sub topics in us-central1, then trigger Cloud Run from those topics.
Attempts:
2 left
💡 Hint

Consider how Eventarc triggers work regionally and how direct routing affects latency.

security
advanced
2:00remaining
Securing Eventarc triggers with least privilege

You want to ensure Eventarc triggers have the minimum permissions needed to deliver events to a Cloud Run service. Which IAM role should you assign to the Eventarc service account?

Aroles/eventarc.admin on the Cloud Run service
Broles/owner on the Cloud Run service
Croles/editor on the entire project
Droles/run.invoker on the Cloud Run service
Attempts:
2 left
💡 Hint

Think about the permission needed to invoke a Cloud Run service securely.

service_behavior
advanced
2:00remaining
Eventarc trigger filter behavior

Given an Eventarc trigger with the filter type=google.cloud.storage.object.v1.finalized, what happens when a new object is created in a Cloud Storage bucket?

AThe trigger activates and routes the event to its target because the event type matches the filter.
BThe trigger ignores the event because it only listens for deletion events.
CThe trigger activates but fails to route the event because the filter syntax is incorrect.
DThe trigger routes all events from Cloud Storage regardless of type.
Attempts:
2 left
💡 Hint

Consider what the event type finalized means in Cloud Storage.

Best Practice
expert
2:00remaining
Optimizing Eventarc for high event volume

You expect a very high volume of events from multiple sources routed to a Cloud Run service via Eventarc. Which approach best optimizes performance and cost?

ADisable Eventarc and poll event sources manually to control event flow.
BUse a single Eventarc trigger with broad filters sending all events to one Cloud Run service instance.
CUse multiple Eventarc triggers with specific filters to route subsets of events to separate Cloud Run services for parallel processing.
DRoute all events to a single Pub/Sub topic and have Cloud Run subscribe directly without Eventarc.
Attempts:
2 left
💡 Hint

Think about splitting workload to avoid bottlenecks and reduce costs.