Building Applications and Solutions with Microsoft 365 Core Services (legacy) — Question 20
You need to build a customizer that will modify the header and footer of each page of a Microsoft SharePoint Online site.
You use the Yeoman generator to create a new SharePoint Framework (SPFx) project.
What should you do next?
Answer options
- A. Create a Field Customizer and render the custom content for top and bottom placeholders.
- B. Create an Application Customizer and render the custom content for top and bottom placeholders.
- C. Create an Application Customizer, override the Render method, and provide a custom header and footer.
- D. Create a Field Customizer, override the Render method, and provide a custom header and footer.
Correct answer: B
Explanation
The correct answer is B because an Application Customizer is specifically designed to modify the overall layout of a SharePoint site, including headers and footers. Options A and D refer to Field Customizers, which are not suitable for site-wide changes as they operate at the field level. Option C, while mentioning an Application Customizer, unnecessarily complicates the task by overriding the Render method when it is not required for simply adding custom content.