70-332 · Question #98
You have a SharePoint Server 2013 server farm that has Excel Web Services deployed. A user has a Microsoft Excel spreadsheet that uses a dynamic-link library (DLL) to perform custom calculations…
The correct answer is B. The DLL to the global assembly cache. Excel Services can only load custom DLL assemblies that reside in the Global Assembly Cache (GAC), which provides the required trust level for executing user-defined functions.
Question
Exhibit
Options
- AA new trust relationship
- BThe DLL to the global assembly cache
- CA trusted data provider
- DA user-defined function assembly
How the community answered
(19 responses)- A16% (3)
- B74% (14)
- C5% (1)
- D5% (1)
Why each option
Excel Services can only load custom DLL assemblies that reside in the Global Assembly Cache (GAC), which provides the required trust level for executing user-defined functions.
A trust relationship in SharePoint governs inter-farm server authentication and has no bearing on whether Excel Services can load and execute a custom calculation DLL.
Excel Services in SharePoint 2013 enforces a security requirement that user-defined function (UDF) assemblies must be deployed to the Global Assembly Cache before they can be loaded and executed. The GAC grants the assembly full trust under the .NET Code Access Security model, which is required for Excel Services to invoke the custom calculation logic contained in the DLL when rendering the spreadsheet.
A trusted data provider configures Excel Services to connect to external data sources such as SQL Server or OLE DB providers, but does not enable execution of custom code from a DLL.
Registering a user-defined function assembly entry in Excel Services Central Administration settings is a necessary configuration step, but it cannot succeed without the DLL first being deployed to the GAC - making the GAC deployment the enabling prerequisite.
Concept tested: Excel Services UDF assembly deployment to Global Assembly Cache
Source: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-deploy-udfs-using-sharepoint-foundation-solutions
Topics
Community Discussion
No community discussion yet for this question.
