Practice Library
All MCQs
Browse exam-wise, subject-wise, and country-wise MCQs with explanations.
Choose an option to check your answer.
A.
To cover query output columns without enlarging the searchable key
B.
To change the table grain
C.
To create foreign-key relationships automatically
D.
To partition the index by dashboard page
Show Answer
Correct Answer: A. To cover query output columns without enlarging the searchable key
Explanation:
Included columns are stored at the leaf level but are not part of key ordering.
They can eliminate lookups while avoiding wide composite keys.
Choose an option to check your answer.
A.
A table with no rows
B.
A table containing only dimension keys
C.
A cube partition stored in memory
D.
A table without a clustered index
Show Answer
Correct Answer: D. A table without a clustered index
Explanation:
Heap rows are not organized by a clustered key.
Heaps can load quickly in some staging cases but may be inefficient for repeated access.
Choose an option to check your answer.
A.
It permanently stores all dimension records
B.
It replaces the transaction log
C.
Sorts, hashes, spills, and temporary results may use it heavily
D.
It creates dashboard bookmarks
Show Answer
Correct Answer: C. Sorts, hashes, spills, and temporary results may use it heavily
Explanation:
Complex joins and aggregations may require work space beyond available memory.
Proper tempdb sizing and I/O design reduce contention and spill penalties.
Choose an option to check your answer.
A.
When every query uses unrelated columns
B.
When it materializes a frequently reused deterministic aggregation or join
C.
When source tables change continuously at extreme transaction rates
D.
When the view contains unsupported nondeterministic logic
Show Answer
Correct Answer: B. When it materializes a frequently reused deterministic aggregation or join
Explanation:
An indexed view stores its result physically and can avoid repeated computation.
Its maintenance cost and SQL Server restrictions must be evaluated carefully.
Choose an option to check your answer.
A.
Reduce storage and I/O, sometimes improving scan performance
B.
Guarantee that source data is correct
C.
Eliminate the need for CPU processing
D.
Convert facts into dimensions
Show Answer
Correct Answer: A. Reduce storage and I/O, sometimes improving scan performance
Explanation:
Compressed pages require fewer physical reads and occupy less storage.
The tradeoff is additional CPU work during compression and decompression.
Choose an option to check your answer.
A.
To define DAX measures
B.
To determine report color themes
C.
To replace all indexes
D.
To support storage management, backup strategies, and partition administration
Show Answer
Correct Answer: D. To support storage management, backup strategies, and partition administration
Explanation:
Filegroups map database objects to sets of physical files.
They can separate hot and cold data and support piecemeal operational strategies.
Choose an option to check your answer.
A.
All partitions are merged before each query
B.
The database removes dimension keys
C.
The optimizer reads only partitions relevant to the query predicate
D.
The ETL process deletes old reports
Show Answer
Correct Answer: C. The optimizer reads only partitions relevant to the query predicate
Explanation:
A predicate aligned with the partition key lets irrelevant partitions be skipped.
This reduces I/O for date-bounded analytical queries.
Choose an option to check your answer.
A.
Splitting a measure into numerator and denominator
B.
Dividing one logical table into separately managed physical segments based on a key
C.
Creating an unrelated copy of every dimension
D.
Moving charts to different dashboard pages
Show Answer
Correct Answer: B. Dividing one logical table into separately managed physical segments based on a key
Explanation:
Partitioning keeps one table interface while organizing data into ranges or groups.
Warehouse fact tables are commonly partitioned by date.
Choose an option to check your answer.
A.
The percentage of each leaf page initially filled with index data
B.
The number of facts assigned to each dimension
C.
The proportion of dashboard space filled with visuals
D.
The percentage of queries allowed to run
Show Answer
Correct Answer: A. The percentage of each leaf page initially filled with index data
Explanation:
Leaving free page space can reduce page splits for future inserts.
Too much free space, however, increases storage and read I/O.
Choose an option to check your answer.
A.
They store the complete query result permanently
B.
They replace dimension tables
C.
They prevent users from filtering reports
D.
They help estimate row counts and choose efficient execution plans
Show Answer
Correct Answer: D. They help estimate row counts and choose efficient execution plans
Explanation:
The optimizer relies on data-distribution estimates to compare plan alternatives.
Stale or inaccurate statistics can lead to poor join and access choices.
Choose an option to check your answer.
A.
Automatic correction of incorrect facts
B.
Loss of dimension relationships
C.
Additional page reads and less efficient range scans
D.
Conversion of the table into a cube
Show Answer
Correct Answer: C. Additional page reads and less efficient range scans
Explanation:
Fragmentation disrupts page order and may reduce page density.
Reorganization or rebuilding can improve certain scan and maintenance patterns.
Choose an option to check your answer.
A.
Indexes make queries impossible to optimize
B.
Indexes consume storage and slow loads and maintenance
C.
A table can contain only one nonclustered index
D.
Indexes remove historical records
Show Answer
Correct Answer: B. Indexes consume storage and slow loads and maintenance
Explanation:
Each index must be stored and updated when data changes.
Designers balance query benefits against ETL, storage, and maintenance costs.