ITS-Database-_-MockExam_20(1)
ITS-Database-_-MockExam_20(1)
Home > ITS Database : Section 1 > ITS Database > Attempt 1
ITS Database
ATTEMPT SCORE
199 / 200
JDBC API 2.0 defines five levels of transaction isolation for database concurrency control.
Which of the following is the lowest level of transaction isolation?
TRANSACTION_READ_COMMITTED
TRANSACTION_NONE
TRANSACTION_SERIALIZABLE
TRANSACTION_READ_UNCOMMITTED
TRANSACTION_REPEATABLE_READ
Without the ONLINE keyword the index is locked for any DML operation.
Without the ONLINE keyword the index is locked for the SELECT operation.
This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
INTERSECT
JOIN
No change is needed
ALL
https://app.schoology.com/course/5523776747/assessments/5523776966 1/62
11/21/22, 11:40 PM ITS Database | Schoology
RUN
ALLOW
EXECUTE
CALL
WHERE
UPDATE
ORDER BY
SELECT
What statement is used to copy records from one table into an existing table?
SELECT
SELECT WITHIN
SELECT INTO
You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer.
When volunteers ask to be removed from mailing lists, the table must be updated.
You need to use a transaction to ensure that the database has data integrity and referential integrity.
Option C
Option D
Option B
Option A
https://app.schoology.com/course/5523776747/assessments/5523776966 2/62
11/21/22, 11:40 PM ITS Database | Schoology
Which type of index changes the order in which the data is stored in a table?
clustered
non-clustered
non-sequential
sequential
This question requires that you evaluate the underlined text to determine if it is correct.
A key defines the amount of storage space that is allocated to a value in a column.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
validator
data type
No change is needed
format
It checks that no component of a primary key can have a null value and no duplicate entries can exist.
It checks that no record in a child table can exist if its corresponding record is not available in the parent table.
It checks that the value of a primary key must be consistent throughout the life of an instance.
Duplicate rows
Repeating groups
Composite keys
Foreign keys
https://app.schoology.com/course/5523776747/assessments/5523776966 3/62
11/21/22, 11:40 PM ITS Database | Schoology
There is no relationship.
One-to-one
One-to-many
Many-to-many
You are the database administrator of a MySQL server that runs on a Windows server.
All clients are local clients.
For security, you want to disable connections from the remote clients.
Which of the following steps will you take to accomplish the task?
You work at a restaurant and they ask you to help them with a data issue.
They provide you with the following recipe data:
3
https://app.schoology.com/course/5523776747/assessments/5523776966 4/62
11/21/22, 11:40 PM ITS Database | Schoology
special characters
symbols
spaces
numbers
Which of the following database designs will help you accomplish the task?
Application design
Which of the following are the main approaches in the database design? Each correct answer represents a complete solution. (Choose three.)
Top-down approach
Bottom-up approach
Middle approach
Inside-out approach
This question requires that you evaluate the underlined text to determine if it is correct.
You combine data from three tables into one table. The new table includes redundancy to optimize read performance.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
https://app.schoology.com/course/5523776747/assessments/5523776966 5/62
11/21/22, 11:40 PM ITS Database | Schoology
g
the statement correct.
No change is needed
Indexed
Normalized
Truncated
You need to create a Structured Query Language (SQL) query to retrieve only the names of songs that sold more than 1000 compact discs (CDs).
Which query should you use?
Option B
Option D
Option C
Option A
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
3
https://app.schoology.com/course/5523776747/assessments/5523776966 6/62
11/21/22, 11:40 PM ITS Database | Schoology
2
Table to a database.
User to a database.
This question requires that you evaluate the underlined text to determine if it is correct.
A relational database management system employs the concept of an attribute to ensure that data entered into a field in a column is valid.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.
an index
a constraint
a primary key
No change is needed
This question requires that you evaluate the underlined text to determine if it is correct.
The UNION keyword combines the results of two queries and returns only rows that appear in both result sets.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
INTERSECT
ALL
JOIN
No change is needed
26 Matching 1/1
https://app.schoology.com/course/5523776747/assessments/5523776966 7/62
11/21/22, 11:40 PM ITS Database | Schoology
6 atc g /
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.
No Yes
You have a table of products with fields for ProductID, Name, and Price.
You need to write an UPDATE statement that sets the value in the InStock field to Yes for a specific ProductID.
WHERE
THAT
HAVING
GROUP BY
You manage a database named Customers, which includes a table named Orders.
The Orders table is frequently queried, but only orders with a sales total of more than $1000.00 are required in the query.
You want to create an index to speed up these types of queries at the same time, ensuring the index is as small as possible.
Clustered
XML
Filtered
Non-clustered
This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data in a database.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the
answer choice that makes the statement correct
Stored procedures
Tables
No change is needed
Queries
At 3:00 P.M. (1500 hours), you create a backup of your database. At 4:00 P.M. (1600 hours), you create a table named Customer and import data into the table. At 5:00 P.M.
(1700 hours), your server fails.
You run a script to apply only the 3:00 P.M. backup to your database.
This question requires that you evaluate the underlined text to determine if it is correct.
Truncate is a database term used to describe the process of applying a backup to a damaged or corrupt database.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement corrector.
Attach
No Change is needed
Restore
Commit
You assign User1 a set of permissions that include the WITH GRANT OPTION. The WITH GRANT OPTION enables User1 to:
https://app.schoology.com/course/5523776747/assessments/5523776966 9/62
11/21/22, 11:40 PM ITS Database | Schoology
You have a table named Employee that includes the following columns:
EmployeeID
EmployeeName
Which statement should you use to return the number of rows in the table?
Option D
Option C
Option A
Option B
You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should you use?
Option A
Option B
https://app.schoology.com/course/5523776747/assessments/5523776966 10/62
11/21/22, 11:40 PM ITS Database | Schoology
Option D
Option C
You need to disable User1’s access to view the data in the Customer table.
Option B
Option A
Option D
Option C
Which of the following is a management activity that allows the stages of the database application to be realized as efficiently and effectively as
possible?
Object identification
Database planning
https://app.schoology.com/course/5523776747/assessments/5523776966 11/62
11/21/22, 11:40 PM ITS Database | Schoology
Option D
Option C
Option B
Option A
REMOVE
DROP
CANCEL
DELETE
This question requires that you evaluate the underlined text to determine if it is correct.
Create a query that returns a set of table data by using the UPDATE statement.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.
INSERT
SELECT
REPLACE
No change is needed
https://app.schoology.com/course/5523776747/assessments/5523776966 12/62
11/21/22, 11:40 PM ITS Database | Schoology
ERROR 1251: The client does not support authentication protocol requested by the server; consider upgrading MySQL client You do not want to upgrade any client or
server right now, and want to enable all clients to connect to the new server successfully.
Which of the following steps will you take to resolve the issue?
Which of the following data models will he use to accomplish the task?
Entity-Relationship Model
Relational model
What is the difference between a DELETE statement and a TRUNCATE TABLE statement?
One can identify specific records that are being deleted with a DELETE statement, while a TRUNCATE TABLE statement allows one to
delete specific characters in a record
One can identify specific records that are being deleted with a TRUNCATE TABLE statement, while a DELETE statement allows one to
delete specific characters in a record
One can identify specific records that are being deleted with a DELETE statement, while a TRUNCATE TABLE statement deletes all
data in a table
One can identify specific records that are being deleted with a TRUNCATE TABLE statement, while a DELETE statement deletes all
data in a table
https://app.schoology.com/course/5523776747/assessments/5523776966 13/62
11/21/22, 11:40 PM ITS Database | Schoology
The www.company.com network area consists of a single Active Directory domain named www.company.com.
The www.company.com network contains a Microsoft SQL Server 2005 database server named COMPANY-DB111, which you administer at a regular interval of time.
COMPANY-DB111 contains and hosts three databases that support different types of business requirements.
The network uses the DBA database that supports internal operations including maintaining data, accounting, and mailing. The network’s regular users make use of stored
procedures for the data values that need insertion into the tables.
The stored procedures used in the network of the company are designed to access SQL variant type parameters and then use the values to build and execute ad hoc query
statements that are the part of the SQL statements. During a routine network check, you discover that there are several odd occurrences in the database.
The odd occurrences include data deleted from tables and other unauthorized activity.
You suspect a user is executing the unauthorized statements through the stored procedures.
You are required to stop the unauthorized changes while having least impact on the stored procedures that are in use. Your explanation must use the least administrative
effort.
The input parameters should be parsed to watch for and block any input including single quotes.
The stored procedure should be customized to use type-specific and length-restricted parameters.
All data handling activity on the table should be audited and recorded.
The stored procedures used for the table should be replaced with ad hoc queries.
This question requires that you evaluate the underlined text to determine if it is correct.
The CREATE TABLE command removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
DROP TABLE
TRUNCATE TABLE
No change is needed
ALTER TABLE
Intersection
Outer join
Cartesian product
Equi-join
Which command should you use to give a user permission to read the data in a table?
GRANT SELECT
https://app.schoology.com/course/5523776747/assessments/5523776966 14/62
11/21/22, 11:40 PM ITS Database | Schoology
ALLOW SELECT
PERMIT READ
LET READ
An error will be generated stating that a database name should be a combination of numerals and alphabets.
An error will be generated stating that a database name must begin with an alphabet and all the alphabets should be in
uppercase.
An error will be generated stating that a database name must begin with an alphabet.
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
https://app.schoology.com/course/5523776747/assessments/5523776966 15/62
11/21/22, 11:40 PM ITS Database | Schoology
3
number of columns
column types
required fields
null values
You are writing a select statement to find every product whose name contains a specific character.
Which keyword should you use in your where clause?
INCLUDES
FIND
BETWEEN
LIKE
While attending college, you accept an IT internship at a local charity. The charity needs to report on data that is related and exists in two tables.
You need to establish a relationship between the data that is in the two tables.
Link Key
Foreign Key
Index Key
Default Key
https://app.schoology.com/course/5523776747/assessments/5523776966 16/62
11/21/22, 11:40 PM ITS Database | Schoology
For which of the following tables will this command work? Each correct answer represents a complete solution. (Choose two.)
InnoDB
FEDERATED
MyISAM
MERGE
55 Matching 1/1
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.
Yes No
CREATE
ALTER
UPDATE
INSERT
57 Matching 1/1
https://app.schoology.com/course/5523776747/assessments/5523776966 17/62
11/21/22, 11:40 PM ITS Database | Schoology
Instructions: For each of the following statements, select the appropriate answer choice.
CREATE Product (
ProductID Char (10) NOT NULL,
OrderID Char (10) NULL
ProductName Varchar NOT NULL,
Primary key (OrderID, ProductID))
What are the errors in the above query? Each correct answer represents a complete solution. (Choose two.)
An attribute declared as a primary key cannot contain NULL values.
Role
Stored procedure
User
Trigger
T bl
https://app.schoology.com/course/5523776747/assessments/5523776966 18/62
11/21/22, 11:40 PM ITS Database | Schoology
Table
While a clustered index is based on a __________, a nonclustered index can be based on any other field.
column
row
You are a database developer for a database named Customers hosted on a SQL Server 2008 server.
Recently, several customers were deleted from the Customers database.
To ensure this is not repeated in future, you have decided to create a DML trigger to prevent it.
What code will create the trigger to meet your goals? Each correct answer represents a complete solution. (Choose all that apply.)
CREATE TRIGGER trgDeleteCustomer
ON dbo.Customers
BEFORE DELETE
AS
RAISERROR(‘Customers cannot be deleted. An error has been logged’, 16, 10) WITH LOG ROLLBACK TRANSACTION
https://app.schoology.com/course/5523776747/assessments/5523776966 19/62
11/21/22, 11:40 PM ITS Database | Schoology
You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer.
The table has the following columns and rows:
Option D
Option A
Option B
Option C
https://app.schoology.com/course/5523776747/assessments/5523776966 20/62
11/21/22, 11:40 PM ITS Database | Schoology
Outer join
Cartesian product
Subquery
Union
You need to store the contact information for each student in your school database. You should store each student’s information in a:
Row
Stored procedure
Variable
Function
You have a table named Product. You create a view that includes all the products from the Product table that are in the Furniture category.
You execute a statement on the Product table that deletes all the products in the Furniture category.
After you execute the statement, the result set of the view is:
Archived
Deleted
Unchanged
Empty
Which of the following statements will you use to accomplish the task?
https://app.schoology.com/course/5523776747/assessments/5523776966 21/62
11/21/22, 11:40 PM ITS Database | Schoology
Which of the following statements will you use to accomplish the task?
CREATE
ALTER
SELECT
DROP
You have a table named Customer. You need to add a new column named District. Which statement should you use?
Option C
Option A
Option D
Option B
70 Matching 1/1
You have a database table that stores information about school attendance.
You have a data set that is defined as follows:
Brad A Reading
https://app.schoology.com/course/5523776747/assessments/5523776966 22/62
11/21/22, 11:40 PM ITS Database | Schoology
Joe B Math
Susan C Science
You have a table that contains product IDs and product names.
You need to write an UPDATE statement to change the name of a specific product to glass.
You have a table named Student that contains 100 rows. Some of the rows have a NULL value in the FirstName column.
You execute the following statement:
DELETE FROM Student
All rows containing a NULL value in the FirstName column will be deleted.
You need to retrieve data from two related database tables based on a column that exists in both tables.
Which command should you use in a query?
JOIN
INTERSECT
TRUNCATE
UNION
You have a Customer table and an Order table. You join the Customer table with the Order table by using the CustomerID column.
https://app.schoology.com/course/5523776747/assessments/5523776966 23/62
11/21/22, 11:40 PM ITS Database | Schoology
Complete join
Outer join
Partial join
Inner join
75 Matching 1/1
Instructions: For each of the following statements, select the appropriate answer choice of the following:
76 Matching 1/1
You have two database tables as defined below. The StateID column is unique in the State table. The AddressID column is unique in the Address
table. The two tables are related by the StateID column.
No Yes
local
primary
superkey
foreign
Which of the following commands can be used to change the authorization type in DB2 9? Each correct answer represents a complete solution.
(Choose all that apply.)
RESET DATABASE CONFIGURATION
https://app.schoology.com/course/5523776747/assessments/5523776966 24/62
11/21/22, 11:40 PM ITS Database | Schoology
SET AUTHORIZATION
OUTPUT
READ
GET
SELECT
You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table.
Nonclustered index
Foreign key
Clustered index
Primary key
Subroutine
Formula
Method
Stored procedure
Which constraint ensures a unique value in the ID column for each customer?
DISTINCT
https://app.schoology.com/course/5523776747/assessments/5523776966 25/62
11/21/22, 11:40 PM ITS Database | Schoology
FOREIGN KEY
PRIMARY KEY
SEQUENTIAL
You need to populate a table named EmployeeCopy with data from an existing table named Employee.
Option A
Option B
Option C
Option D
This question requires that you evaluate the underlined text to determine if it is correct.
Views are database objects that contain all of the data in a database.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
Queries
N h i d d
https://app.schoology.com/course/5523776747/assessments/5523776966 26/62
11/21/22, 11:40 PM ITS Database | Schoology
No change is needed
Stored procedures
Tables
Which of the following is the process of creating a design for the database that will support the enterprise’s operations and objectives for the
required database system?
Application design
Database planning
Database design
Your class project requires that you help a charity to create a website that registers volunteers.
The website must store the following data about the volunteers:
. Given name
. Surname
. Telephone number
. Email address
You need to recommend a correct way to store the data.
Create a view that contains columns that are named given name surname, phone number, and email.
Create a table that contains columns that are named given name, surname, phone number, and email.
Create a view that contains rows that are named given name surname, phone number, and email
Create a table that contains rows that are named given name, surname, phone number, and email.
You have a table named Product that contains one million rows.
You need to search for product information in the Product table by using the product’s unique ID.
An index
A subquery
A cursor
A trigger
You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This process is an example of
a/an:
Inherited delete
Waterfall delete
Cascade delete
https://app.schoology.com/course/5523776747/assessments/5523776966 27/62
11/21/22, 11:40 PM ITS Database | Schoology
Functional delete
Domino delete
A table in the database has a candidate key and an attribute that is not a constituent of the candidate key. The non-key attribute depends upon the whole of the candidate
key rather than just a part of it.
4 NF
1 NF
3 NF
2 NF
Which category of SQL statements is used to add, remove, and modify database structures?
The first order for CustomerID 209 is deleted from the Order table.
All orders for CustomerID 209 are deleted from the Order table, and CustomerID 209 is deleted from the Customer table.
All orders for CustomerID 209 are deleted from the Order table.
You are creating a table to store customer data. The AccountNumber column uses values that always consist of one letter and four digits.
Which data type should you use for the AccountNumber column?
BYTE
DOUBLE
SMALLINT
CHAR
https://app.schoology.com/course/5523776747/assessments/5523776966 28/62
11/21/22, 11:40 PM ITS Database | Schoology
ALTER
UPDATE
INSERT
MODIFY
CHANGE
Truncate
Relational
Traditional
Before running a DELETE statement, it is always a good idea to run a(n) ____________ statement on the table that is about to be changed.
SELECT
DROP
INSERT
UPDATE
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data type should you use?
FLOAT
COUNT
INTEGER
DOUBLE
Native auditing
https://app.schoology.com/course/5523776747/assessments/5523776966 29/62
11/21/22, 11:40 PM ITS Database | Schoology
at e aud t g
Encryption
Abstraction
Authentication
Referential integrity
It violates 2 NF.
It violates 4 NF.
There is no violation.
It violates 1 NF.
This question requires that you evaluate the underlined text to determine if it is correct.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
Table
No change is needed
Index
Row
Which of the following database planning steps will help him to accomplish the task?
Object modeling
Gathering information
Object identification
The component that holds information for a single entry in a table is called a:
COLUMN
https://app.schoology.com/course/5523776747/assessments/5523776966 30/62
11/21/22, 11:40 PM ITS Database | Schoology
ROW
DATA TYPE
VIEW
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.
No Yes
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
https://app.schoology.com/course/5523776747/assessments/5523776966 31/62
11/21/22, 11:40 PM ITS Database | Schoology
The user can perform [answer choice] actions on
B unlimited
database objects that are on the server.
Improve performance.
You have a table named Employee that includes four columns. You execute the following statement:
SELECT *
FROM Employee
all columns
Which of the following values cannot be stored in a character column defined as the primary key of a table?
'0'
'null'
null
"
https://app.schoology.com/course/5523776747/assessments/5523776966 32/62
11/21/22, 11:40 PM ITS Database | Schoology
Line 4
Line 3
Line 2
Line 1
denormalization
defragmentation
normalization
fragmentation
You need to establish a set of permissions that you can routinely assign to new users. What should you create?
List
Role
Resource
Group
https://app.schoology.com/course/5523776747/assessments/5523776966 33/62
11/21/22, 11:40 PM ITS Database | Schoology
110 Multiple Choice 1/1
You have a database that contains 10 terabytes of data. You need to back up the database every two hours.
Which type of backup should you use?
incremental
archive
partial
full
Which keyword would you use in a select statement to return rows that meet a specific condition?
ORDER BY
WHERE
FROM
UNION
Option A
Option C
Option B
Option D
This question requires that you evaluate the underlined text to determine if it is correct.
https://app.schoology.com/course/5523776747/assessments/5523776966 34/62
11/21/22, 11:40 PM ITS Database | Schoology
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
No change is needed.
You need to enable a new employee to authenticate to your database. Which command should you use?
INSERT USER
ADD USER
ALLOW USER
CREATE USER
ALTER USER
What are three valid data manipulation language (DML) commands? (Choose three.)
INSERT
OUTPUT
UPDATE
DELETE
COMMIT
This question requires that you evaluate the underlined text to determine if it is correct.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.
No change is needed.
A unique constraint
https://app.schoology.com/course/5523776747/assessments/5523776966 35/62
11/21/22, 11:40 PM ITS Database | Schoology
SELECT COUNT(*)
FROM Product WHERE Quantity > 18
3
You have a database table that stores information about school attendance.
You have a data set that is defined as follows:
Instructions: To answer, drag the appropriate data type from the column on the left to its column name on the right Each data type may be used once, more than once, or
not at all. Each correct match is worth one point.
StudentName A VARCHAR
GradeLevel B INT
DaysAbsent C DECIMAL
Which two Structured Query Language (SQL) statements can you use? (Choose two.)
Option B
Option A
Option C
Option D
DROP TABLE
ELIMINATE TABLE
CLEAR TABLE
DELETE TABLE
https://app.schoology.com/course/5523776747/assessments/5523776966 37/62
11/21/22, 11:40 PM ITS Database | Schoology
You execute a statement inside a transaction to delete 100 rows from a table. The transaction fails after only 40 rows are deleted.
What is the result in the database?
The following illustration shows the structure of a clustered index in a single partition:
Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point.
https://app.schoology.com/course/5523776747/assessments/5523776966 38/62
11/21/22, 11:40 PM ITS Database | Schoology
You need to combine the results of two queries into a single result that contains all of the rows from both queries.
Which Structured Query Language (SQL) statement should you use?
UNION
TRUNCATE
EXCEPT
JOIN
MODIFY
CHANGE
NEW
UPDATE
Which of the following scripts is used to convert Unix-type zone files into SQL statements, and loads the time zone tables in a mysql database?
mysql_time_to_sql
mysql_timezone_to_sql
mysql_tz_to_sql
mysql_tzinfo_to_sql
This question requires that you evaluate the underlined text to determine if it is correct.
Use the FROM keyword in a SELECT statement to return rows that meet a specific condition.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
WHERE
ORDER BY
UNION
No change is needed
https://app.schoology.com/course/5523776747/assessments/5523776966 39/62
11/21/22, 11:40 PM ITS Database | Schoology
One error that may occur when manipulating data is a missing _______:
table
keyword
column
query
You need to set up a database to provide a view of North American mammals. Match the Structured Query Language (SQL) statements to the SQL query.
Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right Each SQL statement may be used once,
more than once, or not at all. Each correct match is worth one point.
A
First Code Segment CREATE VIEW [dbo].
[NorthAmericanMammals_View]
AS JOIN a.Id, a.Name AS SELECT a.Id, a.Name FROM Animal a JOIN Animal a
You accept an IT internship at a local charity. The charity has two tables in their data model named Chapter and Language, as defined below:
https://app.schoology.com/course/5523776747/assessments/5523776966 40/62
11/21/22, 11:40 PM ITS Database | Schoology
You create a third table named ChapterLanguage to relate the Chapter table and the Language table.
You need to select columns from the Chapter and Language tables to create a composite primary key for the ChapterLanguage table.
LanguageId
ChapterId
Region
Country
LanguageName
Your class project requires that you help a charity set up a website.
The website collects information about volunteers. Each volunteer record must be uniquely identified.
The following information is stored for each volunteer:
Given name Surname
Date of birth
Phone number Photo
Your class project requires that you help a charity set up a website.
The website collects information about volunteers. Each volunteer record must be uniquely identified.
The following information is stored for each volunteer:
Given name Surname
Date of birth
Phone number Photo
https://app.schoology.com/course/5523776747/assessments/5523776966 41/62
11/21/22, 11:40 PM ITS Database | Schoology
TIMESTAMP NULL, DATE NULL, IMAGE NULL, XML NULL, INT NOT NULL PRIMARY KEY,
Your Company is designing and developing a number of databases for a stock exchange.
One of the databases will contain highly sensitive data for which high level of security will be required. Although high processing speed is one of the prime requirements of
the customer, for this database, security of the data will take priority over the processing speed. It needs to be ensured that even if unauthorized access to the database is
obtained, the rogue user is unable to read the data.
Which of the following protection techniques will you suggest for this database?
Encryption
Authentication
Integrity controls
Native auditing
https://app.schoology.com/course/5523776747/assessments/5523776966 42/62
11/21/22, 11:40 PM ITS Database | Schoology
You need to insert two new products into the Product table. The first product is named Book and has an ID of 125. The second product is named
Movie and has an ID of 126.
Which statement should you use?
Option A
Option B
Option D
Option C
The following graphic shows the components of a SQL Server application. You access the SQL Server application through Internet Explorer.
https://app.schoology.com/course/5523776747/assessments/5523776966 43/62
11/21/22, 11:40 PM ITS Database | Schoology
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
return large result sets return a range of values by using the = operator do not use ORDER BY or GROUP BY clauses
are accessed randomly are accessed sequentially are not unique or contain many common values
What is the relationship between the foreign key and primary key? Each correct answer represents a complete solution. (Choose all that apply.)
There is no relationship between a primary key and a foreign key.
A foreign key and a primary key create a link between two entities.
A foreign key constraint works in conjunction with a primary key constraint to enforce referential integrity among related
entities.
A foreign key ties attribute(s) of an entity to the primary key of another entity, for the purpose of creating a dependency.
It prevents the current database operation from reading or writing a data item while the data item is being accessed by another operation.
Deadlock
Constraint
Lock
Encryption
The terms “bitmap,” “b-tree,” and “hash” refer to which type of database structure?
Index
Stored procedure
Trigger
View
Function
https://app.schoology.com/course/5523776747/assessments/5523776966 44/62
11/21/22, 11:40 PM ITS Database | Schoology
4
You want to recover one or more tablespaces to a point in time older than the rest of the database.
Which of the following are the recovery situations in which tablespace Point-in-Time Recovery (TSPITR) should be used?
Each correct answer represents a part of the solution. (Choose all that apply.)
To recover a DML statement that has affected only a subset of the database
https://app.schoology.com/course/5523776747/assessments/5523776966 45/62
11/21/22, 11:40 PM ITS Database | Schoology
CREATE TABLE Product (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER)
3
Which of the following can be used to populate a table? Each correct answer represents a complete solution. (Choose all that apply.)
Data Pump
SQL*Loader
INSERT statement
MERGE statement
Whi h f h f ll i h f i i ?E h l l i (Ch )
https://app.schoology.com/course/5523776747/assessments/5523776966 46/62
11/21/22, 11:40 PM ITS Database | Schoology
Which of the following are the types of prototyping strategies? Each correct answer represents a complete solution. (Choose two.)
Physical prototyping
Evolutionary prototyping
Revolutionary prototyping
Requirements prototyping
ORDER BY
UNIQUE
GROUP BY
DISTINCT
Which of the following DML SQL statements support usage of correlated sub-queries? Each correct answer represents a complete solution.
(Choose all that apply.)
INSERT
SELECT
DELETE
UPDATE
ADD VALUES
Which of the following steps in database planning helps to determine the requirements of the database through interviewing?
Gathering information
https://app.schoology.com/course/5523776747/assessments/5523776966 47/62
11/21/22, 11:40 PM ITS Database | Schoology
Reduce redundancy.
What will you do to resolve the issue? Each correct answer represents a complete solution. (Choose two.)
Add more space to the tablespace and increase the users quota on the tablespace.
Provide an appropriate privilege or create views on the Sales table, and grant privileges on the view.
Provide redundant network paths from the client computer to the server along with additional listener connections on the
Oracle server and redundant network cards on the Oracle server.
JOIN
CREATE
INSERT
UPDATE
You have a table that contains information about all students in your school.
Which SQL keyword should you use to change a student’s first name in the table?
SELECT
https://app.schoology.com/course/5523776747/assessments/5523776966 48/62
11/21/22, 11:40 PM ITS Database | Schoology
SELECT
UPDATE
CHANGE
INSERT
Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.
https://app.schoology.com/course/5523776747/assessments/5523776966 49/62
11/21/22, 11:40 PM ITS Database | Schoology
Which of the following provides reliable units of work that allow correct recovery from failures and keeps a database consistent even in cases of
system failure?
Database transaction
Concurrency control
Database security
Two-phase commit
Which of the following is the process of extracting trails on a regular basis so that they can be transferred to a designated security system where
the database administrators do not have access?
Encryption
Native auditing
Abstraction
Database security
Prototyping
Bottom-up approach
Top-down approach
ALTER
https://app.schoology.com/course/5523776747/assessments/5523776966 50/62
11/21/22, 11:40 PM ITS Database | Schoology
DROP
TRUNCATE
DELETE
This question requires that you evaluate the underlined text to determine if it is correct.
Use the ALLOW SELECT command to give a user permission to read the data in a table.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct
LET HEAD
GRANT SELECT
No change is needed
PERMIT READ
To change a view, with what keyword should CREATE in the CREATE VIEW command be replaced?
UPDATE
REPLACE
ALTER
CHANGE
One error that may occur is attempting to retrieve data with a well-written query but against the wrong ________.
row
table
column
database
GROUP BY
WHERE
FROM
HAVING
https://app.schoology.com/course/5523776747/assessments/5523776966 51/62
11/21/22, 11:40 PM ITS Database | Schoology
Option B
Option A
Option C
Option D
In addition to taking backups of your databases, you should also backup up files stated below.
Which of these files store updates that have been made after the backup was made?
My.ini
My.cnf
Master.info
Which of the following are DML commands? Each correct answer represents a complete solution. (Choose all that apply.)
SELECT
INSERT
ALTER
DELETE
SELECT INTO
UPDATE
https://app.schoology.com/course/5523776747/assessments/5523776966 52/62
11/21/22, 11:40 PM ITS Database | Schoology
Stored procedures
Queries
Data types
Tables
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.
Yes No
Which of the following is a design of the user interface and the application programs that use and process the database?
Database Planning
Application Design
Object Modeling
Database Design
Encryption
Abstraction
https://app.schoology.com/course/5523776747/assessments/5523776966 53/62
11/21/22, 11:40 PM ITS Database | Schoology
Native auditing
Authentication
Database design
Application design
Database planning
This question requires that you evaluate the underlined text to determine if it is correct.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement correct.
No change is needed
CREATE
INSERT
UPDATE
What statement is used to copy records from an existing table to a new table?
SELECT WITHIN
SELECT
SELECT INTO
You have a table named Product that contains the following data.
The ProductID column is the primary key. The CategoryID column is a foreign key to a separate table named Category.
https://app.schoology.com/course/5523776747/assessments/5523776966 54/62
11/21/22, 11:40 PM ITS Database | Schoology
You execute the following statement:
INSERT INTO Product
VALUES (3296, ‘Table’, 4444)
a syntax error
datetime
Use two different columns with one column of datetime, and the second column indicating the UTC offset.
datetime2
datetimeoffset
Which of the following steps in database planning is used to record an object so that it is represented visually in the system?
Gathering information
Object identification
Object modeling
Which of the following is used to give a default value to a column if the value for that column is unknown?
Concurrency
Transaction
DEFAULT constraint
Nested transaction
Which statement deletes the rows where the employee’s phone number is not entered?
https://app.schoology.com/course/5523776747/assessments/5523776966 55/62
11/21/22, 11:40 PM ITS Database | Schoology
Option A
Option B
Option C
Option D
DELETE TABLE
ALTER TABLE
You have a table named Product. The Product table has columns for ProductDescription and ProductCategory.
You need to change the ProductCategory value for all the spoons in the Product table to 43.
https://app.schoology.com/course/5523776747/assessments/5523776966 56/62
11/21/22, 11:40 PM ITS Database | Schoology
option A
option B
option D
option C
HOTSPOT
You are structuring a table in a relational database.
Instructions: For each of the following statement, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Azure Bot Service Azure Linguistic Analysis API Azure API Apps Azure Batch AI Azure Functions
Which of the following approaches will she use to accomplish the task?
Inside-out approach
Mixed approach
Bottom-up approach
Top-down approach
James should create a Windows Authentication login for each domain group and configure the logins as database users for
the appropriate database. Add each database user to the db_ddladmin database role.
James should create a Windows Authentication login for each domain user and configure the logins as database users for the
appropriate database. Add each database user to the db_ddladmin database role.
James should create a Windows Authentication login for each domain group and configure the logins as database users for
the appropriate database. Add each database user to the db_datareader and db_datawriter database roles.
James should create a Windows Authentication login for each domain user and configure the logins as database users for the
appropriate database. Add each database user to the db datareader and db datawriter database roles.
https://app.schoology.com/course/5523776747/assessments/5523776966 57/62
11/21/22, 11:40 PM ITS Database | Schoology
pp p _ _
output
input
number
boolean
Each new employee joining the company is assigned an E-mail Login and Password.
This E-mail Login and Password is used by each employee to access his account on the company’s Web site.
The value of both the attributes should be unique and cannot be NULL.
You design an artificial key EmpID in the Info table to serve as a primary key.
Which of the following factors lead you to define an artificial key for use as a primary key in the Info table? Each correct answer represents a part of the solution. (Choose all
that apply.)
The natural key contains highly sensitive data
a syntax error
https://app.schoology.com/course/5523776747/assessments/5523776966 58/62
11/21/22, 11:40 PM ITS Database | Schoology
An Index
A name
A key
DROP TABLE
REMOVE TABLE
UPDATE TABLE
DELETE TABLE
Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one
point.
Yes No
This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each table has three rows.
Nine rows will be included in the Cartesian product of these two tables.
Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes
the statement corrector.
Three
No change is needed
Six
Zero
https://app.schoology.com/course/5523776747/assessments/5523776966 59/62
11/21/22, 11:40 PM ITS Database | Schoology
191 Matching 1/1
Instructions: For each of the following statements, select the appropriate answer choice to each of the statements.
Which of the following commands cannot be rolled back? Each correct answer represents a complete solution. (Choose two.)
DELETE
UPDATE
TRUNCATE
COMMIT
Which database term is used to describe the relationship between ProductID and ProductCategory?
Compositional
Cohort
Functionally dependent
Relationally dependent
Deterministic
https://app.schoology.com/course/5523776747/assessments/5523776966 60/62
11/21/22, 11:40 PM ITS Database | Schoology
Option B
Option D
Option A
Option C
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used.
VARCHAR (30)
CHAR (30)
A data type
A primary key
A unique constraint
A foreign key
An index
Which of the following enables a user to use generic methods to access a database and to focus on the coding rather than the syntax for a specific
database API?
Native auditing
Database security
Authentication
Abstraction
You need to remove a view named EmployeeView from your database. Which statement should you use?
DROP EmployeeView
https://app.schoology.com/course/5523776747/assessments/5523776966 61/62
11/21/22, 11:40 PM ITS Database | Schoology
DROP EmployeeView
DELETE EmployeeView
You need to create a view to filter rows of data from an underling table.
Which type of clause must be included in the CREATE VIEW statement?
WHERE
FILTER
JOIN
CONSTRAINT
You need to store the first name, last name, and student ID for 100 students.
This information will be stored in a table as:
https://app.schoology.com/course/5523776747/assessments/5523776966 62/62