exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 4 question 13 discussion

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

You are designing a star schema for a dataset that contains records of online orders. Each record includes an order date, an order due date, and an order ship date.
You need to ensure that the design provides the fastest query times of the records when querying for arbitrary date ranges and aggregating by fiscal calendar attributes.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Create a date dimension table that has a DateTime key.
  • B. Use built-in SQL functions to extract date attributes.
  • C. Create a date dimension table that has an integer key in the format of YYYYMMDD.
  • D. In the fact table, use integer columns for the date fields.
  • E. Use DateTime columns for the date fields.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

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
echerish
Highly Voted 3 years, 10 months ago
Should be C and D
upvoted 65 times
anto69
3 years, 5 months ago
Yup, that makes sense
upvoted 4 times
...
...
GervasioMontaNelas
Highly Voted 3 years, 10 months ago
100% CD
upvoted 14 times
...
7082935
Most Recent 11 months, 2 weeks ago
Selected Answer: CD
While B is a valid solution, it presents a serious performance issue when SQL Server has to dynamically convert DATE datatypes to INTEGER on-the-fly when joining to a date dimension that uses INTEGER for its surrogate key. Therefore, options C and D present the most efficient way of querying/filtering this fact table.
upvoted 1 times
7082935
11 months, 2 weeks ago
Also, the use of built-in SQL functions would require the database to do a full tablescan on the fact table anyways.
upvoted 1 times
...
...
Dusica
1 year, 2 months ago
C and D but also B - should have asked for 3 steps
upvoted 2 times
...
MohamedBI12
1 year, 4 months ago
Selected Answer: CD
that makes sense , we don't use datetime if it's possible for performance
upvoted 1 times
...
Azure_2023
1 year, 5 months ago
Selected Answer: CD
Star schema - Fact and Dim tables - they have to be connected using Date Key (int).
upvoted 1 times
...
kkk5566
1 year, 10 months ago
Selected Answer: CD
C&D. You can see some exapmles from modules of MS' dp-203 training.
upvoted 1 times
...
auwia
2 years ago
Selected Answer: CD
Because of fixed date ranges used to query.
upvoted 2 times
...
BPW
2 years, 1 month ago
Should be A and E
upvoted 2 times
...
esaade
2 years, 3 months ago
Selected Answer: AB
A. Create a date dimension table that has a DateTime key. A date dimension table that has a DateTime key can provide fast query times when querying for arbitrary date ranges and aggregating by fiscal calendar attributes. The DateTime key allows for easy sorting and filtering of dates, and can be used to join with the fact table on the order date, order due date, and order ship date fields. B. Use built-in SQL functions to extract date attributes. Using built-in SQL functions to extract date attributes (such as year, quarter, month, week, day) from the DateTime key in the date dimension table can help with aggregating data by fiscal calendar attributes. This can improve query performance by reducing the amount of data that needs to be scanned and aggregated. Therefore, the correct actions to perform are A and B.
upvoted 2 times
gogosgh
2 years, 2 months ago
we are not querying against time. the fact table has only dates
upvoted 1 times
...
...
XiltroX
2 years, 7 months ago
For sure its CD
upvoted 2 times
...
Xinyuehong
2 years, 8 months ago
Selected Answer: CD
CD with no doubt.
upvoted 2 times
...
Deeksha1234
2 years, 11 months ago
correct - C&D agree with StudentFromAus M
upvoted 4 times
...
StudentFromAus
3 years ago
Selected Answer: CD
THe question has many clues, it states fiscal calendar year and then star schema which hints we need proper fact and dim tables and appropriate date keys to link these.
upvoted 5 times
...
Davico93
3 years ago
Selected Answer: CD
basic knowledge for fact and dim tables
upvoted 3 times
...
AlCubeHead
3 years, 3 months ago
Selected Answer: CD
Who gives these answers?? It's so obviously C and D. You want a Date Dim with an Integer key and the fact table also with that integer key
upvoted 7 times
...
wwdba
3 years, 3 months ago
Should be CD!
upvoted 2 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 ...