exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 2 question 4 discussion

Actual exam question from Microsoft's DP-300
Question #: 4
Topic #: 2
[All DP-300 Questions]

HOTSPOT -
You have an Azure SQL database that contains a table named Customer. Customer has the columns shown in the following table.

You plan to implement a dynamic data mask for the Customer_Phone column. The mask must meet the following requirements:
✑ The first six numerals of each customer's phone number must be masked.
✑ The last four digits of each customer's phone number must be visible.
✑ Hyphens must be preserved and displayed.
How should you configure the dynamic data mask? To answer, select the appropriate options in the answer area.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: 0 -
Custom String : Masking method that exposes the first and last letters and adds a custom padding string in the middle. prefix,[padding],suffix

Box 2: xxx-xxx -

Box 3: 5 -
Reference:
https://docs.microsoft.com/en-us/sql/relational-databases/security/dynamic-data-masking

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
MustafaElmasry
Highly Voted 4 years, 7 months ago
The answer is correct (0,xxx-xx,5), and here is an example of it --Create table Create Table Customers (ID int Primary Key identity(1,1) Not Null, Phone Nvarchar(100)) GO --Load Data insert into Customers Values ('555-555-0173'),('555-505-3124'),('555-689-4321') --Create user CREATE USER TestUser WITHOUT LOGIN; GRANT SELECT ON Customers TO TestUser; -- Test the User in Select data EXECUTE AS USER = 'TestUser'; SELECT * FROM Customers; REVERT; ---Now add Masking ALTER TABLE Customers ALTER COLUMN Phone nvarchar(100) MASKED WITH (FUNCTION= 'partial(0,"xxx-xxx",5)'); --Select the data again using Testuser EXECUTE AS USER = 'TestUser'; SELECT * FROM Customers; REVERT;
upvoted 55 times
studdent
4 years, 6 months ago
Thank you!
upvoted 4 times
...
...
Kasi666
Highly Voted 4 years, 7 months ago
Given Answer is correct, it can be partial(0,"XXX-XXX",5) or partial(0,"XXX-XXX-",4)
upvoted 26 times
valente_sven1
3 years, 8 months ago
But in this case which of the answers in padding string is right? Confusing.
upvoted 1 times
valente_sven1
3 years, 8 months ago
my bad, you are correct. partial(0,"XXX-XXX-", ------> 4). Thank you.
upvoted 1 times
...
...
...
nova24
Most Recent 7 months, 1 week ago
The correct answer is: Exposed Prefix: 0 Padding String: XXX-XXX- Exposed Suffix: 4
upvoted 1 times
...
raavilam
2 years, 6 months ago
Answer is correct: I tried with 'partial(0,"XXX-XXX-",5)' and the result looks like this: XXX-XXX--9876 (With double hyphen)
upvoted 1 times
...
Cindy_Hsu
2 years, 6 months ago
I'm sure the answer is 0,"XXX-XXX-",5
upvoted 1 times
...
Ciupaz
2 years, 7 months ago
You should set Exposed prefix value to 0, because you do not want any of the initial digits from the phone number displayed. Padding string should be: XXX-XXX- Exposed Suffix could be 5, also if you want to display 4 digits.
upvoted 4 times
...
Aggie0702
3 years, 8 months ago
For example: FirstName varchar(100) MASKED WITH (FUNCTION = 'partial(1, "xxxxx", 1)') NULL so the first name :Roberto ->Rxxxxxo prefix and suffix are the number that need to be exposed.
upvoted 3 times
...
JohnCrawford
4 years, 5 months ago
Note that the answer shown in the picture is correct, but the explanation is incorrect because the masking is wrong in the explantion.
upvoted 4 times
yuck
4 years, 3 months ago
Masking is ok, the extra "-" is placed at the end of each answer, so it is not part of the answer. It is confusing though.
upvoted 2 times
...
...
PravinDhote
4 years, 7 months ago
Padding string should be xxx-xxx - but looks to wrongly mentioned answer.
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 ...