exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 4 question 11 discussion

Actual exam question from Microsoft's DP-300
Question #: 11
Topic #: 4
[All DP-300 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. Create a date dimension table that has an integer key in the format of YYYYMMDD.
  • C. Use built-in SQL functions to extract date attributes.
  • D. Use integer columns for the date fields.
  • E. Use DateTime columns for the date fields.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Why use a Date Dimension Table in a Data Warehouse.
The Date dimension is one of these dimension tables related to the Fact. Here is a simple Data Diagram for a Data Mart of Internet Sales information for the
Adventure Works DW database which can be obtained for free from CodePlex or other online sources.

The relationship is created by the surrogate keys columns (integer data type) rather than the date data type.
The query users have to write against a Data Mart are much simpler than against a transaction database. There are less joins because of the one to many relationships between the fact dimension table(s). The dimension tables are confusing to someone who has been normalizing databases as a career. The dimension is a flattened or de-normalized table. This creates cases of duplicate data, but the simplistic query overrides the duplicate data in a dimensional model.
Reference:
https://www.mssqltips.com/sqlservertip/3117/defining-role-playing-dimensions-for-sql-server-analysis-services/ https://community.idera.com/database-tools/blog/b/community_blog/posts/why-use-a-date-dimension-table-in-a-data-warehouse

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
Ciupaz
Highly Voted 1 year, 1 month ago
This is for DP-203 exam.
upvoted 5 times
CloudTech@2023
9 months, 3 weeks ago
Why DP203?
upvoted 2 times
OBIJUAN88
7 months, 2 weeks ago
It talks about Data Warehouse, is out of scope
upvoted 1 times
...
...
...
HSQL
Most Recent 9 months, 2 weeks ago
This is for DP-203 exam
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 ...