Pre-Summer Special Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 713PS592

B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (WI25) Questions and Answers

Questions 4

A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,” to it.

Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?

Options:

A.

prod.extended.sellable

B.

prod.sellable

C.

prod.persistable.sellable

D.

prod.custom.sellable

Buy Now
Questions 5

The Home-Show route uses this middleware chain:

B2C-Commerce-Developer Question 5

The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:

B2C-Commerce-Developer Question 5

Assuming the code is correct on both functions, what is the expected result?

Options:

A.

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

B.

The base code executes and then the custom code executes.

C.

The custom code executes and then the base code executes.

D.

The base code executes, but the custom code is ignored becausethe signature lines do not match.

Buy Now
Questions 6

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 ofcalls per second.

Which configuration should the developer perform?

Options:

A.

Set the service as limited and change the services profile site preferences with the required values.

B.

Set the rate limiter in the service profile and configure its values with the ones required.

C.

Set a new quota limit for the service profile and assign the service to it.

Buy Now
Questions 7

A developeris importing edits for two different sites into the same sandbox, and is provided with four different files.

Which two XML files should the developer import using the site-specific Merchant Tools import modules,

instead of the Administration section import modules?

Choose 2 answers.

Options:

A.

System type extensions (solo en Sites)

B.

Site Jobs (sites)

C.

Search Settings En (search y en Sites)

D.

Promotions ( en sites y en online marketing)

Buy Now
Questions 8

Which method is efficient and scalable because it uses the product search index rather than searching the database?

Options:

A.

ProducrlndexModel.getOrderableProductsOnly()

B.

ProduccAvailabiliryModel.isOrderable()

C.

ProductSearcbHodel().gerProductSearchHita()

D.

ProductVanari.cnMcciel.aerVariams ()

Buy Now
Questions 9

Given a template rendered by a controller with caching and a remote include without caching, which situation applies?

Options:

A.

Both the remote include portion and the rest of the page are cached.

B.

The remote include portion is not cached, but the rest of the page is cached.

C.

The page is cached only for returning customers because of the remote include.

D.

The page is not cached because the remote include introduces an uncached portion.

Buy Now
Questions 10

Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).

To which hook should the Digital Developermove taxation logic to ensure consistent order totals within B2C Commerce?

Options:

A.

dw.ocapi.shop.order.validateOrder

B.

dw.ocapi.shop.basket.calculate

C.

dw.ocapi.shop.basket.afterPostShipment

D.

dw.ocapi.shop.order.afterPOST

Buy Now
Questions 11

A developer wants to create in Business Manager extension with thecartridge named

plugin_vm_extension.

Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:

Options:

A.

Add plugin_bm_extension to the cartridge path under business manager cartridge site

B.

Add the appropiate roles and permission to the user to view the business manager extension.

C.

Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.

D.

Activate a new code version for the Business Manager Site.

Buy Now
Questions 12

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

This collection will be known as ‘Our Top Combo’, and isbase 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 Bundlestab.

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 fourproducts as a recommendation group.

Buy Now
Questions 13

A developer has a requirement to display a banner in two different category pages.

Which snippet of code should the developeradd to a template to allow the merchant to configure each independently?

A)

B2C-Commerce-Developer Question 13

B)

B2C-Commerce-Developer Question 13

C)

B2C-Commerce-Developer Question 13

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 14

In Log Center, a developer notes anumber of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.

Which two courses of action might solve the problem?

Choose 2 answers

Options:

A.

Add the token in the ISML template.

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF whitelists in Business Manager.

D.

Add csrfProtection.generateToken as a middleware step in the controller.

Buy Now
Questions 15

Which two methods are efficientand scalable? (Choose two.)

Options:

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Buy Now
Questions 16

A developer is tasked with implementing the necessary code for a new Page Designer component.

What are the two purposes of the JSON metadata definition file that the developer creates7

Choose 2 answers

Options:

A.

Defines regions within the component type.

B.

Defines the responsive layout of the rendered template.

C.

Defines the business and rendering logic of the component required by the merchant.

D.

Defines theattributes that a merchant enters when using the component type.

Buy Now
Questions 17

