Valid B2B-Commerce-Developer Dumps shared by ExamDiscuss.com for Helping Passing B2B-Commerce-Developer Exam! ExamDiscuss.com now offer the newest B2B-Commerce-Developer exam dumps, the ExamDiscuss.com B2B-Commerce-Developer exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com B2B-Commerce-Developer dumps with Test Engine here:
What is a best practice when passing query parameters from user interface to an apex controller?
Correct Answer: A
A best practice when passing query parameters from user interface to an apex controller is to query parameters should be properly sanitized by using JSINHTMLENCODE within the VisualForce Page or Component. This function will encode any special characters in the query parameters to prevent cross-site scripting (XSS) attacks or SOQL injection attacks. For example, ccrz.ccRemoteActions.getProducts('{!JSINHTMLENCODE(searchTerm)}') will encode the searchTerm parameter before passing it to the apex controller. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Security