exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 34 discussion

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

You are designing a slowly changing dimension (SCD) for supplier data in an Azure Synapse Analytics dedicated SQL pool.
You plan to keep a record of changes to the available fields.
The supplier data contains the following columns.

Which three additional columns should you add to the data to create a Type 2 SCD? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. surrogate primary key
  • B. effective start date
  • C. business key
  • D. last modified date
  • E. effective end date
  • F. foreign key
Show Suggested Answer Hide Answer
Suggested Answer: ABE 🗳️

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
ItHYMeRIsh
Highly Voted 3 years, 2 months ago
Selected Answer: ABE
The answer is ABE. A type 2 SCD requires a surrogate key to uniquely identify each record when versioning. See https://docs.microsoft.com/en-us/learn/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types under SCD Type 2 “ the dimension table must use a surrogate key to provide a unique reference to a version of the dimension member.” A business key is already part of this table - SupplierSystemID. The column is derived from the source data.
upvoted 128 times
Bouhdy
5 months, 3 weeks ago
Correct, the answer is ABE indeed ! Type 2 SCD involves keeping a full history of changes to the data by creating new records for changes rather than overwriting old data. Each version of the record is identified by a surrogate key and is valid for a specific period, defined by the effective start and end dates.
upvoted 1 times
...
Achu24
2 years, 2 months ago
Correct
upvoted 4 times
...
...
CHOPIN
Highly Voted 3 years, 1 month ago
Selected Answer: BCE
WHAT ARE YOU GUYS TALKING ABOUT??? You are really misleading other people!!! No issue with the provided answer. Should be BCE!!! Check this out: https://docs.microsoft.com/en-us/sql/integration-services/data-flow/transformations/slowly-changing-dimension-transformation?view=sql-server-ver15 "The Slowly Changing Dimension transformation requires at least one business key column." [Surrogate key] is not mentioned in this Microsoft documentation AT ALL!!!
upvoted 24 times
dev2dev
3 years, 1 month ago
Search for Business Keys in that page. and make sure you wear specs :D
upvoted 4 times
...
assU2
3 years, 1 month ago
Yes, because SupplierSystemID is unique. But Microsoft questions are terribly misleading here. People think that SupplierSystemID is business key because of Supplier in it. Also, there are some really not good and not sufficient examples on Learn. See https://docs.microsoft.com/en-us/learn/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types
upvoted 1 times
practia
7 months ago
https://learn.microsoft.com/en-us/training/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types Type 2 SCD: "The table must also define a surrogate key because the business key (in this instance, employee ID) won't be unique."
upvoted 1 times
...
Mad_001
2 years, 12 months ago
I don't understand. 1) What in your opinion should then be the business key. Can you explain please. 2) SupplierSysteID ist uniqe in the source system. Is there a definition that the column need to be unique also in the DataWarehouse? If no, there ist the possibility to use it as business key. Am I wrong?
upvoted 4 times
Onobhas01
2 years, 10 months ago
No you're not wrong, the unique identifier form the ERP system is the Business Key
upvoted 3 times
...
...
...
muove
2 years, 6 months ago
https://www.mssqltips.com/sqlservertip/5602/why-surrogate-keys-are-needed-for-a-sql-server-data-warehouse/
upvoted 1 times
...
SHENOOOO
2 years ago
https://docs.microsoft.com/en-us/learn/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types Under Type 2 SCD, it indicates that it must have a surrogate key
upvoted 3 times
...
...
IMadnan
Most Recent 1 week ago
Selected Answer: ABE
The answer is ABE. A type 2 SCD requires a surrogate key to uniquely identify each record when versioning.
upvoted 1 times
...
The_OTC
1 month, 4 weeks ago
Selected Answer: BDE
Why not D: Last Modified Date ??????
upvoted 1 times
...
EmnCours
2 months, 3 weeks ago
Selected Answer: ABE
Correct Answer: ABE
upvoted 1 times
...
jarobdataeng
5 months, 2 weeks ago
In my humble opinion the SupplierSystemID column is the business key: it remains an IDENTIFY column to represent the surrogate key
upvoted 1 times
...
iceberge
7 months ago
Copilot Sent by Copilot: To create a Type 2 Slowly Changing Dimension (SCD) in Azure Synapse Analytics, you should add the following three columns: A. Surrogate primary key This uniquely identifies each version of a record, allowing you to track changes over time. B. Effective start date This indicates when a particular version of the record became active. E. Effective end date This indicates when a particular version of the record was superseded by a new version. These columns help maintain historical data by creating new records for each change, rather than updating existing records. This way, you can track the history of changes to the supplier data.
upvoted 1 times
...
Okkier
7 months, 3 weeks ago
Selected Answer: AB
The surrogate key is a must, so the proposed answer is incorrect in my view. The start date and end date for each record have always been an over-design in my view. This means that you have to maintain both records. The latest record of the set with the same business key is the latest record, and you only need one date, the valid from date, in that row. I have long stopped versioning with valid from and valid to dates. You can easily use a simple lag function to grab a previous valid to date for the previous record, which is then the valid from date for the latest record. So why still use both dates?
upvoted 2 times
...
sergio_eduardo
9 months ago
Selected Answer: ABE
The answer is ABE, you need subrogate key,
upvoted 1 times
...
codedev91
9 months, 3 weeks ago
Selected Answer: ABE
ABE SCD Type 2 doesn't work with business key it requires a surrogate key to uniquely identify each record when versioning., for example - an employee can have a unique key(i.e. Business key) in the organization, but when you create SCD Type 2, you need to preserve historical data, hence then even a unique key of an Employee can't uniquely different the record but Surrogate key will do it.
upvoted 2 times
...
Dusica
9 months, 4 weeks ago
ABE; SupplierSystemId is a business key
upvoted 1 times
...
olayvo
10 months, 1 week ago
I think ABE, see as below: "A Type 2 SCD supports versioning of dimension members. Often the source system doesn't store versions, so the data warehouse load process detects and manages changes in a dimension table. In this case, the dimension table must use a surrogate key to provide a unique reference to a version of the dimension member. It also includes columns that define the date range validity of the version (for example, StartDate and EndDate) and possibly a flag column (for example, IsCurrent) to easily filter by current dimension members." https://learn.microsoft.com/en-us/training/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types
upvoted 1 times
...
dgerok
11 months ago
Selected Answer: ABE
Surrogate primary key (ensure to include edited records) - A, effective start date - B, effective end date - E
upvoted 2 times
...
ulrom
11 months ago
Should be ABE. According to a Microsoft learning SCD Type 2 requires a surrogate key. "A Type 2 SCD supports versioning of dimension members. Often the source system doesn't store versions, so the data warehouse load process detects and manages changes in a dimension table. In this case, the dimension table must use a surrogate key to provide a unique reference to a version of the dimension member." https://learn.microsoft.com/en-us/training/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types
upvoted 2 times
...
j888
1 year ago
The surrogate key is an artificially generated key, usually an incremental or globally unique identifier. Business key derived from the actual business data and has business meaning. Examples could include a product code, customer ID, employee ID, or any other identifier that has relevance in the business context. I think this is it's business key Effective end and start date
upvoted 1 times
...
rocky48
1 year ago
Selected Answer: ABE
Selected Answer: ABE The answer is ABE. A type 2 SCD requires a surrogate key to uniquely identify each record when versioning. See https://docs.microsoft.com/en-us/learn/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types under SCD Type 2 “ the dimension table must use a surrogate key to provide a unique reference to a version of the dimension member.” A business key is already part of this table - SupplierSystemID. The column is derived from the source data.
upvoted 2 times
...
blazy001
1 year, 2 months ago
I'm working now more then 13years with this stuff, ABE is correct. CHOPIN is wrong. a 2 SCD needs a unique ID, this is the surrogate key, besides, in the table given, there is already a business key , is the first column A business key is NOT unique in an 2 SCD hallo
upvoted 3 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