Google Cloud Professional Data Engineer · Free practice question 5 of 12
Pub/Sub Cloud Storage subscription archive
Compliance at Avonmore Logistics requires a raw copy of every message from a Pub/Sub topic to be kept in Cloud Storage as files, batched every few minutes, with no servers or pipelines to manage. What should the data engineer create?
- A.A Cloud Storage subscription on the topic, with file batching by time and size
- B.A push subscription to a Cloud Run service that writes each message to an object
- C.A BigQuery subscription followed by a daily export to Cloud Storage
- D.A snapshot of the subscription taken every few minutes
Show answer and explanation
Correct answer: A. A Cloud Storage subscription on the topic, with file batching by time and size
Why: Cloud Storage subscriptions write messages directly into objects in a bucket and batch them into files according to time and size settings, with no extra compute. A Cloud Run service is code to run and creates one object per message. Going through BigQuery and exporting daily adds a step and delay, and subscription snapshots record acknowledgment state rather than writing files.
More free Google Cloud Professional Data Engineer questions
- Sliding windows for moving averages
- Turbo replication on dual-region buckets
- Assured Workloads for sovereign controls
- Data Validation Tool after migration
- Bigtable garbage collection by age
- Search indexes for log lookups
- Data Studio viewer's credentials
- Integer-range partitioning on an ID
- Approximate distinct counts for dashboards
- Scheduled queries for a single SQL job
- Pub/Sub message storage policy regions