Courseiva

CCNA Itf Database Fundamentals Questions

74 questions · Itf Database Fundamentals topic · All types, answers revealed

1
MCQmedium

A technician is documenting a hospital system where each patient can have many appointments, but every appointment belongs to exactly one patient and one doctor. The technician must describe how the Appointment table relates to the Patient table. Which term correctly describes this relationship?

A.Many-to-many
B.Recursive
C.One-to-one
D.One-to-many
AnswerD

This is correct because one patient row can be referenced by many appointment rows, while each appointment row references exactly one patient through a foreign key. That is the definition of a one-to-many relationship. The same pattern applies between Doctor and Appointment, so documenting it as one-to-many accurately captures the cardinality in both directions.

Why this answer

Because one patient can be associated with many appointments while each appointment is tied to a single patient, the relationship is one-to-many. This is implemented by placing a PatientID foreign key in the Appointment table, which also allows a similar DoctorID foreign key to capture the appointment-to-doctor link.

Exam trap

The trap here is confusing one-to-many with many-to-many, which would only apply if a single appointment could involve multiple patients simultaneously.

2
Multi-Selectmedium

A junior database administrator is reviewing the structure of a relational database used by a library. The database contains a Books table, a Members table, and a Loans table that records which member borrowed which book and the loan date. Which TWO of the following statements accurately describe the role of the Loans table in this database? (Choose two.)

Select 2 answers
A.It is an example of a NoSQL document store.
B.It contains foreign keys that reference the primary keys of both the Books and Members tables.
C.It stores the complete details of each book, including title, author, and ISBN.
D.It resolves a many-to-many relationship between Books and Members.
E.It eliminates the need for a primary key in the Books table.
AnswersB, D

The Loans table typically includes foreign key columns such as BookID and MemberID that reference the primary keys of the Books and Members tables. These foreign keys enforce referential integrity, ensuring that a loan record cannot exist for a nonexistent book or member, which is a core principle of relational database design.

Why this answer

The Loans table is a junction table that resolves the many-to-many relationship between Books and Members by containing foreign keys to both. It does not duplicate book details, does not remove the need for primary keys, and is not a NoSQL document store. These characteristics are fundamental to relational database design and normalization.

Exam trap

The trap here is assuming that a junction table must store all descriptive data from the tables it links, rather than just the foreign keys and relationship-specific attributes.

3
MCQmedium

A logistics analyst needs to record which driver delivered each shipment. A driver can deliver many shipments, and each shipment is delivered by exactly one driver. Which relationship type exists between drivers and shipments?

A.Zero-to-one
B.One-to-one
C.One-to-many
D.Many-to-many
AnswerC

One driver appears on many shipment records, while each shipment record names only one driver. That is the definition of a one-to-many relationship, and it is implemented by placing the driver identifier in the shipment table as a foreign key referencing the driver's primary key.

Why this answer

The business rule is asymmetric: one driver appears against many shipment rows, but each shipment row names only one driver. That is a one-to-many relationship, and it is normally implemented by storing the driver's key value in the shipment table rather than by creating a separate linking table.

Exam trap

The trap here is reaching for a junction table whenever two entities are involved, when a linking table is needed only for many-to-many relationships.

4
MCQeasy

Which of the following is a characteristic of a relational database table?

A.Rows represent records and columns represent fields
B.Rows represent fields and columns represent records
C.Each table must have a composite key
D.Tables are stored in a hierarchical structure
AnswerA

In a relational table, each row is a tuple representing one record, while each column is an attribute representing a field. This row-record, column-field mapping is the defining structural characteristic, distinguishing tables from unstructured or non-relational stores.

Why this answer

In a relational database table, the fundamental structure is that each row (tuple) represents a single record (instance of an entity), and each column (attribute) represents a field (property) of that record. This is the standard row-column orientation defined by E.F. Codd's relational model.

Therefore, option A correctly describes this characteristic.

Exam trap

The trap is the reversed wording in option B, which can confuse candidates who are not careful; also, option C might tempt those who think every table needs a composite key, but that is not a requirement.

How to eliminate wrong answers

Option B is wrong because it reverses the roles: rows do not represent fields, and columns do not represent records; that would be a transposed view and is not how relational tables are structured. Option C is wrong because not every table must have a composite key; a table can have a single-column primary key or even no primary key (though not best practice), and composite keys are only used when a single column cannot uniquely identify a row. Option D is wrong because relational tables are stored in a flat, two-dimensional structure, not a hierarchical one; hierarchical structures are used in hierarchical databases like IBM IMS, not relational databases.

5
MCQmedium

An analyst runs a query against a sales database and wants to return only the rows where the Region column equals 'West' and the SaleAmount column is greater than 1000. The analyst also wants the results sorted from highest SaleAmount to lowest. Which clause combination should the analyst use?

A.WHERE Region = 'West' OR SaleAmount > 1000 ORDER BY SaleAmount ASC
B.WHERE Region = West AND SaleAmount > 1000 ORDER BY SaleAmount DESC
C.HAVING Region = 'West' AND SaleAmount > 1000 ORDER BY SaleAmount DESC
D.WHERE Region = 'West' AND SaleAmount > 1000 ORDER BY SaleAmount DESC
AnswerD

This is correct because WHERE filters rows using both conditions joined by AND, and ORDER BY with DESC sorts the surviving rows from highest to lowest SaleAmount. The single quotes around West are required for a text comparison, and the numeric comparison needs no quotes. This combination satisfies every requirement in the scenario.

Why this answer

Row-level filtering with two conditions requires WHERE combined with AND, and descending order requires ORDER BY with DESC. Quoting the text literal 'West' keeps the comparison valid, so the clause that filters both conditions and sorts from highest to lowest SaleAmount meets the analyst's needs.

Exam trap

The trap here is mixing up WHERE and HAVING or swapping AND for OR, which changes which rows are returned even though the sorting clause looks correct.

6
MCQhard

A database has a table 'Orders' with columns OrderID (primary key), CustomerID, OrderDate, and TotalAmount. Which SQL statement will delete all orders placed before January 1, 2023?

A.DROP FROM Orders WHERE OrderDate < '2023-01-01'
B.DELETE FROM Orders WHERE OrderDate < '2023-01-01'
C.DELETE OrderDate < '2023-01-01' FROM Orders
D.REMOVE FROM Orders WHERE OrderDate < '2023-01-01'
AnswerB

DELETE removes only rows satisfying the WHERE predicate, so OrderDate < '2023-01-01' purges pre-2023 orders while preserving the table, its schema and later records. This satisfies the stem's requirement to delete all orders placed before that date, unlike DROP or TRUNCATE, which would remove the table or every row.

Why this answer

DELETE FROM Orders WHERE OrderDate < '2023-01-01' is the correct SQL syntax for removing rows that match a condition. DELETE is the standard DML statement for row-level removal, and the WHERE clause filters which orders are affected. The date literal '2023-01-01' is compared against OrderDate to remove all orders placed before that date.

Exam trap

FC0-U71 often tests the confusion between DDL commands (DROP, TRUNCATE, ALTER) and DML commands (DELETE, INSERT, UPDATE), tricking candidates into choosing DROP when row-level deletion is required.

How to eliminate wrong answers

Option A is wrong because DROP is a DDL statement used to remove entire database objects (tables, views, indexes), not rows, and 'DROP FROM' is not valid SQL syntax. Option C is wrong because it places the WHERE condition before FROM, which violates SQL clause ordering; the correct order is DELETE FROM table WHERE condition. Option D is wrong because REMOVE is not a SQL keyword; no major RDBMS supports REMOVE FROM as a row-deletion command.

7
MCQmedium

Which DBMS is an example of a proprietary relational database system?

A.MySQL
B.PostgreSQL
C.SQLite
D.Oracle Database
AnswerD

Oracle Database is a proprietary relational DBMS, satisfying the stem's requirement for a commercial, closed-source system. Unlike open-source alternatives such as MySQL or PostgreSQL, its source code is owned by Oracle Corporation and licensed commercially, which is precisely the defining characteristic of a proprietary relational database system.

Why this answer

Oracle Database is a proprietary relational database management system owned by Oracle Corporation. It is commercial, closed-source, and requires a license for use, which distinguishes it from open-source alternatives. Therefore, it is the correct example of a proprietary relational DBMS.

Exam trap

FC0-U71 often tests the distinction between open-source and proprietary software; the trap is that MySQL is owned by Oracle, leading some to think it is proprietary, but it remains open-source under GPL.

How to eliminate wrong answers

Option A is wrong because MySQL is an open-source relational database (though now owned by Oracle, it is available under GPL and is not proprietary in the same sense; there is a commercial edition, but the core is open-source). Option B is wrong because PostgreSQL is an open-source object-relational database under the PostgreSQL License, which is permissive. Option C is wrong because SQLite is a public-domain, open-source embedded relational database, not proprietary.

8
MCQmedium

Which of the following SQL statements will add a new row to the 'Products' table?

A.UPDATE Products SET name='Widget', price=10.99
B.INSERT INTO Products VALUES ('Widget', 10.99)
C.CREATE ROW IN Products ('Widget', 10.99)
D.ADD INTO Products VALUES ('Widget', 10.99)
AnswerB

INSERT INTO appends a new row to the named table, with VALUES supplying the column data in table order. This satisfies the stem's requirement to add a row, whereas UPDATE modifies existing rows, SELECT retrieves them and CREATE TABLE defines structure.

Why this answer

The SQL INSERT statement is the standard Data Manipulation Language (DML) command used to add new rows to a table. The syntax INSERT INTO Products VALUES ('Widget', 10.99) inserts a new row with the specified values into the Products table, assuming the column order matches the table definition. This is the correct and ANSI-standard way to add data.

Exam trap

FC0-U71 often tests the confusion between DML statements (INSERT, UPDATE, DELETE) and DDL statements (CREATE, ALTER, DROP), and candidates may pick UPDATE because they associate it with modifying table data.

How to eliminate wrong answers

Option A is wrong because UPDATE modifies existing rows in a table — it does not add new rows, and without a WHERE clause it would change every row's name and price. Option C is wrong because CREATE ROW is not valid SQL syntax; CREATE is used for DDL objects like tables, views, and indexes, not for inserting rows. Option D is wrong because ADD INTO is not a valid SQL statement; the correct keyword is INSERT INTO, and ADD is used in ALTER TABLE contexts (e.g., ALTER TABLE ...

ADD COLUMN).

9
MCQmedium

A sales database has a Customers table with CustomerID as the primary key and an Orders table that includes CustomerID. Which type of relationship is typically established between Customers and Orders?

A.One-to-one
B.Many-to-many
C.Unrelated
D.One-to-many
AnswerD

One customer can place many orders, while each order belongs to exactly one customer, so CustomerID in Orders acts as a foreign key referencing the Customers primary key. This cardinality defines a one-to-many relationship, not one-to-one or many-to-many.

Why this answer

A single customer can place many orders, but each order belongs to exactly one customer, which is the definition of a one-to-many relationship. The CustomerID foreign key in the Orders table references the primary key in Customers, enforcing that each order is tied to one customer while allowing a customer to have multiple orders.

Exam trap

The trap is overthinking the relationship — candidates sometimes pick many-to-many because a customer can have many orders and an order can have many items, but the question is strictly about Customers and Orders.

How to eliminate wrong answers

Option A is wrong because one-to-one would mean each customer has at most one order and each order maps to one customer — that would require a unique constraint on Orders.CustomerID, which is not the case. Option B is wrong because many-to-many would require a junction table (e.g., CustomerOrders) linking customers and orders, allowing one order to belong to multiple customers — not how sales orders work. Option C is wrong because the presence of CustomerID as a foreign key in Orders explicitly establishes a relationship between the two tables.

10
MCQhard

A database administrator is designing a new table to store employee records. The administrator wants to ensure that no two employees can have the same employee identification number, and that the employee identification number cannot be left empty. Which constraint should be applied to the EmployeeID column to meet both requirements?

A.CHECK
B.UNIQUE
C.FOREIGN KEY
D.PRIMARY KEY
AnswerD

A PRIMARY KEY constraint enforces both uniqueness and non-null values. It ensures that each EmployeeID is unique across all rows and that no row can have a NULL EmployeeID. This directly satisfies both requirements: preventing duplicate employee identification numbers and disallowing empty values in that column.

Why this answer

The PRIMARY KEY constraint uniquely identifies each row and enforces both uniqueness and non-null values. This meets the need to prevent duplicate employee identification numbers and to disallow empty values. UNIQUE allows nulls, FOREIGN KEY enforces referential integrity, and CHECK validates conditions but does not enforce uniqueness across rows.

Exam trap

The trap here is assuming that a UNIQUE constraint also prevents null values, when in most databases it permits one or more nulls.

11
MCQmedium

In a relational database, which constraint ensures that a foreign key value matches an existing primary key value in the referenced table?

A.Foreign key constraint
B.Primary key constraint
C.Check constraint
D.Unique constraint
AnswerA

A foreign key constraint enforces referential integrity by rejecting any insert or update whose foreign key value lacks a matching primary key in the referenced table. This directly satisfies the stem's requirement that every foreign key value correspond to an existing primary key, preventing orphaned rows.

Why this answer

A foreign key constraint enforces referential integrity by requiring that any value in the foreign key column(s) must either match a primary key or unique key value in the referenced table, or be NULL. This ensures that relationships between tables remain consistent and prevents orphaned records. The constraint is defined on the child table and references the parent table's primary key (or a unique key).

Exam trap

The trap here is confusing the roles of primary key and foreign key constraints: candidates often think the primary key enforces referential integrity, but it only ensures uniqueness within its own table; the foreign key is the one that references the primary key in another table.

How to eliminate wrong answers

Option B is wrong because a primary key constraint uniquely identifies each row in its own table and does not enforce referential integrity across tables. Option C is wrong because a check constraint validates that column values meet a specific condition (e.g., a range or pattern) and does not reference other tables. Option D is wrong because a unique constraint ensures that all values in a column or set of columns are distinct within the same table, but it does not enforce that those values exist in another table.

12
MCQmedium

A database administrator is designing a table to store employee records. She needs to ensure that no two employees can have the same employee number, and that the employee number is never left blank. Which combination of constraints should she apply to the employee number column?

A.INDEX and AUTO_INCREMENT
B.UNIQUE and NOT NULL
C.PRIMARY KEY and FOREIGN KEY
D.CHECK and DEFAULT
AnswerB

The UNIQUE constraint prevents duplicate employee numbers, and the NOT NULL constraint ensures the column cannot be left empty. Together they satisfy both requirements: every employee has an employee number, and no two employees share the same one. This is a standard way to enforce a candidate key when the column is not the table's primary key.

Why this answer

To require that every employee has a unique employee number, the column needs both a uniqueness rule and a non-null rule. UNIQUE prevents duplicates, and NOT NULL prevents blanks. A primary key would also work, but the question asks for a combination of constraints; UNIQUE and NOT NULL are the specific constraints that meet both conditions.

Exam trap

The trap here is thinking that an index or AUTO_INCREMENT automatically enforces uniqueness and non-null values, when only explicit constraints guarantee those rules.

13
Multi-Selecteasy

Which TWO of the following are key characteristics of a NoSQL database compared to a traditional relational database?

Select 2 answers
A.Strict schema enforcement
B.Uses SQL as the query language
C.ACID transactions are always guaranteed
D.Flexible schema design
E.Horizontal scalability
AnswersD, E

NoSQL stores such as document and key-value databases permit each record to carry its own fields, so schema changes need no migration or ALTER TABLE. This contrasts with the fixed, predefined columns of a relational database, satisfying the flexible schema characteristic.

Why this answer

Option D (Flexible schema design) is correct because NoSQL databases such as document stores (MongoDB), key-value stores (Redis), and wide-column stores (Cassandra) do not require a fixed, predefined table schema, allowing each record to have different fields and structures. Option E (Horizontal scalability) is correct because NoSQL systems are architecturally designed to scale out by distributing data across many commodity servers via sharding and partitioning, rather than relying on expensive vertical scaling of a single server. In contrast, option A (Strict schema enforcement) describes relational databases, which enforce a rigid schema via DDL constraints, and is not a NoSQL trait.

Option B (Uses SQL as the query language) is incorrect because NoSQL databases typically use non-SQL APIs such as JSON queries, key lookups, or CQL, though some offer SQL-like interfaces. Option C (ACID transactions are always guaranteed) is incorrect because many NoSQL databases follow the BASE model and provide only eventual consistency, with ACID guarantees limited to single-document or optional multi-document transactions rather than being always guaranteed.

14
MCQmedium

A company stores customer data in a flat file. Which of the following is a disadvantage of using a flat file compared to a relational database?

A.Flat files are slower for sequential reads
B.Flat files support complex queries
C.Flat files do not support concurrent multi-user access
D.Flat files enforce referential integrity
AnswerC

Flat files lack a database engine to manage row-level locking and transaction isolation, so simultaneous writes from multiple users risk overwriting each other's changes. A relational database enforces concurrency control, which this scenario's multi-user access constraint requires.

Why this answer

Flat files store data as a single sequential stream of records with no built-in locking, transaction manager, or record-level access control, so two users writing at the same time can overwrite each other's changes or corrupt the file. A relational database management system (RDBMS) provides concurrency control through locking, MVCC, and transactions, allowing many users to read and write safely. This makes concurrent multi-user access the classic disadvantage of flat files.

Exam trap

The trap here is confusing 'simple' with 'limited' — candidates assume flat files are slow or lack features, but the exam is testing the specific concurrency limitation that only an RDBMS solves.

How to eliminate wrong answers

Option A is wrong because flat files are actually very fast for sequential reads — reading a contiguous byte stream is one of their strengths, and the slowness appears with random access and updates. Option B is wrong because flat files have no query engine, no joins, and no indexes; complex queries require an RDBMS with SQL. Option D is wrong because flat files have no schema constraints or foreign keys, so they cannot enforce referential integrity — that is a relational database feature.

15
MCQhard

A ticket system logs a row for every check-in scan at an event gate, capturing the timestamp, gate identifier, and badge number. Staff want a quick daily count of scans per gate. Which statement about this data is most accurate?

A.The log is semi-structured because gate identifiers are text values
B.The scan log is structured data because each row follows a consistent set of defined fields
C.The scan log is unstructured data because it contains timestamps
D.Counting scans per gate requires converting the log to unstructured form first
AnswerB

Every scan record uses the same named fields, so the data fits neatly into columns and can be grouped and counted directly. Aggregating scans by gate for a given day is a straightforward grouped count over that consistent structure, which is exactly what structured data supports well.

Why this answer

Each scan row uses the same defined fields, so the log is structured data and can be grouped and counted directly. Classifying data depends on whether records follow a consistent, defined organization, not on whether individual values happen to be dates or text.

Exam trap

The trap here is classifying data by the data type of one field, such as a timestamp or a text code, instead of by whether records share a consistent defined structure.

16
MCQmedium

Which of the following is a characteristic of a NoSQL database compared to a relational database?

A.Requires normalized data
B.Enforces strict schema definition
C.Supports flexible schema
D.Uses SQL for queries
AnswerC

NoSQL databases permit documents or records with differing fields, so each item can carry its own attributes without a fixed table definition. Relational databases enforce a predefined schema of columns and types, making this flexibility the defining contrast the question targets.

Why this answer

NoSQL databases are characterized by a flexible schema, meaning they do not require a fixed table structure and can handle unstructured or semi-structured data. This allows for easy evolution of data models and rapid development. In contrast, relational databases enforce a strict schema and normalization.

Exam trap

The trap is assuming NoSQL databases use SQL or enforce schemas; candidates might confuse the 'SQL' in NoSQL as meaning it uses SQL, but it actually stands for 'Not Only SQL'.

How to eliminate wrong answers

Option A is wrong because NoSQL databases typically do not require normalized data; they often denormalize for performance and scalability. Option B is wrong because NoSQL databases do not enforce strict schema definition; that is a hallmark of relational databases. Option D is wrong because NoSQL databases generally do not use SQL for queries; they use various query languages like MongoDB Query Language, Cassandra Query Language (CQL), or Gremlin, though some support SQL-like interfaces.

17
MCQeasy

Which of the following best describes a NoSQL database?

A.It stores data in tables with rows and columns.
B.It provides a flexible schema for unstructured data.
C.It uses SQL for querying.
D.It enforces strict referential integrity.
AnswerB

NoSQL databases store data without a fixed relational schema, so documents, key-value pairs or graphs can be written with varying fields. This schema flexibility suits unstructured or rapidly evolving data, unlike rigid SQL table structures requiring predefined columns.

Why this answer

A NoSQL database is characterized by a flexible, schema-less or schema-optional data model that accommodates unstructured and semi-structured data such as JSON documents, key-value pairs, or graph relationships. This flexibility is the defining trait that distinguishes it from traditional relational databases.

Exam trap

The trap here is conflating 'NoSQL' with 'no SQL at all' or assuming NoSQL databases cannot handle structured data — the exam tests whether candidates understand that flexibility of schema, not the absence of query capability, is the defining characteristic.

How to eliminate wrong answers

Option A is wrong because storing data in tables with rows and columns describes a relational (SQL) database, not NoSQL. Option C is wrong because NoSQL databases typically use non-SQL query languages or APIs (e.g., MongoDB query language, Cassandra CQL as a SQL-like variant), and the defining feature is not SQL querying. Option D is wrong because strict referential integrity is a hallmark of relational databases enforced through foreign key constraints, whereas NoSQL systems generally relax or omit these constraints in favor of scalability and availability.

18
MCQhard

A company stores product data in a MongoDB database. Each product document contains fields like 'name', 'price', and 'tags' (an array). What type of NoSQL database is MongoDB?

A.Document store
B.Wide-column store
C.Graph database
D.Key-value store
AnswerA

MongoDB stores data as BSON documents within collections, where each document holds field-value pairs including arrays such as 'tags'. This schema-flexible structure is the defining characteristic of a document store, distinguishing it from key-value, column-family, and graph NoSQL categories.

Why this answer

MongoDB is a document store because it stores data in flexible, JSON-like documents (BSON) where each document can have a different structure. The example product document with fields like 'name', 'price', and 'tags' (an array) is a classic document-oriented model, allowing nested data and arrays without a fixed schema. This contrasts with other NoSQL types that organize data differently.

Exam trap

The trap is confusing document stores with key-value stores because both are schemaless; however, document stores support complex nested structures and queries, while key-value stores are limited to simple key-based access.

