Demo Salesforce B2B-Commerce-Developer Exam Questions

Demo practice questions for guest users.

Section: Practice Mode 9 Questions
Demo Practice
Question 1

The ccUtil apex class in Salesforce B2B Commerce provides numerous utility
functions that can be leveraged in subscriber classes. Which command will
return the value in the given Map if found or a default value in the event that
the Map is null, empty, or an object is not found for that key? 

Correct Answer: B
Explanation:
The ccrz.ccUtil.defVal (Map mp, String key, Object ob) method will return the value in
the given Map if found or a default value in the event that the Map is null, empty, or an object is not
found for that key. This method is useful for providing fallback values for configuration settings or
input parameters that may be missing or invalid. Salesforce Reference: B2B Commerce and D2C
Commerce Developer Guide, ccUtil Class
Question 2

The ccUtil apex class in Salesforce B2B Commerce provides numerous utility
functions that can be leveraged in subscriber classes.
What are two ways to check the input or return data of the Global API's? (2 answers)