Docsity

DATABASE SYSTEMS DESIGN IMPLEMENTATION MANAGEMENT CERTIFICATION PRACTICE EXAM 2026: 100, Exams of Database Programming

Toggle sidebar
bg1
★ DATABASE SYSTEMS DESIGN
IMPLEMENTATION MANAGEMENT
CERTIFICATION PRACTICE EXAM 2026:
100 QUESTIONS CORRECT ANSWERS
DETAILED RATIONALES SQL
DATABASE ADMINISTRATION STUDY
GUIDE ★
DESCRIPTION
Question 1
What is the primary purpose of a database management system (DBMS)?
A. To replace all operating system functions
B. To manage data storage, retrieval, modification, and control
C. To convert every database into a spreadsheet
D. To prevent users from accessing stored information
Correct Answer: B
Rationale: A DBMS provides an organised environment for creating, storing, retrieving,
updating, and managing data. It also supports security, integrity, concurrency, and recovery. By
separating data management from individual application programs, a DBMS makes information
easier to maintain, share, and protect than traditional isolated file-processing systems.
Question 2
An organisation stores customer information in several separate spreadsheets. Employees
frequently find inconsistent addresses and duplicate customer records. Which database problem
does this situation illustrate most clearly?
A. Data encryption
B. Referential integrity
C. Query optimisation
D. Data redundancy and inconsistency
Correct Answer: D
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25

Partial preview of the text

Download DATABASE SYSTEMS DESIGN IMPLEMENTATION MANAGEMENT CERTIFICATION PRACTICE EXAM 2026: 100 and more Exams Database Programming in PDF only on Docsity!

★ DATABASE SYSTEMS DESIGN

IMPLEMENTATION MANAGEMENT

CERTIFICATION PRACTICE EXAM 2026:

100 QUESTIONS CORRECT ANSWERS

DETAILED RATIONALES SQL

DATABASE ADMINISTRATION STUDY

GUIDE ★

DESCRIPTION

Question 1 What is the primary purpose of a database management system (DBMS)? A. To replace all operating system functions B. To manage data storage, retrieval, modification, and control C. To convert every database into a spreadsheet D. To prevent users from accessing stored information Correct Answer: B Rationale: A DBMS provides an organised environment for creating, storing, retrieving, updating, and managing data. It also supports security, integrity, concurrency, and recovery. By separating data management from individual application programs, a DBMS makes information easier to maintain, share, and protect than traditional isolated file-processing systems. Question 2 An organisation stores customer information in several separate spreadsheets. Employees frequently find inconsistent addresses and duplicate customer records. Which database problem does this situation illustrate most clearly? A. Data encryption B. Referential integrity C. Query optimisation D. Data redundancy and inconsistency Correct Answer: D

Rationale: Data redundancy occurs when the same information is stored repeatedly in different locations. If employees update one spreadsheet but not the others, inconsistent values develop. A properly designed database reduces unnecessary duplication by storing shared information in appropriate tables and linking related records through keys. Question 3 Which statement best distinguishes data from information? A. Data consists of raw facts, while information is data processed into a meaningful form B. Data is always numerical, while information is always textual C. Information is collected before data exists D. Data and information have exactly the same meaning Correct Answer: A Rationale: Data represents raw observations, measurements, or recorded facts. Information results when data is organised, processed, interpreted, or placed into context so that it becomes useful. For example, individual sales transactions are data, while a report showing monthly revenue trends is information that supports management decisions. Question 4 A company wants to design a database before selecting a specific DBMS. Which activity should it perform first? A. Create physical indexes B. Configure server memory C. Develop a conceptual data model based on business requirements D. Write stored procedures for every business process Correct Answer: C Rationale: Conceptual modelling identifies the important entities, relationships, and business rules without depending on a particular database product. It helps stakeholders agree on the information requirements before technical implementation begins. Logical and physical design can then translate the approved model into structures supported by the selected DBMS. Question 5 Which database component is primarily responsible for defining the structure of a database? A. Data manipulation language B. Data definition language C. Transaction log D. Query result set

