ASSOCIATE-DATA-PRACTITIONER practice question 11 of 25
Your organization’s ecommerce website collects user activity logs using a Pub/Sub topic. Your organization’s leadership team wants a dashboard that contains aggregated user engagement metrics. You need to create a solution that transforms the user activity logs into aggregated metrics, while ensuring that the raw data can be easily queried. What should you do?
Full set: 106 questionsThis solution is the most efficient and modern approach. A BigQuery subscription directly streams raw Pub/Sub messages into a BigQuery table, perfectly satisfying the requirement for easily queryable raw data. A materialized view can then be created on top of this raw data table. It automatically and incrementally pre-computes the aggregated user engagement metrics. This pre-computation significantly speeds up dashboard queries, providing a low-latency experience for the leadership team. This architecture is simpler and more integrated than a multi-service Dataflow pipeline for this specific use case.
A. This is a valid but less efficient pattern. It requires managing a separate Dataflow job for transformation, adding operational overhead compared to a serverless BigQuery-native solution.
B. Using Cloud Run is overly complex for this task. Dataflow or BigQuery's native capabilities are better suited for continuous data transformation pipelines than a generic container service.
C. This adds an unnecessary intermediate step. Storing data in Cloud Storage first before processing introduces latency and complexity compared to streaming directly into BigQuery.
1. Google Cloud Documentation, "Stream data from Pub/Sub to BigQuery". This page describes the BigQuery subscription type, which writes messages directly to an existing BigQuery table.
2. Google Cloud Documentation, "Introduction to materialized views". This document explains how materialized views precompute results, improving dashboarding performance by querying pre-aggregated data.
3. Google Cloud Architecture Center, "Serverless data analysis reference architecture". This guide shows a pattern where Pub/Sub streams directly to BigQuery for real-time analytics, which is then used by BI tools.
Keep practicing
Take the free ASSOCIATE-DATA-PRACTITIONER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ASSOCIATE-DATA-PRACTITIONER practice questions
- Question 1You are designing a pipeline to process data files that arrive in Cloud Storage by 3:00 a…
- Question 2Your organization plans to move their on-premises environment to Google Cloud. Your organ…
- Question 3You are responsible for managing Cloud Storage buckets for a research company. Your compa…
- Question 4You are predicting customer churn for a subscription-based service. You have a 50 PB hist…
- Question 5Your retail company collects customer data from various sources:Online transactions: Stor…
- Question 6Your company has developed a website that allows users to upload and share video files. T…
