Enforce Power BI model security Flashcards

1
Q

What is the main purpose of enforcing model security in Power BI?

A

To restrict data access at the row level, ensuring users see only the data they are authorized to view.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the two types of security roles in Power BI?

A

Static and dynamic security roles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you create a security role in Power BI?

A

By using the Manage Roles feature in Power BI Desktop to define DAX filters for tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between static and dynamic security roles?

A

Static roles apply fixed filters, while dynamic roles use user-specific information to filter data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is it important to test security roles in Power BI?

A

To ensure they correctly restrict data access as intended before deploying the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is row-level security (RLS) in Power BI?

A

A method to restrict data access for given users by using filters to limit the data at the row level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you create a security role in Power BI?

A

In Power BI Desktop, navigate to Modeling > Manage Roles and define DAX filters on tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of testing security roles?

A

To ensure the roles are correctly restricting access before publishing the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are dynamic security roles in Power BI?

A

Roles that use DAX functions to filter data based on user information, allowing for user-specific data access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What function can be used to create dynamic security in Power BI?

A

The USERPRINCIPALNAME() function, which returns the user login name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of the LOOKUPVALUE function in dynamic RLS?

A

It retrieves a value from a table based on the result of a search condition, used to match user information with data table columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can you assign roles to users in Power BI Service?

A

By publishing the report to Power BI Service, navigating to the dataset, and assigning roles in the “Security” settings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Can RLS be tested in Power BI Desktop?

A

Yes, by using the “View as Roles” feature to simulate different user roles.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a common use case for static RLS?

A

Limiting access to data based on departments, where each department only sees its own data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Object-Level Security (OLS) in Power BI?

A

OLS restricts access to specific tables and columns, as well as their metadata, ensuring users can only see authorized data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you set up OLS in Power BI?

A

Create roles in Power BI Desktop, then add OLS rules using an XMLA endpoint with tools like SSMS or Tabular Editor, and publish the model to Power BI Service.

17
Q

What happens if a user tries to access a restricted table or column in Power BI?

A

The user will receive an error message indicating that the object does not exist.

18
Q

What are the restrictions on using OLS in Power BI?

A

OLS and RLS cannot be mixed in the same role, and table-level security cannot break relationship chains between tables.

19
Q

What is one good practice for defining datasets in Power BI?

A

Strive to define fewer datasets with well-designed roles to simplify management and maintenance.

20
Q

Why should you use dynamic rules for roles in Power BI?

A

Dynamic rules create fewer roles, making a data-driven solution easier to maintain.

21
Q

Where should you apply filters for faster query performance?

A

Apply filters on dimension tables instead of fact tables.

22
Q

Which DAX function is preferred for validating roles in Power BI?

A

Use the USERPRINCIPALNAME function for consistency in both Power BI Desktop and Power BI Service.

23
Q

What is essential to validate in Power BI models?

A

Validate that model design, relationships, and relationship properties are correctly set up.

24
Q

How should RLS and OLS be validated?

A

Rigorously test all roles to ensure proper enforcement of data permissions.

25
Q

Why is it important to use the same credentials in Power BI Desktop and Power BI Service?

A

To ensure consistent data source connections and proper functioning of security roles.