PL-200 · Question #165
You create a JavaScript web resource named MyBusinessLogic. The code it contains uses functionality from a third-party JavaScript library. You notice that an independent software vendor (ISV) solution
The correct answer is A. Create a new JavaScript web resource by using the code from the third-party library. C. Add the code from the third-party JavaScript library to MyBusinessLogic.. The core requirement is that your managed solution must be self-contained - it cannot rely on the ISV's managed solution being present in the target environment. Option A (create a new JavaScript web resource containing the third-party library code) packages the library as its ow
Question
Options
- ACreate a new JavaScript web resource by using the code from the third-party library.
- BAdd a copy of the JavaScript library from the ISV to the solution along with MyBusinessLogic.
- CAdd the code from the third-party JavaScript library to MyBusinessLogic.
- DAdd only the third-party JavaScript web resource to the solution.
How the community answered
(42 responses)- A76% (32)
- B17% (7)
- D7% (3)
Explanation
The core requirement is that your managed solution must be self-contained - it cannot rely on the ISV's managed solution being present in the target environment. Option A (create a new JavaScript web resource containing the third-party library code) packages the library as its own separate resource within your solution, ensuring it deploys independently. Option C (add the third-party library code directly into MyBusinessLogic) embeds the dependency into the single file, also making the solution self-contained. Option B is incorrect because adding the ISV's copy of the library creates a dependency on a file owned by another solution, which may not exist. Option D (adding only the third-party web resource without the library's code) is incomplete and still creates a dependency risk.
Topics
Community Discussion
No community discussion yet for this question.