exam questions

Exam SC-200 All Questions

View all questions & answers for the SC-200 exam

Exam SC-200 topic 3 question 53 discussion

Actual exam question from Microsoft's SC-200
Question #: 53
Topic #: 3
[All SC-200 Questions]

HOTSPOT
-

You have a Microsoft 365 E5 subscription that contains two users named User1 and User2.

You have the hunting query shown in the following exhibit.



The users perform the following actions:

• User1 assigns User2 the Global administrator role.
• User1 creates a new user named User3 and assigns the user a Microsoft Teams license.
• User2 creates a new user named User4 and assigns the user the Security reader role.
• User2 creates a new user named User5 and assigns the user the Security operator role.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

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
estyj
Highly Voted 1 year, 3 months ago
NNY Actions of User1 is project-away will be excluded from results. Only actions of user2 will be shown. https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/projectawayoperator
upvoted 19 times
Tuitor01
4 months, 4 weeks ago
Looks correct to me you'll only see users that were created and subsequently assigned a new role. First proposition creates no user, and teams license is no role. BTW, project-away will just remove the duplicate usernames which are the same since the join operation is on the user field.
upvoted 2 times
...
...
ACSC
Highly Voted 2 years, 3 months ago
Answer is correct.
upvoted 6 times
danb67
1 year, 6 months ago
It really isn't
upvoted 4 times
...
...
ms600
Most Recent 5 months, 3 weeks ago
nyy AddedTime user OperationName RoleAssignmentTime [Time User3 added] User3 (no role assignment) (no assignment) [Time User4 added] User4 Security reader role [Assignment time] [Time User5 added] User5 Security operator role [Assignment time]
upvoted 1 times
...
Max_DeJaV
7 months, 1 week ago
As explained in previous comments, the query detects the creation of a user, which should then create a role assignment. The first part considers "user=target" (who receives the task) and the second part considers "user=caller" (who performs the task), and the "join" operator matches the "user" field. In addition, the "project-away" operator removes the column with the duplicate and automatically created "user1" field after the join (automatic behavior of KQL queries when there is a join of "custom" fields). Given the above considerations, no condition is checked when the order of events is: Creating a new user --> Assigning a role to the new user, by the first user The only valid condition is Creating a new user --> the new user proceeds with the assignment of the role Thus, the correct answer is NNN
upvoted 2 times
...
user636
8 months, 1 week ago
The answer should be N,N,N from my point. In line no. 4 the user is the target resource, which means the user on which the operation is performed. In line no. 7, the user is the caller (who performed the operation/action) In line 7, we are using the "user" for the join operator. Now, if I check the KQL and evaluate the actions provided in the question, the following users would show up in the tables: Table1: user3, user4, user5 Table2: user1, user1, user2, user2 As there is not matching user in both tables, hence no output should be produced. Hopefully these type of questions do not show up, they are time consuming :D
upvoted 2 times
...
smanzana
9 months ago
No No Yes
upvoted 1 times
...
jacobtriestech
9 months, 3 weeks ago
The query will identify the role assignment of User2: No The query will identify the creation of User3: Yes The query will identify the creation of User5: Yes
upvoted 2 times
...
DChilds
1 year ago
First part of the query looks for Add user events in Auditlogs, second part of the query looks for "Create role assignment' events in Azureactivity and third part joins both searches so both parts need to match for the final search result. No - The query is intended to search for user creation events with role assignment, this does not match that. No - Matches first part of the query but not the second. User is assigned a Microsoft Teams license which is not a role. Yes - A new user is created and assigned the Security Operator role which matches both parts of the query.
upvoted 4 times
...
pupugaga
1 year, 5 months ago
N/N/Y for me, theres project-away at the end so the first 2 are actioned by user 1 so not visible, and the last one is actioned by user 2 so therefore visible.
upvoted 5 times
...
chepeerick
1 year, 6 months ago
Correct
upvoted 1 times
...
chepeerick
1 year, 6 months ago
No, No, Yes
upvoted 3 times
...
danb67
1 year, 6 months ago
In order for this to produce results then a user would have to appear in both tables as we are using innerunique(default join kind) Since the 1st part of the query is looking for target resource (the user that was created) and the 2nd part of the query is looking for caller (the user that did the action) Then the only time we would get a hit is if a user that had just been created then performed the add operation. Is this not what this query is looking for? To see if a new user account starts messing with roles/group membership? In this given example none of the newly created users then does and messes with group/roles so no hits here and I double down on N/N/N
upvoted 3 times
danlo
1 year, 5 months ago
correct, the query is looking for a new user creation event then if the same user did a role assignment. It's a very niche query the answer should be N/N/N
upvoted 3 times
...
...
Frankie21
1 year, 6 months ago
Roles assignments are not registered in the Azureactivity table but in the auditing table. Therefore 3 times no!!!
upvoted 1 times
...
donathon
1 year, 8 months ago
NNY for me
upvoted 2 times
donathon
1 year, 8 months ago
Project-Away: Select what columns from the input table to exclude from the output table. > This would means User1's actions would not be shown.
upvoted 1 times
Bjing
1 year, 1 month ago
Project-away will remove the column named user1, it will not remove the record done by user1
upvoted 3 times
...
...
...
danb67
1 year, 9 months ago
Teouba is correct. I just recreated this scenario in a lab. This question is to test your knowledge of Join kinds imo. If you run this command with innerunique which is the default if no join kind is chosen then we do not get any results as different users are returned for each table. Innerunique will show us only results if we have duplicate rows from the left and the right table. In this case we don't. If we chose another Join kind then results will show. If the screenshot is correct then we assume its using innerunique and in that case the answer would be N N N
upvoted 2 times
...
7c0a
1 year, 10 months ago
join kind is not defined so its a default one - innerunique (All deduplicated rows from the left table that match rows from the right table) https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/joinoperator?pivots=azuredataexplorer N - no match in the first table AuditLogs N - Adding license is not a Role assignment, no match in the second table - AzureActivity Y - present in both tables, query returns result
upvoted 2 times
danb67
1 year, 6 months ago
It's N/N/N Why would user two be present in both tables? The 1st part of the query is looking for target resource. Therefore User5 would exist in the 1st table. The 2nd part of the query is looking for the caller (the person that did the assignment) and that would be user 2. So neither user 2 nor user 5 exists in both tables. Therefore using innerunnique would not produce a result as there needs to be a match in both tables. Tested in a lab also.
upvoted 4 times
davidli
1 year, 6 months ago
danb67's explanation is clear and promising. I agree with you.
upvoted 1 times
...
...
...
botesjuan
1 year, 11 months ago
is MS teams license assignment to user3 going to be detected by this part of query? | where OperationName == “Create role assignment”
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago