Courseiva
easyMultiple Choice

FC0-U71 Practice Question: A database administrator wants to enforce that a…

A database administrator wants to enforce that a column only accepts whole numbers. Which data type should be used?

⚠ Common exam trap

Watch out — candidates often confuse FLOAT with INTEGER, assuming FLOAT can store whole numbers, but FLOAT always permits decimal places, which violates the 'whole numbers only' constraint.

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

✓

Integer

The INTEGER data type is specifically designed to store whole numbers without fractional components. In database systems, enforcing a column to accept only whole numbers requires a data type that disallows decimal points, which INTEGER does by definition. Using INTEGER ensures data integrity by rejecting any non-integer input, such as 3.14 or 'abc'.

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 this is correct

    Integer stores whole numbers only, rejecting fractional values at the storage layer. Numeric or decimal would accept decimals, and character types accept any text, so Integer is the only type that enforces the column constraint the administrator requires.

  • ✗

    String

    Why it's wrong here

    A String column stores arbitrary text, so digits, letters and symbols all pass validation, failing the whole-number constraint. It is tempting because numeric-looking identifiers such as phone numbers or postcodes are legitimately stored as strings when leading zeros or formatting must be preserved.

  • ✗

    Boolean

    Why it's wrong here

    Boolean holds only true/false, so it cannot represent values like 7 or 42, failing the whole-number requirement. It is tempting because it does enforce a strict domain, and it would be the correct choice for a column recording a yes/no flag such as whether an account is active.

  • ✗

    Float

    Why it's wrong here

    Float stores fractional values with decimal precision, so it cannot enforce whole numbers; integer is the type that restricts a column to whole numbers. Float is tempting when numeric storage is needed, but it permits decimals and risks rounding.

About these practice questions

Courseiva writes every FC0-U71 question from scratch — 988 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This FC0-U71 practice question is part of Courseiva's free CompTIA 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 FC0-U71 exam.