exam questions

Exam DA-100 All Questions

View all questions & answers for the DA-100 exam

Exam DA-100 topic 8 question 1 discussion

Actual exam question from Microsoft's DA-100
Question #: 1
Topic #: 8
[All DA-100 Questions]

You need to provide a solution to provide the sales managers with the required access.
What should you include in the solution?

  • A. Create a security role that has a table filter on the Sales_Manager table where username = UserName().
  • B. Create a security role that has a table filter on the Region_Manager table where sales_manager_id = UserPrincipalName().
  • C. Create a security role that has a table filter on the Sales_Manager table where name = UserName().
  • D. Create a security role that has a table filter on the Sales_Manager table where username = sales_manager_id.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
brieucboonen1
Highly Voted 4 years, 1 month ago
Correct answer is A because username() -> varchar
upvoted 64 times
brieucboonen1
4 years, 1 month ago
and in SalesManager tab
upvoted 2 times
...
AnetaK
4 years, 1 month ago
I thought in RLS we use the UserPrincipalName() function.
upvoted 3 times
AnetaK
4 years, 1 month ago
Well, now I see that this article does not fully cover the topic. https://docs.microsoft.com/en-us/learn/modules/row-level-security-power-bi/3-dynamic-method
upvoted 1 times
...
...
Jajabink
3 years, 11 months ago
The Power BI DAX USERNAME() function helps to return the user domain login with the form of (Domain\User) in the locality or your local system. The Power BI DAX USERPRINCIPALNAME() function helps to return the user principal name with the form of (User’s login credential or Preeti@<tenant>.onmicrosoft.com) in the Power BI Online Service. Assuming username in the table contains Domain\User data, answer is A.
upvoted 10 times
...
...
WillyMac
Highly Voted 3 years, 12 months ago
It can`t be B. Region_Manager Table does not contain a column named: "sales_manager_id".
upvoted 10 times
D24G
3 years, 11 months ago
THIS! so the answer must be A in my opinion
upvoted 2 times
...
...
Lina90
Most Recent 2 years, 8 months ago
For answer A: does this work in Power BI service?
upvoted 1 times
ismailqtr
2 years, 8 months ago
No, you setup RLS first as desktop (whether its static or dynamic) then you go to PBI service to grant permissions using the RLS group that you created in desktop.
upvoted 1 times
...
...
Ashishrao666
2 years, 9 months ago
Selected Answer: A
A is the right answer. Principle will return email address
upvoted 1 times
...
Ashishrao666
2 years, 9 months ago
Selected Answer: A
I think it's A
upvoted 1 times
...
edriska1
2 years, 9 months ago
answer A exam 7/11/22
upvoted 1 times
...
backuptrap
3 years ago
Yes A, because it's a varchar, but why not name. It's a varchar to, so why ?
upvoted 2 times
...
TechDiva
3 years, 1 month ago
I got it on my exam 03/17/2022. 90-95% questions were from here. 61 questions in 100 min. All 3 case studies that appeared in exam, where from here.
upvoted 2 times
TechDiva
3 years, 1 month ago
Answered: A
upvoted 1 times
...
Lollipop14527
3 years, 1 month ago
Same here on 18/03/2022. Only 2 new questions.
upvoted 3 times
[Removed]
2 years, 9 months ago
Yalanina sohuyum
upvoted 1 times
...
...
...
Hazemnz
3 years, 2 months ago
Selected Answer: A
Correct answer is A username = UserName() ---> username = (Domain\User)
upvoted 2 times
...
Ashley090521
3 years, 2 months ago
on exam 3/1/2022
upvoted 1 times
...
PatrickStr
3 years, 4 months ago
on exam 12/10/2021
upvoted 1 times
...
aguilartu1
3 years, 5 months ago
on exam - Nov 11, 2021. my answer: Create a security role that has a table filter on the Sales_Manager table where username = UserName().
upvoted 4 times
...
kcwood94
3 years, 6 months ago
On exam 10/14/21
upvoted 1 times
...
Charley92
3 years, 10 months ago
USERNAME Returns the domain and login of the user in the domain\login format. USERPRINCIPALNAME Depending on how the Active Directory was set up, this function usually returns the email address of a user.
upvoted 3 times
...
PortlandFighters
3 years, 10 months ago
The correct answer is A. The suggested answer B is incorrect. Since data type of sales_manager_id is integer while UserPrincipalName() will return the user login email address which is a varchar data type. The where clause in answer B will never works. For the where clause in answer A, Username() will return the login credential in Power BI service, that is the email used to login. This can match with the username in the Sales_Manager table. Similar reason for answer C and D, the where clause will not work too. The only answer that will work is A. Thus, the answer is definitely A.
upvoted 3 times
...
wellingtonluis
3 years, 10 months ago
There is No Sales_Manager table in de study case.
upvoted 1 times
...
rick8213
3 years, 11 months ago
B is indeed correct, for this reason: "Litware uses Azure Active Directory (Azure AD) to authenticate users." When Azure AD is set up, USERPRINCIPALNAME() will return the domain e-mail address
upvoted 4 times
MayurD
3 years, 11 months ago
Your answer would have been correct if option B is using email = userprincipalname(). So in this case, the closest correct answer from the provided option is D.
upvoted 1 times
FRITTEN2PIET
3 years, 11 months ago
You both are wrong! With you approaches you try to match an ID = Integer with the string/varchar outcome that the function USERNAME() / USERPRINCIPALNAME() produces. The only right answer is A, becaus you match the username as varchar/string with the varchar/string outcome from USERNAME()
upvoted 2 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