nerdexam
Microsoft

70-465 · Question #172

You need to recommended a solution to minimize the amount of disk resources used by Query1. What should you recommend?

The correct answer is C. Refactor the query into a partitioned view. To minimize disk resources for a query, refactoring it into a partitioned view enables partition elimination, allowing the query optimizer to scan only relevant data subsets.

Submitted by amina.ke· Mar 5, 2026Design and implement database solutions for SQL Server

Question

You need to recommended a solution to minimize the amount of disk resources used by Query1. What should you recommend?

Options

  • ARebuild the index by using FILLFACTOR=100
  • BAdd quantity as an included column to IX_TransHistory_ProductID
  • CRefactor the query into a partitioned view
  • DAdd quantity as a filtered index

How the community answered

(28 responses)
  • A
    18% (5)
  • B
    11% (3)
  • C
    68% (19)
  • D
    4% (1)

Why each option

To minimize disk resources for a query, refactoring it into a partitioned view enables partition elimination, allowing the query optimizer to scan only relevant data subsets.

ARebuild the index by using FILLFACTOR=100

Rebuilding an index with FILLFACTOR=100 minimizes the initial storage footprint of the index by filling pages completely, but it can lead to increased page splits and higher disk I/O during subsequent data modifications, potentially increasing disk resources over time for maintenance rather than optimizing specific query execution disk usage.

BAdd quantity as an included column to IX_TransHistory_ProductID

Adding a column as an included column to an index makes the index covering for certain queries, potentially reducing logical I/O, but it increases the overall physical size of the index on disk because more data is stored within the index, thereby increasing disk resources rather than minimizing them.

CRefactor the query into a partitioned viewCorrect

Refactoring a query into a partitioned view allows SQL Server to utilize partition elimination. This feature ensures that the query optimizer only accesses the specific partitions (member tables) that contain the data relevant to the query's WHERE clause, significantly reducing the total amount of data read from disk and thus minimizing disk resources used by the query.

DAdd quantity as a filtered index

A filtered index reduces the physical size of the index and can improve performance for queries that match the filter predicate, but it primarily minimizes disk resources for the index itself and for specific query subsets, not through a general mechanism like partition elimination to reduce the overall data scanned for a query across a large dataset.

Concept tested: SQL Server Partitioning and Partition Elimination

Source: https://learn.microsoft.com/en-us/sql/relational-databases/partitions/partitioned-tables-and-indexes

Topics

#Query optimization#Disk space optimization#Partitioned views

Community Discussion

No community discussion yet for this question.

Full 70-465 Practice