GCP-ADP Data Analysis And Presentation Practice Question
You are identifying trends in a large dataset using BigQuery. Which SQL function is best suited to identify the top 5 products sold per region?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
RANK() OVER (PARTITION BY region ORDER BY sales DESC).
Window functions, specifically RANK() or DENSE_RANK() combined with PARTITION BY, are designed for this exact use case.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
GROUP BY region, product.
Why it's wrong here
GROUP BY collapses data but does not easily allow ranking within groups.
- ✗
SELECT TOP 5 * FROM sales.
Why it's wrong here
BigQuery standard SQL does not use 'SELECT TOP' (it uses LIMIT).
- ✓
RANK() OVER (PARTITION BY region ORDER BY sales DESC).
Why this is correct
This partitions the data by region and ranks sales, making it easy to filter for the top 5.
- ✗
SUM(sales) OVER (ORDER BY region).
Why it's wrong here
This provides a running total, not a top-N ranking.
About these practice questions
Courseiva writes every GCP-ADP question from scratch — 205 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Google Cloud exam blueprint
This GCP-ADP practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCP-ADP exam.