nerdexam
Microsoft

DP-300 · Question #358

SIMULATION In an Azure SQL database named db1, you need to enable page compression on the PK_SalesOrderHeader_SalesOrderID clustered index of the SalesLT.SalesOrderHeader table. To complete this task,

The correct approach is to use ALTER INDEX with REBUILD and DATA_COMPRESSION = PAGE in T-SQL, or through SSMS by right-clicking the index and selecting 'Properties' to set the compression type to 'Page' and rebuilding. Page compression in Azure SQL Database reduces storage by com

Submitted by rania.sa· Mar 6, 2026Implement and manage an Azure SQL environment / Configure and optimize database performance including storage and index compression in Azure SQL Database

Question

SIMULATION In an Azure SQL database named db1, you need to enable page compression on the PK_SalesOrderHeader_SalesOrderID clustered index of the SalesLT.SalesOrderHeader table. To complete this task, sign in to the virtual machine. You may need to use SQL Server Management Studio and the Azure portal. Answer:

Exhibit

DP-300 question #358 exhibit

Explanation

The correct approach is to use ALTER INDEX with REBUILD and DATA_COMPRESSION = PAGE in T-SQL, or through SSMS by right-clicking the index and selecting 'Properties' to set the compression type to 'Page' and rebuilding. Page compression in Azure SQL Database reduces storage by compressing repeated data patterns at the page level, and applying it to a clustered index requires rebuilding the index with the new compression setting. The T-SQL command would be: ALTER INDEX [PK_SalesOrderHeader_SalesOrderID] ON [SalesLT].[SalesOrderHeader] REBUILD WITH (DATA_COMPRESSION = PAGE).

Topics

#Azure SQL Database#Index Compression#T-SQL#Performance Optimization

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice