Courseiva
Data Analysis And PresentationhardMultiple ChoiceObjective-mapped

GCP-ADP Data Analysis And Presentation Practice Question

A user is running a query on a BigQuery table with nested data (JSON). How do you access a field named 'city' inside a record field named 'address'?

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

address.city

Standard SQL uses the dot notation (dot-walk) to access fields within a STRUCT.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • address->city

    Why it's wrong here

    This syntax is common in other databases like PostgreSQL, but not in BigQuery.

  • address.city

    Why this is correct

    The dot operator is used for accessing nested fields.

  • address[city]

    Why it's wrong here

    Square brackets are for array indexing, not nested object access.

  • JSON_EXTRACT(address, '$.city')

    Why it's wrong here

    This works for raw JSON strings, but dot notation is the native way to access typed STRUCTs.

About these practice questions

This GCP-ADP question is part of Courseiva's 205-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.