
Answer-first summary for fast verification
Answer: On the master database, execute a query against the sys.dm_pdw_nodes_os_performance_counters dynamic management view.
## Detailed Explanation To determine the size of the transaction log file for each distribution in Azure Synapse Analytics (formerly SQL Data Warehouse), the optimal approach is to query the `sys.dm_pdw_nodes_os_performance_counters` dynamic management view. ### Why Option D is Correct **Option D** provides the most accurate and distribution-specific transaction log size information because: - **Distribution-Level Granularity**: Azure Synapse Analytics uses a massively parallel processing (MPP) architecture where data is distributed across multiple compute nodes. Each distribution has its own transaction log, and `sys.dm_pdw_nodes_os_performance_counters` provides performance counter data at the node/distribution level. - **Specific Transaction Log Metrics**: This DMV contains the `Log File(s) Used Size (KB)` counter, which directly measures the transaction log size for each distribution database. The query filters for `instance_name like 'Distribution_%'` to target distribution databases specifically. - **Official Microsoft Documentation**: Microsoft's official documentation for Azure Synapse Analytics explicitly recommends using this DMV with the provided query pattern to monitor transaction log size across distributions. ### Why Other Options Are Less Suitable **Option A**: Querying `sys.database_files` on DW1 provides file-level information but doesn't give distribution-specific transaction log sizes. It shows overall database file information rather than per-distribution metrics. **Option B**: Using Azure Monitor logs is not the optimal approach for real-time transaction log size monitoring. While Azure Monitor can collect various metrics, it doesn't provide the granular, per-distribution transaction log size information that the specialized DMV offers. **Option C**: The `Get-AzOperationalInsightsSearchResult` PowerShell cmdlet is designed for querying Log Analytics workspace data, not for directly querying database performance counters. This approach adds unnecessary complexity and doesn't provide the direct, real-time transaction log metrics needed. ### Best Practice Considerations - **Real-Time Monitoring**: The DMV approach provides real-time transaction log size information, which is crucial for proactive capacity management. - **Distribution Awareness**: In MPP systems like Azure Synapse Analytics, monitoring per-distribution metrics is essential since performance bottlenecks can occur at individual distribution levels. - **Proactive Management**: Transaction log monitoring helps prevent issues like log file growth problems and ensures optimal performance across all distributions. This approach aligns with Azure Synapse Analytics best practices for monitoring and managing distributed data warehouse environments.
Ultimate access to all questions.
No comments yet.
Author: LeetQuiz Editorial Team
You have an enterprise data warehouse named DW1 in Azure Synapse Analytics on a server named Server1. You need to determine the size of the transaction log file for each distribution of DW1. What should you do?
A
On DW1, execute a query against the sys.database_files dynamic management view.
B
From Azure Monitor in the Azure portal, execute a query against the logs of DW1.
C
Execute a query against the logs of DW1 by using the Get-AzOperationalInsightsSearchResult PowerShell cmdlet.
D
On the master database, execute a query against the sys.dm_pdw_nodes_os_performance_counters dynamic management view.