DB II Midterm

Big Data

Q: What are the Five V’s of Big Data?
A: Volume, Velocity, Variety, Veracity, Value.

Q: What is the purpose of Hadoop Distributed File System (HDFS)?
A: To store and manage large-scale datasets across a distributed cluster.

Q: What is the function of the Map stage in MapReduce?
A: It distributes tasks across nodes and processes data into key-value pairs.

Q: What is the function of the Reduce stage in MapReduce?
A: It aggregates and summarizes the processed data from the Map stage.


NoSQL Databases

Q: Name the four main types of NoSQL databases.
A: Key-Value Stores, Document Stores, Wide-Column Stores, Graph Databases.

Q: What is an example of a Document Store database?
A: MongoDB.

Q: Which NoSQL database type is best suited for managing social network relationships?
A: Graph Databases.

Q: What is the primary benefit of NoSQL over relational databases?
A: NoSQL provides scalability, schema flexibility, and high availability.


Data Warehousing & OLAP

Q: What is the primary purpose of a data warehouse?
A: To store historical data for analysis and decision-making.

Q: What does ETL stand for?
A: Extract, Transform, Load.

Q: What is the difference between a Star Schema and a Snowflake Schema?
A: A Star Schema has a denormalized structure with direct joins to fact tables, while a Snowflake Schema normalizes dimensions to reduce redundancy.

Q: What is the function of a Fact Table in a Star Schema?
A: It stores numerical data (measures) related to business events.

Q: What is the difference between Roll-up and Drill-down in OLAP?
A: Roll-up aggregates data to a higher level, while Drill-down provides more granular detail.

Q: What is an example of an OLAP slicing operation?
A: Filtering sales data for a single region while ignoring others.


Data Mining

Q: What is the goal of Data Mining?
A: To discover patterns, trends, and relationships in large datasets.

Q: What is an example of a predictive data mining application?
A: Fraud detection or credit risk assessment.

Q: What is Association Rule Mining used for?
A: Finding relationships between frequently occurring items, such as in Market Basket Analysis.

Q: What is the primary function of Clustering in Data Mining?
A: Grouping similar data points together without predefined categories.

Q: How does a Decision Tree classifier work?
A: It splits data based on feature values, forming a tree-like structure for classification.


Security & SQL Injection

Q: What is SQL Injection?
A: A security vulnerability where an attacker manipulates SQL queries through user input.

Q: How can SQL Injection be prevented?
A: Using parameterized queries and input validation.

Q: Why are RESTful APIs widely used in web applications?
A: They provide standardized communication using HTTP methods like GET, POST, PUT, DELETE.

Q: What is a session token used for in web applications?
A: To maintain user authentication across multiple requests.


Miscellaneous Concepts

Q: What does ACID stand for in relational databases?
A: Atomicity, Consistency, Isolation, Durability.

Q: What is the purpose of indexing in a database?
A: To speed up data retrieval by allowing efficient lookups.

Q: What is the main advantage of a Snowflake Schema?
A: Reduces data redundancy by normalizing dimensions.

Q: What is a Factless Fact Table?
A: A fact table that contains only foreign keys and no numerical measures, used for event tracking.

Q: How does a Key-Value Store retrieve data?
A: By using a unique key to retrieve its associated value.