Question

In: Computer Science

Which of the following best describes a dimension table in a star schema: Most attributes will...

  1. Which of the following best describes a dimension table in a star schema:
  1. Most attributes will likely be text
  2. Most attributes will likely be numeric
  3. The primary key should be a single integer surrogate key
  4. Both a. and c.
  1. Which of the following best describes a fact table in a star schema:
  1. Most attributes will likely be text
  2. Most attributes will likely be numeric
  3. The primary key should be a single integer surrogate key
  4. Both a. and c.
  1. Which of the following best describes an advantage(s) of a snowflake schema:
  1. It slows down queries by forcing more joins between dimension tables
  2. It allows facts to be stored at different granularities of a dimension in a multi-star schema (e.g. day and month granularities of a date dimension)
  3. Facts that are at the lowest level of the dimension can be more easily summarized at higher levels of the dimension than they can with a pure star schema by precomputing aggregates
  4. Both b. and c.

Transactions and Recovery:

  1. Which of the following best describes the atomicity property in regards to transactions:
  1. Either all actions in a transaction are executed or no actions are done
  2. The DBMS changes from one consistent state to another consistent state when a transaction completes successfully
  3. A transaction executes with the same outcome, without any impact from other transactions executing concurrently
  4. The DBMS guarantees that changes are made persistently upon successful completion of a transaction
  1. Which of the following statements are true:
  1. Verifying transaction consistency is the job of the semantic data controller
  2. Managing consistency of transactions operating in parallel is the job of the concurrency controller
  3. Both a. and b.
  4. Neither a. nor b.
  1. Which of the following statements best describes a phantom read:
  1. A select from one user calculating a summary or aggregate function (e.g. avg, max, sum, etc.) reads some rows from a table. At the same time another user is updating some of those same rows to contain different values. The first user reads some of the rows before the update changes them and reads some rows after the update changes them.
  2. One user reads the same row more than once. Between the reads, an update from another user modifies the row.
  3. One user reads a set of rows from a table. Another user inserts a row that matches the where condition read by the first user. The first user reads the same set of rows again getting the new row in addition to the rows that the user read the first time.
  4. Two users update the same columns of the same row of the same table at the same time. One update will be overwritten by the other.

Solutions

Expert Solution

1.

Which of the following best describes a dimension table in a star schema

The primary key should be a single integer surrogate key.

So option (c) is correct.

2.

Which of the following best describes a fact table in a star schema

Most attributes will likely be numeric and the primary key should be a single integer surrogate key.

So option (d) is correct.

3.

Which of the following best describes an advantage(s) of a snowflake schema

It slows down queries by forcing more joins between dimension tables.

So option (a) is correct.

4.

Which of the following best describes the atomicity property in regards to transactions

Either all actions in a transaction are executed or no actions are done.

So option (a) is correct.

5.

Which of the following statements are true

Verifying transaction consistency is the job of the semantic data controller and managing consistency of transactions operating in parallel is the job of the concurrency controller.

So option (c) is correct.

6.

Which of the following statements best describes a phantom read

One user reads a set of rows from a table. Another user inserts a row that matches the where condition read by the first user. The first user reads the same set of rows again getting the new row in addition to the rows that the user read the first time.

So option (c) is correct.


Related Solutions

You are to construct a star schema for Simplified Automobile Insurance Company. The relevant dimensions, dimension attributes, and dimension sizes are as follows:
Modern Database Management, 13th EditionJeff Hoffer9-39. You are to construct a star schema for Simplified Automobile Insurance Company. The relevant dimensions, dimension attributes, and dimension sizes are as follows:InsuredPartyAttributes: InsuredPartyID and Name. There is an average of two insured parties for each policy and covered item.CoverageItemAttributes: CoverageKey and Description. There is an average of 10 covered items per policy.AgentAttributes: AgentID and AgentName. There is one agent for each policy and covered item.PolicyAttributes: PolicyID and Type. The company has approximately 1...
Which of the following best describes ribosomes?
Which of the following best describes ribosomes? Hollow cytoskeletal elements that act as organizers for the cytoskeleton, especially in cell division Contain digestive enzymes to breakdown non-functional organelles and foreign bodies that enter the cell The site of protein synthesis. Dense spherical body in the nucleus which are the synthesis site for ribosomal RNA and ribosomal subunits Houses all genetic material for the cell including DNA and RNA.
Which of the following best describes active surveillance?
Which of the following best describes active surveillance?
Which of the following best describes cis-transisomers?
Which of the following best describes cis-transisomers?They are mirror imagesThey have variations in arrangements around carbon carbon double bondsThey have different molecular formulasThey have the same chemical propertiesNone of the above
Which one of the following best describes a broker?
Which one of the following best describes a broker?A.intermediary who arranges trades between a buyer and a sellerB.trader who buys and sells from his or her inventoryC.firm which charges a commission for arranging a transactionD.person who buys securities for his or her own account on an exchange floorE.trader who transacts business on behalf of a securities issuer
schema: Student( studID, name, major )   // dimension table, studID is key Instructor( instID, dept );  ...
schema: Student( studID, name, major )   // dimension table, studID is key Instructor( instID, dept );   // dimension table, instID is key Class( classID, univ, region, country );   // dimension table, classID is key Took( studID, instID, classID, score );   // fact table, foreign key references to dimension tables Write a SQL query to find all students who took a class from an instructor not in the student's major department and got a score over 80. Return the student name,...
Which of the following best illustrates the relationship between entities and attributes?
Which of the following best illustrates the relationship between entities and attributes?  A. The entity CUSTOMER with the attribute ADDRESS   B. The entity PRODUCT with the attribute CUSTOMER   C. The entity CUSTOMER with the attribute PRODUCT   D. The entity ADDRESS with the attribute CUSTOMER   E. The entity PRODUCT with the attribute PURCHASE
Consider the STAR schema with dimensions Customer, Product, and Time. The fact table has a measure...
Consider the STAR schema with dimensions Customer, Product, and Time. The fact table has a measure called Purchase_Price. This measure is: - additive -non-additive -semi-additive
1. Which of the following best describes a success scenario? - A statement that describes how...
1. Which of the following best describes a success scenario? - A statement that describes how certain decisions lead to success -A statement that defines what it means for the system to perform as intended   -A statement of what could go wrong within a system -A statement of who, what, when, where and how a system would fail 2. Which of the following variable types represent measurable properties of a system itself? -Input Variables -Output Variables -Exogenous Variables    -State Variables...
Which of the following classifications best describes the behaviour of Cost A?
Rymore Company has provided the following:JulyAugustSales in Units1,5001,600Cost A$35,000$36,000Cost B$16,000$16,000Cost C$67,500$72,000Which of the following classifications best describes the behaviour of Cost A?Select one:a. Mixed.b. Variable.c. Fixed.d. Opportunity cost.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT