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....
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.
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.
You are building a real-time data ingestion pipeline using Cloud Pub/Sub. You want to ensure that no messages are lost even if the subscriber application (Cloud Run) is offline for 4 hours. How should you configure Pub/Sub?
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?