How to eliminate wrong answers

Option B is wrong because wide-column stores (e.g., Cassandra, HBase) organize data into tables with rows and dynamic columns, not JSON-like documents. Option C is wrong because graph databases (e.g., Neo4j) focus on nodes and relationships, optimized for connected data, not document storage. Option D is wrong because key-value stores (e.g., Redis, DynamoDB) store data as simple key-value pairs without the rich document structure MongoDB provides.

19
MCQeasy

A help desk technician is creating a spreadsheet to track support tickets. They want each ticket to have a unique identifier that is automatically generated when a new row is added, and they want the value to never repeat even if rows are deleted. Which spreadsheet feature should they use?

A.Use an AutoNumber or automatic row ID feature
B.Apply a data validation rule to the ticket ID column
C.Format the ticket ID column as text
D.Sort the ticket ID column in ascending order
AnswerA

AutoNumber fields, sometimes called automatic row IDs, generate a unique sequential or random value whenever a new record is created. They continue incrementing even if earlier rows are deleted, so the identifier never repeats. This directly meets the requirement for a unique ticket identifier that is created automatically for each new support ticket.

Why this answer

An automatic row ID or AutoNumber feature is designed to produce a unique value for every new record without user intervention. It continues to generate new values even after records are deleted, so duplicates do not occur. Data validation, text formatting, and sorting do not automatically create or guarantee unique identifiers.

Exam trap

The trap here is assuming that any column can be made unique by formatting or validating it, when only an automatic ID feature generates new unique values for each record.

20
MCQmedium

A company uses a relational database with a 'Customers' table and an 'Orders' table. Each order must be linked to exactly one customer. Which type of relationship exists between Customers and Orders?

A.No relationship
B.One-to-many
C.Many-to-many
D.One-to-one
AnswerB

One-to-many fits because a single customer row can be referenced by many order rows, while each order holds exactly one foreign key back to its customer. This satisfies the stem's constraint that every order links to precisely one customer, with no order shared between customers.

Why this answer

In a relational database, if each order must be linked to exactly one customer, but a customer can have multiple orders, the relationship is one-to-many. The 'one' side is Customers (each customer is unique) and the 'many' side is Orders (multiple orders per customer). This is implemented via a foreign key in the Orders table referencing the primary key in Customers.

Exam trap

The trap is misinterpreting the cardinality: candidates might think one-to-one because each order has one customer, but they forget that a customer can have many orders, making it one-to-many.

How to eliminate wrong answers

Option A is wrong because a relationship is required to link orders to customers; without it, orders would be orphaned. Option C is wrong because many-to-many would imply that one order can be linked to multiple customers, which contradicts the requirement that each order links to exactly one customer. Option D is wrong because one-to-one would mean each customer has at most one order, which is not stated and typically not the case in sales systems.

21
Multi-Selecthard

Which THREE of the following are valid SQL statements?

Select 3 answers
A.REMOVE TABLE Employees
B.SELECT * FROM Employees WHERE Department = 'Sales'
C.MODIFY Employees SET Salary = 60000 WHERE ID = 1
D.DELETE FROM Employees WHERE ID = 5
E.INSERT INTO Employees VALUES ('John', 50000)
AnswersB, D, E

SELECT retrieves rows, the asterisk returns all columns, FROM names the table, and WHERE filters rows by the Department column matching the string 'Sales'. This is syntactically valid SQL, unlike statements missing clauses or using non-existent keywords.

Why this answer

Option B, 'SELECT * FROM Employees WHERE Department = \'Sales\'', is valid SQL because SELECT with the asterisk wildcard retrieves all columns from the Employees table, and the WHERE clause filters rows where Department equals the string literal 'Sales'. Option D, 'DELETE FROM Employees WHERE ID = 5', is valid SQL because DELETE FROM removes rows from the Employees table, and the WHERE clause restricts deletion to the row whose ID equals 5. Option E, 'INSERT INTO Employees VALUES (\'John\', 50000)', is valid SQL because INSERT INTO with the VALUES clause adds a new row containing the string 'John' and the numeric value 50000 into the table's columns in order.

Option A is not valid because SQL has no REMOVE TABLE statement; the correct statement is DROP TABLE. Option C is not valid because SQL has no MODIFY statement for changing data; the correct statement is UPDATE Employees SET Salary = 60000 WHERE ID = 1.

Exam trap

FC0-U71 often tests the confusion between similar-sounding SQL commands, such as REMOVE vs. DROP and MODIFY vs. UPDATE, causing candidates to select invalid statements.

22
MCQeasy

A small business keeps its customer list in a single spreadsheet where the customer's city and state are typed into every invoice row. The owner wants a structure that stores each customer's address once and references it from many invoices without duplicating the address text. Which database concept should the owner apply?

A.Create a separate Customers table with a primary key, and store only that key in the Invoices table.
B.Apply a UNIQUE constraint to the City column in the invoice table.
C.Convert the spreadsheet to a comma-separated values file and re-import it each month.
D.Add an index to the City column so repeated city names are stored only once.
AnswerA

This is correct because it splits the repeated address data into one Customers table keyed by a unique identifier, and the Invoices table keeps only a foreign key reference. Each address is stored once, eliminating duplicated city and state text, which is exactly the normalization goal described. The relationship remains intact because the key links every invoice back to its single customer record.

Why this answer

Storing each customer's address once and referencing it from many invoices is achieved by moving the address into a Customers table with a primary key and placing a foreign key in the Invoices table. This removes repeated text, prevents inconsistent updates, and preserves the one-to-many relationship between customers and invoices.

Exam trap

The trap here is assuming that an index or a UNIQUE constraint removes duplicated data, when both only affect search performance or enforce distinctness rather than restructuring where the data lives.

23
Multi-Selectmedium

A database administrator needs to choose a database for an e-commerce application that requires high availability and automatic scaling. Which TWO options are cloud database services?

Select 2 answers
A.SQLite
B.Google Cloud SQL
C.Microsoft SQL Server Express
D.MySQL Community Edition
E.Amazon RDS
AnswersB, E

Google Cloud SQL is a fully managed relational database service hosted on Google Cloud, so it satisfies the stem's cloud database requirement. The provider handles availability and scaling, meeting the high-availability and automatic-scaling constraint for the e-commerce application.

Why this answer

Google Cloud SQL (B) is a fully managed, cloud-hosted relational database service on Google Cloud Platform that supports MySQL, PostgreSQL, and SQL Server, making it a cloud database service suitable for high availability and scaling needs. Amazon RDS (E) is AWS's managed relational database service that automates provisioning, patching, backups, and Multi-AZ failover, directly matching the e-commerce requirement for high availability and automatic scaling. By contrast, SQLite (A) is an embedded, serverless file-based library, not a cloud service.

Microsoft SQL Server Express (C) is a free on-premises edition of SQL Server with size and resource limits, and MySQL Community Edition (D) is a self-managed open-source database typically deployed on your own infrastructure, so neither is a managed cloud database service.

Exam trap

The trap is confusing 'database software' with 'cloud database service' — FC0-U71 tests whether you recognize that MySQL Community Edition and SQL Server Express are self-managed products, not cloud services.

24
MCQeasy

A bookstore owner wants to list all book titles stored in a table named Inventory, sorted alphabetically by title. Which SQL statement should be used?

A.SELECT title FROM Inventory WHERE title ASC;
B.SELECT title FROM Inventory SORT BY title;
C.SELECT title FROM Inventory GROUP BY title;
D.SELECT title FROM Inventory ORDER BY title;
AnswerD

This statement selects the title column from the Inventory table and uses ORDER BY title to sort the result alphabetically in ascending order by default. It directly satisfies the requirement to list all titles in alphabetical order without retrieving unnecessary columns or applying filters that would exclude rows.

Why this answer

Sorting query output is accomplished with the ORDER BY clause, which arranges rows by one or more columns and defaults to ascending order. The statement that selects the title column and applies ORDER BY title returns every book title in alphabetical order, matching the bookstore owner's request without filtering or aggregating the data.

Exam trap

The trap here is confusing the filtering clause WHERE with the sorting clause ORDER BY, leading to attempts to place sort directions inside a WHERE condition.

25
MCQeasy

Which of the following is a benefit of using a database instead of a flat file?

A.Simpler setup and configuration
B.Faster file transfer speeds
C.Lower storage requirements
D.Support for concurrent multi-user access
AnswerD

A database engine manages locking, transactions, and isolation so many users can read and write the same records simultaneously without overwriting each other. A flat file offers no such coordination, so concurrent edits corrupt or clobber data. This directly satisfies the stem's concurrent multi-user access benefit.

Why this answer

Databases provide concurrent access control, allowing multiple users to read/write data simultaneously without corruption.

26
MCQeasy

A company needs to store customer orders and ensure that each order is uniquely identified. Which database concept should be used?

A.Constraint
B.Index
C.Foreign key
D.Primary key
AnswerD

A primary key enforces uniqueness on one or more columns and rejects duplicate or null values, so every customer order row is uniquely identified. It satisfies the stated requirement for guaranteed unique identification, unlike other keys or indexes that permit duplicates or serve only performance purposes.

Why this answer

A primary key is a column (or set of columns) that uniquely identifies each row in a table, which is exactly what is needed to ensure each customer order has a unique identifier. Primary keys enforce uniqueness and cannot contain NULL values, guaranteeing every order record is distinguishable.

Exam trap

The trap is confusing the general concept of a constraint with the specific primary key constraint — candidates must recognize that while a primary key is a constraint, the question asks for the concept that uniquely identifies each row, which is the primary key.

How to eliminate wrong answers

Option A is wrong because a constraint is a general rule (e.g., NOT NULL, UNIQUE, CHECK) — while a primary key is a type of constraint, 'constraint' alone is too broad and does not specifically guarantee unique identification. Option B is wrong because an index improves query performance but does not enforce uniqueness unless it is a unique index, and it is not the identifying mechanism itself. Option C is wrong because a foreign key references a primary key in another table to establish a relationship; it does not uniquely identify rows in its own table.

27
MCQhard

A company uses a cloud database service where the provider automatically handles backups, patching, and scaling. This deployment model is known as:

A.Database as a Service (DBaaS)
B.Platform as a Service (PaaS)
C.Software as a Service (SaaS)
D.Infrastructure as a Service (IaaS)
AnswerA

DBaaS is the managed cloud model where the provider handles backups, patching, and scaling, exactly matching the stem's described responsibilities. IaaS leaves patching and scaling to the customer, while SaaS delivers finished applications rather than a managed database engine.

Why this answer

Database as a Service (DBaaS) is a cloud service model where the provider manages the database infrastructure, including backups, patching, scaling, and high availability, while the customer focuses on data and queries. This matches the scenario where the provider automatically handles those operational tasks. DBaaS is a specialized form of PaaS focused on database engines.

Exam trap

FC0-U71 often tests the boundaries between IaaS, PaaS, SaaS, and DBaaS, and candidates confuse DBaaS with PaaS because both are managed platforms; the key differentiator is that DBaaS specifically delivers a managed database engine.

How to eliminate wrong answers

Option B is wrong because PaaS provides a platform for developing, running, and managing applications (e.g., app servers, runtimes) but does not specifically deliver a managed database service with automated backups and scaling as its core offering. Option C is wrong because SaaS delivers fully functional applications to end users (e.g., Salesforce, Gmail), not a database environment for the customer to build on. Option D is wrong because IaaS provides raw compute, storage, and networking (e.g., VMs), leaving the customer responsible for installing, patching, and backing up the database.

