Google Cloud

GCP ADP Exam Prep: Essential SQL Patterns, Looker Studio & Dataform Complete Guide

2026-05-24
NicheeLab Editorial Team

A deep dive into the SQL skills and Looker Studio / Dataform implementation patterns tested on the ADP exam. Covers BigQuery-dialect SQL, window functions, UNNEST, choosing between Looker and Looker Studio, and Dataform vs. Composer selection criteria.

Essential BigQuery SQL Patterns

1. Arrays and Structs (STRUCT / ARRAY)

SELECT
  user_id,
  ARRAY_AGG(STRUCT(event_name, event_timestamp)) AS events
FROM analytics.events
GROUP BY user_id;

-- 配列展開
SELECT user_id, event.event_name
FROM analytics.user_events,
UNNEST(events) AS event;

2. Window Functions

SELECT
  user_id,
  event_timestamp,
  ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY event_timestamp) AS event_seq,
  LAG(event_name) OVER (PARTITION BY user_id ORDER BY event_timestamp) AS prev_event
FROM analytics.events;

3. CTEs and Recursion

WITH daily_sessions AS (
  SELECT DATE(event_timestamp) AS d, COUNT(DISTINCT user_id) AS dau
  FROM analytics.events
  GROUP BY 1
)
SELECT d, dau, AVG(dau) OVER (ORDER BY d ROWS BETWEEN 6 PRECEDING AND CURRENT ROW) AS dau_7d
FROM daily_sessions;

4. Pivot / Unpivot

-- PIVOT
SELECT * FROM (
  SELECT user_id, event_name FROM analytics.events
) PIVOT (COUNT(*) FOR event_name IN ('login', 'purchase', 'logout'));

Looker vs Looker Studio

ItemLookerLooker Studio
PricingPaid (per-user)Free tier, Pro is paid
Semantic layerLookML (centralized definition)Per-report definition
GovernanceStrong (Git integration)Simple
EmbeddingEmbed SDK, rich APIsiframe embed
Primary useEnterprise-wide BICasual / prototyping
Vertex AI integrationYes (Looker Studio Pro)Pro only

Dataform vs Cloud Composer

ItemDataformCloud Composer
Use caseBigQuery SQL workflowsGeneral-purpose pipelines (Airflow)
LanguageSQLX (SQL + JS)Python (Airflow DAG)
Git integrationBuilt-inGCS / Git Sync
TestingAssertions (NULL / UNIQUE)Pytest, etc.
Free tierYes (Dataform Core)Composer environment billed
Primary useBigQuery-centric ELTMulti-cloud / multi-stage processing

Dataform Basic Configuration Example

-- definitions/raw_events.sqlx
config { type: "table", schema: "raw" }
SELECT * FROM `{ref('source_events')}`

-- definitions/daily_metrics.sqlx
config { type: "view", schema: "analytics" }
SELECT DATE(event_timestamp) AS d, COUNT(*) AS events
FROM `{ref('raw_events')}`
GROUP BY 1

Typical Data Pipeline

  1. Ingestion: Pub/Sub → Dataflow → BigQuery (streaming) or Cloud Storage → Batch Load
  2. Transformation: Define staging → intermediate → mart layers in Dataform
  3. Catalog & quality: Data lineage and quality checks in Dataplex
  4. Visualization: Looker Studio (casual) or Looker (enterprise BI)
  5. Orchestration: Cloud Composer for external system integration, Workflows for lightweight cases

Common Trick Questions

  • BigQuery vs Spanner: OLAP (analytics) → BigQuery; OLTP (transactions) → Spanner
  • Looker vs Looker Studio: Enterprise-wide BI → Looker; free / prototyping → Looker Studio
  • Dataform assertions: NULL_CHECK / UNIQUE / ROW_CONDITIONS ensure quality
  • Cloud Composer: Watch Airflow version compatibility; Composer 2 is the current recommendation

What SQL should I learn for the ADP exam?

