database multiple questions ch 10,11,13

A(n) ________________________ is one in which all data integrity constraints are satisfied.

a. trigger


b. database request


c. consistent database state


d. transaction


A ______________ is a type of lock that restricts database access to the owner of the lock and allows only one user at a time to access the database.

a. page-level lock


b. table-level lock


c. row-level lock


d. database-level lock


Which of the following types of critical events can trigger the database recovery process?

a. Hardware/software failures


b. Natural disasters


c. Human-caused incidents


d. All of these choices are correct.


What type of lock is appropriate when concurrent transactions are granted read access on the basis of a common lock?

a. Exclusive


b. Write


c. Shared


d. None of these choices are correct.


A(n) ________________________ is a logical unit of work that must be entirely completed or aborted; no intermediate states are accepted.

a. database request


b. transaction


c. stored procedure


d. trigger


Which of the following means that a series of concurrent transactions will yield the same result as if they were executed one after another?

a. Atomicity


b. Consistency


c. Durability


d. None of these choices are correct.


All changes are aborted and the database is set back to the previous consistent state when a __________ statement is reached.

a. GRANT


b. SET


c. COMMIT


d. ROLLBACK


In concurrency control, in the _____________ approach, the only test for conflict occurs during the validation phase. If a conflict is detected, then the entire transaction restarts.

a. realistic


b. optimistic


c. pessimistic


d. neutral


In some circumstances, ________-level locks, which require fewer system resources, may produce better overall performance than field-level locks, which require more system resources.

a. page


b. table


c. row


d. database


In concurrency control, the _____________ approach is based on the assumption that the majority of database operations do not conflict.

a. neutral


b. realistic


c. optimistic


d. pessimistic


Which of the following processes allows the concurrent execution of transactions, giving end users the impression that they are the DBMS's only users?

a. Event coordinator


b. Scheduler


c. Transaction manager


d. Controller


A(n) ___________________ is used by the DBMS to keep track of all transactions that update the database.

a. transaction log


b. event


c. status


d. time


____________means that a series of concurrent transactions will yield the same result as if they were executed one after another.

a. Isolation


b. Atomicity


c. Serializability


d. Durability


Which of the following properties indicates that the database will be in a permanent consistent state after the execution of a transaction?

a. Atomicity


b. Consistency


c. Durability


d. Isolation


Which of the following is NOT a technique used to control deadlocks in a database?

a. deadlock avoidance


b. deadlock detection


c. deadlock prevention


d. All of these choices are used.


Which of the following is NOT a valid level of lock granularity?

a. Row-level lock


b. Entity-level lock


c. Database-level lock


d. Page-level lock


Which of the following processes interleaves the execution of the database operations (belonging to several concurrent transactions) to ensure the serializability of transactions, thus guaranteeing that the execution of concurrent transactions will yield the same result as though the transactions were executed one after another?

a. Scheduler


b. Transaction manager


c. Event coordinator


d. Controller


Which of the ANSI transaction isolation levels is less restrictive?

a. Read committed


b. Serializable


c. Read uncommitted


d. Repeatable read


The _________________ is a special DBMS process that establishes the order in which the operations are executed within concurrent transactions.

a. controller


b. event coordinator


c. scheduler


d. transaction manager


What type of lock occurs when two transactions wait indefinitely for each other to unlock data?

a. Exclusive


b. Deadlock


c. Read


d. Shared


A(n) _______________ lock exists when access to a data item is specifically reserved for the transaction that locked the object.

a. exclusive


b. shared


c. read


d. unlocked


Which of the following properties means that the data required by an executing transaction cannot be accessed by any other transaction until the first transaction finishes and thus ensures data consistency for concurrently executing transactions?

a. Consistency


b. Isolation


c. Durability


d. Atomicity


Which of the following properties requires that all parts of a transaction must be completed or the transaction is aborted and ensures that the database will remain in a consistent state?

a. consistency


b. durability


c. isolation


d. atomicity


Which of the following properties indicates the permanence of the database's consistent state?

a. Durability


b. Isolation


c. Atomicity


d. Consistency


A(n) ________________________ is the equivalent of a single SQL statement in an application program or transaction.

a. trigger


b. database request


c. stored procedure


d. transaction


Which of the following is NOT one of the main problems with concurrency control?

a. Lost updates


b. Inconsistent retrievals


c. Uncommitted data


d. None of these choices are correct.