A. A database security policy B. A relationship between two database servers C. A row or record in a relational table D. A command used to delete a database Correct Answer: C Rationale: A tuple represents a single row in a relational table. It contains values corresponding to the table's attributes. For example, a customer tuple may contain a customer identifier, name, email address, and telephone number. Each tuple represents one occurrence of the entity described by the relation. Question 9 A table contains a column that uniquely identifies every employee record. Which database concept does this column represent when selected as the table's primary identifier? A. Foreign key B. Primary key C. Non-key attribute D. Derived attribute Correct Answer: B Rationale: A primary key uniquely identifies each row in a table. It must contain unique values and cannot contain NULL values. A suitable primary key enables reliable record identification and supports relationships with other tables. It should be stable and should not depend on frequently changing business information. Question 10 A database table uses a combination of EmployeeID and ProjectID to uniquely identify each assignment. What type of key is being used? A. Foreign key only B. Surrogate key C. Partial dependency D. Composite primary key Correct Answer: D Rationale: A composite key consists of two or more attributes that collectively identify a unique row. EmployeeID alone may appear multiple times because an employee can work on several projects. ProjectID may also repeat because several employees can work on one project. Together, the attributes uniquely identify each assignment.

Question 11 A database table contains a DepartmentID column that references the primary key of a separate Department table. What is DepartmentID in the first table? A. Foreign key B. Candidate key C. Multivalued attribute D. Derived field Correct Answer: A Rationale: A foreign key is an attribute or group of attributes that references a candidate key, usually the primary key, in another table or the same table. It establishes a relationship between records and supports referential integrity by preventing invalid references when the relevant constraints are enforced. Question 12 Which statement best describes entity integrity in a relational database? A. Every table must contain at least five columns B. Every foreign key must have a unique value C. A primary key must be unique and cannot contain NULL values D. All columns must contain numerical values Correct Answer: C Rationale: Entity integrity ensures that every row can be uniquely identified. Therefore, a primary key must contain unique, non-NULL values. Without this rule, records could become indistinguishable or impossible to reference reliably. Entity integrity is a fundamental principle of relational database design. Question 13 A business rule states that each customer may place many orders, but each order belongs to exactly one customer. What relationship exists between CUSTOMER and ORDER? A. One-to-one B. One-to-many C. Many-to-many D. Recursive one-to-one Correct Answer: B

C. Represent telephone numbers as a separate related entity or table D. Combine all telephone numbers into unrelated columns without a defined structure Correct Answer: C Rationale: A separate related table provides a structured way to represent multiple telephone numbers for one student. Each telephone number record can reference the student through a foreign key. This approach avoids repeating groups, supports an unlimited number of numbers, and improves data consistency and query flexibility. Question 17 Which attribute is most suitable for use as a primary key in a CUSTOMER table? A. Customer surname B. CustomerID generated uniquely for each customer C. City of residence D. Customer registration year Correct Answer: B Rationale: A generated CustomerID is generally more suitable because it can uniquely identify customers independently of their names or locations. Surnames, cities, and registration years can be shared by many customers and may change. A stable identifier simplifies relationships and reduces the risk of key values changing over time. Question 18 A database designer is converting a many-to-many relationship between STUDENT and COURSE into relational tables. What is the correct approach? A. Remove the COURSE table B. Store all student names in one COURSE column C. Duplicate the STUDENT table for every course D. Introduce an associative table containing StudentID and CourseID Correct Answer: D Rationale: An associative table resolves a many-to-many relationship by storing one row for each relationship occurrence. StudentID and CourseID act as foreign keys, and together they can form a composite primary key. Additional details, such as enrolment date or final grade, can also be stored in this table. Question 19 What is the principal objective of database normalisation?

A. To reduce unnecessary redundancy and improve data integrity B. To increase the number of duplicate records C. To eliminate the need for primary keys D. To store every attribute in one large table Correct Answer: A Rationale: Normalisation organises relational tables to minimise unnecessary duplication and prevent insertion, update, and deletion anomalies. It uses principles such as functional dependencies and normal forms to determine how attributes should be grouped. A properly normalised design improves consistency and makes database maintenance more reliable. Question 20 A table contains repeating groups, with several product names stored in a single column for each order. Which normal form is primarily concerned with eliminating this problem? A. Second Normal Form B. Third Normal Form C. First Normal Form D. Fourth Normal Form Correct Answer: C Rationale: First Normal Form (1NF) requires each attribute value to be atomic within the context of the relational model and eliminates repeating groups. Storing multiple product names in one field makes individual values difficult to search, update, and validate. Separating order details into individual rows creates a more structured relation. Question 21 A table is in First Normal Form and has a composite primary key. A non-key attribute depends on only part of that key. Which normal form is violated? A. First Normal Form B. Second Normal Form C. Third Normal Form D. Boyce-Codd Normal Form Correct Answer: B Rationale: Second Normal Form (2NF) requires a table to be in 1NF and every non-key attribute to depend on the whole candidate key, not merely part of a composite key. A partial dependency can cause repeated values and update anomalies. Decomposition separates attributes according to their proper determinants.

Rationale: If OrderID determines CustomerID and CustomerID determines CustomerName, the name is transitively dependent on the order identifier. Storing the customer name repeatedly in ORDER can create inconsistencies when it changes. A separate CUSTOMER table should normally store customer details, with CustomerID referenced by ORDER. Question 25 Which statement best describes a candidate key? A. Any column that contains repeated values B. A minimal attribute or attribute combination that uniquely identifies a row C. A column that must contain a date D. A field that is always used for sorting Correct Answer: B Rationale: A candidate key is a minimal set of attributes that uniquely identifies each tuple. Minimality means that no attribute can be removed without losing the uniqueness property. A table may have several candidate keys, but one is selected as the primary key while the others remain alternative unique identifiers. Question 26 A database designer identifies that a table has two independent multivalued attributes, each describing a different set of facts about the same entity. Which normal form specifically addresses certain non-trivial multivalued dependencies? A. First Normal Form B. Second Normal Form C. Third Normal Form D. Fourth Normal Form Correct Answer: D Rationale: Fourth Normal Form (4NF) addresses non-trivial multivalued dependencies. When independent multivalued facts are stored together, combinations can create unnecessary rows and redundancy. Decomposing the relation into separate tables for independent multivalued facts reduces duplication and improves the clarity of the data model. Question 27 Which SQL statement retrieves every column from a table named CUSTOMER? A. SELECT * FROM CUSTOMER; B. GET ALL CUSTOMER;

C. DISPLAY CUSTOMER COLUMNS;

D. OPEN CUSTOMER RECORDS;

Correct Answer: A Rationale: The SQL SELECT statement retrieves data from database tables or views. The asterisk represents all columns, while FROM identifies the source table. Although SELECT * is useful for exploration, production applications often specify required columns explicitly to improve clarity, reduce unnecessary data transfer, and make queries more maintainable. Question 28 A database user wants to retrieve only customers whose country is Kenya. Which SQL statement is correct? A. SELECT CUSTOMER WHERE Country = 'Kenya'; B. GET * FROM CUSTOMER IF Country = 'Kenya'; C. SELECT * FROM CUSTOMER WHERE Country = 'Kenya'; D. FILTER CUSTOMER BY Country = Kenya; Correct Answer: C Rationale: The WHERE clause filters rows according to a specified condition. The query selects all columns from CUSTOMER but returns only records whose Country value equals Kenya. Text values are commonly enclosed in single quotation marks in SQL. The exact comparison behaviour may depend on the database's collation settings. Question 29 Which SQL clause is used to sort query results in ascending or descending order? A. GROUP BY B. ORDER BY C. WHERE D. HAVING Correct Answer: B Rationale: ORDER BY sorts the rows returned by a query according to one or more expressions. ASC specifies ascending order and is generally the default, while DESC specifies descending order. Sorting does not change the underlying stored records; it changes the order in which query results are presented. Question 30

