exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 1 question 14 discussion

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

HOTSPOT -
You have an Azure Synapse Analytics dedicated SQL pool that contains the users shown in the following table.

User1 executes a query on the database, and the query returns the results shown in the following exhibit.

User1 is the only user who has access to the unmasked data.
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: 0 -
The YearlyIncome column is of the money data type.
The Default masking function: Full masking according to the data types of the designated fields
✑ Use a zero value for numeric data types (bigint, bit, decimal, int, money, numeric, smallint, smallmoney, tinyint, float, real).
Box 2: the values stored in the database
Users with administrator privileges are always excluded from masking, and see the original data without any mask.
Reference:
https://docs.microsoft.com/en-us/azure/azure-sql/database/dynamic-data-masking-overview

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
hsetin
Highly Voted 3 years, 1 month ago
user 1 is admin, so he will see the value stored in dbms. 1. 0 2. Value in database
upvoted 113 times
examtopicsofyannick
1 year, 2 months ago
Confirmed. Everything explained here https://learn.microsoft.com/en-us/azure/azure-sql/database/dynamic-data-masking-overview?view=azuresql-mi
upvoted 4 times
...
azurearmy
2 years, 11 months ago
2 is wrong
upvoted 3 times
...
...
rjile
Highly Voted 3 years, 1 month ago
• Use a zero value for numeric data types (bigint, bit, decimal, int, money, numeric, smallint, smallmoney, tinyint, float, real). • Use 01-01-1900 for date/time data types (date, datetime2, datetime, datetimeoffset, smalldatetime, time).
upvoted 37 times
...
gplusplus
Most Recent 6 months, 3 weeks ago
I think the answer is correct as admins dont necessarily have access to ddmed data. 0 / values in db
upvoted 1 times
...
Joanna0
9 months, 2 weeks ago
* Use a zero value for numeric data types (bigint, bit, decimal, int, money, numeric, smallint, smallmoney, tinyint, float, real).
upvoted 1 times
...
hassexat
1 year, 1 month ago
User 1 --> Data stored in the database because this user is server_admin and can access to unmasked data User 2 --> 0 because this user is db_reader and can't access to unmasked data and masked_function is set in default() You have to pay attention to masked_function when a user can't access to unmasked data to know what the user will get in the queries
upvoted 2 times
...
kkk5566
1 year, 1 month ago
1. 0 2. Value stored in database
upvoted 2 times
...
nicky87654
1 year, 9 months ago
Based on the information provided in the scenario: When User2 queries the YearlyIncome column, the values returned will be [XXXX]. This is because User2 has the role of db datareader, which means that they do not have access to the unmasked data, and the data will be masked (replaced with 'XXXX') when they query it. When User1 queries the BirthDate column, the values returned will be [the values stored in the database]. This is because User1 has the role of Server admin, which means that they have access to the unmasked data, and the data will be shown as it is stored in the database when they query it.
upvoted 5 times
fiuel
1 year, 9 months ago
Default masking rule is: For numeric data types use a zero value (bigint, bit, decimal, int, money, numeric, smallint, smallmoney, tinyint, float, real). https://learn.microsoft.com/en-us/sql/relational-databases/security/dynamic-data-masking?view=sql-server-ver16
upvoted 11 times
...
...
vigilante89
1 year, 10 months ago
First case: output will be 0 User2 queries YearlyIncome column which (is_masked = 1) i.e. its confidential thus has very limited access. Since user2 is a simple db reader, the value wouldn't be viewed by the user. Second case: value stored in the database User1 is the admin or superuser with full access to the entire data within the database sys. So he will be able to view the brithdate column (is_masked=1) in the database 'sys'.
upvoted 4 times
...
OldSchool
1 year, 11 months ago
User2 is a reader so he will see 0 querying YearlyIncome with default() mask; User1 is admin and only he will see all stored values
upvoted 1 times
...
Deeksha1234
2 years, 2 months ago
correct
upvoted 5 times
...
azure900test
2 years, 3 months ago
User 1: The value User 2: XXXX see https://docs.microsoft.com/en-us/azure/azure-sql/database/dynamic-data-masking-overview?view=azuresql AND https://www.sqlshack.com/dynamic-data-masking-in-sql-server
upvoted 2 times
[Removed]
4 months, 2 weeks ago
nope, not XXXX because the column is a money type, so 0
upvoted 1 times
...
...
objecto
2 years, 4 months ago
According to https://docs.microsoft.com/en-us/sql/relational-databases/security/dynamic-data-masking?view=sql-server-ver16 "For date and time data types use 01.01.1900 00:00:00.0000000 (date, datetime2, datetime, datetimeoffset, smalldatetime, time)." Data masking as defalut to a date dateime smalldate should be 1900-01-01. Strangely there is no such option. Any ideas anyone?
upvoted 2 times
objecto
2 years, 4 months ago
Damn, User 1 only reads YearlyIncome (not date), so yes 0 is the correct answer
upvoted 2 times
...
...
Dothy
2 years, 5 months ago
1. 0 2. Value in database
upvoted 1 times
...
manan16
2 years, 6 months ago
How user2 can access data as it is masked?
upvoted 1 times
...
manan16
2 years, 6 months ago
Can Someone explain first option as in doc it says 0
upvoted 1 times
...
Mahesh_mm
2 years, 9 months ago
1. 0 (Default values for money data type for masked function will written when queried by user2) 2. Value in database ( As it is queried by user1 who is admin )
upvoted 9 times
...
Milan1988
2 years, 11 months ago
CORRECT
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