All changes are permanently recorded within the database when a ___________ statement is reached.

a. COMMIT


b. SET


c. GRANT


d. ROLLBACK


Each individual transaction must display what is often referred to as the __________ test.

a. syntactic


b. stateless


c. completeness


d. acid


Which of the following is NOT a disadvantage of time-stamping methods for concurrency control?

a. Each value stored in the database requires two additional time stamp fields – one for the last time the field was read and one for the last time it was updated.


b. Many transactions may have to be stopped, rescheduled, and re-stamped.


c. Increased memory and processing overhead requirements.


d. All of these choices are disadvantages


Which of the ANSI transaction isolation levels allows no dirty reads, no non-repeatable reads, and no phantom reads?

a. Repeatable read


b. Serializable


c. Read committed


d. Read uncommitted


____________________________ is the coordination of simultaneous execution of transactions in a multiuser database system.

a. Event scheduler


b. Concurrency control


c. Scheduling


d. Transaction management


What type of lock is issued only when a transaction must write or update a data item and no locks are currently held on that data item by any other transaction?

a. Exclusive


b. Shared


c. Read


d. None of these choices are correct.


A ______________ is a device that guarantees unique or exclusive use of a data item in a particular transaction operation.

a. key


b. lock


c. sequence


d. index


The DBMS does not guarantee that the ________________ of the transaction truly represents the real-world event.

a. state


b. timeliness


c. number


d. semantic meaning


In the _____________ scheme, the older transaction waits for the younger one to complete and release its locks.

a. wound/wait


b. wait/die


c. die/die


d. wound/die


atch the following terms with a short description of that term:


 

Durability

The data used by one transaction can not be used by another transaction until the first one has completed.

Atomicity

The schedule for execution in a multiuser environment insures consistent results.

Consistency

A transaction takes the database from one consistent state to another.

Isolation

All statements within a transaction must be successfully completed or completely aborted.

Serializability

Once a transaction is done it can not be lost or undone.



For the following two transactions and the initial table values as shown complete the missing blanks in the transaction log below:

Part_ID

Desrption

OnHand

OnOrder

57

Assembled Foo

987

Foo Fastener

12

989

Foo Half

BEGIN TRANSACTION;
UPDATE Part SET OnHand = OnHand + 7, OnOrder = OnOrder – 7 WHERE Part_ID = 987;
COMMIT;

BEGIN TRANSACTION;
UPDATE Part SET OnHand = OnHand - 4 WHERE Part_ID = 987;
UPDATE Part SET OnHand = OnHand - 2 WHERE Part_ID = 989;
UPDATE Part SET OnHand = OnHand + 1 WHERE Part_ID = 57;
COMMIT

TRL_ID

TRX_ID

PREV_PTR

NEXT_PTR

OPERATION

TABLE

ROW ID

ATTRIBUTE

BEFORE 
VALUE

AFTER
VALUE

1787

109

NULL

START

****

1788

109

1787

UPDATE

PART

987

OnHand

12

1789

109

UPDATE

PART

987

OnOrder

1790

109

NULL

COMMIT

****

1791

110

NULL

START

****

1792

110

UPDATE

PART

987

1793

110

1794

110

1795

110

NULL

COMMIT

****

A(n) _______________ optimizer uses a set of preset conditions and points to determine the best approach to execute a query. The conditions assign a "cost" to each SQL operation; the costs are then added to yield the cost of the execution plan.

a. user-based


b. query-based


c. rule-based


d. cost-based


What database statistics measurements are typical of environment resources?

a. The logical and physical disk block size


b. The location and size of data files


c. The number of extends per data file


d. All of these choices are correct.


____________________ describes a process on the server side that will properly configure the DBMS environment to respond to clients' requests in the fastest way possible, while making optimum use of existing resources.

a. User performance tuning


b. Entity performance tuning


c. DBMS performance tuning


d. SQL performance tuning


How are database statistics obtained?

a. Automatically by the DBMS.


b. Manually by the DBA.


c. All of these choices are correct.


d. None of these choices are correct.


Which of the following is NOT a phase the DBMS goes through when processing a query?

a. Parsing


b. Execution


c. Compiling


d. Fetching


A(n) _______________ uses 0s and 1s to represent the existence of a value or condition.

a. B-tree index


b. bitmap index


c. hash index


d. reverse index


What database statistics measurements are typical of tables?

a. Row length


b. Number of rows and number of columns


c. Number of disk blocks used