WHERE filters individual rows before grouping, whereas HAVING evaluates conditions against the grouped results. Question 33 Which SQL statement removes duplicate rows from a query result based on the selected columns? A. UNIQUE TABLE B. DISTINCT C. REMOVE DUPLICATES D. GROUP ONLY Correct Answer: B Rationale: DISTINCT eliminates duplicate combinations from the selected output columns. For example, SELECT DISTINCT Country FROM CUSTOMER returns each country value once. It affects the query result rather than deleting duplicate records from the underlying table. Removing actual duplicate data requires a separate, carefully controlled data modification operation. Question 34 A user needs to retrieve customers and their corresponding orders, but customers without orders should also appear in the results. Which join is most appropriate? A. INNER JOIN B. CROSS JOIN C. RIGHT JOIN only in every database design D. LEFT JOIN from CUSTOMER to ORDER Correct Answer: D Rationale: A LEFT JOIN returns all rows from the left-hand table and matching rows from the right-hand table. When a customer has no matching order, the order columns contain NULL values. This is useful for identifying customers without orders while retaining all customer records in the output. Question 35 What is the main difference between an INNER JOIN and a LEFT JOIN? A. INNER JOIN returns matching rows, while LEFT JOIN also preserves all rows from its left table B. INNER JOIN always returns every row from both tables

C. LEFT JOIN deletes unmatched records D. They always produce identical results Correct Answer: A Rationale: An INNER JOIN returns rows satisfying the join condition in both tables. A LEFT JOIN retains every row from the left table, even when no matching right-table record exists. In those unmatched cases, columns from the right table contain NULL. The choice depends on the information required by the query. Question 36 A database developer wants to find customers whose names begin with the letters "Mar". Which SQL condition is appropriate? A. WHERE CustomerName = 'Mar' B. WHERE CustomerName BETWEEN 'Mar' AND 'Mar' C. WHERE CustomerName LIKE 'Mar%' D. WHERE CustomerName IN ('Mar') Correct Answer: C Rationale: The LIKE operator supports pattern matching. The percent sign represents zero or more characters, so 'Mar%' matches names beginning with Mar, such as Martin or Maria. Pattern matching behaviour can depend on collation and case sensitivity. The underscore wildcard represents a single character. Question 37 Which SQL command is used to add a new row to an existing table? A. UPDATE B. INSERT C. ALTER D. CREATE Correct Answer: B Rationale: INSERT adds new records to a table. It can specify particular columns and corresponding values, allowing omitted columns to use defaults or NULL where permitted. UPDATE changes existing records, ALTER changes database structures, and CREATE defines new database objects such as tables. Question 38

Question 41 Which SQL constraint prevents a column from accepting NULL values? A. UNIQUE B. NOT NULL C. DEFAULT D. CHECK Correct Answer: B Rationale: NOT NULL requires a value to be supplied for the constrained column, preventing NULL entries. It is useful for mandatory information such as a required customer identifier or transaction date. It does not independently guarantee uniqueness; that requirement is enforced through a primary key or UNIQUE constraint. Question 42 A database designer wants to ensure that an employee's salary cannot be negative. Which constraint is most appropriate? A. FOREIGN KEY B. PRIMARY KEY C. DEFAULT D. CHECK Correct Answer: D Rationale: A CHECK constraint enforces a condition on values entered into a column or row. A condition such as CHECK (Salary >= 0) prevents negative salary values from being accepted when the DBMS enforces the constraint. It helps maintain data validity close to the stored data. Question 43 What is the purpose of a UNIQUE constraint? A. To prevent duplicate values in the constrained column or combination of columns B. To make every value a foreign key C. To remove all NULL values automatically D. To encrypt the column Correct Answer: A Rationale: A UNIQUE constraint prevents duplicate values in the constrained key or attribute combination. It is useful for fields such as email addresses when business rules require

