exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 45 discussion

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

HOTSPOT -
You are building an Azure Synapse Analytics dedicated SQL pool that will contain a fact table for transactions from the first half of the year 2020.
You need to ensure that the table meets the following requirements:
✑ Minimizes the processing time to delete data that is older than 10 years
✑ Minimizes the I/O for queries that use year-to-date values
How should you complete the Transact-SQL statement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: PARTITION -
RANGE RIGHT FOR VALUES is used with PARTITION.
Part 2: [TransactionDateID]
Partition on the date column.
Example: Creating a RANGE RIGHT partition function on a datetime column
The following partition function partitions a table or index into 12 partitions, one for each month of a year's worth of values in a datetime column.
CREATE PARTITION FUNCTION [myDateRangePF1] (datetime)
AS RANGE RIGHT FOR VALUES ('20030201', '20030301', '20030401',
'20030501', '20030601', '20030701', '20030801',
'20030901', '20031001', '20031101', '20031201');
Reference:
https://docs.microsoft.com/en-us/sql/t-sql/statements/create-partition-function-transact-sql

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
gf2tw
Highly Voted 2 years, 4 months ago
Correct
upvoted 25 times
...
OldSchool
Highly Voted 1 year, 5 months ago
Correct answer, giveaway is "RANGE RIGHT"
upvoted 7 times
...
M_Anas_007
Most Recent 6 months, 1 week ago
Have a small doubt. We are creating partition on what field? Shouldn't it be the columnstore index.
upvoted 1 times
hypersam
3 months, 1 week ago
on "TransactionDateId" field, which is the second answer
upvoted 1 times
...
...
kkk5566
7 months, 1 week ago
Partition
upvoted 1 times
...
GodfreyMbizo
1 year, 2 months ago
correct answer given
upvoted 5 times
...
Deeksha1234
1 year, 8 months ago
ans is correct
upvoted 3 times
...
NikeJDI
1 year, 9 months ago
I can see Keyword "Range right for values" pointing to "Partition", then "TransactionDateID" is the column on which partition needs to be done, rather than the TransactionID.
upvoted 4 times
...
gabdu
1 year, 11 months ago
How are we ensuring "Minimizes the processing time to delete data that is older than 10 years"?
upvoted 2 times
Aditya0891
1 year, 10 months ago
while deleting we can use switch partition. It is efficient than delete statement, so partition by date column in good but the question says the TransactionDate as int field which is wrong. It should be date type
upvoted 4 times
allagowf
1 year, 6 months ago
it's a date_ID and it's correct it will be linked to a date table via the date_ID to get the date
upvoted 3 times
...
...
...
wwdba
2 years, 1 month ago
Correct
upvoted 2 times
...
PallaviPatel
2 years, 2 months ago
correct
upvoted 2 times
...
saupats
2 years, 3 months ago
correct
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago