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?

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

Correct Answer: Cloud Pub/Sub handles this by default (retains for 7 days)

By default, Cloud Pub/Sub subscriptions acknowledge and retain messages for up to 7 days, ensuring delivery when the subscriber comes back online....

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

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?

โœ“ Correct Answer & ExplanationCloud Functions

Correct Answer

Cloud Pub/Sub handles this by default (retains for 7 days)

Why This Answer Is Correct

By default, Cloud Pub/Sub subscriptions acknowledge and retain messages for up to 7 days, ensuring delivery when the subscriber comes back online.

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