You are building a serverless data processing pipeline. You want to trigger a Cloud Function every time a new file is created in a Cloud Storage bucket, but you need to ensure the function finishes within its 9-minute execution limit. What is the best design?

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

Correct Answer: Process only one file per function invocation; for large files, use Cloud Dataflow instead

Cloud Functions have strict time limits. For long-running or large-scale data processing, Cloud Dataflow (or Cloud Run with longer timeouts) is the architecturally correct choice....

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

You are building a serverless data processing pipeline. You want to trigger a Cloud Function every time a new file is created in a Cloud Storage bucket, but you need to ensure the function finishes within its 9-minute execution limit. What is the best design?

โœ“ Correct Answer & ExplanationCloud Functions

Correct Answer

Process only one file per function invocation; for large files, use Cloud Dataflow instead

Why This Answer Is Correct

Cloud Functions have strict time limits. For long-running or large-scale data processing, Cloud Dataflow (or Cloud Run with longer timeouts) is the architecturally correct choice.

๐Ÿ“š 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.