exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 4 question 33 discussion

Actual exam question from Microsoft's DP-203
Question #: 33
Topic #: 4
[All DP-203 Questions]

You have a partitioned table in an Azure Synapse Analytics dedicated SQL pool.
You need to design queries to maximize the benefits of partition elimination.
What should you include in the Transact-SQL queries?

  • A. JOIN
  • B. WHERE
  • C. DISTINCT
  • D. GROUP BY
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
elimey
Highly Voted 3 years, 3 months ago
correct
upvoted 9 times
...
SG1705
Highly Voted 3 years, 4 months ago
Why ??
upvoted 7 times
IgorLacik
3 years, 4 months ago
Maybe this? https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics-parallelization I think I read somewhere in the docs that you cannot apply complex queries on partition filtering, cannot find it though (not much help I guess, but hopefully better than nothing)
upvoted 1 times
...
okechi
3 years, 4 months ago
Why ?? Because When you add the "WHERE" clause to your T-SQL query it allows the query optimizer accesses only the relevant partitions to satisfy the filter criteria of the query - which is what partition elimination is all about.
upvoted 44 times
noranathalie
2 years, 12 months ago
In question 2, we just mentionned to not use the where condition columns to create partitions.. so the logic is unclear for me..
upvoted 2 times
noranathalie
2 years, 11 months ago
please disregard my comment above. Partitioning is different from hash-column, so the criterias are different
upvoted 4 times
...
lcss27
6 months, 1 week ago
I think you mean distributions instead of partitions. For example it is recommended to use the Date column for partitions but not for distributions.
upvoted 1 times
...
...
...
...
imatheushenrique
Most Recent 1 month, 1 week ago
Selected Answer: B
B. Where to "eliminate" some partitions is the best option
upvoted 1 times
...
kkk5566
1 year, 1 month ago
Selected Answer: B
correct
upvoted 1 times
...
vctrhugo
1 year, 4 months ago
Selected Answer: B
To maximize the benefits of partition elimination in Azure Synapse Analytics dedicated SQL pool, you should include the WHERE clause in your Transact-SQL queries. The WHERE clause allows you to specify conditions that filter the rows returned by a query. When designing queries for partitioned tables, you can include predicates in the WHERE clause that align with the partitioning scheme. By doing so, the query optimizer can leverage partition elimination to exclude unnecessary partitions from the query execution plan. Partition elimination is the process of excluding partitions from query processing based on the predicates specified in the WHERE clause. By eliminating partitions that do not contain relevant data, the query performance can be significantly improved.
upvoted 2 times
...
Deeksha1234
2 years, 2 months ago
correct, agree with okechi
upvoted 1 times
...
dsp17
2 years, 3 months ago
100% Correct. Think of it this way, you have 36 partitions over Month column for a table. You are interested in a specific month. so in WHERE clause of your select statement, you will give specific month to "eliminate" other 35 partitions scan.
upvoted 4 times
...
ploer
2 years, 8 months ago
A is surely true. But B also. If you have two tables small a and big B and you're joining them on condition a.some_column = b.some_column big table B would be filtered by the values found in a. An if B is partitioned on "some_column" we have the same effect as with the where clause.
upvoted 1 times
...
kilowd
2 years, 9 months ago
Selected Answer: B
B is Correct Data partition elimination refers to the database server's ability to determine, based on query predicates
upvoted 1 times
...
Canary_2021
2 years, 10 months ago
what's the difference between distribution and partition? I don't find any doc online to describe it clearly. • Horizontal partitioning divides a table into multiple tables that contain the same number of columns. • A distributed table appears as a single table, but the rows are actually stored across 60 distributions. If a table have both distribution and Horizontal partition, how are data stored in SQL? For example a customer table, hash-distributed by region and Horizontal Partitioned by year of the activation data.
upvoted 2 times
sparkchu
2 years, 6 months ago
distribution is a generally used technique for Massive Distributed Computing. we explicitly decide which distribution pattern to be used in Azure DWH, while Hadoop/Hive automatically distributes the table when created.
upvoted 1 times
...
Lucky_me
2 years, 9 months ago
https://stackoverflow.com/questions/51677471/what-is-a-difference-between-table-distribution-and-table-partition-in-sql/51677595
upvoted 4 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago