C Certs Club
Home
Oracle SAP Microsoft Cisco CompTIA Fortinet Salesforce Nutanix Linux Foundation Amazon View All Vendors →
Login Register

Salesforce B2B-Commerce-Developer - Salesforce Accredited B2B Commerce Developer Certification Exam

Download Exam View Entire Exam
Page: 1 / 2
Question #1 (Topic: demo questions)

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


A.
APIs callback with specific versions specified; the user must know which version number to use.


B.
Copy and paste of specific code is "built-in"


C.
Extensions and overridden APIs don't support-related upgrades.


D.
The "delegate" allows inherited method calls access to the most recentlyspecified service version


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 (Topic: demo questions)

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


A.
Global variables


B.
Apex local variables


C.
String substitution


D.
Apex class variables
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 (Topic: demo questions)

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)

A.
A standard remote action will not have access to Salesforce B2B Commerce objects.
B.
The APEX method called by the remote action will be passed as a Salesforce B2B Commerce
context object.
C.
Salesforce B2B Commerce includes do not support standard SalesForce remote actions.
D.
The Salesforce B2B Commerce logger cannot be utilized in standard remote actions
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.
Question #4 (Topic: demo questions)

A developer is trying to troubleshoot why a field is not displaying on the Product Detail Page. What
should be typed in the Developer Tools Console in the browser to view the fields available for the
Product Detail Page?

A.
CCRZ.productSearchView
B.
CCRZ.cartView
C.
CCRZ.productDetailModel
D.
CCRZ.productDetailView
Correct Answer: C
Explanation:
To view the fields available for the Product Detail Page, the developer should type
CCRZ.productDetailModel in the Developer Tools Console in the browser. This will display the
product detail model object, which contains the product data and attributes that are rendered on the
page. The other options are either not valid or not relevant for the Product Detail Page.
Question #5 (Topic: demo questions)

A Developer created a custom field that a project wants to expose on a given page.
How does the Developer ensure that the field is available to display on a given page?


A.
Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for
the given storefront to use this new Service Class.


B.
Override the Logic Class that the page uses and update the Service Management inCCAdmin for
the given storefront to use this new Service Class


C.
Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for
the given storefront to use this new Service Class
D.
Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for
the given storefront to use this new Service Class
Next Question
Correct Answer: A
Explanation:
To ensure that a custom field is available to display on a given page, the Developer needs to override
the Service Class that the page uses and update the Service Management in CCAdmin for the given
storefront to use this new Service Class. The Service Class is responsible for retrieving and setting
data for a given page. The Logic Class is responsible for implementing business logic and validation
rules for a given page. Creating a new Service Class or Logic Class is not necessary, as overriding an
existing one can achieve the same result. Salesforce Reference: B2B Commerce and D2C Commerce
Developer Guide, Service Classes, Logic Classes