ADP Practice Questions
Prepare for ADP with more than an answer.
Unlock the full exam and previous versions
- v1Google Cloud Associate Data Practitioner 135 questions Locked
- ADPLegacy Associate Data Practitioner 307 questions Current
- 1
Case Study: Global Logistics Co.
Company Background: Global Logistics Co. is a multinational shipping company that tracks millions of packages daily. They have a massive on-premises data infrastructure that they are migrating to Google Cloud to improve scalability and analytics capabilities.
Current Situation: They currently receive real-time package status updates from their fleet of trucks and planes. These updates are small JSON messages sent to an on-premises message queue. A legacy Java application processes these messages, enriches them with data from a PostgreSQL database, and stores the results in a local data warehouse. This system is struggling to keep up with the increasing volume of data, leading to delays in package tracking visibility for customers.
Technical Requirements:
- The new cloud-native pipeline must process messages in near real-time with low latency.
- The solution must be serverless and auto-scaling to handle unpredictable spikes in message volume.
- The pipeline needs to perform a stateful enrichment: for each package, it must look up the package's origin and destination from a reference table.
- The final, enriched data must be written to a BigQuery table for real-time analytics and a Cloud Storage bucket for archival.
Which combination of Google Cloud services provides the most suitable architecture for this new pipeline?
Show answer details
Correct answer: B
This architecture perfectly matches the requirements. Pub/Sub is the standard for scalable, real-time message ingestion. Dataflow is specifically designed for large-scale, stateful stream processing, making it ideal for the package data enrichment requirement. It's serverless, auto-scaling, and has native sinks for both BigQuery and Cloud Storage. Cloud Functions are not well-suited for stateful operations at scale, and a batch-oriented approach with Dataproc would not meet the near real-time requirement.
- 2
You are joining a project that uses Looker for its business intelligence. You are given a link to a dashboard, but you need to understand how the metrics are calculated. Specifically, you want to see the underlying data model, including the table joins and dimension/measure definitions. Where in the Looker interface would you navigate to find this information?
Show answer details
Correct answer: C
The core of Looker's data modeling is LookML. To understand how metrics are defined, you start from the user-facing 'Explore' interface. By clicking 'Explore from Here' on a dashboard tile, you are taken to the Explore view that powers that tile. From there, if you have the necessary permissions, you can jump directly to the LookML definition for any dimension or measure, and navigate the LookML project files to see the views, models, and join logic.
- 3
A data practitioner needs to load a 500 MB CSV file from a local machine into a new BigQuery table named
campaign_results. Whichbqcommand-line tool invocation is the correct way to accomplish this?Show answer details
Correct answer: B
The
bq loadcommand is used for loading data into BigQuery from various sources. For a local file, you provide the dataset and table name, followed by the local file path.--source_format=CSVspecifies the file type, and--autodetectallows BigQuery to automatically infer the table schema from the CSV header and data, which is convenient for new tables. - 4
True or False: When using Analytics Hub to share a BigQuery dataset with another organization, a complete copy of the data is replicated into the subscriber's Google Cloud project, potentially incurring high storage costs for the subscriber.
Show answer details
Correct answer: B
This statement is false. Analytics Hub facilitates data sharing by creating a 'linked dataset' in the subscriber's project. This linked dataset is a read-only reference to the original data in the publisher's project. No data is copied. The publisher pays for the storage, and the subscriber pays for the queries they run against the shared data. This architecture is a key benefit, as it avoids data duplication and associated storage costs.
- 5
You need to create a simple, scheduled workflow that runs a BigQuery query every morning at 9 AM, and if the query is successful, sends a notification to a Pub/Sub topic. The workflow has no complex dependencies or branching logic. You want to use a serverless, managed orchestration service that requires defining the workflow in YAML or JSON. Which service is the best fit for this requirement?
Show answer details
Correct answer: C
Workflows is the ideal service for this use case. It is a fully managed, serverless orchestration platform that uses a YAML or JSON syntax to define the sequence of steps. It has built-in connectors for Google Cloud services like BigQuery and Pub/Sub, making it easy to chain these calls together. It is designed for simple, reliable sequences like the one described. Cloud Composer (managed Airflow) is more powerful but also more complex and not serverless, making it overkill for this simple task.
- 6
A financial analytics firm is migrating its data warehouse to BigQuery. A critical requirement is that all new tables created within the
finance_reportsdataset must automatically enforce a 365-day data retention policy based on an ingestion-time partition. Any attempt to create a table without this specific partitioning and expiration setting should fail. Whichbqcommand should be used to configure the dataset to meet this requirement?Show answer details
Correct answer: D
To enforce that all new tables in a dataset require partitioning, you must set the
--require_partition_filterflag totruewhen updating the dataset. The--default_table_expirationsets the lifetime for new tables (31536000 seconds = 365 days), and--time_partitioning_type DAYspecifies ingestion-time partitioning. This command updates an existing dataset (bq update) with all the required enforcement settings. The other options either use the wrong command (mkfor create instead of update), miss the--require_partition_filterflag, or use--default_partition_expirationwhich applies to partitions within a table, not the table itself. - 7
A data engineering team uses Dataflow to process streaming IoT data. The pipeline reads from Pub/Sub, performs a complex transformation, and writes to BigQuery. During a load spike, you observe that the data freshness in BigQuery is degrading significantly, and the Pub/Sub subscription shows a growing backlog of unacknowledged messages. The Dataflow monitoring UI shows high System Latency but CPU utilization across workers remains below 50%. What is the most likely bottleneck causing this issue?
Show answer details
Correct answer: B
High System Latency with low CPU utilization is a classic symptom of a 'hot key' problem. This occurs when a large volume of data with the same key is processed by a single worker in a
GroupByKeyor similar operation, creating a bottleneck. The other workers remain underutilized because they are waiting for the overloaded worker to finish. Increasing vCPUs or workers (autoscaling) wouldn't solve this fundamental logic issue. While BigQuery streaming quotas can be a bottleneck, the primary evidence here (low CPU across workers despite a backlog) points strongly to a non-parallelizable step in the pipeline itself. - 8
A retail company wants to analyze sales data stored in a BigQuery table named
sales_transactions. The table containsproduct_id,store_id,sale_date, andrevenue. The analytics team needs a report that shows the total revenue for each product, but only for products that have been sold in more than 10 unique stores. Which SQL query in BigQuery will produce the desired report?Show answer details
Correct answer: B
This query correctly calculates the total revenue per product and then filters those results to include only products meeting the specified condition. The
GROUP BY product_idclause aggregates the data by product. TheHAVINGclause is used to filter the results of an aggregate function (COUNT(DISTINCT store_id)) after the grouping has occurred. TheWHEREclause cannot be used with aggregate functions; it filters rows before aggregation. - 9
You are tasked with ingesting a large, 10 TB dataset of historical logs from an on-premises SFTP server to a Cloud Storage bucket for archival and future analysis. The on-premises location has a reliable 1 Gbps internet connection. The transfer must be completed within 48 hours, be fully managed, and provide data integrity checks. Which Google Cloud service should you use for this one-time transfer?
Show answer details
Correct answer: C
Storage Transfer Service is the ideal choice for this scenario. It is a fully managed service designed for large-scale online data transfers from sources like SFTP servers to Cloud Storage. It handles scheduling, data integrity checks, and can easily saturate the 1 Gbps connection to meet the 48-hour deadline for 10 TB. Transfer Appliance is for offline transfers and is overkill for this data size and timeline. Using
gsutilwould require manual setup, scripting for reliability, and is not a managed solution. - 10
A business analyst has created a dashboard in Looker Studio to track daily sales metrics. The dashboard connects directly to a BigQuery table. Users are reporting that the dashboard is becoming very slow and often times out, especially during peak business hours. The underlying BigQuery table is 5 TB and is not partitioned or clustered. You want to improve the dashboard's performance and reduce query costs with minimal changes to the dashboard itself. Which actions should you take? (Select TWO)
Show answer details
Correct answer: A, C
