Month End Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: big75certs

New Release Comm-Dev-101 Developers Questions

Page: 2 / 12
Total 154 questions

Salesforce Certified B2C Commerce Developer Questions and Answers

Question 5

A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

Options:

A.

Use the service credential URL field.

B.

Use a Globalpreference dedicated for the service URL.

C.

Use the service status area, set the override URL checkbox, and then populate the URL field with the required one.

Question 6

What is the expected result when extending a route without the middleware chain?

Options:

A.

The base code executes and then the custom code executes.

B.

A RunTime error is thrown, " Error: Params do not match route " .

C.

The custom code executes and then the base code executes.

Question 7

A developer is working on a feature that requires the use of a third-party API. What is the best practice for handling API responses in Salesforce B2C Commerce?

Options:

A.

Ignore error responses and proceed with the default behavior.

B.

Log all responses for debugging purposes and handle errors gracefully.

C.

Always return a success response to the user, regardless of the API response.

Question 8

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

Options:

A.

Define a new middleware function and use it in the existing routes.

B.

Append a new function to all the existing routes with the server module.

C.

Use the superModule property in the existing routes to extend their functionality.

Page: 2 / 12
Total 154 questions