Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A financial services organization is designing a real-time event processing architecture using Google Cloud. The architecture continuously ingests transaction streams from Pub/Sub, transforms and enriches the data using Cloud Dataflow, and writes the output to an Apache Kafka cluster for downstream consumer applications.
The system must meet the following requirements:
How should the architect configure the Dataflow streaming pipeline and Kafka integration to meet these requirements?
This architecture configures Cloud Dataflow's KafkaIO sink connector for Exactly-Once Semantics (EOS), optimizes Kafka transaction timeouts, and enforces non-disruptive pipeline deployment practices for streaming data movement.
withEOS() on the Beam KafkaIO transform forces Dataflow to use transactional writes to Kafka, ensuring records are written exactly once downstream.transaction.max.timeout.ms with Kafka topic retention gives ongoing transactions sufficient time to commit after transient network issues or broker reboots, preventing aborted transactions that lead to retried duplicates.gcloud dataflow jobs run ... --update) preserve the execution graph and state without triggering a drain phase, maintaining exactly-once semantics.Default Kafka write connectors only offer at-least-once delivery. Draining a pipeline bypasses commit acknowledgments for late/in-flight offsets, breaking EOS. Combining withEOS(), tuned transaction timeouts, and in-place pipeline updates ensures unbroken end-to-end exactly-once stream processing.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.