28
MCQmedium

Which of the following is an example of a NoSQL database that stores data as JSON-like documents?

A.MySQL
B.MongoDB
C.PostgreSQL
D.SQLite
AnswerB

MongoDB stores records as BSON documents, a binary JSON-like format, satisfying the stem's requirement for a document-oriented NoSQL database. Unlike key-value stores such as Redis or column-family databases such as Cassandra, it organises data into flexible, schema-less documents, making it the archetypal example of the document model.

Why this answer

MongoDB is a document-oriented NoSQL database that stores data in BSON (Binary JSON) documents, making it the canonical example of a JSON-like document store. It allows flexible, schema-less documents and is widely used for content management, catalogs, and real-time analytics.

Exam trap

The trap is assuming that any database with JSON support (like MySQL or PostgreSQL) qualifies as a NoSQL document store — candidates must remember that NoSQL document databases like MongoDB store data natively as JSON-like documents, whereas relational databases only add JSON as a feature.

How to eliminate wrong answers

Option A is wrong because MySQL is a relational (SQL) database that stores data in tables with fixed schemas, not JSON-like documents (though it has limited JSON support, it is not a NoSQL document store). Option C is wrong because PostgreSQL is also a relational database; while it supports JSONB, it is fundamentally an RDBMS, not a NoSQL document database. Option D is wrong because SQLite is an embedded relational database that uses tables and SQL, not a document-oriented NoSQL store.

29
Multi-Selectmedium

Which TWO of the following are characteristics of a relational database? (Select TWO.)

Select 2 answers
A.It does not support SQL queries.
B.Data is stored in tables with rows and columns.
C.It is optimized for storing unstructured data like videos.
D.It uses a flexible schema that can change dynamically.
E.Relationships between tables are defined using keys.
AnswersB, E

Relational databases enforce structure through tables, where each row represents a record and each column a defined attribute, with relationships established via keys between tables. This tabular row-and-column model satisfies the stem's requirement for a defining relational characteristic, distinguishing it from non-relational stores such as key-value or document databases.

Why this answer

Option B is correct because a relational database stores data in structured tables composed of rows (records) and columns (attributes), which is the fundamental organizing principle of the relational model. Option E is correct because relational databases establish relationships between tables through keys — typically primary keys that uniquely identify rows and foreign keys that reference primary keys in other tables — enabling joins and referential integrity. Option A is incorrect because relational databases are precisely the systems queried with SQL (Structured Query Language), so they do support SQL queries.

Option C is incorrect because relational databases are optimized for structured, tabular data; unstructured content like videos is typically handled by object storage or NoSQL/document stores. Option D is incorrect because relational databases generally use a fixed, predefined schema (with controlled migrations via DDL), whereas flexible, dynamically changing schemas are characteristic of NoSQL databases.

Exam trap

The trap here is confusing relational databases with NoSQL databases, leading candidates to select options about flexible schemas or unstructured data, which are actually characteristics of non-relational systems.

30
MCQmedium

In a relational database, which type of relationship is typically implemented by creating a third table (junction table) that contains foreign keys from both related tables?

A.Many-to-many
B.Self-referencing
C.One-to-one
D.One-to-many
AnswerA

A many-to-many relationship cannot be stored in two tables, so a junction table holds foreign keys referencing both related tables, with each row representing one association. This resolves the cardinality that one-to-many and one-to-one schemas cannot represent directly.

Why this answer

A many-to-many relationship occurs when multiple records in one table relate to multiple records in another. Relational databases cannot directly implement this with a single foreign key, so a junction table (also called an associative or bridge table) is created. This third table contains foreign keys referencing the primary keys of both related tables, and each row represents a unique association between the two entities.

Exam trap

The trap here is confusing many-to-many with one-to-many: candidates often think a third table is needed for one-to-many, but it is only required for many-to-many. FC0-U71 often tests the implementation differences between relationship types.

How to eliminate wrong answers

Option B is wrong because a self-referencing relationship involves a table relating to itself (e.g., an employee table with a manager_id foreign key pointing to the same table), not a third table. Option C is wrong because a one-to-one relationship is implemented by adding a foreign key with a unique constraint to one of the two tables, or by sharing the primary key, not by creating a junction table. Option D is wrong because a one-to-many relationship is implemented by placing a foreign key in the table on the 'many' side, referencing the 'one' side; no third table is needed.

31
MCQhard

A hospital stores patient records in a relational database. Administrators need to record that a patient can have multiple allergies, and each allergy may affect multiple patients. Which type of relationship exists between patients and allergies, and how is it implemented?

A.One-to-many, implemented by adding a foreign key to the allergies table.
B.Many-to-many, implemented by storing a comma-separated list of allergy names in the patients table.
C.One-to-one, implemented by adding a foreign key to the patients table.
D.Many-to-many, implemented with a junction table containing foreign keys to both patients and allergies.
AnswerD

A many-to-many relationship correctly describes patients who can have multiple allergies and allergies that can affect multiple patients. It is implemented by creating a junction table with foreign keys referencing the primary keys of both the patients and allergies tables, allowing any combination of patient and allergy to be recorded.

Why this answer

Because a patient can have several allergies and an allergy can affect several patients, the relationship is many-to-many. The standard relational solution is a junction table that holds foreign keys to both the patients and allergies tables, enabling flexible associations and preserving referential integrity without duplicating data in either primary table.

Exam trap

The trap here is assuming that adding a foreign key to one of the two tables can represent a many-to-many relationship, when only a junction table correctly models both directions of the association.

32
MCQmedium

A software developer is building an application that needs to store user profiles with varying attributes, such as some users having multiple phone numbers and others having none. The developer wants a flexible schema that allows different users to have different sets of fields without altering the database structure. Which type of database is best suited for this requirement?

A.NoSQL document database
B.Hierarchical database
C.Flat file database
D.Relational database
AnswerA

NoSQL document databases store data in flexible, JSON-like documents, allowing each user profile to have different fields without a fixed schema. This is ideal for varying attributes, such as some users having multiple phone numbers while others have none. The developer can easily add or remove fields per document, meeting the requirement for schema flexibility.

Why this answer

The requirement is for a flexible schema that allows different users to have different fields without structural changes. NoSQL document databases store data as self-describing documents, so each user profile can have its own set of attributes. This eliminates the need for schema migrations and supports varying numbers of phone numbers or other fields, making it the best fit.

Exam trap

The trap here is assuming that a relational database can easily handle varying attributes; while possible with additional tables, it requires complex joins and schema changes, which is not the flexible approach described.

33
MCQeasy

A user needs to retrieve only the 'ProductName' and 'Price' columns from a table named 'Products' where the 'Category' is 'Electronics'. Which SQL statement should the user execute?

A.SELECT ProductName, Price FROM Products HAVING Category = 'Electronics';
B.SELECT * FROM Products WHERE Category = 'Electronics';
C.SELECT ProductName, Price FROM Products ORDER BY Category = 'Electronics';
D.SELECT ProductName, Price FROM Products WHERE Category = 'Electronics';
AnswerD

This statement correctly selects the two desired columns, specifies the table, and applies a filter on the Category column. It returns only the product names and prices for electronics, matching the user's requirement. The syntax is standard SQL and will work in any relational DBMS, making it the precise solution.

Why this answer

The SQL SELECT statement retrieves data from a table. To get specific columns, you list them after SELECT. To filter rows, you use the WHERE clause.

The correct statement selects ProductName and Price from Products and filters where Category equals 'Electronics'. This precisely meets the user's need to view only electronics products with their names and prices.

Exam trap

The trap here is mixing up WHERE and HAVING; WHERE filters individual rows before grouping, while HAVING filters groups after aggregation.

34
MCQmedium

A SELECT statement combines rows from two tables based on a related column. Which SQL clause is used to accomplish this?

A.GROUP BY
B.ORDER BY
C.JOIN
D.WHERE
AnswerC

JOIN is the clause that merges rows from two tables by matching values in a related column, directly satisfying the stem's requirement to combine rows. WHERE filters rows and UNION stacks result sets vertically, so neither correlates columns across tables.

Why this answer

The JOIN clause combines rows from two or more tables based on a related column, such as a primary key to foreign key relationship. INNER JOIN returns matching rows, while LEFT/RIGHT/FULL OUTER JOINs include unmatched rows. This is the standard SQL mechanism for relational row combination.

Exam trap

FC0-U71 often tests confusion between filtering (WHERE), grouping (GROUP BY), and combining (JOIN); candidates may pick WHERE because it references related columns.

How to eliminate wrong answers

Option A is wrong because GROUP BY aggregates rows into summary groups for aggregate functions, not combining rows across tables. Option B is wrong because ORDER BY sorts the result set and does not merge tables. Option D is wrong because WHERE filters rows based on conditions but does not itself join tables.

35
MCQeasy

Which SQL statement is used to retrieve all columns from a table named 'Customers' where the city is 'London'?

A.SELECT * FROM Customers WHERE city = 'London';
B.RETRIEVE * FROM Customers WHERE city = 'London';
C.SELECT * FROM Customers HAVING city = 'London';
D.GET * FROM Customers WHERE city = 'London';
AnswerA

SELECT * retrieves every column, FROM Customers names the source table, and the WHERE clause filters rows where city equals 'London'. The asterisk wildcard expands to all columns, satisfying the requirement to return complete rows matching the specified city condition.

Why this answer

SELECT * FROM Customers WHERE city = 'London'; is the correct SQL statement to retrieve all columns from the Customers table where the city is London. SELECT * specifies all columns, FROM identifies the table, and WHERE filters rows based on the city condition. The semicolon terminates the statement.

Exam trap

FC0-U71 often tests the difference between WHERE and HAVING, and candidates mistakenly choose HAVING for filtering on a regular column, forgetting that HAVING is for aggregate filters after GROUP BY.

How to eliminate wrong answers

Option B is wrong because RETRIEVE is not a valid SQL keyword; the correct command for querying data is SELECT. Option C is wrong because HAVING is used to filter groups after GROUP BY, not for row-level filtering on a non-aggregated column like city; WHERE is required here. Option D is wrong because GET is not a SQL keyword; it is used in HTTP or other contexts, not in SQL queries.

36
MCQeasy

A student is comparing storage technologies for a project. The student needs a system that stores data as key-value pairs and is designed to scale horizontally across many servers for very high read and write throughput. Which category of database best fits this requirement?

A.A key-value NoSQL database.
B.A data warehouse optimized for complex analytical reporting queries.
C.A flat file such as a spreadsheet stored on a shared drive.
D.A relational database using tables with fixed schemas and joins.
AnswerA

This is correct because key-value stores model data as simple key-to-value pairs and are built for horizontal scaling, distributing keys across nodes to handle very high read and write volumes. They favor availability and partition tolerance over complex joins. This directly matches the student's need for a scalable, high-throughput store.

Why this answer

Key-value NoSQL databases store data as simple key-to-value pairs and are purpose-built to scale horizontally across many servers, delivering the high read and write throughput the student needs. Relational databases, flat files, and analytical warehouses each optimize for different workloads that do not match this requirement.

Exam trap

