You have designed an Apache Beam processing pipeline that reads from a Pub/Sub topic. The topic has a one-day message-retention duration and writes to a Cloud Storage bucket. You must choose a bucket location and processing strategy that prevent data loss during a regional outage with an RPO of 15 minutes. What should you do?
A
Use a dual-region Cloud Storage bucket.2. Monitor Dataflow metrics with Cloud Monitoring to determine when an outage occurs.3. Seek the subscription back in time by 15 minutes to recover the acknowledged messages.4. Start the Dataflow job in a secondary region.
B
Use a multi-regional Cloud Storage bucket.2. Monitor Dataflow metrics with Cloud Monitoring to determine when an outage occurs.3. Seek the subscription back in time by 60 minutes to recover the acknowledged messages.4. Start the Dataflow job in a secondary region.
C
Use a regional Cloud Storage bucket.2. Monitor Dataflow metrics with Cloud Monitoring to determine when an outage occurs.3. Seek the subscription back in time by one day to recover the acknowledged messages.4. Start the Dataflow job in a secondary region and write in a bucket in the same region.
D
Use a dual-region Cloud Storage bucket with turbo replication enabled.2. Monitor Dataflow metrics with Cloud Monitoring to determine when an outage occurs.3. Seek the subscription back in time by 60 minutes to recover the acknowledged messages.4. Start the Dataflow job in a secondary region.
Show Answer Answer Explanation Cloud Storage turbo replication is available only for dual-region buckets and is designed to replicate newly written objects to both regions within a 15-minute RPO. Default replication has a 12-hour RPO, so neither a standard dual- or multi-region bucket nor a regional bucket satisfies the requirement. Pub/Sub topic retention permits replay of retained acknowledged messages, enabling a secondary-region Dataflow job to reprocess an overlap after failover.
Learn more
Community Discussion