Demo Salesforce B2B-Commerce-Developer Exam Questions

Demo practice questions for guest users.

Section: Practice Mode 9 Questions
Demo Practice
Question 1

How are version related upgrades passed on to subscriber API extensions/overrides?


Correct Answer: D
Explanation:
Version related upgrades are passed on to subscriber API extensions/overrides by using the
“delegate” keyword, which allows inherited method calls access to the most recently specified
service version. For example, delegate.getCart() will invoke the getCart() method of the latest service
version that is available for the current storefront. This way, extensions and overrides can leverage
the new features and enhancements of the upgraded service versions without modifying their code.
Question 2

How are variables bound when services use the ccSercviceDao classto execute queries?


Correct Answer: C
Explanation:
When services use the ccServiceDao class to execute queries, variables are bound by string
substitution. This means that the query string contains placeholders for variables that are replaced by
their values at runtime. For example, ccrz.ccServiceDao.getQuery('SELECT Id FROM Account WHERE
Name = :name') will replace :name with the value of the name variable.
Question 3

For which two reasons is it preferable to extend the Salesforce B2B Commerce remote invocation
object instead of using the standard Salesforce remote action invocation manager (2 answers)

Correct Answer: B, D
Explanation:
It is preferable to extend the Salesforce B2B Commerce remote invocation object instead of using the
standard Salesforce remote action invocation manager for two reasons:
The APEX method called by the remote action will be passed as a Salesforce B2B Commerce context
object, which contains useful information such as the current user, cart, storefront, and configuration
settings. This can simplify the development and testing of the remote action.
The Salesforce B2B Commerce logger can be utilized in the remote action, which allows logging
messages and errors to the debug log or to a custom object. This can facilitate debugging and
troubleshooting of the remote action.

Demo Practice Mode

You are viewing only the questions marked as Demo.

BACK TO EXAM