The trap here is equating high scalability with any modern database, when actually relational and analytical systems optimize for structure and reporting rather than simple high-throughput key lookups.

37
Multi-Selecthard

A startup is choosing a data store for a product catalog where each item may have a different set of attributes, such as a camera with lens mount and sensor size versus a book with ISBN and page count. The catalog is read far more often than it is written, and the schema is expected to change frequently. Which TWO characteristics make a document-oriented NoSQL store a suitable fit? (Choose two.)

Select 2 answers
A.It enforces a fixed column layout that all catalog items must follow
B.Each item can be stored as a self-contained document whose fields vary from item to item
C.It guarantees strict multi-table referential integrity across all catalog records
D.It requires every query to join at least three collections before returning a result
E.The schema can evolve by adding or removing fields in documents without a planned migration of every existing record
AnswersB, E

A document store keeps each catalog item as a single record with its own set of named fields, so a camera record and a book record can coexist without forcing every item to share one rigid column layout. This directly matches the requirement that items carry different attributes and that the shape of records can evolve.

Why this answer

Variable per-item attributes and frequent schema change are the two driving requirements. A document store satisfies both because each item carries its own fields and new fields can be introduced incrementally rather than through a global migration. Fixed column layouts and cross-table integrity guarantees describe relational behavior instead.

Exam trap

The trap here is assuming a flexible data store must also provide the same referential integrity guarantees as a relational database, when those are separate properties.

38
MCQmedium

A user needs to retrieve all product names and prices from a table named 'Products' where the price is greater than 50. Which SQL statement should be used?

A.SELECT name, price FROM Products WHERE price > 50;
B.GET name, price FROM Products WHERE price > 50;
C.SELECT name, price FROM Products;
D.SELECT * FROM Products WHERE price > 50;
AnswerA

SELECT name, price FROM Products WHERE price > 50; projects only the two required columns and applies the greater-than filter on price, returning exactly the product names and prices requested. The WHERE clause enforces the price constraint.

Why this answer

The correct SQL statement must select the columns 'name' and 'price' from the 'Products' table and filter rows where 'price' is greater than 50. Option A does exactly this with proper SELECT, FROM, and WHERE clauses. It retrieves only the required columns and applies the correct condition.

Exam trap

The trap is selecting Option D because it filters correctly, but the question specifically asks for 'all product names and prices', not all columns — candidates must read the column requirements carefully.

How to eliminate wrong answers

Option B is wrong because 'GET' is not a valid SQL keyword for retrieving data; the correct keyword is 'SELECT'. Option C is wrong because it omits the WHERE clause, so it would return all products regardless of price, not just those over 50. Option D is wrong because although it filters correctly, it uses 'SELECT *' which returns all columns, not just 'name' and 'price' as requested.

39
Multi-Selectmedium

Which TWO of the following are examples of popular relational database management systems (RDBMS)? (Select TWO.)

Select 2 answers
A.Cassandra
B.MySQL
C.MongoDB
D.PostgreSQL
E.Redis
AnswersB, D

MySQL is a widely deployed open-source relational database management system, storing data in tables with SQL querying and ACID transactions. It satisfies the stem's requirement for a popular RDBMS example, distinguishing it from NoSQL or non-relational alternatives.

Why this answer

MySQL (B) is a widely used open-source relational database management system that stores data in tables with rows and columns and supports SQL, making it a correct example of an RDBMS. PostgreSQL (D) is likewise a popular open-source relational database management system that enforces ACID transactions, foreign keys, and SQL compliance, so it also qualifies as an RDBMS. The remaining options are non-relational: Cassandra (A) is a distributed wide-column NoSQL store, MongoDB (C) is a document-oriented NoSQL database, and Redis (E) is an in-memory key-value data store, none of which implement the relational table-and-SQL model.

Exam trap

FC0-U71 often tests whether candidates can distinguish RDBMS from NoSQL by name recognition alone — MongoDB, Cassandra, and Redis are frequently mistaken for relational databases because they are all 'databases,' but only MySQL and PostgreSQL use relational tables and SQL.

40
Multi-Selectmedium

Which TWO of the following are examples of NoSQL database types?

Select 2 answers
A.Spreadsheet
B.Relational database
C.Flat file
D.Document store
E.Key-value store
AnswersD, E

Document stores hold semi-structured data as JSON-like documents, each with its own schema, and are a recognised NoSQL category alongside key-value, column-family and graph stores. This satisfies the stem's requirement for a NoSQL database type.

Why this answer

A document store (D) is a NoSQL database type that stores semi-structured data as JSON-like documents (e.g., MongoDB, CouchDB), allowing flexible, schema-less records. A key-value store (E) is also a NoSQL type that maps unique keys to values for fast lookups (e.g., Redis, DynamoDB), which is a core category of NoSQL databases. Spreadsheets (A) are productivity tools, not database types, and lack the querying and scaling characteristics of databases.

A relational database (B) is the SQL model using tables, rows, and columns with fixed schemas, so it is not NoSQL. A flat file (C) is a simple file format for storing data, not a NoSQL database category.

Exam trap

FC0-U71 often tests whether candidates can distinguish NoSQL database TYPES from generic data storage formats — spreadsheets and flat files are storage formats, not NoSQL categories, and relational databases are the opposite of NoSQL.

41
MCQhard

A database administrator is normalizing a table that currently stores order details. The table has columns OrderID, ProductID, ProductName, Quantity, and UnitPrice. The administrator notices that ProductName and UnitPrice depend on ProductID, not on the combination of OrderID and ProductID. Which normal form is the table violating?

A.Second normal form (2NF)
B.First normal form (1NF)
C.Third normal form (3NF)
D.Boyce-Codd normal form (BCNF)
AnswerA

Second normal form requires that all non-key attributes be fully functionally dependent on the entire primary key. Here, ProductName and UnitPrice depend only on ProductID, which is part of the composite primary key (OrderID, ProductID). This partial dependency violates 2NF, and the table should be split to remove the dependency.

Why this answer

Second normal form requires that all non-key attributes depend on the entire primary key, not just part of it. In the given table, the primary key is a composite of OrderID and ProductID. ProductName and UnitPrice depend only on ProductID, which is a partial dependency.

This violates 2NF. To fix it, the administrator should move ProductName and UnitPrice to a separate Product table.

Exam trap

The trap here is confusing partial dependency with transitive dependency; partial dependency involves part of a composite key, while transitive dependency involves a non-key attribute depending on another non-key attribute.

42
MCQeasy

Which of the following is a primary advantage of using a database instead of a flat file system?

A.Supports concurrent multi-user access with data integrity
B.No need for data validation
C.Data is stored in a single file for easy backup
D.Simpler to set up and maintain
AnswerA

A database management system provides transaction control, locking and constraint enforcement, letting many users read and write simultaneously without corrupting data. A flat file offers no such concurrency control or integrity guarantees, making this the primary advantage.

Why this answer

A database management system (DBMS) provides concurrent multi-user access with mechanisms like locking, transactions, and ACID properties to maintain data integrity. This is a primary advantage over flat file systems, which lack built-in concurrency control and integrity enforcement, leading to data corruption or inconsistency when multiple users access the same file.

Exam trap

FC0-U71 often tests the misconception that flat files are simpler or easier to back up, when the primary advantage of databases is concurrent access with integrity.

How to eliminate wrong answers

Option B is wrong because databases actually enforce data validation through constraints, data types, and referential integrity, whereas flat files have no inherent validation. Option C is wrong because databases typically store data across multiple files and tables, not in a single file; flat files are single files, which is a limitation, not an advantage. Option D is wrong because databases are generally more complex to set up and maintain than flat files, requiring a DBMS, schema design, and administration.

43
Multi-Selectmedium

Which TWO of the following are benefits of using a cloud database service (DBaaS) over an on-premises database?

Select 2 answers
A.No need to manage physical hardware
B.Full control over the operating system
C.Lower latency guaranteed
D.Data is always stored locally
E.Automatic scaling of resources
AnswersA, E

With DBaaS the provider owns and maintains the servers, storage and patching, so the organisation no longer procures or racks physical hardware. This directly satisfies the stem's comparison against on-premises databases, where hardware management is the customer's responsibility.

Why this answer

Option A is correct because a DBaaS provider owns and operates the underlying physical servers, storage, and networking, so the customer is freed from hardware procurement, racking, power, cooling, and replacement tasks. Option E is correct because DBaaS platforms typically offer elastic, automated scaling of compute, storage, and sometimes read replicas in response to workload demand, which is difficult to achieve quickly with fixed on-premises capacity. Option B is not correct because DBaaS abstracts the operating system away from the customer, who generally gets far less OS-level control than with an on-premises deployment.

Option C is not correct because lower latency is not guaranteed; network round trips to the provider's region can actually increase latency compared with a local database. Option D is not correct because DBaaS data resides in the provider's data centers, not locally on the customer's premises.

Exam trap

The trap is assuming DBaaS gives OS-level control or guaranteed low latency — those are IaaS/on-premises traits, not DBaaS benefits.

44
Multi-Selecthard

Which THREE of the following are advantages of using a cloud database service (DBaaS) over an on-premises database? (Select THREE.)

Select 3 answers
A.No need to manage physical hardware
B.Built-in backup and disaster recovery options
C.Lower latency than on-premises in all cases
D.Automatic scaling based on demand
E.Full control over the operating system
AnswersA, B, D

DBaaS shifts physical host provisioning, patching and capacity to the provider, so the customer never racks, cables or replaces server hardware. This directly satisfies the stem's advantage criterion by removing hardware lifecycle management from the organisation's operational scope.

Why this answer

Option A is correct because a DBaaS provider owns and operates the underlying physical servers, storage, and networking, so the customer is freed from hardware procurement, racking, cabling, and maintenance tasks. Option B is correct because DBaaS platforms typically include managed automated backups, point-in-time recovery, and cross-region replication or failover as built-in features, reducing the administrative burden of designing and testing a DR strategy. Option D is correct because DBaaS offerings commonly provide elastic scaling of compute, storage, and IOPS—often automatically or via simple configuration changes—to match changing workload demand without manual capacity planning.

Option C is not correct because latency depends on network distance and topology; a cloud database can be slower than a local on-premises database when the application and data are geographically separated. Option E is not correct because DBaaS abstracts the operating system away from the customer, who generally has little or no OS-level access, unlike on-premises deployments where full OS control is retained.

Exam trap

FC0-U71 often tests the misconception that cloud databases always have lower latency than on-premises, when in fact latency depends on network topology and can be higher for remote cloud regions.

45
MCQeasy

Which SQL statement is used to retrieve all columns from a table named 'Employees'?

A.SELECT * FROM Employees
B.RETRIEVE Employees
C.SHOW * FROM Employees
D.GET * FROM Employees
AnswerA

The asterisk wildcard in the SELECT clause returns every column defined in the Employees table, while FROM names the source table. This is the standard SQL shorthand for retrieving all columns without listing each one explicitly.

Why this answer

SELECT * FROM Employees is the correct SQL statement to retrieve all columns from the Employees table. SELECT * specifies all columns, and FROM identifies the table. No WHERE clause is needed because the question asks for all rows.

Exam trap

FC0-U71 often tests basic SQL syntax, and candidates may be tricked by plausible-sounding but non-existent commands like RETRIEVE or GET, or confuse SHOW (metadata) with SELECT (data retrieval).

