ExamGecko
Ask Question

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

List of questions

Question 111

Report
Export
Collapse

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?

Set the service as limited and change the services profile site preferences with the required values
Set the service as limited and change the services profile site preferences with the required values
Set a new quota limit for the service profile with the required values
Set a new quota limit for the service profile with the required values
Set the rate limiter in the service profile and configure its values with the ones required
Set the rate limiter in the service profile and configure its values with the ones required
Set a new quota limit for the service profile and assign the service to it
Set a new quota limit for the service profile and assign the service to it
Suggested answer: A
asked 23/09/2024
Tyler Raymond
39 questions

Question 112

Report
Export
Collapse

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

Salesforce Certified B2C Commerce Developer image Question 112 59922 09232024001900000000

loopstatus.product
loopstatus.product
pdict.Basket.products[loopstatus]
pdict.Basket.products[loopstatus]
product
product
pdict.product
pdict.product
Suggested answer: C
asked 23/09/2024
Simon John Mather
44 questions

Question 113

Report
Export
Collapse

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?

Logger.info('Unexpected service response.')
Logger.info('Unexpected service response.')
Logger.warn('Unexpected service response.')
Logger.warn('Unexpected service response.')
Logger.error('Unexpected service response.')
Logger.error('Unexpected service response.')
Logger.debug('Unexpected service response.')
Logger.debug('Unexpected service response.')
Suggested answer: B
asked 23/09/2024
Srinivasan Krishnamoorthy
39 questions

Question 114

Report
Export
Collapse

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?

Implement an XML file with a <render> node
Implement an XML file with a <render> node
Implement a JavaScript file with a render() function
Implement a JavaScript file with a render() function
Implement a Controller file with a "render" route
Implement a Controller file with a "render" route
Implement a metadata JSON file with a "render" property
Implement a metadata JSON file with a "render" property
Suggested answer: B
asked 23/09/2024
Benjamin Colart
47 questions

Question 115

Report
Export
Collapse

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?

Replace the existing routes by creating a controller in separate new cartridge
Replace the existing routes by creating a controller in separate new cartridge
Use the superModule property in the existing routes to extend their functionality
Use the superModule property in the existing routes to extend their functionality
Append a new function to all the existing routes with the server module
Append a new function to all the existing routes with the server module
Define a new middleware function and use it in the existing routes
Define a new middleware function and use it in the existing routes
Suggested answer: D
asked 23/09/2024
Gudni Hauksson
42 questions

Question 116

Report
Export
Collapse

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?

Create a new custom preference by extending the Site Preference object type
Create a new custom preference by extending the Site Preference object type
Add a new Campaign using the Online Marketing section of the Business Manager
Add a new Campaign using the Online Marketing section of the Business Manager
Configure a new localizable content slot with a market-specific value
Configure a new localizable content slot with a market-specific value
Select the corresponding option in the system preference for Orders
Select the corresponding option in the system preference for Orders
Suggested answer: A
asked 23/09/2024
cesar ganguie
42 questions

Question 117

Report
Export
Collapse

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?

Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.
Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.
Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.
Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.
Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.
Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.
Create a Synonym Dictionary entry: car accessories, |household, |technology. Use search mode Exact Match.
Create a Synonym Dictionary entry: car accessories, |household, |technology. Use search mode Exact Match.
Suggested answer: B
asked 23/09/2024
Sebastian Romero
45 questions

Question 118

Report
Export
Collapse

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

Salesforce Certified B2C Commerce Developer image Question 118 59928 09232024001900000000

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?

In the middleware chain of the controller post route
In the middleware chain of the controller post route
In the controller function that displays the form
In the controller function that displays the form
In the model function that persists the form data
In the model function that persists the form data
In the view function that handles the submitted form
In the view function that handles the submitted form
Suggested answer: A
asked 23/09/2024
Helania Stevenson
51 questions

Question 119

Report
Export
Collapse

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?

PATCH /orders/{order_no} with dw.ocapi.shop.order.beforePATCH
PATCH /orders/{order_no} with dw.ocapi.shop.order.beforePATCH
DELETE /orders/{old_order_no} with dw.ocapi.shop.order.afterDELETE
DELETE /orders/{old_order_no} with dw.ocapi.shop.order.afterDELETE
PATCH /orders/{order_no} with dw.ocapi.shop.order.afterPATCH
PATCH /orders/{order_no} with dw.ocapi.shop.order.afterPATCH
POST /orders/{order_no} with dw.ocapi.shop.order.afterPOST
POST /orders/{order_no} with dw.ocapi.shop.order.afterPOST
Suggested answer: C
asked 23/09/2024
DANIEL DOYEN
33 questions

Question 120

Report
Export
Collapse

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?

HTTP Form
HTTP Form
POST Form
POST Form
SOAP Form
SOAP Form
HTML Form
HTML Form
Suggested answer: A
asked 23/09/2024
Julio Callegaro
38 questions
Total 209 questions
Go to page: of 21
Search

Related questions