d. All of these choices are correct.


______________ refers to the number of different values a column could possibly have.

a. Data measurement


b. Data clarity


c. Data access


d. Data sparsity


The term __________________ refers to a number of measurements gathered by the DBMS to describe a snapshot of the database objects' characteristics.

a. entity statistics


b. query statistics


c. database statistics


d. user statistics


Which of the following is NOT one of the general guidelines for creating and using indexes?

a. Declare indexes in join columns other than PK or FK


b. Use indexes in small tables or tables with low sparsity


c. Declare primary and foreign keys


d. All of these choices are guidelines.


Which of the following phase is where the DBMS runs the SQL query using the chosen plan?

a. Fetching


b. Compiling


c. Execution


d. Parsing


_____________ database systems are optimized to store large portions (if not all) of the database in primary (RAM) storage rather than secondary (disk) storage.

a. In-sync


b. In-memory


c. All of these choices are correct.


d. None of these choices are correct.


In simple terms, the DBMS processes queries in ________ phase(s).

a. four


b. one


c. two


d. three


Which of the following phase is where the DBMS analyzes the SQL query and chooses the most efficient access/execution plan?

a. Fetching


b. Parsing


c. Execution


d. Compiling


RAID level _______________ is when the data and the parity are striped across separate drives, providing good read performance and fault tolerance via parity data.

a. 1


b. 5


c. 0


d. 3


Optimizer ______ are special instructions for the optimizer that are embedded inside the SQL command text.

a. hints


b. costs


c. facts


d. rules


Which of the following is NOT one of the steps you would follow when formulating a query?

a. Determine how to join the tables


b. Identify the source tables


c. Determine the order in which to display the output


d. Determine the query output


What query optimization factors should you keep in mind if you intend to write conditional expressions in SQL code?

a. Equality comparisons are faster than inequality comparisons


b. Numeric field comparisons are faster than character, date, and NULL comparisons


c. Whenever possible, transform conditional expressions to use literals


d. All of these choices are correct.


What type of SQL statement updates the data dictionary tables or system catalog?

a. DDL


b. DML


c. DBL


d. None of these choices are correct.


Most performance-tuning activities focus on doing what to the number of I/O operations, which are much slower than reading data from the data cache?

a. maximizing


b. replacing


c. converting


d. minimizing


A(n) _______________ optimizer uses sophisticated algorithms based on the statistics about the objects being accessed to determine the best approach to execute a query.

a. cost-based


b. user-based


c. rule-based


d. query-based


You use ________________ to provide both performance improvement and fault tolerance, and a balance between them as part of DBMS performance tuning.

a. Optimizer mode


b. RAID


c. Sort cache


d. None of these choices are correct.


Which of the following are recommendations you would make for managing the data files in a DBMS with many tables and indexes?

a. Put high-usage end-user tables in their own table spaces


b. Evaluate the creation of indexes based on the access patterns


c. Create independent data files for the system, indexes and user data table spaces


d. All of these choices are correct.


Which of the following is an example of an optimizer hint used in standard SQL?

a. MULTI_ROWS


b. NO_ROWS


c. I_ROWS


d. FIRST_ROWS


___________________ describes a process on the client side that will generate an SQL query to return the correct answer in the least amount of time, using the minimum amount of resources at the server end.

a. User performance tuning


b. Database performance tuning


c. SQL performance tuning


d. Entity performance tuning


DBMS performance tuning at the server end focuses on setting the parameters used for:

a. Data cache.


b. SQL cache.


c. sort cache.


d. All of these choices are correct.


Given the following SQL Query, which columns would you recommend to be indexed?

SELECT InvoiceNumber, InvoiceDate, Invoice_Total, Invoice_Paid,
Invoice_Total - Invoice_Paid as Balance
FROM Invoice
WHERE Invoice_Date >= "2015-07-20" and Salesman_Id = "JR"
ORDER BY DESC Invoice_Total

Drag the correct answers to one of the three pockets.


invoice Number


Invoice Date

Invoice_Total

Invoice_Paid

Salesman_id

ou work for a large non-profit that raises money for awareness of and research to cure a very painful childhood disease. They have a database table with over 100,000 names, addresses, and basic demographic information about donors to their cause.

Match the following columns in the table based on sparsity.


 

Donor_MaritalStatus

High Sparsity

Donor_BirthDate

Low Sparsity

Donor_NumberOfChildren


Donor_LastName


