Salesforce b2b-commerce-developer practice test

& Answers Salesforce Accredited B2B Commerce Developer Exam


Question 1

Witch static method invocation is used to initialize ccrz.cc_CallContext with information from
ccrz.cc_RemoteActionContext and return an instance of ccrz.cc_RemoteActionResult in an apex
@RemoteAction methos?

  • A. ccrz.cc_CallContext.init(ccrz.cc_RemoteActionContext)
  • B. ccrz.cc_CallContext.initCallContext(ccrz.cc_RemoteActionContext)
  • C. ccrz.cc_CallContext.initRemoteActionContext(ccrz.cc_RemoteActionContext)
  • D. ccrz.cc_CallContext.initializeCallContext(ccrz.cc_RemoteActionContext)
Answer:

A

Discussions

Question 2

Why is the use of a standard Visualforce control such as apex:form discouraged in
Salesforce B2B Commerce page includes and subscriber pages?

  • A. Visualforce "scopes" controls that are present on a page and scope of the control will be set to "ccrz"
  • B. Apex:form render DOM components slowly
  • C. The CCRZ Javascript object is not accessible within an apex:form control.
  • D. Javascript events are not supported within an apex:form control
Answer:

A

Discussions

Question 3

Which two usages of ccLog should be avoided in Salesforce B2B Commerce? (2 answers)

  • A. ccrz.ccLog.log(System.LoggingLevel.ERROR, 'D:something', myCallToGetMessage(pl) ), where myCallToGetMessage(pl) is a method invocation
  • B. crz.ccLog.log(System.LoggingLevel.WARN, 'D:something', 'Something unexpected occurred: The data we were expecting for pl was not there,')
  • C. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrderList', myOrderList), where myOrderList is a list of orders
  • D. crz.ccLog.log(System.LoggingLevel.DEBUG, 'D:myOrder', myOrder), where myOrder is an order object
Answer:

A, B

Discussions

Question 4

Which two steps are necessary to enable Salesforce B2B Commerce
logging in the managed package?

  • A. Ensure you save a value in the Logging Token input field in the Global Settings section of CC Admin.
  • B. Turn On the Checkbox "Cloudcraze Logging" in CC Admin.
  • C. Ensure the value saved in the Logging token field is appended to the ccLog query parameter.
  • D. Set a cookie with the Id of the user accessing the storefront in CC Admin
Answer:

A, C

Discussions

Question 5

Which two statements are true regarding the cc_CallContext class in Salesforce B2B Commerce? (2
answers)

  • A. The Salesforce session is accessible via the getSession method
  • B. The class can be used internally within Salesforce B2B Commerce and in subscriber code to access context level parameters
  • C. The userLocale variable returns the current Locale for storefront.
  • D. The current storefront is accessible via this class
Answer:

B, D

Discussions

Question 6

Which two statements are true about Global API's in Salesforce B2B Commerce? (2 answers)

  • A. Each global API method takes in a Map<String, Object> as a single parameter and returns a Map<String, Object>
  • B. Global APIs are versioned.
  • C. Global APIs will catch any Exceptions that are thrown as part of missing parameters.
  • D. Global APIs will handle Transaction scope, and the Subscriber calling it does not need to handle scope.
Answer:

A, B

Discussions

Question 7

Which two statement are true for Mass Order (2 answers)

  • A. Mass Order pricing is done via a batch job.
  • B. Mass order works with the default wishlists
  • C. The variation product is leveraged for SKUs.
  • D. Mass Order is mobile ready with the ccrz templates.
Answer:

A, C

Discussions

Question 8

Which two Salesforce B2B Commerce visualforce pages must be enabled at a Salesforce Community
level to make the out of the box SEO functionality available? (2 answers)

  • A. CCSizeIndex
  • B. SizeMap
  • C. CCCatSiteMap
  • D. ProductMap
Answer:

A, C

Discussions

Question 9

Which two different types of services do Salesforce B2B

  • A. Commerce APIs leverage? (2 answers) A) Logic services which are responsible for implementing business logic associated with entities.
  • B. Global services which are responsible for querying and transforming data from entities
  • C. Data services which are responsible for querying and transforming data from entities
  • D. Hook services which are extension points for subscribers to tie into.
Answer:

A, C

Discussions

Question 10

Which two aspects are applicable to Page Includes? (2 answers)

  • A. Standard Visualforce controls such as apex:form should not be used within a page include
  • B. Page Includes must be assigned to an OOTB Page, i.e. Home, Product Detail, etc., and enabled
  • C. Page Includes can be configured as Body Includes Begin.
  • D. If a controller is used for an included page, then a merge variable must be present on the page.
Answer:

A, D

Discussions
To page 2