You have an Azure Synapse Analytics dedicated SQL pool named Pool1 and a database named DB1. DB1 contains a fact table named Table1. You need to identify the extent of the data skew in Table1. What should you do in Synapse Studio?
A.
Connect to the built-in pool and run DBCC PDW_SHOWSPACEUSED.
B.
Connect to the built-in pool and run DBCC CHECKALLOC.
C.
Connect to Pool1 and query sys.dm_pdw_node_status.
D.
Connect to Pool1 and query sys.dm_pdw_nodes_db_partition_stats.
Use sys.dm_pdw_nodes_db_partition_stats to analyze any skewness in the data.
https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/cheat-sheet#distributed-or-replicated-tables:~:text=Use%20sys.dm_pdw_nodes_db_partition_stats%20to%20analyze%20any%20skewness%20in%20the%20data.
Correct answer is D.
A quick way to check for data skew is to use DBCC PDW_SHOWSPACEUSED, but DBCC PDW_SHOWSPACEUSED is not supported by serverless SQL pool in Azure Synapse Analytics. So A option can't be performed.
https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-distribute
The only correct option here is to check sys.dm_pdw_nodes_db_partition_stats using dedicated SQL pool.
https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/cheat-sheet
DBCC PDW_SHOWSPACEUSED is a command that can be used to show space usage information for a Database in an Azure Synapse Analytics dedicated SQL pool. However, it is not the best option for identifying data skew in a specific table.
A quick way to check for data skew is to use DBCC PDW_SHOWSPACEUSED.
https://learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-distribute
This has been explained by others, but not clear enough to get it. I certainly had to look around and ponder for a bit. So, to give a more lucid explanation for why this is D and why the later question is DBCC PDW_SHOWSPACEUSED , it comes down to the small differences.
You can use DBCC PDW_SHOWSPACEUSED to find the skew, however only on dedicated pools. Well if you are like me, you would be shouting WELLL THE QUESTION SAID DEDICATED POOL DUH. But if you read it carefully, it says connect to the "built-in pool" AKA serverless pool and run DBCC PDW_SHOWSPACEUSED.
Well, we ain't in a serverless pool are we? so that leaves D as the solution.
in the other question the given answers are so
A. Connect to Pool1 and run DBCC PDW_SHOWSPACEUSED.
B. Connect to the built-in pool and run DBCC PDW_SHOWSPACEUSED.
C. Connect to Pool1 and run DBCC CHECKALLOC.
D. Connect to the built-in pool and query sys.dm_pdw_sys_info.
Here we see that db_partition_stats is in a built in, which is a no go, so obviously we use PDW_SHOWSPACEUSED.
Hopefully this help any airheaded kindred spirits.
I think that first we need to connect to Pool 1, this excludes the first two options (and especially DBCC PDW_SHOWSPACEUSED). In the other two options, after connecting to Pool1, we execute query sys.dm_pdw_nodes_db_partition_stats.
Use sys.dm_pdw_nodes_db_partition_stats to analyze any skewness in the data.
ref: https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/cheat-sheet
Firstly, this is for DEDICATED SQL Pool.
Here is what both likely outputs give you:
sys.dm_pdw_nodes_db_partition_stats:
object_id, partition_id, in_row_data_page_count, in_row_used_page_count
These columns are not useful in identifying skew
However, if you're using PDW_SHOWSPACEUSED:
ROWS, RESERVED_SPACE, DATA_SPACE, INDEX_SPACE, UNUSED_SPACE
These columns are definitely useful in identifying skew as you can calculate the Space allocation per row and look at any unused space
Please read the answer options carefully. In options A + B, you connect to the serverless SQL pool, in options C + D, you connect to the dedicated SQL pool.
This section is not available anymore. Please use the main Exam Page.DP-203 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
wuespe
Highly Voted 3 years agonadavw
1 month, 2 weeks agowijaz789
Highly Voted 3 years, 1 month agoItHYMeRIsh
2 years, 10 months agod046bc0
Most Recent 10 months agokkk5566
1 year, 1 month agokkk5566
1 year, 1 month agovctrhugo
1 year, 3 months agovctrhugo
1 year, 3 months agoaemilka
1 year, 6 months agoJG1984
1 year, 3 months agoOkea
1 year, 8 months agoLestrang
1 year, 8 months agoyoungbug
1 year, 9 months agosteve7
1 year, 9 months agoDeeksha1234
2 years, 2 months agoFranz58
2 years, 2 months agoStudentFromAus
2 years, 3 months agoAndushi
2 years, 5 months agoFelixI
2 years, 5 months agoAlCubeHead
2 years, 6 months agoladywhiteadder
2 years, 6 months agoAlCubeHead
2 years, 6 months agoAmsterliese
2 years, 6 months ago