What should you do?

Posted by: Pdfprep Category: DP-203 Tags: , ,

You have an enterprise data warehouse in Azure Synapse Analytics named DW1 on a server named Server1.

You need to verify whether the size of the transaction log file for each distribution of DW1 is smaller than 160 GB.

What should you do?
A . On the master database, execute a query against the
sys.dm_pdw_nodes_os_performance_counters dynamic management view.

B . From Azure Monitor in the Azure portal, execute a query against the logs of DW1.
C . On DW1, execute a query against the sys.database_files dynamic management view.
D . Execute a query against the logs of DW1 by using the Get-AzOperationalInsightSearchResult PowerShell cmdlet.

Answer: A

Explanation:

The following query returns the transaction log size on each distribution. If one of the log files is reaching 160 GB, you should consider scaling up your instance or limiting your transaction size.

— Transaction log size

SELECT

instance_name as distribution_db,

cntr_value*1.0/1048576 as log_file_size_used_GB, pdw_node_id

FROM sys.dm_pdw_nodes_os_performance_counters

WHERE

instance_name like ‘Distribution_%’

AND counter_name = ‘Log File(s) Used Size (KB)’

References: https://docs.microsoft.com/en-us/azure/sql-data-warehouse/sql-data-warehouse-manage-monitor

Comments (2)

  • Mark Reply

    C.

    January 19, 2022 at 11:18 am
    • Pal Reply

      No it’s a.
      Query:
      — Transaction log size
      SELECT
      instance_name as distribution_db,
      cntr_value*1.0/1048576 as log_file_size_used_GB,
      pdw_node_id
      FROM sys.dm_pdw_nodes_os_performance_counters
      WHERE
      instance_name like ‘Distribution_%’
      AND counter_name = ‘Log File(s) Used Size (KB)’

      May 9, 2022 at 12:06 pm

Leave a Reply

Your email address will not be published.