uniqueness. NULL handling varies among DBMS products, so designers should consult the relevant implementation's behaviour when defining uniqueness requirements. Question 44 Which SQL statement creates a view named ActiveCustomers based on a query? A. CREATE TABLE ActiveCustomers AS VIEW ... B. MAKE VIEW ActiveCustomers; C. CREATE VIEW ActiveCustomers AS SELECT ...; D. INSERT VIEW ActiveCustomers; Correct Answer: C Rationale: CREATE VIEW defines a virtual table based on a stored SELECT query. The view can simplify complex queries, present selected information to users, and support controlled access to underlying data. A conventional view usually stores the query definition rather than a separate physical copy of its results. Question 45 A company wants to prevent application users from viewing salary information while allowing them to retrieve employee names and departments. Which database feature can help achieve this? A. A CROSS JOIN B. A view that exposes only permitted columns, combined with appropriate privileges C. A database index on salary D. A GROUP BY clause Correct Answer: B Rationale: A view can expose only approved columns, allowing users to access necessary information without directly seeing sensitive fields. However, the view must be combined with appropriate permissions on the view and underlying objects. Security should be implemented through least privilege and tested for unintended access paths. Question 46 What is a subquery in SQL? A. A command that shuts down the DBMS B. A table that cannot contain rows C. A database backup stored inside another backup D. A query nested within another SQL statement

A. Remove the primary key B. Create an appropriate index on EmailAddress C. Convert every column to a text type D. Duplicate all customer records Correct Answer: B Rationale: An index on EmailAddress may allow the DBMS to locate matching rows more efficiently, especially when the query is selective and the table is large. The actual benefit depends on data distribution, query structure, and the optimiser's choices. Index usage should be evaluated through execution plans and performance testing. Question 50 A database administrator notices that a query performs a full table scan despite an existing index. What is a reasonable troubleshooting step? A. Delete the entire database B. Disable all constraints C. Replace every data type with VARCHAR D. Examine the execution plan, predicates, statistics, and index suitability Correct Answer: D Rationale: A full table scan is not always a problem, but it may be inefficient for selective queries on large tables. The execution plan can reveal whether the index is usable and whether the optimiser estimates a scan to be cheaper. Reviewing statistics, predicates, data types, and index design helps identify the cause. Question 51 Which database principle ensures that a transaction is treated as one logical unit of work? A. Atomicity B. Redundancy C. Denormalisation D. Fragmentation Correct Answer: A Rationale: Atomicity means that a transaction's operations are treated as an indivisible unit. If the transaction succeeds, its changes are committed; if it fails, its incomplete changes are rolled back. This prevents partially completed operations from leaving the database in an inconsistent state. Question 52

What does the consistency property in ACID transactions require? A. Every transaction must execute without using indexes B. All users must access the database at the same time C. Transactions must preserve defined database rules and constraints D. Every transaction must permanently delete its log Correct Answer: C Rationale: Consistency requires a successful transaction to move the database from one valid state to another while preserving defined rules, constraints, and relationships. The DBMS enforces many of these requirements through constraints and transaction mechanisms. Application logic may also be needed to maintain broader business rules. Question 53 Which ACID property ensures that committed transaction changes survive a system failure? A. Isolation B. Durability C. Atomicity D. Consistency Correct Answer: B Rationale: Durability means that once a transaction has been committed, its changes remain persistent despite subsequent failures, subject to the DBMS's configured durability guarantees. Transaction logs, stable storage, and recovery mechanisms support this property. Appropriate backup and disaster recovery arrangements provide additional protection against larger failures. Question 54 Two users simultaneously update the same bank account balance. Which transaction property helps control the interference between their operations? A. Data redundancy B. Denormalisation C. Data abstraction D. Isolation Correct Answer: D Rationale: Isolation controls how concurrent transactions interact and what intermediate results they can observe. Appropriate isolation and concurrency-control mechanisms help prevent anomalies such as lost updates and inconsistent reads. The chosen isolation level affects both