SELECT, GROUP BY, JOIN, window functions, CTEs (WITH), and arrays/structs (UNNEST) are essential. BigQuery-specific functions like DATE_TRUNC, FORMAT_DATE, and SAFE_CAST also appear frequently.

What is the difference between Looker and Looker Studio?

Looker (formerly LookML) focuses on a semantic layer and governance, while Looker Studio (formerly Data Studio) is a free, casual BI tool. The ADP exam tests when to use each.

What is Dataform used for?

It's SQL workflow orchestration for BigQuery (Google's managed equivalent of dbt). It handles Git integration, version control, testing, and dependency resolution using SQL.

When should I use Cloud Composer (Airflow) instead?

Composer is general-purpose (Python / arbitrary processing), while Dataform is SQL-only. Use Dataform for BigQuery-centric data transformations, and Composer for multi-cloud, multi-stage pipelines.

Should I choose BigQuery or Spanner?

Spanner = OLTP (low latency, strong consistency, transactional); BigQuery = OLAP (large-scale analytics, columnar). The standard practice is to separate them strictly by use case to avoid confusion.

What are the limits of Looker Studio?

The free version has limits on data volume and API calls. When connected to BigQuery, watch out for per-query billing. Looker Studio Pro adds team management and Vertex AI integration.

Which services appear most often on the ADP exam?

BigQuery (central), Looker Studio, Cloud Composer, Dataform, Pub/Sub, Cloud Storage, Vertex AI (ML basics), and Dataplex (catalog).

How many study hours should I plan for?

30-50 hours for those with SQL experience, 80-120 hours for beginners. A standard split is 20 hours for SQL fundamentals, 20 hours of hands-on BigQuery, and 10 hours of mock exams.

Related Articles - ADP / Data

GCP Associate Data Practitioner (ADP) 完全ガイド|2024 新試験・BigQuery・SQL 中心

Google Cloud Associate Data Practitioner (ADP、2024 新設) の試験範囲、BigQuery / Cloud Composer / Dataform / Looker Studio、SQL スキル要件、AWS DEA / Databricks DE / Azure DP-700 比較を詳解。

GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM

Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。

GCP Professional Cloud Database Engineer (PCDBE) 完全ガイド|Spanner・AlloyDB・Cloud SQL

Google Cloud Professional Cloud Database Engineer の試験範囲、Spanner / AlloyDB / Cloud SQL / Bigtable / Firestore、AWS DBS・Azure DP-300 比較を詳解。

Database Migration Service (DMS) 完全ガイド|Oracle/MySQL/PG → Cloud SQL/AlloyDB (GCP)

Google Cloud Database Migration Service の全機能解説。Oracle / MySQL / PostgreSQL / SQL Server / MongoDB → Cloud SQL / AlloyDB / BigQuery / Firestore 移行。Heterogeneous 移行、Continuous Migration、料金、AWS DMS 比較を 2026 年最新版で網羅。

* Google Cloud, BigQuery, and Looker are trademarks of Google LLC. For the latest information, see Dataform official docs / Looker Studio.

Check what you learned with practice questions

Practice with certification-focused question sets

View GCP exam prep page
Author

NicheeLab Editorial Team

NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.


Related articles
Google Cloud

Google Cloud Certification Roadmap (2026)

Choose your GCP certification path — Foundational, Associate...

Google Cloud

CDL Cloud Digital Leader: Complete Exam Guide (2026)

Pass the Cloud Digital Leader exam — cloud business value, G...

Google Cloud

GAIL Generative AI Leader: Complete Exam Guide (2026)

Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...

Google Cloud

Vertex AI Fundamentals for GCP Certs (2026)

Vertex AI basics every cert candidate needs — Workbench, Pip...

Google Cloud

Associate Cloud Engineer (ACE): Complete Guide (2026)

Pass the Associate Cloud Engineer exam — Console, gcloud, pr...

Browse all Google Cloud articles (103)
© 2026 NicheeLab All rights reserved.