exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 72 discussion

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

You have an Azure Synapse Analytics dedicated SQL pool named pool1.

You plan to implement a star schema in pool and create a new table named DimCustomer by using the following code.



You need to ensure that DimCustomer has the necessary columns to support a Type 2 slowly changing dimension (SCD).

Which two columns should you add? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

  • A. [HistoricalSalesPerson] [nvarchar] (256) NOT NULL
  • B. [EffectiveEndDate] [datetime] NOT NULL
  • C. [PreviousModifiedDate] [datetime] NOT NULL
  • D. [RowID] [bigint] NOT NULL
  • E. [EffectiveStartDate] [datetime] NOT NULL
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
aditya816
Highly Voted 1 year, 10 months ago
Selected Answer: BE
Surrogate is already there as customerkey column
upvoted 17 times
laurasscastro
1 year, 9 months ago
that's the business key, not the surrogate key. If a new record is generated, there would be a duplicate key. SK is necessary to identify the record
upvoted 8 times
phydev
1 year, 3 months ago
No, the 'CustomerKey' is the Surrogate Key. Moreover, a Business Key also already exists in DimCustomer table by the name 'CustomerSourceID'. So, B&E are the correct options.
upvoted 3 times
...
...
...
[Removed]
Highly Voted 1 year, 9 months ago
Selected Answer: BD
I think, there is already a column called InsertedDate, therefore E is not necessary. So we just need another column to track the end date, which is B. And RowID should be a surrogate key in this case.
upvoted 11 times
jiriz
1 year, 4 months ago
The date of insertion and the expiration date from when to when is something else. You can insert data now, but either with future validity or with past validity (correcting errors, for example). So options : BE
upvoted 7 times
...
...
JustImperius
Most Recent 3 weeks, 2 days ago
Selected Answer: BD
Its a bad question. Looking at the table creation query CustomerKey is not clearly a surrogate key due to the lack of IDENTITY or NEWID() etc. You cannot have a SCD 2 table without a surrogate key. So assuming CustomerKey is not a surrogate key (due to the evidence provided in the query) you need that -> D We only have one spot left. I would prefer to have both effective start and end date but if we had to choose the choice is effectiveEndDate because InsertedDate can act as the defacto effectiveStartDate -> B If you can prove to me the CustomerKey is a surrogate key I will change my mind. The code says no. And before you tell me CustomerSourceId is the business key I would say the CustomerSourceId in the context of a DimCustomer table likely represents an identifier used to link the customer record to its original source system. But its really all conjecture...go with the code and the code says that there ain't no surrogate key present.
upvoted 1 times
PreQL
2 days, 17 hours ago
You're overcomplicating things. If it needs to be an identity, why is answer D just a BIGINT? Why is your surrogate key a BIGINT; nothing in the question mentions any volumes for you to be concerned of running out of values. Secondly, it is not good practice to "kind-of" implement a model because you have columns that seem similar. Inserted data and EffectiveStartDate serve different purposes. Are your EffectiveStartDate and InsertedDate the same for late arriving rows?
upvoted 1 times
...
...
monakl23
2 months, 1 week ago
Selected Answer: BE
Answer: BE. Link - https://learn.microsoft.com/en-us/training/modules/populate-slowly-changing-dimensions-azure-synapse-analytics-pipelines/3-choose-between-dimension-types
upvoted 1 times
...
EmnCours
2 months, 2 weeks ago
Selected Answer: BE
Correct Answer: BE
upvoted 1 times
...
ahana1074
5 months, 1 week ago
wrong answer by Xam topic correct answer with solution is-: [EffectiveStartDate] [datetime] NOT NULL: This column tracks when the current record started being valid, helping to define the validity period of the data. [EffectiveEndDate] [datetime] NOT NULL: This column marks the end of the record's validity period when a new version of the data is inserted. These two columns will allow you to differentiate between active and historical records and handle Type 2 SCD effectively. BE
upvoted 1 times
...
f2a9aa5
6 months, 3 weeks ago
We need a surrogate key. The Inserteddate is NOT NULL, so will act as EffectiveStartDate. However, ModifiedDate is also NOT NULL, so it cannot work as EffectiveEndDate because the current record must have NULL for its EffectiveEndDate. So, we need EffectiveEndDate. Answer: D,E.
upvoted 1 times
...
DanielCruz
7 months ago
the right answer depends on a few topics not clear: - CustumerKey may be a surrogate key? - InsertedDate may be a the "EffectiveStartDate" - modifiedDate may be the "EffectiveEndDate"
upvoted 1 times
...
sergio_eduardo
8 months, 2 weeks ago
Selected Answer: BE
The subrogatekey is already
upvoted 1 times
...
MBRSDG
10 months, 2 weeks ago
Selected Answer: BD
B --> end date is missing, and required by SCD2 D --> (not E), RowID is required since in SCD2 you're adding the same CustomerID twice, even with a different end date. So, you need a way to uniquely identify a row in the table, that's going no longer to be the customer identifier in general.
upvoted 5 times
...
AbhiJain1993
10 months, 2 weeks ago
It should be BD. If CustomerKey was surrogate key then IDENTITY should have been mentioned in Column definition.
upvoted 2 times
...
sdg2844
1 year, 1 month ago
Selected Answer: BE
There is already a hash key that serves as the surrogate, if I'm not mistaken. Inserted and modified are probably dates from the source data, not from the work being done here, so you need to add the start/end dates.
upvoted 2 times
...
jiriz
1 year, 4 months ago
Selected Answer: BE
The date of insertion and the expiration date from when to when is something else. You can insert data now, but either with future validity or with past validity (correcting errors, for example). So options : BE
upvoted 4 times
...
hassexat
1 year, 5 months ago
Selected Answer: BE
B and E
upvoted 1 times
...
AvSUN
1 year, 5 months ago
B and D we need a unique row identifier
upvoted 2 times
...
kkk5566
1 year, 5 months ago
B and D ,its a star schema on which has a fact table include a customerID property.
upvoted 1 times
kkk5566
1 year, 5 months ago
after think twice ,B&E
upvoted 1 times
...
...
Deeksha1234
1 year, 6 months ago
B and D makes more sense, since inserted date is there already
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