Limited-Time Offer: Enjoy 50% Savings! Ends in 00h 00m 00s Coupon code: 50OFF
Skip to content

Free WGU Data Management - Foundations Exam Data-Management-Foundations Exam Questions

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

Which type of join is demonstrated by the following query?

sql

SELECT *

FROM Make, Model

WHERE Make.ModelID = Model.ID;

Correct Answer: C. EQUIJOIN
Explanation:

This query performs a join operation where records from the Make table and Model table are combined based on the condition Make.ModelID = Model.ID. This condition tests for equality, which is the definition of an EQUIJOIN.

Types of Joins in SQL:

EQUIJOIN (Correct Answer):

Uses an equality operator (=) to match rows between tables.

Equivalent to an INNER JOIN ON condition.

Example:

sql

SELECT *

FROM Employees

JOIN Departments ON Employees.DeptID = Departments.ID;

NON-EQUIJOIN (Incorrect):

Uses comparison operators other than = (e.g., <, >, BETWEEN).

Example:

sql

SELECT *

FROM Employees e

JOIN Salaries s ON e.Salary > s.MedianSalary;

SELF JOIN (Incorrect):

A table is joined with itself using table aliases.

Example:

sql

SELECT e1.Name, e2.Name AS Manager

FROM Employees e1

JOIN Employees e2 ON e1.ManagerID = e2.ID;

CROSS JOIN (Incorrect):

Produces Cartesian product (each row from Table A combines with every row from Table B).

Example:

sql

SELECT *

FROM Employees

CROSS JOIN Departments;

Thus, since our given query uses an equality condition (=) to join two tables, it is an EQUIJOIN.


Question 2

What is the last step in the logical design process for designing a database?

Correct Answer: B. Apply a normal form
Explanation:

The logical design phase in database development focuses on structuring data efficiently to eliminate redundancy and ensure integrity. The final step in logical design is to apply normalization (normal forms) to optimize the database schema.

Steps in Logical Database Design:

Discover entities Identify real-world objects (e.g., Customers, Orders).

Determine cardinality Define relationships between entities (one-to-one, one-to-many).

Analyze data requirements Determine the attributes each entity needs.

Apply normal forms Eliminate redundancy and improve data consistency.

Example Usage:

After identifying entities like Students and Courses, applying 3rd Normal Form (3NF) ensures that data is organized without redundancy.

Why Other Options Are Incorrect:

Option A (Analyze data requirements) (Incorrect): Done earlier to define attributes.

Option C (Determine cardinality) (Incorrect): Done before normalization to establish relationships.

Option D (Discover entities) (Incorrect): Done at the beginning of database design.

Thus, the correct answer is Apply a normal form, as normalization is the last step in logical design.


Question 3

Which function measures a numeric value's distance from 0?

Correct Answer: D. ABS
Explanation:

The ABS() function in SQL returns the absolute value of a given number, effectively measuring its distance from zero.

Example Usage:

sql

SELECT ABS(-50), ABS(50);

Result:

50 | 50

This function ensures that numbers are always positive, regardless of their original sign.

Why Other Options Are Incorrect:

Option A (CONCAT) (Incorrect): Used to combine strings (not numbers).

Option B (LOWER) (Incorrect): Converts text to lowercase, not numerical operations.

Option C (FROM) (Incorrect): Part of SELECT FROM queries, not a function.

Thus, the correct choice is ABS(), which computes the absolute value of a number.


Question 4

How is the primary key indicated in a table?

Correct Answer: B. By using an SQL keyword
Explanation:

In SQL, a primary key is explicitly defined using the PRIMARY KEY keyword when creating a table.

Example Usage:

sql

CREATE TABLE Products (

ProductID INT PRIMARY KEY,

Name VARCHAR(100),

Price DECIMAL(10,2)

);

Here, PRIMARY KEY is the SQL keyword that designates ProductID as the primary key.

Why Other Options Are Incorrect:

Option A (Formula in SQL) (Incorrect): SQL does not use formulas to define primary keys.

Option C (Bold typeface) (Incorrect): SQL syntax does not rely on text formatting.

Option D (Diamond symbol) (Incorrect): ER diagrams might use symbols, but SQL does not use diamonds to indicate keys.

Thus, the correct answer is SQL keyword, as primary keys are explicitly defined using PRIMARY KEY.


Question 5

Which SELECT statement uses valid syntax for SQL?

Correct Answer: D. SELECT column1, column2 FROM table_name;
Explanation:

A valid SELECT statement in SQL follows this basic syntax:

sql

SELECT column1, column2

FROM table_name

WHERE condition;

The correct option D follows this syntax correctly.

Why Other Options Are Incorrect:

