WGU - D427 - DATA MANAGEMENT - APPLICATIONS - PRE-ASSESSMENT / REAL
ACTUAL EXAM STUDY GUIDE | ACCURATE EXPERT VERIFIED FOR GUARANTEED
PASS | LATEST UPDATE(REAL DEAL)
Question 1
Consider the following address fragment: "San Francisco, CA 94110 USA". How many attributes
are present?
A) 2
B) 3
C) 4
D) 5
Correct Answer: C) 4
Rationale: An attribute is a distinct piece of information. This address fragment contains four
distinct attributes: City ('San Francisco'), State ('CA'), Postal Code ('94110'), and Country
('USA').
Question 2
The Package table has the following columns: Weight (decimal), Description (optional
string), LastChangedDate (date), and TrackingNumber (integer). Which column should be
designated as the primary key?
A) Weight
B) Description
C) LastChangedDate
D) TrackingNumber
Correct Answer: D) TrackingNumber
Rationale: A primary key must uniquely identify each record in a table. A TrackingNumber is
designed to be unique for every package, making it the ideal primary key. Other fields
like Weight or LastChangedDate could have duplicate values for different packages.
Question 3
Which data type will store "2022-01-10 14:22:12" as a temporal value without loss of
information?
A) DATE
,B) DATETIME
C) DECIMAL
D) BIGINT
Correct Answer: B) DATETIME
Rationale: The DATETIME data type is specifically designed to store both date and time
components. The DATE type would only store "2022-01-10" and would lose the time
information.
Question 4
Which SQL command is an example of Data Definition Language (DDL)?
A) UPDATE
B) ALTER
C) SELECT
D) DELETE
Correct Answer: B) ALTER
Rationale: Data Definition Language (DDL) commands are used to define and manage the
structure of the database and its objects. The primary DDL commands are CREATE, ALTER,
and DROP. SELECT, UPDATE, and DELETE are Data Manipulation Language (DML) commands.
Question 5
What does the SQL keyword command TRUNCATE do?
A) It removes a specific row based on a WHERE clause.
B) It removes all rows from a table quickly and cannot be rolled back.
C) It removes the table structure and all its data.
D) It renames a table.
Correct Answer: B) It removes all rows from a table quickly and cannot be rolled back.
Rationale: TRUNCATE TABLE is a DDL command that removes all rows from a table. It is
generally faster than DELETE because it does not log individual row deletions, but this also
means the operation typically cannot be undone.
, Question 6
How would a database engine process an UPDATE that violates a RESTRICT referential integrity
constraint?
A) The offending value would be set to the database default.
B) The update would be rejected, and an error would be generated.
C) The offending value would be changed to NULL.
D) The updated value would flow to the linked primary key.
Correct Answer: B) The update would be rejected, and an error would be generated.
Rationale: The RESTRICT constraint prevents any UPDATE or DELETE operation on a parent
table if there are related rows in a child table. The database engine will reject the entire
operation to maintain data integrity.
Question 7
Which of the following is a key characteristic of a materialized view?
A) It is a virtual table that is generated on the fly whenever it is queried.
B) It is a physically stored object that must be periodically refreshed.
C) It cannot be indexed for performance.
D) It cannot be used in JOIN operations.
Correct Answer: B) It is a physically stored object that must be periodically refreshed.
Rationale: Unlike a standard view, which is a stored query, a materialized view is a physical
copy of the query's result set. Because it is a static copy, its data becomes stale and must be
refreshed to reflect changes in the underlying base tables.
Question 8
Which SQL statement correctly inserts a new record into the Customers table?
A) UPDATE Customers VALUES ('Cardinal', 'Stavanger', '4006');
B) INSERT INTO Customers (CustomerName, City, PostalCode) VALUES ('Cardinal', 'Stavanger',
'4006');
C) SELECT * INTO Customers VALUES ('Cardinal', 'Stavanger', '4006');
D) ADD TO Customers ('Cardinal', 'Stavanger', '4006');
Correct Answer: B) INSERT INTO Customers (CustomerName, City, PostalCode) VALUES
ACTUAL EXAM STUDY GUIDE | ACCURATE EXPERT VERIFIED FOR GUARANTEED
PASS | LATEST UPDATE(REAL DEAL)
Question 1
Consider the following address fragment: "San Francisco, CA 94110 USA". How many attributes
are present?
A) 2
B) 3
C) 4
D) 5
Correct Answer: C) 4
Rationale: An attribute is a distinct piece of information. This address fragment contains four
distinct attributes: City ('San Francisco'), State ('CA'), Postal Code ('94110'), and Country
('USA').
Question 2
The Package table has the following columns: Weight (decimal), Description (optional
string), LastChangedDate (date), and TrackingNumber (integer). Which column should be
designated as the primary key?
A) Weight
B) Description
C) LastChangedDate
D) TrackingNumber
Correct Answer: D) TrackingNumber
Rationale: A primary key must uniquely identify each record in a table. A TrackingNumber is
designed to be unique for every package, making it the ideal primary key. Other fields
like Weight or LastChangedDate could have duplicate values for different packages.
Question 3
Which data type will store "2022-01-10 14:22:12" as a temporal value without loss of
information?
A) DATE
,B) DATETIME
C) DECIMAL
D) BIGINT
Correct Answer: B) DATETIME
Rationale: The DATETIME data type is specifically designed to store both date and time
components. The DATE type would only store "2022-01-10" and would lose the time
information.
Question 4
Which SQL command is an example of Data Definition Language (DDL)?
A) UPDATE
B) ALTER
C) SELECT
D) DELETE
Correct Answer: B) ALTER
Rationale: Data Definition Language (DDL) commands are used to define and manage the
structure of the database and its objects. The primary DDL commands are CREATE, ALTER,
and DROP. SELECT, UPDATE, and DELETE are Data Manipulation Language (DML) commands.
Question 5
What does the SQL keyword command TRUNCATE do?
A) It removes a specific row based on a WHERE clause.
B) It removes all rows from a table quickly and cannot be rolled back.
C) It removes the table structure and all its data.
D) It renames a table.
Correct Answer: B) It removes all rows from a table quickly and cannot be rolled back.
Rationale: TRUNCATE TABLE is a DDL command that removes all rows from a table. It is
generally faster than DELETE because it does not log individual row deletions, but this also
means the operation typically cannot be undone.
, Question 6
How would a database engine process an UPDATE that violates a RESTRICT referential integrity
constraint?
A) The offending value would be set to the database default.
B) The update would be rejected, and an error would be generated.
C) The offending value would be changed to NULL.
D) The updated value would flow to the linked primary key.
Correct Answer: B) The update would be rejected, and an error would be generated.
Rationale: The RESTRICT constraint prevents any UPDATE or DELETE operation on a parent
table if there are related rows in a child table. The database engine will reject the entire
operation to maintain data integrity.
Question 7
Which of the following is a key characteristic of a materialized view?
A) It is a virtual table that is generated on the fly whenever it is queried.
B) It is a physically stored object that must be periodically refreshed.
C) It cannot be indexed for performance.
D) It cannot be used in JOIN operations.
Correct Answer: B) It is a physically stored object that must be periodically refreshed.
Rationale: Unlike a standard view, which is a stored query, a materialized view is a physical
copy of the query's result set. Because it is a static copy, its data becomes stale and must be
refreshed to reflect changes in the underlying base tables.
Question 8
Which SQL statement correctly inserts a new record into the Customers table?
A) UPDATE Customers VALUES ('Cardinal', 'Stavanger', '4006');
B) INSERT INTO Customers (CustomerName, City, PostalCode) VALUES ('Cardinal', 'Stavanger',
'4006');
C) SELECT * INTO Customers VALUES ('Cardinal', 'Stavanger', '4006');
D) ADD TO Customers ('Cardinal', 'Stavanger', '4006');
Correct Answer: B) INSERT INTO Customers (CustomerName, City, PostalCode) VALUES