You are designing a high-scale data ingestion system using Cloud Functions. You want to ensure that if a function fails, the event is not lost and can be retried later. Which pattern should you use?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Use an asynchronous trigger (like Pub/Sub) with retry settings enabled

Event-driven Cloud Functions triggered by Pub/Sub (or GCS) support automatic retries. If the function returns a non-zero exit code, the underlying event is re-queued....

๐Ÿ“‹Part of Professional Cloud Architect ยท GCP Certification Practice
Real Exam ScenarioCloud Functions

You are designing a high-scale data ingestion system using Cloud Functions. You want to ensure that if a function fails, the event is not lost and can be retried later. Which pattern should you use?

โœ“ Correct Answer & ExplanationCloud Functions

Correct Answer

Use an asynchronous trigger (like Pub/Sub) with retry settings enabled

Why This Answer Is Correct

Event-driven Cloud Functions triggered by Pub/Sub (or GCS) support automatic retries. If the function returns a non-zero exit code, the underlying event is re-queued.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Cloud Functions โ€” a core concept tested in Professional Cloud Architect. Understanding Cloud Functions is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.