Donor_Gender


Donor_ZipCode


Donor_CellPhoneNumber



The data warehouse is usually a ___________ database optimized for data analysis and query processing.

a. stand-alone


b. read-only


c. small sized


d. view-based


Which of the following are problems when operational data are integrated into the data warehouse?

a. Use of synonyms and homonyms.


b. Use of different coding schemes.


c. Incompatible data formats.


d. All of these choices are correct.


A(n) ___________________ is an arrangement of computerized tools used to assist managerial decision making.

a. Database Support System


b. Decision Support System


c. User Support System


d. Managerial Support System


A(n) ___________________ is a web-based system in BI that presents key business performance indicators or information in a single, integrated view with clear and concise graphics.

a. web interface


b. dashboard


c. cloud


d. micro storage device


The _______ clause in a materialized view indicates that the view rows are populated right after the command is entered.

a. NOT


b. IMMEDIATE


c. COMPLETE


d. DEFERRED


The ____________ is a data-modeling technique used to map multidimensional decision support data into a relational database.

a. data warehouse


b. smart star


c. managerial view


d. star schema


__________ uses star schemas while _____________ uses data cubes.

a. DOLAP, ROLAP


b. ROLAP, MOLAP


c. MOLAP, ROLAP


d. ROLAP, DOLAP


The fact table from the star schema diagram below is ____________.

a. ORDER


b. TIME


c. VENDOR


d. PRODUCT


Which of the following is a basic component of the BI architecture?

a. Data visualization


b. Data analytics


c. Data store


d. All of these choices are correct.


A(n) _______ in a star schema is a numeric measurement or value that represents a specific business aspect or activity.

a. attribute hierarchy


b. fact


c. dimension


d. attribute


Which SQL extension is used with the GROUP BY clause to generate aggregates by different dimensions?

a. CUBE


b. STAR


c. ROLLUP


d. BUILD


Which of the following are common characteristics of operational data?

a. Highly normalized data model


b. Atomic-detailed data


c. High-update volumes


d. All of these choices are correct.


One of the main characteristics of OLAP is ____________.

a. advanced database support


b. easy to use end user interfaces


c. multidimensional data analysis techniques


d. All of these choices are correct.


Which of the following techniques is NOT used to optimize data warehouse design?

a. Denormalizing dimensional tables


b. Partitioning and replicating tables


c. Denormalizing fact tables


d. Maintaining multiple fact tables


The _______ clause in a materialized view indicates when the rows are actually populated.

a. DEFERRED


b. REFRESH


c. BUILD


d. IMMEDIATE


Which type of OLAP would be best suited for the relational database environment?

a. ROLAP


b. MOLAP


c. DOLAP


d. None of these choices are correct.


A modern BI system provides which of the following distinctive reporting styles?

a. advanced data analytics


b. both "advanced reporting" and "advanced data analytics"


c. advanced reporting


d. None of these choices are correct.


A(n) _______ in a star schema is a qualifying characteristic that provides additional perspective to a fact.

a. dimension


b. attribute


c. fact


d. attribute hierarchy


Decision support data requires managers to _________ and to ________ the data in different situations.

a. understand, acquire


b. accept, reject


c. drill down, roll up


d. input, output


Multidimensional _________________ refers to the processing of data in which data are viewed as part of a multidimensional structure, one in which data are related in many different ways.

a. data analysis


b. user requirements


c. organization layout


d. data charts


which of the following is NOT a major component of the Business Intelligence framework?

a. Management


b. People


c. Location


d. Processes


Which of the following is NOT a key performance indicator in BI?

a. Earnings per share


b. Employee turnover


c. Same-store profits


d. All of these choices are key performance indicators.


A data cube that grows to n number of dimensions is known as a _____________.

a. cloud cube


b. multidimensional cube


c. hypercube


d. special cube


On which level of the BI framework is data analytics used?

a. data visualization


b. monitoring and alerting


c. queries and reporting


d. All of these choices are correct.


A(n) _______ in a star schema provides a top-down data organization that is sued for aggregation and drill-down/roll-up data analysis.

a. dimension


b. fact


c. attribute


d. attribute hierarchy


_______ has a larger database size than __________ .

a. DOLAP, ROLAP


b. ROLAP, MOLAP


c. MOLAP, ROLAP


d. ROLAP, DOLAP


_______ measures the density of the data held in the data cube; it is computed by dividing the total number of actual values in the cube by the total number of cells.

a. Mass


b. Sparsity


c. Density


d. Volume


Which SQL extension is useful when you want to compute all possible subtotals within groupings based on multiple dimensions?

a. BUILD


b. ROLLUP


c. STAR


d. CUBE


Which SQL extension is used with the GROUP BY clause to generate aggregates by the listed columns, including the last one?

a. CUBE


b. ROLLUP


c. BUILD


d. STAR


The ______________ table in the star schema represented below is NOT a dimension.

a. VENDOR


b. ORDER


c. PRODUCT


d. TIME


A(n) _______ in a star schema is often used to search, filter, or classify facts.

a. fact


b. dimension


c. attribute


d. attribute hierarchy


A ___________ is a small, single-subject data warehouse subset that provides decision support to a small group of people.

a. data warehouse


b. managerial view


c. database system


d. data mart


Which type of OLAP system works faster for large data sets with predefined dimensions?

a. ROLAP


b. OLAP


c. MOLAP


d. All of these choices are correct.


The _______ clause in a materialized view lets you indicate when and how to update the view when new rows are added to the base tables.

a. DEFERRED


b. IMMEDIATE


c. REFRESH


d. BUILD


Which of the following is NOT a dissemination format of BI that started in the 2000s?

a. Mobile BI


b. Portals


c. Spreadsheets


d. Dashboards


A _____ view is a dynamic table that not only contains the SQL query command to generate the rows, it stores the actual rows.

a. composite


b. user's


c. virtual


d. materialized


______ integrates people and processes using technology in order to add value to the business.

a. Knowledge


b. Business Intelligence


c. Database Design


d. Information


_____ is a framework that allows a business to transform data into information, information into knowledge, and knowledge into wisdom.

a. Information


b. Business Intelligence


c. Database Design


d. Knowledge


From the data analyst's point of view, decision support data differ from operational data in what three areas?

a. volume, time, reply.


b. time, granularity, dimensionality.


c. usage, support, consistency.


d. differentiation, degree, support.


A(n) ______________ is an integrated, subject-oriented, time-variant and non-volatile database that provides support for decision-making.

a. data warehouse


b. managerial view


c. database system


d. data store


In the ROLLUP SQL extension, the ____________ of the column list within GROUP BY ROLLUP is very important.

a. inclusion


b. placement


c. order


d. multiplication


Which of the following is a basic component of the star schema?

a. Dimensions


b. Facts


c. Attributes


d. All of these choices are correct.


The power of multidimensional analysis resides in its ability to focus on specific _______ of the cube.

a. pictures


b. modelings


c. slices


d. users


The ___________ component of the BI architecture performs data analysis and data-mining tasks using the data in the data store.

a. data monitoring and alerting


b. data analytics


c. data visualization


d. data store


You have been asked by a client to normalize the driver dimension and to create multiple fact tables for the receipts that a driver collects for each of the new aggregation levels.  Fill in the blanks with the field names used in the star schema to accomplish this task.

Facts:
A driver is assigned to one and only one office.
An office is in to only one region and may have many drivers.
A region is located in one and only one country and a country can have many regions.

database multiple questions ch 10,11,13 1


Drag the correct answers in alphabetical order in to corresponding pockets.


database multiple questions ch 10,11,13 2

Fill in the blanks with words that would best complete the passage.

Date

 

Customer_ID

 

Receipt_Count

 

Region_ID

 

Driver_Name

 

Office_ID

 

Customer_ID

 

Receipt_Count

 

Country_ID

 

Country_ID

 

Receipt_Total

 

Country_ID

 

Receipt_Total

 

Office_ID

 

Office_Name

 

Country_Name

Customer_ID

 

Driver_ID

 

Customer_ID

 

Receipt_Count

 

Receipt_Count

 

Office_ID

 

Driver_ID

 

Region_ID

 

Receipt_Total

 

Region_ID

 

Region_Name

 

Date

 

Receipt_Total

 

Date

 

Date

Match the following terms with a short description of that term:


 

Query and reporting

Presentation of the data in innovative and easy to understand ways.

Data visualization

Data warehouse or data mart optimized for data analysis and query speed.

Data analytics

Collect, filter, and integrate internal and external data into data stores.

ETL tools

This tool assists the user in choosing the best model for understanding the data or for discovery of relationships within the data.

Data store

Selection and retrieval of the data.

Data monitoring and alerting

A constant analysis of business activity and metrics important to management.