exam questions

Exam MS-600 All Questions

View all questions & answers for the MS-600 exam

Exam MS-600 topic 2 question 33 discussion

Actual exam question from Microsoft's MS-600
Question #: 33
Topic #: 2
[All MS-600 Questions]

You plan to develop a TypeScript client-side app that will use the MSGraphClient library.
You need to configure Microsoft Visual Studio Code to use IntelliSense and support code completion for the MSGraph client library.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Add the following import statement to the code: import * as MicrosoftGraph from '@microsoft/microsoft-graph-client';
  • B. Run the npm install @microsoft/microsoft-graph-types --save-dev command.
  • C. Run the npm install @microsoft/microsoft-graph-client --save-dev command.
  • D. Install the Microsoft Graph Toolkit.
  • E. Add the following import statement to the code: import * as MicrosoftGraph from '@microsoft/microsoft-graph-types';
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️
B: Microsoft Graph TypeScript Types
Install types and save in package.json as a development dependency npm install @microsoft/microsoft-graph-types --save-dev
A: The following examples assume that you have a valid access token. The following example uses isomorphic-fetch and Microsoft Graph JavaScript client library
-
import { User } from "@microsoft/microsoft-graph-types-beta"; import { Client } from "@microsoft/microsoft-graph-client"; import 'isomorphic-fetch'; const client = Client.initWithMiddleware({ defaultVersion: 'beta',
...
});
const response = await client.api("/me").get();
const user = response as User;
Reference:
https://github.com/microsoftgraph/msgraph-typescript-typings

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
testexams22
Highly Voted 1 year, 1 month ago
BE https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph
upvoted 10 times
...
Selo123
Most Recent 8 months, 2 weeks ago
Selected Answer: BE
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/use-msgraph#use-the-microsoft-graph-typescript-types
upvoted 2 times
...
Mrt_Ferrazzo
1 year ago
Yes, it's BE
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