70-467 · Question #90
You need to improve the performance of data warehouse queries. What should you do?
The correct answer is A. Create columnstore indexes. Columnstore indexes are purpose-built for analytical workloads and dramatically accelerate data warehouse queries by storing data column-by-column, enabling efficient compression and batch-mode execution.
Question
You need to improve the performance of data warehouse queries. What should you do?
Options
- ACreate columnstore indexes.
- BCreate clustered indexes.
- CCreate indexed views.
- DCreate bitmap indexes.
How the community answered
(30 responses)- A93% (28)
- C3% (1)
- D3% (1)
Why each option
Columnstore indexes are purpose-built for analytical workloads and dramatically accelerate data warehouse queries by storing data column-by-column, enabling efficient compression and batch-mode execution.
Columnstore indexes store data in a columnar format rather than row-based format, which is optimal for the large-scale aggregation and scan queries typical of data warehouse workloads. SQL Server uses batch-mode execution with columnstore indexes, processing thousands of rows at once and achieving significantly higher throughput. This makes them the standard recommendation for improving data warehouse query performance.
Clustered indexes are optimized for OLTP row-level lookups and point queries, not for the full-table scans and aggregations common in data warehouse queries.
Indexed views pre-aggregate specific query patterns but require exact query matching and do not provide the broad columnar storage and compression benefits needed for general data warehouse query acceleration.
Bitmap indexes are used in some database platforms like Oracle for low-cardinality columns, but SQL Server does not support bitmap indexes as a standalone index type, making this option invalid in this context.
Concept tested: Columnstore indexes for data warehouse performance
Source: https://learn.microsoft.com/en-us/sql/relational-databases/indexes/columnstore-indexes-overview
Topics
Community Discussion
No community discussion yet for this question.