ExamGecko
Home Home / Salesforce / Certified B2C Commerce Developer

Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 12

Question list
Search
Search

List of questions

Search

Related questions











Given the sandbox with:

Service configured and assigned to its profile and credential

A code version that uses that service

And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second.

Which configuration should the developer perform?

A.
Set the service as limited and change the services profile site preferences with the required values
A.
Set the service as limited and change the services profile site preferences with the required values
Answers
B.
Set a new quota limit for the service profile with the required values
B.
Set a new quota limit for the service profile with the required values
Answers
C.
Set the rate limiter in the service profile and configure its values with the ones required
C.
Set the rate limiter in the service profile and configure its values with the ones required
Answers
D.
Set a new quota limit for the service profile and assign the service to it
D.
Set a new quota limit for the service profile and assign the service to it
Answers
Suggested answer: A

Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?

A.
loopstatus.product
A.
loopstatus.product
Answers
B.
pdict.Basket.products[loopstatus]
B.
pdict.Basket.products[loopstatus]
Answers
C.
product
C.
product
Answers
D.
pdict.product
D.
pdict.product
Answers
Suggested answer: C

A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

A.
Logger.info('Unexpected service response.')
A.
Logger.info('Unexpected service response.')
Answers
B.
Logger.warn('Unexpected service response.')
B.
Logger.warn('Unexpected service response.')
Answers
C.
Logger.error('Unexpected service response.')
C.
Logger.error('Unexpected service response.')
Answers
D.
Logger.debug('Unexpected service response.')
D.
Logger.debug('Unexpected service response.')
Answers
Suggested answer: B

A developer is tasked with the development of a new Page Designer Page Type, as requested by the merchant.

How should they define the rendering logic of the page?

A.
Implement an XML file with a <render> node
A.
Implement an XML file with a <render> node
Answers
B.
Implement a JavaScript file with a render() function
B.
Implement a JavaScript file with a render() function
Answers
C.
Implement a Controller file with a "render" route
C.
Implement a Controller file with a "render" route
Answers
D.
Implement a metadata JSON file with a "render" property
D.
Implement a metadata JSON file with a "render" property
Answers
Suggested answer: B

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?

A.
Replace the existing routes by creating a controller in separate new cartridge
A.
Replace the existing routes by creating a controller in separate new cartridge
Answers
B.
Use the superModule property in the existing routes to extend their functionality
B.
Use the superModule property in the existing routes to extend their functionality
Answers
C.
Append a new function to all the existing routes with the server module
C.
Append a new function to all the existing routes with the server module
Answers
D.
Define a new middleware function and use it in the existing routes
D.
Define a new middleware function and use it in the existing routes
Answers
Suggested answer: D

A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.

How should a developer allow the merchant to independently adjust this number?

A.
Create a new custom preference by extending the Site Preference object type
A.
Create a new custom preference by extending the Site Preference object type
Answers
B.
Add a new Campaign using the Online Marketing section of the Business Manager
B.
Add a new Campaign using the Online Marketing section of the Business Manager
Answers
C.
Configure a new localizable content slot with a market-specific value
C.
Configure a new localizable content slot with a market-specific value
Answers
D.
Select the corresponding option in the system preference for Orders
D.
Select the corresponding option in the system preference for Orders
Answers
Suggested answer: A

A developer needs to show only car accessories when shoppers use the search term car accessories and exclude technology accessories and household accessories.

Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?

A.
Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.
A.
Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.
Answers
B.
Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.
B.
Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.
Answers
C.
Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.
C.
Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.
Answers
D.
Create a Synonym Dictionary entry: car accessories, |household, |technology. Use search mode Exact Match.
D.
Create a Synonym Dictionary entry: car accessories, |household, |technology. Use search mode Exact Match.
Answers
Suggested answer: B

To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form.

To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable: validateRequest validateAjaxRequest

Where in the code does the developer need to add this CSRF validation check?

A.
In the middleware chain of the controller post route
A.
In the middleware chain of the controller post route
Answers
B.
In the controller function that displays the form
B.
In the controller function that displays the form
Answers
C.
In the model function that persists the form data
C.
In the model function that persists the form data
Answers
D.
In the view function that handles the submitted form
D.
In the view function that handles the submitted form
Answers
Suggested answer: A

A developer is asked to write a job that is responsible for updating the customer order based upon a trigger from the Order Management System (OMS). While all the information for the order remains the same, the Order number provided by the OMS needs to replace the existing Order Number.

The developer chooses to use the B2C OCAPI hooks to update the order to achieve the above requirement.

According to best practices which OCAPI call should the developer use along with which OCAPI hook?

A.
PATCH /orders/{order_no} with dw.ocapi.shop.order.beforePATCH
A.
PATCH /orders/{order_no} with dw.ocapi.shop.order.beforePATCH
Answers
B.
DELETE /orders/{old_order_no} with dw.ocapi.shop.order.afterDELETE
B.
DELETE /orders/{old_order_no} with dw.ocapi.shop.order.afterDELETE
Answers
C.
PATCH /orders/{order_no} with dw.ocapi.shop.order.afterPATCH
C.
PATCH /orders/{order_no} with dw.ocapi.shop.order.afterPATCH
Answers
D.
POST /orders/{order_no} with dw.ocapi.shop.order.afterPOST
D.
POST /orders/{order_no} with dw.ocapi.shop.order.afterPOST
Answers
Suggested answer: C

A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.

Which service type should the developer register?

A.
HTTP Form
A.
HTTP Form
Answers
B.
POST Form
B.
POST Form
Answers
C.
SOAP Form
C.
SOAP Form
Answers
D.
HTML Form
D.
HTML Form
Answers
Suggested answer: A
Total 209 questions
Go to page: of 21