Microsoft SC-300 Practice Test 48
Question 470
A consent screen displays a scope with user impersonation context. Which permission model is being used?
- Use delegated OAuth scopes rather than app-role application permissions.
- Use one suitable application registration with controlled service principal and user authorization.
- The requested delegated scope is not an application-level tenant-wide mail permission.
- Request a delegated permission for the necessary calendar scope.
Explanation
Correct Answer
A:Delegated scopes describe what a client may do on behalf of the signed-in user.
Incorrect Answers
B:A shared app definition supports many users without duplicating application identities. Delegated scopes describe what a client may do on behalf of the signed-in user.
C:Permission type and scope must match the actual workload and signed-in-user context. Delegated scopes describe what a client may do on behalf of the signed-in user.
D:Delegated permissions operate with both a signed-in user and an app. Delegated scopes describe what a client may do on behalf of the signed-in user.
Question 471
An admin grants an application permission but only an employee sign-in token is requested. What token should be evaluated?
- Acquire a service principal access token using client credentials flow.
- Replace leaked secrets with a certificate or workload federation and secure credential storage.
- Use delegated OAuth scopes rather than app-role application permissions.
- Choose the minimum Graph permissions supported for that group operation.
Explanation
Correct Answer
A:Permission grants and token-flow type must align for application-only access.
Incorrect Answers
B:Application secrets embedded in source code can be copied and are difficult to rotate safely. Permission grants and token-flow type must align for application-only access.
C:Delegated scopes describe what a client may do on behalf of the signed-in user. This matters here because an admin grants an application permission but only an employee sign-in token is requested. What token should be….
D:Avoid broader Directory.ReadWrite.All grants when more restrictive permissions meet requirements. This matters here because an admin grants an application permission but only an employee sign-in token is requested. What token should be….
Question 472
An API expects a user's object ID in a token but client credentials tokens contain no user. What is the cause?
- Require authorized administrator consent for the high-privilege application roles.
- Application-only tokens represent the workload principal, not a delegated human identity.
- Use delegated OAuth scopes rather than app-role application permissions.
- Validate the roles claim for approved application app roles.
Explanation
Correct Answer
B:Client credentials have no interactive user context.
Incorrect Answers
A:Tenant application-role grants are privileged authorizations. This matters here because an API expects a user's object ID in a token but client credentials tokens contain no user. What is the cause.
C:Delegated scopes describe what a client may do on behalf of the signed-in user. This matters here because an API expects a user's object ID in a token but client credentials tokens contain no user. What is the cause.
D:App-only authorizations are typically represented as assigned roles.
Question 473
A tenant wants application permissions to be granted only after a central review. Which action matters?
- Use an appropriate managed identity for the Azure-hosted workload.
- Request a delegated permission for the necessary calendar scope.
- Use delegated OAuth scopes rather than app-role application permissions.
- Require authorized administrator consent for the high-privilege application roles.
Explanation
Correct Answer
D:Tenant application-role grants are privileged authorizations. This matters here because a tenant wants application permissions to be granted only after a central review. Which action matters.
Incorrect Answers
A:Managed identities avoid manual credential maintenance for supported services. This matters here because a tenant wants application permissions to be granted only after a central review. Which action matters.
B:Delegated permissions operate with both a signed-in user and an app. This matters here because a tenant wants application permissions to be granted only after a central review. Which action matters.
C:Delegated scopes describe what a client may do on behalf of the signed-in user. This matters here because a tenant wants application permissions to be granted only after a central review. Which action matters.
Question 474
A developer misreads an API scopes list and grants application roles instead of a user-delegated scope. What must be aligned?
- Choose delegated scopes for user-based API calls and app roles for daemon calls.
- Use application permissions with tenant admin consent as needed.
- Acquire a service principal access token using client credentials flow.
- Set allowed member types for users, applications or both as intended.
Explanation
Correct Answer
A:The access pattern determines permission type, not the similarity of displayed permission names. This matters here because a developer misreads an API scopes list and grants application roles instead of a user-delegated scope.
Incorrect Answers
B:Application permissions allow service principal actions without delegated user context. This matters here because a developer misreads an API scopes list and grants application roles instead of a user-delegated scope.
C:Permission grants and token-flow type must align for application-only access. This matters here because a developer misreads an API scopes list and grants application roles instead of a user-delegated scope.
D:App role definitions specify which principal categories may receive each permission.
Question 475
A custom API needs to let signed-in clients request read-only user data. What should be exposed?
- Define a delegated OAuth scope such as Records.Read.
- Define and assign the intended app roles with allowed member types.
- Use statically consented permissions configured for the requested resource.
- Register the app as single-tenant.
Explanation
Correct Answer
A:Delegated API scopes express per-user client permissions in access tokens.
Incorrect Answers
B:Roles must be exposed on the resource application and assigned to principals.
C:The.default scope resolves preconfigured permissions rather than requesting arbitrary new scopes interactively.
D:Single-tenant audience restricts organizational identities to the home directory. This matters here because a custom API needs to let signed-in clients request read-only user data.
Question 476
A daemon should write to a protected API without a signed-in user. What permission should the API expose?
- Define an application app role for service principal access.
- Request a delegated permission for the necessary calendar scope.
- Verify the token's approved scopes or app roles in addition to membership.
- Assign the app role to the appropriate users, groups or service principals.
Explanation
Correct Answer
A:Application app roles authorize workload-only API calls.
Incorrect Answers
B:Delegated permissions operate with both a signed-in user and an app. This matters here because a daemon should write to a protected API without a signed-in user. What permission should the API expose.
C:Group membership context is not a substitute for API action authorization.
D:Defining a role does not create assignments for every principal. This matters here because a daemon should write to a protected API without a signed-in user. What permission should the API expose.
Question 477
An API receives tokens with the scp claim but checks for app roles. What authorization distinction applies?
- Verify the token's approved scopes or app roles in addition to membership.
- Check delegated scopes through the scp claim.
- Validate issuer, audience and required scopes or roles.
- Remove the secret and redesign with a public-client flow or protected backend.
Explanation
Correct Answer
B:Delegated access tokens generally carry OAuth scope grants in scp. This matters here because an API receives tokens with the scp claim but checks for app roles. What authorization distinction applies.
Incorrect Answers
A:Group membership context is not a substitute for API action authorization. This alternative addresses a token contains an expected group claim but lacks the API permission required for write operations. What should be checked? It does not meet the specified case, which requires check delegated scopes through the scp claim: Delegated access tokens generally carry OAuth scope grants in scp.
C:A valid token for another API must not grant access to an unrelated resource.
D:Browser-distributed code cannot keep client secrets confidential. This matters here because an API receives tokens with the scp claim but checks for app roles. What authorization distinction applies.
Question 478
A protected API supports interactive employee access and scheduled unattended processing. Which TWO permission definitions should it expose for the different callers? (Select TWO.)
- Treat an ID token as an app-only permission grant.
- Define delegated OAuth scopes for signed-in employee clients.
- Omit audience validation because the token is correctly signed.
- Define application app roles for service principals invoking the API without a user.
- Require every daemon to authenticate using a named employee password.
Explanation
Correct Answers
B:Delegated scopes express actions performed with a user context.
D:App roles permit workload-only API calls through application permissions.
Incorrect Answers
A:ID tokens are not the protected API’s application authorization claims.
C:A valid signature does not mean a token was issued for the intended API.
E:Unattended service actions should not depend on shared interactive credentials.
Question 479
A developer adds a new app role and expects existing users to receive it automatically. What extra operation is needed?
- Define an application app role for service principal access.
- Assign the app role to the appropriate users, groups or service principals.
- Use statically consented permissions configured for the requested resource.
- Choose delegated scopes for user-based API calls and app roles for daemon calls.
Explanation
Correct Answer
B:Defining a role does not create assignments for every principal. This matters here because a developer adds a new app role and expects existing users to receive it automatically. What extra operation is needed.
Incorrect Answers
A:Application app roles authorize workload-only API calls. This matters here because a developer adds a new app role and expects existing users to receive it automatically. What extra operation is needed.
C:The.default scope resolves preconfigured permissions instead of requesting arbitrary new scopes interactively.
D:The access pattern determines permission type, not the similarity of displayed permission names. This matters here because a developer adds a new app role and expects existing users to receive it automatically. What extra operation is needed.
Question 480
A resource API checks only whether a token is signed but ignores audience. What validation must be added?
- Validate the roles claim for approved application app roles.
- Use statically consented permissions configured for the requested resource.
- Validate issuer, audience and required scopes or roles.
- Require authorized administrator consent for the high-privilege application roles.
Explanation
Correct Answer
C:A valid token for another API must not grant access to a separate resource.
Incorrect Answers
A:App-only authorizations are typically represented as assigned roles. This matters here because a resource API checks only whether a token is signed but ignores audience. What validation must be added.
B:The.default scope resolves preconfigured permissions rather than requesting arbitrary new scopes interactively. A valid token for another API must not grant access to an unrelated resource.
D:Tenant application-role grants are privileged authorizations. This matters here because a resource API checks only whether a token is signed but ignores audience. What validation must be added.