[
{
"question": "What does the 'No Write Down' property ensure in distributed database security?",
"options": [
"A) Users can write data to all levels freely",
"B) Users can only write data to higher levels but not lower levels",
"C) Users cannot write data to lower levels",
"D) Users can only read data but cannot write at all"
],
"answer": 2,
"explanation": "The 'No Write Down' property prevents users from writing data to lower security levels, ensuring that sensitive data is not written or modified by unauthorized users with lower privileges."
},
{
"question": "Which of the following is an example of a semantic integrity constraint that ensures no duplicate records in a table?",
"options": [
"A) Foreign key constraint",
"B) Check constraint",
"C) Primary key constraint",
"D) Unique index constraint"
],
"answer": 2,
"explanation": "The primary key constraint enforces uniqueness of records in a table, preventing duplicate entries and maintaining data consistency."
},
{
"question": "What is the main purpose of semantic integrity control in distributed databases?",
"options": [
"A) To improve query execution speed",
"B) To ensure data is correct, meaningful, and consistent across all sites",
"C) To allow users to write data to lower security levels",
"D) To reduce network data transfer"
],
"answer": 1,
"explanation": "Semantic integrity control enforces constraints that ensure data accuracy and consistency across distributed database sites, preventing invalid or meaningless data."
},
{
"question": "Which of the following is NOT an example of a semantic integrity constraint?",
"options": [
"A) Primary key constraint",
"B) Foreign key constraint",
"C) Check constraint (e.g., age > 18)",
"D) Query decomposition"
],
"answer": 3,
"explanation": "Query decomposition is a process of splitting queries, not a constraint enforcing data integrity; the others are types of constraints that maintain semantic integrity."
},
{
"question": "What does query decomposition in distributed databases involve?",
"options": [
"A) Combining multiple queries into one large query",
"B) Splitting a large query into smaller subqueries that run where the data is stored",
"C) Encrypting queries before sending them over the network",
"D) Removing all constraints from a query to optimize it"
],
"answer": 1,
"explanation": "Query decomposition breaks down a large query into smaller parts (subqueries) that are executed at the sites where the relevant data resides, improving efficiency."
},
{
"question": "Which step is NOT part of the distributed query decomposition process?",
"options": [
"A) Normalization to clean and prepare the query",
"B) Analysis to understand required data",
"C) Simplification to remove extra steps",
"D) Encryption to secure data transfers"
],
"answer": 3,
"explanation": "Encryption is unrelated to the decomposition process steps, which include normalization, analysis, and simplification of the query."
},
{
"question": "What is one of the main advantages of using semijoins in distributed query processing?",
"options": [
"A) Increasing the size of data transfer",
"B) Sending full tables between sites",
"C) Reducing data transfer by sending only necessary columns or values",
"D) Performing joins only on multiple attributes"
],
"answer": 2,
"explanation": "Semijoins reduce the volume of data transferred by sending only needed columns or values instead of entire tables, saving time and network resources."
},
{
"question": "Why are semijoins especially beneficial when transferring large tables in distributed query processing?",
"options": [
"A) They increase network congestion",
"B) They avoid transferring full tables by partially processing data locally",
"C) They require more computational power at all sites",
"D) They make all sites transfer their full datasets"
],
"answer": 1,
"explanation": "Semijoins reduce network costs by partially processing data locally before transferring minimal necessary data, which is critical when dealing with large tables."
},
{
"question": "What is the key difference between static and dynamic query optimization in distributed databases?",
"options": [
"A) Static optimization happens during query execution; dynamic happens before execution",
"B) Static optimization adapts to system conditions in real-time; dynamic does not",
"C) Static optimization uses estimated data and does not change; dynamic uses real-time info and adapts",
"D) Both static and dynamic optimization are the same"
],
"answer": 2,
"explanation": "Static optimization is performed before query execution using estimated stats and remains fixed, whereas dynamic optimization happens during execution using real-time data to improve performance."
},
{
"question": "Which of the following is a characteristic of dynamic query optimization?",
"options": [
"A) Uses estimated data sizes and fixed plan",
"B) Does not adapt to actual system load",
"C) Occurs while the query runs and adapts based on real-time statistics",
"D) Is performed before the query execution"
],
"answer": 2,
"explanation": "Dynamic optimization processes and adapts query plans during execution based on current system and data statistics for better performance."
}
]