exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 4 question 59 discussion

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

HOTSPOT
-

You have an Azure Synapse Analytics dedicated SQL pool that contains a table named Sales.Orders. Sales.Orders contains a column named SalesRep.

You plan to implement row-level security (RLS) for Sales.Orders.

You need to create the security policy that will be used to implement RLS. The solution must ensure that sales representatives only see rows for which the value of the SalesRep column matches their username.

How should you complete the code? To answer, select the appropriate options in the answer area.

Show Suggested Answer Hide Answer
Suggested Answer:

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
Alongi
6 months, 1 week ago
Correct
upvoted 3 times
...
ArdiShah
8 months, 1 week ago
Correct
upvoted 3 times
...
Happynewyear1001
9 months, 3 weeks ago
-- Create schema CREATE SCHEMA Security; GO -- Create function CREATE FUNCTION Security.tv_securitypredicate (@SalesRep AS nvarchar(50)) RETURNS TABLE WITH SCHEMABINDING AS RETURN SELECT 1 AS tv_securitypredicate_result WHERE @SalesRep = USER_NAME(); GO -- Create security policy CREATE SECURITY POLICY SalesFilter ADD FILTER PREDICATE Security.tv_securitypredicate(SalesRep) ON Sales.Orders WITH (STATE = ON);
upvoted 4 times
...
jongert
10 months ago
Correct.
upvoted 4 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