Winter Sale - Special Limited Time 55% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 44314956B5

Good News !!! B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (WI23) is now Stable and Pass

B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (WI23) Question and Answers

Salesforce Certified B2C Commerce Developer (WI23)

Last Update 2 days ago
Total Questions : 207

B2C-Commerce-Developer Exam is stable now with all latest questions are added 2 days ago. Just download our Full package and start your journey with Salesforce Certified B2C Commerce Developer (WI23) certification. All these Salesforce Exam B2C-Commerce-Developer questions are real and verified by our Experts in the related industry fields.

B2C-Commerce-Developer PDF

B2C-Commerce-Developer PDF (Printable)
$54
$119.99

B2C-Commerce-Developer Testing Engine

B2C-Commerce-Developer PDF (Printable)
$63
$139.99

B2C-Commerce-Developer PDF + Testing Engine

B2C-Commerce-Developer PDF (Printable)
$79.65
$176.99
Question # 1

A developer wants to embed a link to a content page from within the body of another content asset. the target content asset ID is: about-us

Which option represents the correct format to use?

Options:

A.  

$url(''page-Show,''cid'', about-us')$

B.  

$url('Content_Show', 'about-us')$

C.  

$url('Content-Page', cid 'about-us;)$

Discussion 0
Question # 2

A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the

European market. The products they make are sold with different safety certificates based-on the world

location.

For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a

hairdryer with certificate C in the U.S and certificate D in Europe, and more.

How should a developer allow the merchant to display the appropriate certification logo in the produce to

details page, depending on the customer’s location?

Options:

A.  

Add a Localizable custom attribute to the Certificate system object type.

B.  

Ad and Image custom preference to the Sitepreference system object type

C.  

Add a Site-specific custom attribute to the Product system object type.

D.  

Add a Localizable custom preference to the SitePreference system object type.

Discussion 0
Question # 3

A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.

Which code sample should the Developer use to make sure that HTTPS is used?

Options:

A.  

exports.PaymentForm = guard.ensure([‘http’, ‘post’, ‘loggedIn’], handlePaymentForm);

B.  

exports.PaymentForm = guard.expose([‘post’, ‘loggedIn’], handlePaymentForm);

C.  

exports.PaymentForm = guard.httpsPost(handlePaymentForm);

D.  

exports.PaymentForm = guard.ensure([‘https’, ‘post’, ‘loggedIn’], handlePaymentForm);

Discussion 0
Question # 4

A developer wants to use an external application to manage their stores information (such as opening

hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are

saved.

What is the appropriate technique the developer should perform to allow the merchant to create a new

store in this scenario?

Options:

A.  

A POST request to the Stores Data OCAPI.

B.  

A PUT request to the Stores Data OCAPI.

C.  

A PATCH request to the Stores Data OCAPI.

D.  

An UPDATE request to the Stores Data OCAPI.

Siempre que sea un objeto standard será put en vez de post

Discussion 0
Question # 5

A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.

What does the Developer need to change in Business Manager to fulfill this requirement?

Options:

A.  

Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.

B.  

Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.

C.  

Credit cards in the Merchant Tools > Ordering > Payment Methods module.

D.  

Credit card exclusion rules in the CreditCardType.json configuration file.

Discussion 0
Question # 6

Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.

Which series of steps should a Digital Developer take to show this refinement on the storefront?

Options:

A.  

Define a sorting rule for weightCapacity, then rebuild the product search index.

B.  

Define a search refinement for weightCapacity, then rebuild the product search index.

C.  

Define search-suggestion buckets for weightCapacity, then rebuild the product search index.

D.  

Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.

Discussion 0
Question # 7

A developer customized the Cart-Show controller route with a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Options:

A.  

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable.

B.  

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable. Ensure that the client cartridge is on the left of the U.HK cartridge m cartridge path.

C.  

Append Cart-Show controller route in the client cartridge and add datalayer object to the viewData variable.

Discussion 0
Question # 8

Assume the code below is executing:

Question # 8

Business Manager has the configuration:

  • Active Log category is “root” with log level of “info.”

Given this information, what is the beginning of the filename in which the log will be written?

Options:

A.  

xyz

B.  

custominfo-blade

C.  

custom-export

D.  

custom-xyz

Discussion 0
Question # 9

A developer needs to render a Page Designer page in JSON format. What is the correct syntax?

Options:

A.  

PageMgr.serializePage(pageID), {parameter1:value1}};

B.  

JSON.stringgify(PageMgrrenderpage(pageID), {paramter1:value1}}:

C.  

PageMgr,renderPage{pageID, {parameter1: value1}}

Discussion 0
Question # 10

A developer is working on a new site for the U.S based on an existing Canadian site. One of the

requirements is a change to the address form. The current Canadian form has an list with the

correct two-letter abbreviation for the provinces.

The U.S. requirements are to:

Have an list with the correct two-letter abbreviation for the states in place of the

province field.

Set the U.S site locale.

Add the options list field definition to the XML file.

How should the developer set up the files before making the required edits?

Options:

A.  

Create a copy of existing address.xml file in the default folder. Rename that file to

adres_US.xml

B.  

Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in

the new folder.

C.  

Create a copy of existing address.xml file in the default folder. Rename that file to

address_en_US.xml

D.  

Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file

in the new folder.

Discussion 0
Question # 11

A developer wants to add a link to the My Account Page.

What is the correct code to accomplish this?

Options:

A.  

${Resource.msg(‘myaccount’,’account’,request.locale())}

B.  

${Resource.message(‘myaccount’)}

C.  

${Resource.msg(‘myaccount’,’account’,null)}

D.  

${ResourceMgr.getPropierties(‘myaccount’,’account’,null)}

Discussion 0
Question # 12

A merchant has a requirement to sell a combination of four existing products with a unique product I

D.  

This collection will be known as ‘Our Top Combo’, and is base don the merchant’s trading information that

shows this combination to be in high demand.

What does the developer need to do next to fulfill this requirement?

Options:

A.  

Create a unique produce to called ‘Our Top Combo’ and add the four products into the Product Bundles

tab.

B.  

Create a Content Slot with Content Type = Product and add the four component products into that slot.

C.  

Create a Product Set called ‘Our Top Combo’ and add the products into the set.

D.  

Create a recommendation rule associating the four products as a recommendation group.

Discussion 0
Question # 13

A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store

locator list, the client wants the single-brand stores to have a particular background color to highlight them.

Which Business Manager action should be completed to allow the developer to apply different styling to

the single-brand stores?

Options:

A.  

Add a Boolean custom attribute to the Store system object

B.  

Configure the existing Store custom object type definition

C.  

Create a new SingleBrandStore custom object configuration.

D.  

Adjust the relevant Site Preference in the Stores group

Discussion 0
Question # 14

A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.

Which three parameters are required when using npm scripts?

Choose 3 answers

Options:

A.  

Usemame/Password

B.  

Code Version

C.  

Hostname

D.  

Site ID

E.  

CSRF Token

Discussion 0
Question # 15

The client provides the system integrator with translation messages for the newly added "French" ("fr") locale.

What is the correct folder to store the associated .properties files?

Options:

A.  

cartridge/templates/fr

B.  

A cartridge/templates/resources

C.  

cartridge/resources

D.  

cartridge/templates/resources/fr

Discussion 0
Question # 16

Below is a form definition snippet from the newsletter.xml file:

Which line of code creates a JSON object to contain the form data?

Options:

A.  

Server.form.getForm(‘dwfrm_newsletter’)

B.  

Server.form.getForm(‘newsletter’);

C.  

Server.forms.getForm(‘newsletter’);

D.  

Server.forms.getForm(‘dwfrm_newsletter’)

En el controller:

En el Formulario:

Discussion 0
Question # 17

A developer is given the requirement to add a step to the existing business logic of the registration process. How should the developer modify the route that handles the customer registration?

Options:

A.  

Change the controller route with new functionality.

B.  

Extend the route with new functionality.

C.  

Copy the code from the original route to a new controller route, and change it.

D.  

Override the route with new functionality.

Discussion 0
Question # 18

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?

Options:

A.  

Logger.info(‘Unexpected service response’)

B.  

Logger.debug(‘Unexpected service response’)

C.  

Logger.error(‘Unexpected service response’)

D.  

Logger.warn(‘Unexpected service response’)

Discussion 0
Question # 19

A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to display updated information to the user when the request is completed, without otherwise modifying the appearance of the current page.

According to SFRA practices, which method best supports this objective?

Options:

A.  

res.json()

B.  

res.render()

C.  

res.print()

Discussion 0
Question # 20

What happens if the log file size limit is reached in custom logging?

Options:

A.  

Logging is suspended for the day.

B.  

Logging is suspended for two hours.

C.  

The log file is deleted and recreated from scratch.

D.  

The log file rolls over and the last used log is overwritten.

Discussion 0
Question # 21

A developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data stored are:

Pricebook to be used

Image URL for country flag

The data used in staging also applies in production, but only for this site.

Which approach should the developer take to implement these requirements?

Options:

A.  

Extend the Locale System Object to contain the custom data for each country.

B.  

Create a replicable, site-specific Custom Object with the custom data for each country.

C.  

Create site-specific content assets to store the data for each country.

Discussion 0
Question # 22

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

How should they define the rendering logic of the page?

Options:

A.  

Implement a JavaScript file with a render () function.

B.  

Implement a metadata JSON file with a ''render'' property.

C.  

Implement a Controller file with a ''render'' route.

Discussion 0
Question # 23

Given the file structure below, which ISML method call renders the customLandingPage template?

Question # 23

Options:

A.  

ISML.renderTamplate(‘cartridge/templates/default/content/custom/customLandingPage’);

B.  

ISML(‘content/custom/customLandingPage’);

C.  

ISML.render(‘content/custom/customLandingPage’);

D.  

ISML.renderTemplate(‘content/custom/customLandingPage’);

Discussion 0
Question # 24

Why should a Digital Developer use ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?

Options:

A.  

It is more readable code.

B.  

It has fewer lines of code.

C.  

It uses the search index.

D.  

It reduces accesses to the application server.

Discussion 0
Question # 25

A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.

What should a developer implement to achieve this requirement?

Options:

A.  

Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.

B.  

Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.

C.  

Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.

D.  

Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.

Discussion 0
Question # 26

A developer has configured the following log levels for categories & sub categories as

WARN logging is enabled for 'product’ and DEBUG for "product.import"

What will be the log level used for various categories and sub-categories?

Options:

A.  

WARN and ERROR are lugged for product" and all its subcategories. For the subcategory 'product.import' DEBUG and INFO are also logoed

B.  

WARN and ERROR are logged fix product' and all its subcategories. For the subcategory’’ product.import* DEBUG and INFO are not logged.

C.  

WARN and FRROR ate lugged for product" and all its subcategories.

Discussion 0
Question # 27

Reference the following code snippets that allow a form to function correctly.

Question # 27

Which code should a developer insert at the EXPRESSION placeholder m the ISML template snippet above to have the form work as expected?

Options:

A.  

pdict.newslettersFrom

B.  

Pdict, newsletter

C.  

sowslettersform

Discussion 0
Question # 28

Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.

Which two changes need to be made for this to occur? (Choose two.)

Options:

A.  

Change the slot’s configuration content type to “products.”

B.  

Change the slot’s configuration content type to “recommendations.”

C.  

Change the slot’s configuration template to the appropriate rendering template.

D.  

Delete the existing content asset.

Discussion 0
Question # 29

A Digital Developer needs to add logging to the following code:

Question # 29

Which statement logs the HTTP status code to a debug-level custom log file?

Options:

A.  

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.  

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.  

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.  

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Discussion 0
Question # 30

A developer has the following files in template/resources:

account.proierties

weight.unit=kilos

account_en.propierties

weight.unit=stones

account_en_US.propierties

weight.unit= pounds

Using the default locale configuration, what is the current outcome of the page that renders the

account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=

Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}

Options:

A.  

Your parcel weighs 10 stones.

B.  

Your parcel weighs 10 pounds.

C.  

Your parcel weighs 10 undefined.

D.  

Your parcel weighs 10 kilos

Discussion 0
Question # 31

A controller route in the SFRA base looks as follows:

Question # 31

In order to extend this route using prepared ( ), what should the developer consider?

Options:

A.  

Specify any middleware functions needed for the new functionality.

B.  

Specify any middleware functions needed for the new functionality using only those called by the base route.

C.  

Remove next ( ); on the new route so only the route's middleware functions execute.

Discussion 0