Option A (Incorrect): SQL does not use double quotes (') around column/table names unless explicitly required in some databases.

Option B (Incorrect): The WHERE clause must appear after the FROM clause.

Option C (Incorrect): ALL is not a valid keyword in standard SQL queries.

Thus, Option D follows the correct SQL syntax.


Question 6

Which function is considered an aggregate function?

Correct Answer: A. MAX
Explanation:

Aggregate functions perform calculations on a set of values and return a single result. MAX() is one such function, returning the largest value in a column.

Common Aggregate Functions:

Example Usage:

sql

SELECT MAX(Salary) FROM Employees;

Retrieves the highest salary in the Employees table.

Why Other Options Are Incorrect:

Option B (TRIM) (Incorrect): Removes spaces from strings but is not an aggregate function.

Option C (ABS) (Incorrect): Returns the absolute value of a number but does not aggregate multiple rows.

Option D (DESC) (Incorrect): Used in ORDER BY for sorting in descending order, not for aggregation.

Thus, the correct answer is MAX(), as it is a true aggregate function.


Question 7

What is the role of a query processor in the database system architecture?

Correct Answer: A. It uses information from the catalog to perform query optimization.
Explanation:

A query processor is responsible for query optimization and execution in a database management system (DBMS). It analyzes SQL statements, optimizes execution plans, and ensures efficient retrieval of data.

Option A (Correct): The query processor optimizes queries by analyzing metadata from the system catalog to determine the best execution strategy.

Option B (Incorrect): Logging transactions before applying changes is the responsibility of the transaction manager.

Option C (Incorrect): Translating instructions into file system commands is handled by the storage manager, not the query processor.

Option D (Incorrect): While the query processor helps retrieve results, the database engine and API layer are responsible for returning results to applications.


Question 8

What is the first step of the analysis phase for designing a database?

Correct Answer: B. Identify entities
Explanation:

The first step in database analysis is identifying entities, which are the real-world objects that need to be represented in the database.

Example Usage:

In a school system, the main entities could be:

Students, Courses, Instructors

Why Other Options Are Incorrect:

Option A (Determine cardinality) (Incorrect): Determining relationships comes after identifying entities.

Option C (Draw an ER diagram) (Incorrect): ER diagrams visualize entities but are not the first step.

Option D (Implement attributes) (Incorrect): Attributes are defined after entities are identified.

Thus, the correct answer is Identify entities, as entities form the foundation of the database model.


Question 9

Which term defines a column, or group of columns, that refers to a primary key in a different table?

Correct Answer: D. Foreign key
Explanation:

A foreign key is a column (or a set of columns) that establishes a relationship between two tables by referencing the primary key of another table.

Example Usage:

sql

CREATE TABLE Departments (

DeptID INT PRIMARY KEY,

DeptName VARCHAR(50)

);

CREATE TABLE Employees (

EmpID INT PRIMARY KEY,

Name VARCHAR(50),

DeptID INT,

FOREIGN KEY (DeptID) REFERENCES Departments(DeptID)

);

DeptID in Employees is a foreign key, referencing DeptID in Departments.

Ensures referential integrity DeptID in Employees must exist in Departments.

Why Other Options Are Incorrect:

Option A (Super key) (Incorrect): A super key is any set of columns that uniquely identifies a row, but it does not reference another table.

Option B (Simple key) (Incorrect): A simple key is a single-column primary key, not a reference to another table.

Option C (Composite key) (Incorrect): A composite key consists of multiple columns but does not necessarily reference another table.

Thus, the correct answer is Foreign key, as it establishes a connection between two tables.


Question 10

What is shown on the ''many'' side of a relationship between two tables?

Correct Answer: D. Foreign key
Explanation:

In a one-to-many (1:M) relationship, the foreign key is placed in the table on the 'many' side to establish the relationship with the primary key of the 'one' side.

Example Usage:

CREATE TABLE Departments (

DeptID INT PRIMARY KEY,

DeptName VARCHAR(50)

);

CREATE TABLE Employees (

EmpID INT PRIMARY KEY,

Name VARCHAR(50),

DeptID INT, -- Foreign key on the 'many' side

FOREIGN KEY (DeptID) REFERENCES Departments(DeptID)

);

Each department can have many employees DeptID is a foreign key in Employees.

Why Other Options Are Incorrect:

Option A (Reflexive relationship) (Incorrect): Refers to unary (self-referential) relationships, not 1:M relationships.

Option B (Binary relationship) (Incorrect): A binary relationship involves two entities, but does not define where the foreign key is stored.

Option C (Weak entity) (Incorrect): Weak entities depend on a strong entity, but not all 'many' sides are weak entities.

Thus, the correct answer is Foreign key, as it is placed on the 'many' side of the relationship.