PCDE Design and implement database schemas Practice Question
Which TWO data types are supported in Cloud Spanner schemas?
⚠ Common exam trap
Candidates often mistakenly choose GEOMETRY or TEXT because they are common in other databases, but Cloud Spanner uses STRING for text and does not support spatial types. Also, TINYINT is not a Cloud Spanner type; use INT64 instead.
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
✓
ARRAY
ARRAY is a supported data type in Cloud Spanner, allowing you to store ordered lists of elements of the same primitive type (e.g., ARRAY<STRING>, ARRAY<INT64>). This is essential for modeling one-to-many relationships without requiring separate tables, and it integrates seamlessly with Cloud Spanner's query engine for array operations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
ARRAY
Why this is correct
ARRAY is supported for storing repeated values of a specific type.
- ✗
GEOMETRY
Why it's wrong here
Spanner does not support spatial data types.
- ✓
TIMESTAMP
Why this is correct
TIMESTAMP is a supported data type in Spanner.
- ✗
TEXT
Why it's wrong here
Use STRING instead of TEXT.
- ✗
TINYINT
Why it's wrong here
Cloud Spanner uses INT64 for integer types.
Go deeper
Related to this question
About these practice questions
Courseiva writes every PCDE question from scratch — 1,446 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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCDE 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 PCDE exam.