PCDE Migrate data solutions Practice Question
A company is migrating Oracle to Cloud SQL for PostgreSQL using Ora2Pg. For a column defined as NUMBER(10,2) in Oracle, what is the corresponding data type in PostgreSQL?
⚠ Common exam trap
A common misconception in Google Cloud migrations is that NUMBER(p,s) maps to DOUBLE PRECISION or FLOAT. Candidates often confuse fixed-point and floating-point semantics, especially when they see 'NUMBER' and assume it's a generic numeric type instead of recognizing the exact precision and scale specified.
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
✓
NUMERIC(10,2)
Oracle's NUMBER(10,2) specifies a fixed-point number with up to 10 digits total and 2 digits after the decimal point. PostgreSQL's NUMERIC(10,2) is the direct equivalent, offering identical precision and scale semantics. Ora2Pg automatically maps NUMBER(p,s) to NUMERIC(p,s) to preserve exact numeric storage.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
INTEGER
Why it's wrong here
INTEGER cannot store decimal places.
- ✓
NUMERIC(10,2)
Why this is correct
NUMERIC(10,2) matches the precision and scale.
- ✗
DOUBLE PRECISION
Why it's wrong here
Floating-point type, not exact.
- ✗
TEXT
Why it's wrong here
Text type would lose numeric semantics.
Go deeper
Related to this question
About these practice questions
This PCDE question is part of Courseiva's 1,446-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 →
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.