Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

B2C-Commerce-Developer Salesforce Exam Lab Questions

Salesforce Certified B2C Commerce Developer (SP23) Questions and Answers

Question 29

The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

Options:

A.

Logger.exception(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

B.

Logger.getErrorLog().log(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

C.

Logger.fault(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

D.

Logger.error(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

Question 30

In order to implement site custom functionality, a developer creates a new cartridge.

Which step should the developer take to ensure their cartridge changes take effect?

Options:

A.

Add the new cartridge to the cartridge path for the business Manager site.

B.

Rebuild the site indexes to capture incremental changes.

C.

Add the new cartridge to the cartridge path for the relevant Storefront site.

Question 31

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

Options:

A.

Change the data type of the attributes.

B Create an Attnbute Group with the desired attributes in it.

B.

Set the attributes to site-specific replicable.