Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Associate Data Practitioner practice bank has 1,132 more like it. Try 10 free: instant score, no account.
A retail company is designing a data ingestion pipeline to process customer purchases and inventory adjustments. The architecture must satisfy the following requirements:
Which architectural approach best addresses these requirements?
An event-driven architecture using Google Cloud Pub/Sub is a decoupled, asynchronous messaging pattern where producers publish individual event records (such as purchase transactions or delta inventory changes) to topics without needing knowledge of downstream subscribers. Subscriptions allow downstream servicesβsuch as BigQueryβto ingest the streaming data continuously for immediate analytical availability.
{"inventory": -1}) rather than rigid state-setting commands. Messages are sent asynchronously, allowing high-throughput scaling without waiting for consumer acknowledgments.
Compared to scheduled batch pipelines or command-driven message queues, event-driven streaming with Pub/Sub minimizes data latency, reduces producer complexity, and provides the flexibility to support multiple independent analytical workloads simultaneously.
An hourly file-based batch ingestion process uses scheduled scripts or cron jobs to export transaction logs into flat files (such as CSV), upload them to Cloud Storage, and trigger batch load jobs into BigQuery.
The upstream source system was a legacy mainframe or third-party appliance that only supported periodic flat-file batch exports, and where near real-time analytics was not a requirement.
A centralized message-queue architecture (a command-oriented "smart pipes, dumb endpoints" model) sends explicit imperative commands from producers to specific queues, directing downstream targets to change their state to a precalculated value (e.g., setInventory(2)).
The scenario required a legacy point-to-point workflow where a single downstream service must execute a strict transactional command requiring synchronous acknowledgment before the caller can continue.
A scheduled batch extraction pipeline periodically queries an operational database (e.g., every 24 hours) using tools like Cloud Composer or Cloud Data Fusion to extract accumulated records and load them into BigQuery in bulk.
The scenario required processing historical data for monthly financial reconciliation, generating non-time-sensitive executive summaries, or performing large-scale machine learning model training where sub-second latency is not required.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated