Which tool can you use to generate a SharePoint Framework (SPFx) solution?
Answer:
D
Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive. Using the Yeoman SharePoint generator, developers are able to scaffold new client-side solution projects to build, package, and deploy SharePoint solutions. The generator provides common build tools, boilerplate code, and a common playground website to host web parts for testing.
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/scaffolding-projects-using-yeoman-sharepoint-generator
You have a line-of-business API that is secured by using Azure Active Directory (Azure AD).
You deploy a solution to the app catalog. The solution requests permission to the API.
What should you do in the SharePoint admin center to ensure that the solution can access the API?
Answer:
D
Developers building a SharePoint Framework solution that requires access to specific resources secured with Azure AD list these resources along with the required permission scopes in the solution manifest. When deploying the solution package to the app catalog, SharePoint creates permission requests and prompts the administrator to manage the requested permissions. For each requested permission, tenant administrators can decide whether they want to grant or deny the specific permission.
All permissions are granted to the whole tenant and not to a specific application that has requested them. When the tenant administrator grants a specific permission, it is added to the SharePoint Online Client Extensibility Azure AD application, which is provisioned by Microsoft in every Azure AD and which is used by the SharePoint Framework in the OAuth flow to provide solutions with valid access tokens.
You are designing a custom SharePoint Framework (SPFx) web part that will be deployed to modern Microsoft SharePoint sites.
You need to ensure that all the web part fields and controls adopt the theme of the site when you deploy the web part.
What should you use to develop the web part?
Answer:
B
Office UI Fabric is Microsoft's official front end framework for building User Interface experiences for Office and Office 365. In simple terms it gives you the look and feel for your component. Moreover, they are open source, mobile responsive and reusable, no need to create from scratch just refer them in your code and start utilizing them.
Microsoft modern SharePoint out of the box webparts are made up these Office UI Fabric framework, so to maintain consistency look and feel as like Office it's better to use these components in our custom SPFx webparts.
Incorrect Answers:
D: At Build 2019 [November 2019], Microsoft announced Fluid Framework, a new technology and set of experiences that will make collaboration seamless by breaking down the barriers between apps. It offers three key capabilities. First, experiences powered by the Fluid Framework will support multi-person coauthoring on web and document content at industry-leading speed and scale. Second, it provides a componentized document model that allows authors to deconstruct content into collaborative building blocks, use them across applications, and combine them in a new, more flexible kind of document. Third, the Fluid Framework makes room for intelligent agents to work alongside humans to translate text, fetch content, suggest edits, perform compliance checks, and more.
Reference:
http://www.sharepointsamples.com/sharepoint-framework-webpart-with-office-ui-fabric-react-component/
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Answer:
Box 1: Yes -
Using the isolated web parts capability, you can build web parts that securely communicate with APIs secured with Azure AD without exposing the access token to other components on the page or even scripts in the tenant.
When deploying these solutions to the app catalog, all API permission requests are specified as isolated.
Box 2: Yes -
Even though on runtime isolated web parts will be loaded inside an iframe pointing to a unique domain, you can communicate with SharePoint REST API, the same way as you would in non-isolated web parts.
Box 3: Yes -
If you're upgrading an existing SharePoint Framework project to v1.8.0 and want to use the isolated permissions capability, you can do it, by setting in the config/ package-solution.json file, the isDomainIsolated property to true. You should ensure, that your project contains only web parts.
After changing the project to use isolated permissions, you should redeploy your project. This will issue new API permission requests, isolated to your solution, which will need to be approved by the tenant admin.
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/isolated-web-parts
You have a SharePoint Framework (SPFx) 1.5 solution.
You need to ensure that the solution can be used as a tab in Microsoft Teams.
What should you do first?
Answer:
D
Starting with the SharePoint Framework v1.8, you can implement your Microsoft Teams tabs using SharePoint Framework.
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab
HOTSPOT -
You are evaluating the SharePoint Framework (SPFx) ListView Command Set extension.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Answer:
Box 1: Yes -
Extensions are client-side components that run inside the context of a SharePoint page.
Box 2: Yes -
ClientSideExtension.ListViewCommandSet.CommandBar: The top command set menu in a list or library.
Box 3: Yes -
ClientSideExtension.ListViewCommandSet.ContextMenu: The context menu of the item(s).
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api
You have an API that is secured by using Microsoft identity platform.
You are designing a SharePoint Framework (SPFx) solution.
Which object should you use to connect to the API from the solution?
Answer:
C
By using the AadHttpClient, you can easily connect to APIs secured by using Azure AD without having to implement the OAuth flow yourself.
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient
You are developing a SharePoint Framework (SPFx) web part. The web part will call a backend API that is secured by using Azure Active Directory (Azure AD).
The web part will be on a page that has many other web parts.
Which type of web part should you use to ensure that access to the API is exclusive to the web part?
Answer:
A
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/isolated-web-parts
HOTSPOT -
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Answer:
Reference:
https://yeoman.io/learning/
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part
You create a SharePoint Framework (SPFx) web part and include MSGraphClient by using the following manifest.
Which two actions can the web part perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Answer:
BC
Reference:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part