CertKeen

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?

  1. A.A Cloud Storage subscription on the topic, with file batching by time and size
  2. B.A push subscription to a Cloud Run service that writes each message to an object
  3. C.A BigQuery subscription followed by a daily export to Cloud Storage
  4. 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