exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 69 discussion

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

You have an Azure Synapse Analytics dedicated SQL pool.

You need to create a fact table named Table1 that will store sales data from the last three years. The solution must be optimized for the following query operations:

• Show order counts by week.
• Calculate sales totals by region.
• Calculate sales totals by product.
• Find all the orders from a given month.

Which data should you use to partition Table1?

  • A. product
  • B. month
  • C. week
  • D. region
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
AlviraTony
Highly Voted 1 year, 8 months ago
• Show order counts by week. • Calculate sales totals by region. • Calculate sales totals by product. For these, Group By is required while querying, hence cannot be a parition. But fourth one, requires you to use WHERE clause, so month is ideal for a partition
upvoted 44 times
ellala
1 year, 7 months ago
Thanks, this was helpful
upvoted 7 times
...
...
nicky87654
Highly Voted 2 years, 4 months ago
Selected Answer: B
When designing a fact table in a data warehouse, it is important to consider the types of queries that will be run against it. In this case, the queries that need to be optimized include: show order counts by week, calculate sales totals by region, calculate sales totals by product, and find all the orders from a given month. Partitioning the table by month would be the best option in this scenario as it would allow for efficient querying of data by month, which is necessary for the query operations described above. For example, it would be easy to find all the orders from a given month by only searching the partition for that specific month.
upvoted 18 times
...
EmnCours
Most Recent 5 months, 2 weeks ago
Selected Answer: B
Correct Answer: B
upvoted 1 times
...
renan_ineu
8 months, 3 weeks ago
I choose B, partitioning by month. This will make finding all orders for a specific month much faster. It also makes it easier to count orders by week. The other queries, like calculating sales totals by region and product, are simpler and don’t need special partitioning.
upvoted 1 times
...
Nitin9in
1 year, 2 months ago
Partition by week. Partition by month sounds correct, but it is not. If partition by week, then get the four weeks data from 4 partitions. If it is a month, retrieve the month partition and get the data for a week. The first one is simpler than the second one.
upvoted 2 times
...
ELJORDAN23
1 year, 3 months ago
Selected Answer: B
Got this question on my exam on january 17, answer B is correct
upvoted 3 times
...
kkk5566
1 year, 8 months ago
Selected Answer: B
Should be B month.
upvoted 1 times
...
Deeksha1234
1 year, 9 months ago
Selected Answer: B
B is right
upvoted 1 times
...
YikesYikes2023
1 year, 10 months ago
Can someone please link documentation to where this is stated? I feel like any of these categories would be an effective partition strategy as there is a use case for each. I am confused
upvoted 4 times
semauni
1 year, 9 months ago
Same. Every question refers to a different category, so why is month dominant over the others?
upvoted 5 times
...
...
Rossana
2 years ago
Chat GPT: Based on the given usage patterns and requirements, the recommended folder structure would be option B: \DataSource\SubjectArea\YYYY-WW\FileData_YYYY_MM_DD.parquet This structure allows for easy filtering of data by year and week, which aligns with the identified usage pattern of most queries filtering by the current year or week. It also organizes the data by data source and subject area, which simplifies folder security. By using a flat structure, with the data files directly under the year-week folder, query times can be minimized as the data is organized for efficient partition pruning. Option A is similar but includes an additional level of hierarchy for the year, which is unnecessary given the requirement to filter by year-week. Options C, D, and E do not follow a consistent hierarchy, making it difficult to navigate and locate specific data files.
upvoted 2 times
...
rohit
2 years ago
How can we partition by unique months unless we have the year too?
upvoted 2 times
hydmt07
1 year, 5 months ago
If the Month column is the format YYYYMM, this won't be a problem.
upvoted 1 times
...
...
[Removed]
2 years, 3 months ago
Selected Answer: B
Correct
upvoted 1 times
...
groozyn
2 years, 3 months ago
Why B) month and not C) week?
upvoted 3 times
vrodriguesp
2 years, 3 months ago
because it's doing aggregation (like the others answer A and D), instead partitions are powerful for where clause query
upvoted 4 times
...
[Removed]
2 years, 3 months ago
Find all the orders for a given month. Because of the above, monthly partitions are more efficient than weekly partitions. If you have to read all the monthly data anyway, it is better to read one monthly partition than to read four to five weekly partitions.
upvoted 1 times
...
...
DindaS
2 years, 3 months ago
B should be the correct answer here
upvoted 1 times
...
ZIMARAKI
2 years, 4 months ago
Selected Answer: B
Correct
upvoted 1 times
...
MrWood47
2 years, 4 months ago
Answer is correct
upvoted 1 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