How to eliminate wrong answers

Option B is wrong because RETRIEVE is not a valid SQL command; the correct keyword for querying is SELECT. Option C is wrong because SHOW is used in some databases (e.g., MySQL) for metadata like SHOW TABLES or SHOW COLUMNS, but SHOW * FROM Employees is not valid syntax for retrieving data. Option D is wrong because GET is not a SQL keyword; it is used in HTTP or other protocols, not in SQL.

46
MCQmedium

In a relational database, a foreign key in the 'Enrollments' table references the primary key of the 'Students' table. What does this relationship primarily enforce?

A.Referential integrity
B.Entity integrity
C.Normalization
D.Domain integrity
AnswerA

A foreign key constraint enforces referential integrity: every value in Enrollments' student key must match an existing Students primary key, or be null. This prevents orphaned enrolment rows and blocks deletion of a referenced student, directly satisfying the stem's requirement that the relationship enforce valid cross-table references.

Why this answer

Foreign keys enforce referential integrity, ensuring that values in the foreign key column match a primary key value in the referenced table.

47
MCQhard

A database contains two tables: 'Authors' (AuthorID, Name) and 'Books' (BookID, Title, AuthorID). A query needs to return all authors and any books they have written, including authors with no books. Which type of JOIN should be used?

A.CROSS JOIN
B.RIGHT JOIN
C.LEFT JOIN
D.INNER JOIN
AnswerC

A LEFT JOIN returns every row from the left Authors table plus matching Books rows, filling NULLs where no match exists. That preserves authors with no books, exactly the inclusive requirement stated in the stem.

Why this answer

A LEFT JOIN returns all rows from the left table (Authors) and matching rows from the right table (Books), filling NULLs where no match exists. Since the requirement is to include authors with no books, the Authors table must be the left (preserved) side. This is the textbook use case for LEFT JOIN.

Exam trap

The trap is choosing INNER JOIN because it is the most familiar, or RIGHT JOIN because it sounds like it preserves the 'right' (correct) table — candidates must map 'all authors including those with no books' to LEFT JOIN with Authors on the left.

How to eliminate wrong answers

Option A is wrong because CROSS JOIN produces a Cartesian product of all rows, which is not a relational match and would not preserve author-book relationships. Option B is wrong because RIGHT JOIN preserves all rows from the right table (Books), which would include books without authors but could exclude authors with no books. Option D is wrong because INNER JOIN returns only rows where a match exists in both tables, dropping authors with no books entirely.

48
Multi-Selectmedium

Which THREE of the following are types of data integrity enforced in relational databases?

Select 3 answers
A.Referential integrity
B.Entity integrity
C.Network integrity
D.File integrity
E.Domain integrity
AnswersA, B, E

Referential integrity constrains foreign key values to match existing primary keys in the referenced table, preventing orphaned rows. It is one of the three relational integrity types, alongside entity and domain integrity, enforced by the database engine rather than application code.

Why this answer

Referential integrity (A) is a relational-database constraint that ensures a foreign key value in one table matches an existing primary key or unique value in the referenced table, preventing orphaned rows. Entity integrity (B) requires that every table have a primary key and that its values be unique and non-null, so each row is uniquely identifiable. Domain integrity (E) restricts a column's values to a defined set of valid data types, formats, ranges, or allowed values, typically enforced with CHECK constraints, data types, and NOT NULL.

Network integrity (C) and file integrity (D) are not relational-database integrity types; they concern data transmission and file-level integrity (e.g., checksums), not the relational model's constraint categories.

Exam trap

The trap is including non-standard terms like 'network integrity' or 'file integrity' that sound plausible but are not part of the classic relational database integrity types.

49
MCQeasy

Which of the following is a valid reason to use a database instead of a spreadsheet?

A.Spreadsheets cannot store numbers
B.Spreadsheets are harder to learn
C.Databases provide query capabilities and enforce data integrity
D.Databases are always free
AnswerC

Databases support structured querying via SQL and enforce integrity through constraints such as primary keys, foreign keys and data types. Spreadsheets lack these guarantees, so they suit smaller, less critical datasets where concurrent access and validation are not required.

Why this answer

Databases provide structured query languages (SQL) for complex data retrieval and enforce data integrity through constraints like primary keys, foreign keys, and data types. These capabilities prevent duplicate or orphaned records and enable powerful multi-table queries that spreadsheets cannot reliably match at scale. This is the core reason to choose a database over a spreadsheet.

Exam trap

The trap is picking a subjective or false option (harder to learn, always free, cannot store numbers) instead of the technical capability — query power and integrity enforcement — that actually distinguishes databases from spreadsheets.

How to eliminate wrong answers

Option A is wrong because spreadsheets absolutely can store numbers — this is a false premise. Option B is wrong because ease of learning is subjective and not a technical reason to choose a database; spreadsheets are often considered easier. Option D is wrong because databases are not always free — commercial databases like Oracle and SQL Server require licenses, and cloud databases incur usage costs.

50
Multi-Selecthard

A data analyst is working with a large dataset stored in a columnar database. She needs to retrieve only the customer name and total order amount for orders placed in the last 30 days. Which two actions are most appropriate for optimizing this query? (Choose two.)

Select 2 answers
A.Use SELECT * to ensure all columns are available for analysis
B.Sort the result set by customer name before filtering
C.Use a SELECT statement that lists only the customer name and total order amount columns
D.Add a WHERE clause that filters orders based on the order date
E.Create a row-based index on the order date column
AnswersC, D

In a columnar database, data is stored by column rather than by row. Selecting only the needed columns allows the database to read just those columns, reducing I/O and improving performance. This is a best practice for columnar systems and directly supports the analyst's goal of retrieving only customer name and total order amount.

Why this answer

In a columnar database, performance improves when queries read only the columns they need and filter rows as early as possible. Listing specific columns avoids reading unnecessary data, and a WHERE clause on the order date limits the rows scanned. Using SELECT *, relying on row-based indexes, or sorting before filtering do not provide the same benefits.

Exam trap

The trap here is assuming that SELECT * is efficient or that row-based indexing is the primary optimization for columnar databases, when column pruning and filtering are what matter most.

51
MCQmedium

A small business is setting up a database to track its customers and their orders. The owner wants to ensure that every order is linked to an existing customer and that the customer ID in the Order table cannot refer to a non-existent customer. Which database concept should be implemented?

A.Primary key constraint on the Customer table
B.Check constraint on the Order table
C.Unique constraint on the Order table
D.Foreign key constraint on the Order table
AnswerD

A foreign key constraint on the Order table references the primary key of the Customer table, ensuring every order's customer ID matches an existing customer. This enforces referential integrity, directly satisfying the requirement that orders cannot be linked to non-existent customers. It prevents orphaned records and maintains consistent relationships between the two tables.

Why this answer

The requirement is to enforce that every order is linked to a valid customer, which is referential integrity. A foreign key constraint on the Order table referencing the Customer table's primary key ensures that any customer ID entered in the Order table must already exist in the Customer table. This prevents orphaned orders and maintains consistent relationships between the two tables.

Exam trap

The trap here is confusing a primary key with a foreign key; a primary key ensures uniqueness within its own table, while a foreign key enforces referential integrity across tables.

52
MCQhard

A database has a 'Students' table and an 'Enrollments' table. Which type of relationship exists if a student can enroll in multiple courses and each course can have multiple students?

A.Many-to-many
B.Many-to-one
C.One-to-many
D.One-to-one
AnswerA

Many-to-many applies because each student links to multiple courses and each course links to multiple students. Relational databases implement this with a junction table, here the Enrollments table, holding foreign keys to both Students and Courses.

Why this answer

A many-to-many relationship exists when multiple records in one table are associated with multiple records in another table. Here, a student can enroll in multiple courses, and each course can have multiple students, which is the definition of many-to-many.

Exam trap

FC0-U71 often tests the definition of relationship types; candidates may confuse one-to-many with many-to-many when both sides can have multiple instances, forgetting that many-to-many requires a junction table.

How to eliminate wrong answers

Option B is wrong because many-to-one would mean many students enroll in one course, but that does not account for a student enrolling in multiple courses. Option C is wrong because one-to-many would mean one student can enroll in many courses, but each course has only one student, which is not the case. Option D is wrong because one-to-one would mean each student is enrolled in exactly one course and each course has exactly one student, which is not true.

53
MCQmedium

A data analyst runs a query that joins the Customers and Orders tables. The result includes only customers who have placed at least one order, and customers with no orders are excluded. Which type of join produced this result?

A.RIGHT OUTER JOIN
B.INNER JOIN
C.FULL OUTER JOIN
D.LEFT OUTER JOIN
AnswerB

An INNER JOIN returns only rows where the join condition matches in both tables. Customers without any matching order rows are omitted, which exactly matches the described result. This is the default join behavior when the keyword JOIN is used without a modifier, and it is appropriate when the analyst only wants customers who have placed orders.

Why this answer

The result contains only customers who have at least one matching order, which is the defining behavior of an INNER JOIN. Outer joins preserve unmatched rows from one or both tables, so they would include customers without orders. The analyst's query therefore used an inner join to combine the two tables on their related key.

Exam trap

The trap here is assuming that any join returns all customers, when only outer joins preserve unmatched rows and an inner join excludes them.

54
Multi-Selectmedium

A junior administrator is learning about database fundamentals and needs to identify characteristics that apply to a relational database management system (RDBMS). (Choose two.)

Select 2 answers
A.Queries are written in a graph traversal language instead of SQL.
B.The system guarantees eventual consistency rather than strong consistency.
C.Data is organized into tables with rows and columns.
D.Data is stored as flexible JSON documents without a fixed schema.
E.Relationships between tables are established using primary and foreign keys.
AnswersC, E

Relational databases store data in structured tables composed of rows, which represent records, and columns, which represent attributes. This tabular structure is the foundation of the relational model and enables the use of keys, constraints, and joins. It directly characterizes an RDBMS and distinguishes it from systems that use other data models such as documents or graphs.

Why this answer

Relational databases are built on the tabular model, where data resides in tables of rows and columns, and relationships are defined through primary and foreign keys. These two characteristics are fundamental to how an RDBMS organizes, connects, and enforces integrity across data, distinguishing it from document, graph, and other non-relational systems.

Exam trap

The trap here is conflating modern database features, such as JSON column support or eventual consistency, with the core defining characteristics of the relational model.

55
MCQhard

A cloud database service is being considered for a startup to avoid hardware maintenance and allow automatic scaling. Which type of service is this?

A.Software as a Service (SaaS)
B.Database as a Service (DBaaS)
C.Infrastructure as a Service (IaaS)
D.Platform as a Service (PaaS)
AnswerB

Database as a Service delivers a fully managed database engine, so the provider handles patching, backups and hardware, while compute and storage scale automatically on demand. This directly satisfies the startup's two constraints: eliminating hardware maintenance and gaining automatic scaling without managing servers.

Why this answer

DBaaS (Database as a Service) is the correct answer because it specifically describes a managed cloud service where the provider handles database engine installation, patching, backups, replication, and scaling, while the customer simply consumes the database. The scenario explicitly mentions avoiding hardware maintenance and enabling automatic scaling of a database — the defining characteristics of DBaaS. DBaaS is a specialized subset of PaaS focused on database workloads.

Exam trap

The trap is treating DBaaS as a synonym for PaaS or SaaS — candidates must recognize that DBaaS is a specialized managed service category focused specifically on database engines, and the question's emphasis on 'database service' with 'no hardware maintenance' and 'automatic scaling' points directly to DBaaS.

How to eliminate wrong answers

Option A is wrong because SaaS delivers a complete end-user application (like a CRM or email suite), not a database engine the startup would build its own application against. Option C is wrong because IaaS provides raw virtual machines and storage where the customer still installs, configures, patches, and scales the database engine themselves — the opposite of avoiding hardware maintenance. Option D is wrong because PaaS is a broader category providing a full application development and deployment platform (runtime, middleware, OS); while DBaaS is often delivered on PaaS-like infrastructure, the question specifically asks about a database service, making DBaaS the precise answer.

56
MCQeasy

A technician is explaining database concepts to a new employee. The employee asks what a record represents in a relational database table. Which statement best describes a record?

A.A record is a collection of tables that are related to each other
B.A record is a column that defines the type of data stored in the table
C.A record is a single row in a table that contains related data about one entity
D.A record is a query that retrieves data from multiple tables
AnswerC

In a relational database, a record, also called a row or tuple, represents one instance of the entity described by the table. For example, in a Customers table, one record contains all the columns for a single customer. This definition correctly describes how data is organized in a relational table.

Why this answer

A record, also known as a row or tuple, contains all the column values for one entity in a table. For example, one row in an Employees table holds the ID, name, and hire date for a single employee. Columns define attributes, tables hold records, and queries retrieve data, so the row-based definition is the correct one.

Exam trap

The trap here is mixing up rows and columns, or confusing a record with a table or query, when a record is specifically one row of related data.

57
MCQmedium

A database designer wants to reduce data redundancy and avoid update anomalies. Which process should be applied?

A.Denormalization
B.Normalization
C.Encryption
D.Indexing
AnswerB

Normalization restructures tables into progressively stricter normal forms, eliminating partial and transitive dependencies. This directly removes redundant data copies and the insert, update, and delete anomalies that stem from them, matching the designer's stated goal.

Why this answer

Normalization is the process of organizing database tables to minimize redundancy and eliminate update, insert, and delete anomalies by decomposing tables according to normal forms (1NF, 2NF, 3NF, BCNF). It systematically removes partial and transitive dependencies so that each fact is stored in exactly one place. This directly addresses the designer's goal of reducing redundancy and avoiding update anomalies.

Exam trap

The trap is confusing normalization with denormalization — candidates who remember that denormalization 'improves performance' may pick it, forgetting that the question explicitly asks about reducing redundancy and avoiding update anomalies, which is the definition of normalization.

How to eliminate wrong answers

Option A is wrong because denormalization is the opposite process — it intentionally introduces redundancy (e.g., duplicating columns or merging tables) to improve read performance, which would worsen update anomalies. Option C is wrong because encryption protects data confidentiality at rest or in transit; it does nothing to address structural redundancy or update anomalies. Option D is wrong because indexing improves query retrieval speed by creating auxiliary data structures (B-trees, hash indexes), but it does not change the logical schema or eliminate redundancy and anomalies.

58
MCQhard

A developer modifies a database and wants to ensure that every value in a column meets a specific condition, such as age must be between 0 and 120. Which type of integrity constraint should be used?

A.Referential integrity
B.Domain integrity
C.User-defined integrity
D.Entity integrity
AnswerB

Domain integrity constrains a column's permitted values to a defined set, range or format, such as age between 0 and 120. It operates on the values themselves, unlike entity, referential or key constraints, which govern rows or relationships between tables.

Why this answer

Domain integrity ensures that values in a column fall within a defined valid range or set of values, such as age between 0 and 120. It is enforced through CHECK constraints, data type definitions, and default values that restrict the domain of acceptable values for an attribute. The scenario explicitly describes a condition on column values, which is the definition of domain integrity.

Exam trap

The trap is confusing domain integrity with user-defined integrity — candidates may think any custom business rule is 'user-defined,' but the exam expects simple value-range or format constraints on a single column to be classified as domain integrity.

How to eliminate wrong answers

Option A is wrong because referential integrity ensures that foreign key values in one table match primary key values in a related table — it governs relationships between tables, not value ranges within a column. Option C is wrong because user-defined integrity covers business rules that don't fit other categories (e.g., 'a manager's salary must be higher than their subordinates'), and while it could technically enforce such a rule, the standard classification for a simple value-range constraint is domain integrity. Option D is wrong because entity integrity ensures each row is uniquely identifiable via a primary key with no NULLs — it addresses row uniqueness, not value ranges.

59
MCQhard

A database designer wants to ensure that every value in a column called 'Status' is either 'Active', 'Inactive', or 'Pending'. Which type of constraint should be applied?

A.Entity integrity
B.Domain integrity
C.User-defined integrity
D.Referential integrity
AnswerB

Domain integrity constrains a column to a defined set of permissible values, so restricting Status to 'Active', 'Inactive', or 'Pending' is enforced at the domain level, typically via a CHECK constraint or lookup. Entity and referential integrity govern keys and relationships, not value ranges.

Why this answer

Domain integrity is the correct constraint type because it restricts the values of a column to a defined domain — in this case, the set {'Active', 'Inactive', 'Pending'}. This is typically enforced with a CHECK constraint or an ENUM data type that limits acceptable values. The scenario describes exactly a domain restriction on the 'Status' column.

Exam trap

The trap is selecting user-defined integrity because the allowed values seem 'custom' — candidates must recognize that a simple enumerated value list on a single column is the textbook definition of domain integrity, while user-defined integrity applies to more complex multi-column business rules.

How to eliminate wrong answers

Option A is wrong because entity integrity ensures each row has a unique primary key with no NULLs — it addresses row identity, not the set of allowed values in a column. Option C is wrong because user-defined integrity covers complex business rules that span multiple columns or tables (e.g., 'an employee's bonus cannot exceed 10% of salary'), whereas a simple enumerated value list on one column is domain integrity. Option D is wrong because referential integrity ensures foreign key values match primary keys in a related table — it governs inter-table relationships, not the allowed values within a single column.

60
Multi-Selecteasy

Which of the following are advantages of using a cloud database service (DBaaS) compared to an on-premises database? (Select TWO.)

Select 2 answers
A.Full control over underlying hardware
B.Requires dedicated IT staff for database administration
C.Managed maintenance and updates
D.Higher initial capital expenditure
E.Automatic scalability
AnswersC, E

DBaaS shifts patching, version upgrades and backups to the provider, so the customer inherits automatic maintenance rather than scheduling downtime and applying updates themselves. This directly satisfies the stem's advantage over on-premises databases, where the internal team owns every maintenance window.

Why this answer

DBaaS provides managed maintenance and automatic scalability without hardware management. High availability is inherent, and initial cost is lower (pay-as-you-go).

61
MCQmedium

A database administrator wants to enforce that every record in the 'Orders' table must have a non-null unique value in the 'OrderID' column. Which database concept ensures this?

A.Referential integrity
B.Entity integrity
C.Input validation
D.Domain integrity
AnswerB

Entity integrity requires every row to have a unique, non-null primary key, so the OrderID column must contain a distinct value in each record. Referential integrity instead governs foreign-key relationships between tables, which the stem does not describe.

Why this answer

Entity integrity requires that every row in a table be uniquely identifiable by a primary key, which by definition cannot be NULL and must be unique. Enforcing a non-null, unique value in the 'OrderID' column is exactly the definition of entity integrity, typically implemented via a PRIMARY KEY constraint. This ensures each record represents a distinct, identifiable entity.

Exam trap

The trap here is confusing the four integrity types — candidates often pick 'referential integrity' because it sounds like it governs relationships/records, but the question's keywords 'non-null unique value in a column' point specifically to entity integrity (primary key), not foreign key relationships.

How to eliminate wrong answers

Option A is wrong because referential integrity governs the consistency of foreign key values between related tables (ensuring a foreign key matches an existing primary key), not the uniqueness/non-null property of a primary key column. Option C is wrong because input validation is an application-layer control that checks data format/range at entry, not a database-level integrity constraint guaranteeing uniqueness across all rows. Option D is wrong because domain integrity restricts the set of allowable values for a column (data type, CHECK constraints, ranges), not the uniqueness or non-null requirement of a key.

62
MCQeasy

A small retail company stores customer orders in a relational database. The IT administrator wants each order record to automatically receive a unique number without manual entry when a new order is inserted. Which database feature should be configured to meet this requirement?

A.Set the OrderID column as an AUTO_INCREMENT (or IDENTITY) column.
B.Add a CHECK constraint that verifies the OrderID is numeric.
C.Define a foreign key on the OrderID column referencing the CustomerID column.
D.Create a stored procedure that prompts the user to enter the next order number.
AnswerA

An AUTO_INCREMENT or IDENTITY column automatically generates a sequential unique number for each new row inserted, eliminating manual entry and preventing duplicates. This directly satisfies the requirement for automatic unique order numbers in a relational database, and it is supported by most relational database management systems as a standard column property.

Why this answer

The requirement is automatic generation of a unique number for each new order. An AUTO_INCREMENT or IDENTITY column is the standard relational database feature that produces a sequential unique value on insert, removing manual entry and preventing duplicates. Other options either require manual input, only validate data, or enforce referential integrity without generating values.

Exam trap

The trap here is confusing a constraint that validates data, such as CHECK, with a feature that automatically generates unique values, such as AUTO_INCREMENT or IDENTITY.

63
MCQeasy

Which SQL command is used to add a new row to a table?

A.INSERT INTO
B.ADD
C.CREATE
D.UPDATE
AnswerA

INSERT INTO appends new rows to a table, satisfying the requirement to add data rather than modify structure or retrieve it. Unlike UPDATE, which alters existing rows, or CREATE, which defines a new table, INSERT INTO specifies the target table and supplies values for each column, directly fulfilling the scenario.

Why this answer

INSERT INTO is the SQL command for adding new rows.

64
MCQmedium

A small business stores customer orders in a relational database. The Orders table has a foreign key column named CustomerID that references the Customers table. A developer needs to prevent any order from being inserted if the CustomerID does not already exist in the Customers table. Which database feature should be used?

A.A unique constraint on the CustomerID column in the Orders table
B.A referential integrity constraint
C.A default value of 0 for the CustomerID column
D.An index on the CustomerID column in the Orders table
AnswerB

Referential integrity ensures that a foreign key value in one table matches an existing primary key value in the referenced table. By enforcing this constraint, the database rejects any order whose CustomerID is not present in the Customers table. This directly prevents orphaned records and maintains consistent relationships between orders and customers.

Why this answer

Referential integrity is the relational database rule that a foreign key must reference an existing primary key. It blocks inserts or updates that would create an order with a nonexistent CustomerID. Unique constraints, default values, and indexes serve different purposes and do not validate the relationship between the Orders and Customers tables.

Exam trap

The trap here is confusing a unique constraint or an index with referential integrity, when only a foreign key constraint checks that the referenced customer actually exists.

65
MCQeasy

A small retail store keeps its sales records in a spreadsheet file. The owner complains that customer addresses are typed slightly differently in different rows, and that correcting one address requires editing many rows. Which data concept best describes the root problem the owner is experiencing?

A.A weak wireless network connection to the file share
B.Insufficient storage capacity on the workstation
C.Data redundancy with resulting inconsistency
D.Missing antivirus definitions on the store's computer
AnswerC

The same customer address is stored repeatedly across many rows, so the same fact is duplicated. When one copy is corrected, the other copies still hold the old value, producing inconsistent data. This duplication of the same fact in multiple places is exactly what redundancy means, and the mismatched addresses are the resulting inconsistency.

Why this answer

Because the same customer detail is retyped into every sales row, one real-world fact exists in many places at once. That duplication is redundancy, and the divergent spellings are the inconsistency it produces. A structure that stores the customer once and references it from sales rows removes both symptoms.

Exam trap

The trap here is assuming any messy or error-filled data must be a database design fault, when the defining symptom is really the same fact duplicated in multiple rows.

66
Multi-Selecthard

A junior administrator is reviewing a database schema and must identify which statements about primary keys and foreign keys are accurate. (Choose two.)

Select 2 answers
A.A foreign key value must match an existing primary key value in the referenced table, or be NULL if the column allows it.
B.A primary key uniquely identifies each row in its table and cannot contain NULL values.
C.A primary key value can be changed freely at any time without affecting related tables.
D.A foreign key must be unique within its own table.
E.A table can contain multiple primary keys to improve query performance.
AnswersA, B

This is accurate because referential integrity requires every non-null foreign key value to correspond to an existing referenced key. The exception is when the foreign key column permits NULL, which represents the absence of a relationship, such as an unassigned order. This rule prevents orphaned rows that point to nonexistent parent records.

Why this answer

A primary key uniquely identifies rows and forbids NULLs, while a foreign key must either match an existing referenced key or be NULL when the column allows it. These two rules together enforce entity integrity and referential integrity, which are the cornerstones of a reliable relational schema.

Exam trap

The trap here is assuming a table can have several primary keys or that a foreign key must be unique, when in fact only one primary key exists per table and foreign keys are routinely repeated.

67
MCQmedium

A database designer wants to split a table into two to reduce data redundancy and avoid update anomalies. This process is known as:

A.Normalization
B.Denormalization
C.Indexing
D.Partitioning
AnswerA

Normalization splits tables to eliminate redundancy.

Why this answer

Normalization is the process of organizing data to reduce redundancy and improve integrity.

68
MCQhard

Which SQL statement would you use to retrieve the names of all products with a price greater than $50 from a table named 'Products'?

A.SELECT Name FROM Products WHERE Price > 50
B.SELECT Name FROM Products HAVING Price > 50
C.SELECT * FROM Products IF Price > 50
D.GET Name FROM Products WHERE Price > 50
AnswerA

SELECT retrieves only the Name column, satisfying the requirement to return product names alone, while WHERE filters rows using the Price > 50 predicate. This precisely matches the stem's constraints: table Products, names only, price threshold above $50.

Why this answer

The correct SQL syntax to filter rows is SELECT ... FROM ... WHERE condition.

Option A retrieves the Name column from Products where Price exceeds 50, which is exactly the requested query. WHERE is the standard clause for row-level filtering in a SELECT statement, and the comparison operator > correctly expresses 'greater than.'

Exam trap

FC0-U71 often tests the WHERE vs. HAVING distinction and the correct SQL keyword set — candidates who confuse filtering clauses or invent non-SQL keywords like GET or IF pick the wrong answer.

How to eliminate wrong answers

Option B is wrong because HAVING filters groups after aggregation (used with GROUP BY), not individual rows, and using it without aggregation is invalid or semantically incorrect in standard SQL. Option C is wrong because IF is not a SQL filtering clause — the correct keyword is WHERE, and SELECT * would also return all columns rather than just Name. Option D is wrong because GET is not a SQL statement; the data retrieval command is SELECT, so this is syntactically invalid.

69
MCQmedium

An employee wants to add a new customer record to the 'Customers' table with columns 'ID', 'Name', and 'Email'. Which SQL statement should be used?

A.ADD INTO Customers VALUES (1, 'John', 'john@example.com');
B.INSERT Customers VALUES (1, 'John', 'john@example.com');
C.UPDATE Customers SET Name='John' WHERE ID=1;
D.INSERT INTO Customers VALUES (1, 'John', 'john@example.com');
AnswerD

INSERT INTO with VALUES adds a single row to the named table, supplying the three column values in the table's declared order (ID, Name, Email). This satisfies the requirement to add one new customer record, since no existing rows are modified or selected.

Why this answer

The correct SQL syntax to add a new row is INSERT INTO <table> VALUES (...). Option D uses INSERT INTO Customers VALUES (1, 'John', 'john@example.com');, which inserts a new record with values for all columns in order. This is the standard, valid statement for adding a customer record.

Exam trap

FC0-U71 often tests the exact keyword sequence — candidates confuse INSERT INTO with ADD INTO or omit INTO, and also mix up INSERT (new row) with UPDATE (existing row), which is the classic DML trap.

How to eliminate wrong answers

Option A is wrong because ADD INTO is not valid SQL syntax; the correct keyword is INSERT INTO. Option B is wrong because it omits the INTO keyword — INSERT Customers VALUES (...) is invalid in standard SQL. Option C is wrong because UPDATE modifies existing rows and requires a SET clause with a WHERE condition; it does not add a new record.

70
MCQmedium

A hospital's scheduling system must answer questions such as 'which appointments belong to patient 4471, and which physician is assigned to each?' Records change frequently, and staff need immediate, consistent answers. Which data structure characteristic is most important for this requirement?

A.Defined relationships between records held in related tables
B.Very large binary media objects stored alongside each patient record
C.A single flat file listing every appointment in arrival order
D.Compression of every text field to reduce file size
AnswerA

The questions asked are about how one record connects to others: appointments point to a patient and to a physician. A relational structure stores each entity in its own table and enforces those links, so a query can follow the connections and return consistent results even while records are being updated.

Why this answer

The scheduling question is fundamentally relational: an appointment is tied to one patient and one physician. Modeling each entity separately and enforcing the links lets the system follow those connections and return accurate answers while records are being edited. Storage-size and file-format choices do not address the connection requirement.

Exam trap

The trap here is reading 'immediate, consistent answers' as a performance or hardware issue, when the requirement is really about how records are linked.

71
Multi-Selecthard

A university database includes tables: 'Professors' (ProfessorID, Name, Department) and 'Courses' (CourseID, Title, ProfessorID). Which THREE statements about this design are correct?

Select 3 answers
A.The primary key of Professors is CourseID.
B.The primary key of Professors is ProfessorID.
C.The relationship between Professors and Courses is many-to-many.
D.ProfessorID in Courses is a foreign key referencing Professors.
E.A professor can be associated with multiple courses.
AnswersB, D, E

ProfessorID uniquely identifies each professor row, so it serves as the primary key of the Professors table. This uniqueness constraint is what allows other tables, such as Courses, to reference individual professors reliably through that identifier.

Why this answer

Option B is correct because ProfessorID uniquely identifies each row in the Professors table, making it the natural primary key. Option D is correct because Courses.ProfessorID stores the value of the Professors primary key, so it is a foreign key referencing Professors.ProfessorID, enforcing referential integrity between the two tables. Option E is correct because a single professor's ProfessorID can appear in many Courses rows, so one professor can be associated with multiple courses.

Option A is wrong because CourseID belongs to the Courses table, not Professors. Option C is wrong because the design is one-to-many: each course has one ProfessorID, so it is not many-to-many.

72
MCQmedium

A database administrator needs to ensure that every record in the 'Orders' table can be uniquely identified. Which constraint should be applied to the 'OrderID' column?

A.PRIMARY KEY
B.FOREIGN KEY
C.UNIQUE constraint
D.CHECK constraint
AnswerA

A PRIMARY KEY constraint enforces uniqueness and non-nullability on OrderID, guaranteeing each Orders row is uniquely identifiable. Unique constraints permit one null, and foreign keys reference other tables rather than identifying rows, so neither meets the stated requirement.

Why this answer

A PRIMARY KEY constraint uniquely identifies each record in a table and implicitly enforces uniqueness and NOT NULL. Applying it to OrderID guarantees every order has a unique, non-null identifier, which is exactly what the DBA needs.

Exam trap

The trap is confusing UNIQUE with PRIMARY KEY; candidates pick UNIQUE because it also enforces uniqueness, but they forget that a primary key additionally enforces NOT NULL and serves as the table's official row identifier.

How to eliminate wrong answers

Option B is wrong because a FOREIGN KEY enforces referential integrity by linking to a primary key in another table; it does not uniquely identify records in the Orders table. Option C is wrong because a UNIQUE constraint enforces uniqueness but allows NULL values and does not by itself designate the row's primary identifier; it is weaker than a primary key. Option D is wrong because a CHECK constraint validates that column values meet a condition (e.g., quantity > 0) and has nothing to do with uniqueness.

73
MCQmedium

Which of the following is an example of a NoSQL database?

A.Oracle Database
B.MySQL
C.PostgreSQL
D.MongoDB
AnswerD

MongoDB stores documents in BSON rather than rows in relational tables, and it uses no fixed schema or SQL. That document-oriented, non-relational model is the defining characteristic of a NoSQL database, distinguishing it from relational systems such as MySQL, PostgreSQL and Oracle.

Why this answer

MongoDB is a NoSQL database because it stores data in flexible, JSON-like documents rather than in fixed relational tables. It is designed for scalability and high performance with unstructured or semi-structured data, and it does not require a predefined schema. This contrasts with the other options, which are all relational databases that use SQL and structured tables.

Exam trap

FC0-U71 often tests the confusion between relational and NoSQL databases, as candidates may think any database that is not Oracle or MySQL is NoSQL, but PostgreSQL is also relational.

How to eliminate wrong answers

Option A is wrong because Oracle Database is a relational database management system (RDBMS) that uses SQL and a tabular schema. Option B is wrong because MySQL is an open-source RDBMS that also uses SQL and structured tables. Option C is wrong because PostgreSQL is an advanced open-source RDBMS that supports SQL and relational modeling, though it has some NoSQL features, it is primarily relational.

74
MCQeasy

Which of the following is a primary advantage of using a database over a flat file system for storing customer records?

A.Simpler to set up and manage
B.Supports simultaneous multi-user access
C.Stores data in a non-structured format
D.No need for a query language
AnswerB

A database management system provides concurrency control, letting many users read and write customer records simultaneously without corrupting data. A flat file offers no such locking or transaction mechanism, so concurrent edits overwrite each other, making the database the appropriate choice.

Why this answer

A database management system supports concurrent multi-user access through locking, transactions, and isolation levels, allowing many users to read and write customer records simultaneously without corrupting data. A flat file system offers no such concurrency control, so simultaneous writes can overwrite each other.

Exam trap

FC0-U71 often tests the trade-off between simplicity and capability — candidates pick 'simpler to set up' or 'no query language' as advantages when those are actually characteristics of flat files, not databases.

How to eliminate wrong answers

Option A is wrong because databases are generally more complex to set up and manage than flat files, not simpler — they require schema design, a DBMS, backups, and tuning. Option C is wrong because databases store data in a highly structured format (tables, rows, columns, relationships), which is the opposite of non-structured. Option D is wrong because databases typically require a query language like SQL to retrieve data, whereas flat files can be read with simple text tools.

Ready to test yourself?

Try a timed practice session using only Itf Database Fundamentals questions.