DP-700 practice question 5 of 25
You have a Fabric warehouse named DW1. DW1 contains a table that stores sales data and is used by multiple sales representatives. You plan to implement row-level security (RLS). You need to ensure that the sales representatives can see only their respective data. Which warehouse object do you require to implement RLS?
Full set: 129 questionsRow-Level Security (RLS) in a Microsoft Fabric warehouse is implemented by creating a security policy that applies a filter predicate to a table. This predicate logic, which determines whether a user can access a specific row, must be encapsulated within an inline table-valued function (TVF). The function evaluates each row against the current user's context (e.g., USERNAME()) and returns a result that the security policy uses to either show or hide the row. Therefore, a function is the essential T-SQL object required to define the core filtering logic for RLS.
A. STORED PROCEDURE: Stored procedures are used to execute pre-compiled sets of T-SQL statements, not to define the continuous, row-by-row filtering logic required by an RLS security policy.
B. CONSTRAINT: Constraints (e.g., CHECK, PRIMARY KEY) are used to enforce data integrity and rules on the data itself, not to control user access to specific rows.
C. SCHEMA: A schema is a container for organizing database objects and managing object-level permissions (e.g., GRANT SELECT ON SCHEMA::Sales), not for implementing row-level filtering.
1. Microsoft Fabric Documentation
"Row-level security in Fabric data warehousing": This official guide explicitly lists the steps for implementing RLS. Step 2 is: "Create an inline table-valued function to define the filter predicate." This confirms that a function is a required component.
Source: Microsoft Learn
learn.microsoft.com/en-us/fabric/data-warehouse/row-level-security
Section: "Implement row-level security in Fabric Warehouse".
2. Microsoft T-SQL Documentation
"CREATE SECURITY POLICY (Transact-SQL)": The official syntax and documentation for creating the security policy itself show that the ADD FILTER PREDICATE clause requires the name of a function. The documentation states
"The predicate is an inline table-valued function that is bound to the target table."
Source: Microsoft Learn
learn.microsoft.com/en-us/sql/t-sql/statements/create-security-policy-transact-sql?view=sql-server-ver16
Section: "Arguments"
subsection for [ FILTER PREDICATE = ].
3. Microsoft Azure Synapse Analytics Documentation
"Row-Level Security": As Fabric Warehouse is built upon the Synapse engine
this documentation is also applicable. It provides a complete example where a function (dbo.fnsecuritypredicate) is created first to hold the logic before the security policy is applied.
Source: Microsoft Learn
learn.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-row-level-security
Section: "Step 2: Create a function to filter the rows".
Keep practicing
Take the free DP-700 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other DP-700 practice questions
- Question 1You have a Fabric workspace named Workspace1 that contains a notebook named Notebook1. In…
- Question 2You need to recommend a solution for handling old files. The solution must meet the techn…
- Question 3You have a Fabric F32 capacity that contains a workspace. The workspace contains a wareho…
- Question 4You need to implement the solution for the book reviews. Which should you do?
- Question 6Your company has a sales department that uses two Fabric workspaces named Workspace1 and …
- Question 8You have a Fabric workspace that contains a lakehouse and a notebook named Notebook1. Not…
