Building Applications and Solutions with Microsoft 365 Core Services (legacy) — Question 5

You have a starter SharePoint Framework (SPFx) web part.
You need to test the web part from the local workbench by connecting to a URL of https://localhost:4321/temp/workbench.html.
Which tool should you use make the web part available locally for debugging?

Answer options

Correct answer: D

Explanation

The correct answer is D, 'gulp serve', as it is the command used to launch the local development server for SPFx, making the web part accessible for testing. Options A and B are development tools but do not serve the web part, while C is related to package management and does not directly facilitate local debugging of the SPFx web part.