Universal Containers needs to have Apple Pay disabled for the country of Spain.

Which Business Manager module should the Developer use to meet this requirement?

Options:

A.

Merchant Tools > Ordering > PaymentMethods

B.

Merchant Tools > Site Preferences > Apple Pay

C.

Merchant Tools > Ordering > Payment Processors

D.

Merchant Tools > Site Preferences > Payment Types

Buy Now
Questions 18

Which of these situations is anappropriate use of the B2C Commerce OCAPIs?

Options:

A.

Updating inventory information from a warehouse management software.

B.

Extending System Object Type definitions with new attributes.

C.

Showing the customer's information in their B2C Commerce "My Account’’ page.

Buy Now
Questions 19

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

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.

Buy Now
Questions 20

A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

B2C-Commerce-Developer Question 20

However, the NewsletterSubscription custom object is not persisted.

What is a possible reason?

Options:

A.

The code shownneed to be wrapped in a transaction.

B.

The code shown needs to be wrapped in a try/catch block.

C.

The code shown is the wrong syntax. The correct syntax is:

Buy Now
Questions 21

A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.

In which folder should the developer place resource bundles?

Options:

A.

templates/de

B.

templates/default

C.

templates/resources

D.

templates/default/resources

Buy Now
Questions 22

A job executes a pipeline that makes calls to an external system.

Which two actions prevent performance issues in this situation? (Choose two.)

Options:

A.

Use synchronous import or export jobs

B.

Configure a timeout for the script pipelet.

C.

Disable multi-threading.

D.

Use asynchronous import or export jobs.

Buy Now
Questions 23

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

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 Certificatesystem 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.

Buy Now
Questions 24

A client wants to differentiate their monobrand stores with a special icon when shown in the store

locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.

How should the developer follow SFRA best practices to expose this data for rendering?

Options:

A.

Extend the existing Stores_Find controller with a new middleware function that performs the query

B.

Pass theStore system object to the template, so that custom propierties are available

C.

Ad dan to the template, and call StoreMgr.searchStoresByCoordinates();

D.

Use the module.superModule functionality and the call method to add a new property to theStore Model.

Buy Now
Questions 25

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A)

B2C-Commerce-Developer Question 25

B)

B2C-Commerce-Developer Question 25

C)

B2C-Commerce-Developer Question 25

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 26

A merchant asks a developer to create a CachePartition for the home page, so that when the home page

is edited, only the home page is cleaned.

Given the above requirement, where should the developer create that partition in Business Manager?

Options:

A.

Administration > Sites > Manage Sites > Site > Cache

B.

Operations > Site > Manage Sites > Cache

C.

Operations > Cache > Site

D.

Site > Site Preferences > Cache

Buy Now
Questions 27

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

Which threeparameters are required when using npm scripts?

Choose 3 answers

Options:

A.

Usemame/Password

B.

Code Version

C.

Hostname

D.

Site ID

E.

CSRF Token

Buy Now
Questions 28

Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.

To which file should the developer addGerman string values?

Options:

A.

checkout_de.properties in resources folder

B.

checkout.properties in the de locale folder

C.

checkout.properties in the default locale folder

D.

de_checkout.properties in resources folder

Buy Now
Questions 29

A developer has a requirement to adda new field to the IN registration from that must not appear in the US one.

Which path should be created to accomplish this requirement?

Options:

A.

cartridge/forms/en_IN/profile.xml

B.

cartridge/forms/profrfe_en_IN.xml

C.

cartridge/forms/profde.in. xml

Buy Now
Questions 30

Assume the code below is executing:

B2C-Commerce-Developer Question 30

Business Manager has the configuration:

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

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

Options:

A.

xyz

B.

custominfo-blade

C.

custom-export

D.

custom-xyz

Buy Now
Questions 31

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.

Which two additional steps should the developer take to troubleshoot this problem?

Choose 2 answers

Options:

A.

Check that the search index was recently rebuilt.

B.

Check the Business Manager site cartridge path.

C.

Check the Storefront site cartridge path.

D.

Check that the correct code version is selected.

Buy Now
Questions 32

Given a file in a plug-in cartridge with the following code:

‘use strict’:

Var base = module.superModule;

Function applyCustomCache (req,res,next){

res.CachePeriod = 6; //eslint-disable-line no-param-reassign

res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign

next();

}

Module.exports = base;

Module.exports.applyCustomCache = applyCustomCache;

What does this code extend?

Options:

A.

A controller

B.

A middleware script

C.

A decorator

D.

A model

Buy Now
Questions 33

A Storefront is designed so that multiple pages share a common header and footer layout.

Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?

Options:

A.

B.

C.

D.

Buy Now
Questions 34

A controller route in the SFRA base looks as follows:

B2C-Commerce-Developer Question 34

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

Options:

A.

Specifyany 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.

Buy Now
Questions 35

A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.

What are the appropriate actions to implement such a requirement?

Options:

A.

Develop and configure a steptype and corresponding CommonJ5 job step script.

B.

Implement and configure a recurring task using the cron commandin Business Manager.

C.

Configure a new custom OCAPI endpoint and use the Customers resource type.

Buy Now
Questions 36

Given a sandbox with an active slot configuration with the following specifications:

• Content type set to product

• With someproduct configured

• With the following rendering template: slots/product/product_1x2 isml

• Correctly enabled and scheduled

And given the code contained in the selected rendering template:

B2C-Commerce-Developer Question 36

Is an additional action needed for this to work asintended?

Options:

A.

No - The content slot is rendered correctly.

B.

Yes - The isloop should be removed because no loops are allowed in a content slot rendering template.

C.

Yes - The content needs to be configured with a recommender to display products.

Buy Now
Questions 37

Given the requirement to add caching toan existing page while adhering to SFRA best practices, which code snippet should be used?

A)

B2C-Commerce-Developer Question 37

B)

B2C-Commerce-Developer Question 37

C)

B2C-Commerce-Developer Question 37

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 38

A Digital Developer has created a new PaymentForm controller thatrequires 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);

Buy Now
Questions 39

UniversalContainers created a site export file from staging in the global export directory.

How should the Digital Developer update their sandbox using this staging site export file?

Options:

A.

Perform a data replication from staging.

B.

Use the Site Development > SiteImport & Export Business Manager module.

C.

Download the site export file and use UX Studio to transfer the data to the sandbox.

D.

Use the Site Development > Import & Export Business Manager module.

Buy Now
Questions 40

Given a job step configured in the steptype.json, a developer needs to add a custom status code

“No_FILES_FOUND”.

Which code snippet will complete the requirement?

Options:

A.

var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’};return status;

B.

var status = require(‘dw/system/status’);return new Status(Status.OK, ‘NO_FILES_FOUND’);

C.

this.status = ‘NO_FILES_FOUND’return this;

D.

return ‘NO_FILES_FOUND

Buy Now
Questions 41

Universal Containers wants to add a model field to eachproduct. Products will have locale-specific model values.

How should the Digital Developer implement the requirement?

Options:

A.

Utilize resource bundles for translatable values.

B.

Set the model field as a localizable attribute.

C.

Store translated model valuesin different fields; one field for each locale.

D.

Add model to a new custom object with localizable attributes.

Buy Now
Questions 42

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 thesubcategory '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.

Buy Now
Questions 43

A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new

country, Italy, and the taxi s not being calculated correctly on the Storefront

What is the likely problem?

Options:

A.

Tax Region is configured wrong.

B.

Tax Country is missing

C.

Tax Jurisdiction is missing

D.

Tax Locale is configured wrong

Buy Now
Questions 44

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 storedare:

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.

Buy Now
Questions 45

A developer has custom debug statements in a script, but the messages are not showing up in the

Storefront Toolkit Request Log.

Which step needs to be completed to get the messages to appear in the Request Log?

Options:

A.

In Global preferences, check the box for Enable custom logging in Request Log.

B.

In Site Preferences, check the box for Enable custom Logging in Request Log

C.

In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.

D.

In custom Log Settings, activate the loggin category at DEBUG level.

Buy Now
Questions 46

A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.

Which two factors might be causing a product to be hidden?

Choose 2 answers

Options:

A.

Product has been set to searchable.

B.

Product lacks a price.

C.

Product does not have any images.

D.

ProductAvailable to sell is <1.

E.

Product is not online.

Buy Now
Questions 47

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

Whatis 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)}

Buy Now
Questions 48

Once the Cache Information tool of the storefront toolkit isenabled, how can a Digital Developer view caching information for a particular component of the page?

Options:

A.

Hover over the caching icons now present on the storefront.

B.

Open the Request Logs to view the caching information.

C.

Start a pipeline debugging session and view the caching information provided.

D.

Right-click on the component in UX Studio and view the caching properties of the file.

Buy Now
Questions 49

A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to displayupdated 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()

Buy Now
Questions 50

A client that sells to multiplecountries in Europe needs to disable Apple Pay for Denmark.

Which Business Manager module is used to achieve this requirement?

Options:

A.

Locale Payments

B.

Payment Methods

C.

Payment Processors

D.

Apple Pay

Buy Now
Questions 51

A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.

How should the developer configure an instance to allow the merchant to independently insert and update these snippets?

Options:

A.

Create a new "HTML" attribute in the SitePreference object type.

B.

Use ISML conditional tags to add the snippet into the codebase.

C.

Configure a new Service Profile with the provided snippet of code.

Buy Now
Questions 52

A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

B2C-Commerce-Developer Question 52

How should the Developer change the request?

Options:

A.

Change the URI to /dw/shop/v18_3/products/creative-zen-v.

B.

Change the HTTP method to PUT.

C.

Change the HTTP method to GET.

D.

Include an authentication token in the request.

Buy Now
Questions 53

A developer set up a newsite with Taxation: Net. However, the business requirements changed and the

site now needs to be Taxation:Gross. The Business Manager interface does not give this option.

Which sequence of steps is necessary to change the site to gross taxation?

Options:

A.

Make sure that the developer has “Administrator” Access, then change the Taxationsetting to Gross

B.

Unlock the site preferences and then change the Taxation setting to Gross

C.

Change the global setting,”Enable Taxation Methods” to true, then change the Taxationsetting to Gross

D.

Create a new site with Taxation set to Gross, then delete the old site.

Buy Now
Questions 54

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

<form xmlns=http://www.demandware.com/xml/form/2008-04-15 >

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:

Buy Now
Questions 55

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.

Buy Now
Questions 56

A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.

Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?

Options:

A.

Createa new Product custom attribute AND add a new Search Refinement Definition for the desired categories.

B.

Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.

C.

Create a new Product customattribute AND add a new viewtype in the storefront catalog settings

Buy Now
Questions 57

A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.

Which cartridge path meets the project requirements?

Options:

A.

client_project:app_project:storefront_controllers:storefront_core

B.

app_project:storefront_controllers:storefront_core

C.

app_project:client_project:storefront_controllers:storefront_core

D.

storefront_core:storefront_controllers:client_project:app_project

Buy Now
Questions 58

Given the following ISML example, how should a developer reference the product object in the current

iteration of thebasket?

Options:

A.

product

B.

pdict.Basket.products{loopstatus}

C.

loopstatus.product

D.

pdict.product

Buy Now
Questions 59

When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.

Where should the developer add this attribute to the Custom Object so itis visible for the merchant to see in Business Manager?

Options:

A.

Assign the current date/time to a new custom attribute, creationDate, via code.

B.

Add the creation date to the attributes of the Custom Object.

C.

Mark the existing creation date attribute as visible.

D.

Add the creation date to the attribute group for the Custom Object.

Buy Now
Questions 60

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 withthe 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 copyof existing address.xml file in the default folder. Rename that file toadres_US.xml

B.

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

C.

Create a copy of existing address.xml file in the defaultfolder. Rename that file toaddress_en_US.xml

D.

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

Buy Now
Exam Name: Salesforce Certified B2C Commerce Developer (WI25)
Last Update: Mar 9, 2025
Questions: 203

PDF + Testing Engine

$66  $164.99

Testing Engine

$50  $124.99
buy now B2C-Commerce-Developer testing engine

PDF (Q&A)

$42  $104.99
buy now B2C-Commerce-Developer pdf