Download Microsoft.MS-600.RealExams.2019-12-29.35q.vcex

Download Exam

File Info

Exam Building Applications and Solutions with Microsoft 365 Core Services
Number MS-600
File Name Microsoft.MS-600.RealExams.2019-12-29.35q.vcex
Size 733 KB
Posted Dec 29, 2019
Download Microsoft.MS-600.RealExams.2019-12-29.35q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

You need to configure the initial login request in the access token JavaScript script. 
Which code segment should you insert at line 01? 


  1. const scopes = ['https://graph.microsoft.com/.default'];
  2. const accessTokenRequest = {
      };
  3. const scopes = ['https://graph.microsoft.com/Files.Read.All',  'https://graph.microsoft.com/Mail.Send.All'];
  4. const accessTokenRequest = {    scopes: ['https://graph.microsoft.com/Files.ReadWrite',    'https://graph.microsoft.com/Mail.Send']
      };
Correct answer: D
Explanation:
Scenario: ADatum identifies the following technical requirements for the planned E-invoicing capabilities:Ensure that all operations performed by E-invoicing against Office 365 are initiated by a user. Require that the user authorize E-invoicing to access the Office 365 data the first time the application attempts to access Office 365 data on the user’s behalf. Reference: https://docs.microsoft.com/en-us/graph/permissions-reference
Scenario: ADatum identifies the following technical requirements for the planned E-invoicing capabilities:
  • Ensure that all operations performed by E-invoicing against Office 365 are initiated by a user. Require that the user authorize E-invoicing to access the Office 365 data the first time the application attempts to access Office 365 data on the user’s behalf. 
Reference: https://docs.microsoft.com/en-us/graph/permissions-reference



Question 2

You need to complete the MSAL.js code for SSO.
Which code segment should you insert at line 06?


  1. storeAuthStateInCookie: false
  2. storeAuthStateInCookie: true
  3. cacheLocation: ‘localStorage’
  4. cacheLocation: ‘sessionStorage’
Correct answer: C
Explanation:
Scenario: Implement single sign-on (SSO) and minimize login prompts across browser tabs.When your application is open in multiple tabs and you first sign in the user on one tab, the user is also signed in on the other tabs without being prompted. MSAL.js caches the ID token for the user in the browser localStorage and will sign the user in to the application on the other open tabs. By default, MSAL.js uses sessionStorage which does not allow the session to be shared between tabs. To get SSO between tabs, make sure to set the cacheLocation in MSAL.js to localStorage. Reference: https://docs.microsoft.com/bs-latn-ba/Azure/active-directory/develop/msal-js-sso
Scenario: Implement single sign-on (SSO) and minimize login prompts across browser tabs.
When your application is open in multiple tabs and you first sign in the user on one tab, the user is also signed in on the other tabs without being prompted. MSAL.js caches the ID token for the user in the browser localStorage and will sign the user in to the application on the other open tabs. 
By default, MSAL.js uses sessionStorage which does not allow the session to be shared between tabs. To get SSO between tabs, make sure to set the cacheLocation in MSAL.js to localStorage. 
Reference: https://docs.microsoft.com/bs-latn-ba/Azure/active-directory/develop/msal-js-sso



Question 3

You need to develop a server-based web app that will be registered with the Microsoft identity platform. The solution must ensure that the app can perform operations on behalf of the user. 
Which type of authorization flow should you use?


  1. authorization code
  2. refresh token
  3. resource owner password
  4. device code
Correct answer: A
Explanation:
In web server apps, the sign-in authentication flow takes these high-level steps:    You can ensure the user's identity by validating the ID token with a public signing key that is received from the Microsoft identity platform endpoint. A session cookie is set, which can be used to identify the user on subsequent page requests. In addition to simple sign-in, a web server app might need to access another web service, such as a REST API. In this case, the web server app engages in a combined OpenID Connect and OAuth 2.0 flow, by using the OAuth 2.0 authorization code flow. Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-app-types
In web server apps, the sign-in authentication flow takes these high-level steps:
 
   
You can ensure the user's identity by validating the ID token with a public signing key that is received from the Microsoft identity platform endpoint. A session cookie is set, which can be used to identify the user on subsequent page requests. 
In addition to simple sign-in, a web server app might need to access another web service, such as a REST API. In this case, the web server app engages in a combined OpenID Connect and OAuth 2.0 flow, by using the OAuth 2.0 authorization code flow. 
Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-app-types



Question 4

You have a single-page application (SPA) named TodoListSPA and a server-based web app named TodoListService. 
The permissions for the TodoList SPA API are configured as shown in the TodoList SPA exhibit. (Click the TodoListSPA tab.) 
 
   
The permissions for the TodoListService API are configured as shown in the TodoListService exhibit. (Click the TodoListService tab.) 
 
   
You need to ensure that TodoListService can access a Microsoft OneDrive file of the signed-in user. The solution must use the principle of least privilege. 
Which permission should to grant?


  1. the Sites.Read.All delegated permission for TodoListService
  2. the Sites.Read.All delegated permission for TodoListSpa
  3. the Sites.Read.All application permission for TodoListSPA
  4. the Sites.Read.All application permission for TodoListService
Correct answer: A
Explanation:
A client application gains access to a resource server by declaring permission requests. Two types are available:"Delegated" permissions, which specify scope-based access using delegated authorization from the signed-in resource owner, are presented to the resource at run-time as "scp" claims in the client's access token. "Application" permissions, which specify role-based access using the client application's credentials/identity, are presented to the resource at run-time as "roles" claims in the client's access token. Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/developer-glossary#permissions
A client application gains access to a resource server by declaring permission requests. Two types are available:
  • "Delegated" permissions, which specify scope-based access using delegated authorization from the signed-in resource owner, are presented to the resource at run-time as "scp" claims in the client's access token. 
  • "Application" permissions, which specify role-based access using the client application's credentials/identity, are presented to the resource at run-time as "roles" claims in the client's access token. 
Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/developer-glossary#permissions



Question 5

You are building a server-based web app that will use OAuth2 and will be registered with the Microsoft identity platform. 
Which two values does the app require to obtain tokens from the Azure Active Directory (Azure AD) authorization endpoint? Each correct answer presents part of the solution. 
NOTE: Each correct selection is worth one point.


  1. the tenant ID
  2. the context token
  3. the application ID
  4. the application secret
  5. the authorization code
Correct answer: CE
Explanation:
C: The required client_id is the Application (client) ID that the Azure portal – App registrations experience assigned to your app.E: The authorization code flow begins with the client directing the user to the /authorize endpoint.    Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
C: The required client_id is the Application (client) ID that the Azure portal – App registrations experience assigned to your app.
E: The authorization code flow begins with the client directing the user to the /authorize endpoint.
 
   
Reference: https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow



Question 6

You develop a web API named WebApi1. 
When validating a token received from a client application, WebApi1 receives a MsalUiRequiredException exception from Azure Active Directory (Azure AD). 
You need to formulate the response that WebApi1 will return to the client application. 
Which HTTP response should you send?


  1. HTTP 307 Temporary Redirect
  2. HTTP 400 Bad Request
  3. HTTP 403 Forbidden
  4. HTTP 412 Precondition Failed
Correct answer: D
Explanation:
The HyperText Transfer Protocol (HTTP) 412 Precondition Failed client error response code indicates that access to the target resource has been denied. This happens with conditional requests on methods other than GET or HEAD when the condition defined by the If-Unmodified-Since or If-None-Match headers is not fulfilled. In that case, the request, usually an upload or a modification of a resource, cannot be made and this error response is sent back. MsalUiRequiredException The "Ui Required" is proposed as a specialization of MsalServiceException named MsalUiRequiredException. This means you have attempted to use a non-interactive method of acquiring a token (e.g. AcquireTokenSilent), but MSAL could not do it silently. this can be because:you need to sign-in you need to consent you need to go through a multi-factor authentication experience. The remediation is to call AcquireTokenInteractive try {  app.AcquireTokenXXX(scopes, account)    .WithYYYY(...)    .ExecuteAsync() } catch(MsalUiRequiredException ex) {  app.AcquireTokenInteractive(scopes)     .WithAccount(account)     .WithClaims(ex.Claims)     .ExcecuteAsync(); } Incorrect Answers:A: A 307 Temporary Redirect message is an HTTP response status code indicating that the requested resource has been temporarily moved to another URI , as indicated by the special Location header returned within the responseB: The 400 Bad Request Error is an HTTP response status code that indicates that the server was unable to process the request sent by the client due to invalid syntax.C: The 403 Forbidden Error happens when the web page (or other resource) that you’re trying to open in your web browser is a resource that you’re not allowed to access.References: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-handling-exceptionshttps://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/exceptions
The HyperText Transfer Protocol (HTTP) 412 Precondition Failed client error response code indicates that access to the target resource has been denied. This happens with conditional requests on methods other than GET or HEAD when the condition defined by the If-Unmodified-Since or If-None-Match headers is not fulfilled. In that case, the request, usually an upload or a modification of a resource, cannot be made and this error response is sent back. 
MsalUiRequiredException 
The "Ui Required" is proposed as a specialization of MsalServiceException named MsalUiRequiredException. This means you have attempted to use a non-interactive method of acquiring a token (e.g. AcquireTokenSilent), but MSAL could not do it silently. this can be because:
  • you need to sign-in 
  • you need to consent 
  • you need to go through a multi-factor authentication experience. 
The remediation is to call AcquireTokenInteractive 
try 
app.AcquireTokenXXX(scopes, account) 
   .WithYYYY(...) 
   .ExecuteAsync() 
catch(MsalUiRequiredException ex) 
app.AcquireTokenInteractive(scopes) 
    .WithAccount(account) 
    .WithClaims(ex.Claims) 
    .ExcecuteAsync(); 
Incorrect Answers:
A: A 307 Temporary Redirect message is an HTTP response status code indicating that the requested resource has been temporarily moved to another URI , as indicated by the special Location header returned within the response
B: The 400 Bad Request Error is an HTTP response status code that indicates that the server was unable to process the request sent by the client due to invalid syntax.
C: The 403 Forbidden Error happens when the web page (or other resource) that you’re trying to open in your web browser is a resource that you’re not allowed to access.
References: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-handling-exceptions
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/exceptions



Question 7

You have a backend service that will access the Microsoft Graph API. 
You need to configure the service to authenticate by using the most secure authentication method. 
What should you configure the service to use?


  1. a certificate
  2. a client secret
  3. a shared key
  4. a hash
Correct answer: A
Explanation:
You can authenticate to the Graph API with two primary methods: AppId/Secret and certificate based authentication. Certificate is the preferred and more secure way of authenticating.Reference: https://adamtheautomator.com/microsoft-graph-api-powershell/
You can authenticate to the Graph API with two primary methods: AppId/Secret and certificate based authentication. Certificate is the preferred and more secure way of authenticating.
Reference: https://adamtheautomator.com/microsoft-graph-api-powershell/



Question 8

How can you validate that the JSON notification message is sent from the Microsoft Graph service?


  1. The ClientState must match the value provided when subscribing.
  2. The user_guid must map to a user ID in the Azure AD tenant of the customer.
  3. The tenant ID must match the tenant ID of the customer’s Office 365 tenant.
  4. The subscription ID must match the Azure subscription used by ADatum.
Correct answer: A
Explanation:
clientState specifies the value of the clientState property sent by the service in each notification. The maximum length is 128 characters. The client can check that the notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each notification. Note: A subscription allows a client app to receive notifications about changes to data in Microsoft Graph. Reference: https://docs.microsoft.com/en-us/graph/api/resources/subscription
clientState specifies the value of the clientState property sent by the service in each notification. The maximum length is 128 characters. The client can check that the notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each notification. 
Note: A subscription allows a client app to receive notifications about changes to data in Microsoft Graph. 
Reference: https://docs.microsoft.com/en-us/graph/api/resources/subscription



Question 9

You have an application that uses the Microsoft Graph API. 
You need to configure the application to retrieve the groups to which the current signed-in user belongs. The results must contain the extended priorities of the groups. 
Which URI should you use? 


  1. https://graph.microsoft.com/v1.0/me/getMemberObjects
  2. https://graph.microsoft.com/v1.0/me/getMemberGroups
  3. https://graph.microsoft.com/v1.0/me/memberOf
  4. https://graph.microsoft.com/v1.0/me/checkMemberGroups
Correct answer: B
Explanation:
Get member groups returns all the groups that the specified user, group, or directory object is a member of. This function is transitive. Reference: https://docs.microsoft.com/en-us/graph/api/directoryobject-getmembergroups
Get member groups returns all the groups that the specified user, group, or directory object is a member of. This function is transitive. 
Reference: https://docs.microsoft.com/en-us/graph/api/directoryobject-getmembergroups



Question 10

You are developing a human resources application that will show users where they are in their company’s organization chart. 
You are adding a new feature that will display the name of a user’s manager inside the application. 
You need to create a REST query to retrieve the information. The solution must minimize the amount of data retrieved. 
Which query should you use? 


  1. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/manager?$select=displayName
  2. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/people?$filter=jobTitle eq 'manager'&$select=displayName
  3. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/contacts?$filter=jobTitle eq 'manager'
  4. GET https://graph.microsoft.com/v1.0/users/{UserPricipalName}/manager
Correct answer: A
Explanation:
Get user's manager. Returns the user or organizational contact assigned as the user's manager. Syntax:GET /me/manager GET /users/{id | userPrincipalName}/manager Only the name of the user's manager should be displayed so we use ?select=displayname To specify a different set of properties to return than the default set provided by the Graph, use the $select query option. The $select option allows for choosing a subset or superset of the default set returned. References: https://docs.microsoft.com/en-us/graph/api/user-list-managerhttps://developer.microsoft.com/en-us/graph/docs/overview/query_parameters
Get user's manager. Returns the user or organizational contact assigned as the user's manager. 
Syntax:
GET /me/manager 
GET /users/{id | userPrincipalName}/manager 
Only the name of the user's manager should be displayed so we use ?select=displayname 
To specify a different set of properties to return than the default set provided by the Graph, use the $select query option. The $select option allows for choosing a subset or superset of the default set returned. 
References: https://docs.microsoft.com/en-us/graph/api/user-list-manager
https://developer.microsoft.com/en-us/graph/docs/overview/query_parameters









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files