Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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

Questions 4

A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.

Which link function generates the correct link?

Options:

A.

$include(‘Page-Include’, ‘cid’,‘terms-and-conditions’)$

B.

$http(‘Content-Page’, ‘cid’, ‘terms-and-conditions’)$

C.

$httpUrl(‘Content-Show’, ‘cid’, ‘terms-and-conditions’)$

D.

$url(‘Page-Show’, ‘cid’, ‘terms-and-conditions’)$

Buy Now
Questions 5

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 6

A developer is asked to implementa simple call to an authentication - protected REST web service.

Which configuration is valid?

Options:

A.

Add the authentication password to the service credentials.

B.

Configure the authentication username using a site preference.

C.

Insert the service ' sendpoint in a .properties file.

Buy Now
Questions 7

A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by

thedw.avc.ServiceCaliback class.

Which callback method is required only when invoking a SOAP service?

Options:

A.

initServiceClient

B.

createRequeat

C.

mockCall

D.

parseResponse

Buy Now
Questions 8

A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used inthe application and notices that there are too many instances of unavailability.

Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)

Options:

A.

Modify the code that makes the request to the external service to be wrapped in a try / catch block.

B.

Change the code that makes the request to set the throwOnError attribute, of the service, to be true.

C.

Increase the web service time out.

D.

Update the external service to have a faster response time.

Buy Now
Questions 9

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 10

Given the code snippet aboce, what should be added after this code so it can be used for page

component display?

Options:

A.

Base.render = render;

B.

Module.exports.render = render;

C.

Module.exports = render;

D.

Module.exports = server.exports();

Buy Now
Questions 11

A Digital Developer is working in a sandbox on a site named test-site using thedomain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.

By default, which URL format is a proper Open Commerce API for Sandbox?

Options:

A.

https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...

B.

https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...

C.

https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...

D.

https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa...

Buy Now
Questions 12

A developer working on a simple web service integration is asked toadd 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’)

Buy Now
Questions 13

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 14

A merchant requires that an existing section of the Site become editable from the Business Manager, so

that they can modify it independently of the developer.

Which of these is an important factor for a developerto consider when choosing the appropriate solution

between a content slot and a Page Designer component?

Options:

A.

Only Page Designer Components can be localized for different languages.

B.

Only content slot configurations can be tied to campaigns.

C.

Only pageDesigner components can ve tied to campaigns.

D.

Only content slot configurations can ve localized for different languages.

Buy Now
Questions 15

A developer is given the requirement to add a step to the existing business logic of theregistration 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.

Buy Now
Questions 16

The developercreated a new Storefront category in storefront-catalog-m-en, but when viewing the

Storefront site, the category is not visible.

What are two possible reasons?

Options:

A.

The Storefront catalog is offline

B.

The category does not contain available products

C.

The category is not sorted

D.

The category is offline.

Buy Now
Questions 17

Business Manager has the configuration:

Active Log category is " root "

Log level of WARN

The code below is executing:

var log = Logger.getLogger( " products " );

Using this information, which two logs will be written?

Choose 2 answers

Options:

A.

log.warn( " This is a warn message " );

B.

log.error( " This is an error message " );

C.

log.info( " This is an info message " );

D.

log.debugfThis is a debug message " );

Buy Now
Questions 18

Given the requirements:

To integrate with an external web service using HTTP requests

To create a service for this purpose with the Service framework using the LocalServiceRegistry

class.

To test the service before the external service provider makes the API available

Which solution allows the developer to satisfy the requirements?

Options:

A.

Create a service and implement the mockfull callback and a sitepreference to enable or disable themock response.

B.

Create a service and implement the mockFill callback and set the service mode tomock.

C.

Create a service and a Sitepreference that induce the service to respond witch a mock responseusing a conditional.

D.

Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

Buy Now
Questions 19

Which three operations should be done in a controller?

Choose 3 answers

Options:

A.

Generate the response as JSON or HTML

B.

Use the Script API to generate data for the view.

C.

Use middleware functions when applicable

D.

Create a plain JavaScript object representing a system object

E.

Use the model needed for the view.

Buy Now
Questions 20

A merchant has asked their development team to add a new site.

Which two tasks are essential for correct site configuration prior to launch?

Choose 2 answers

Options:

A.

Assign a default payment processor.

B.

Assign a default payment method.

C.

Assign a default currency.

D.

Assign a default payment type.

E.

Assign the appropriate taxation type.

Buy Now
Questions 21

A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to have the slot render a specific content asset so that the content experience is more personalized to the visitors.

Which two actions are necessary to make thischange?

Options:

A.

Change the content type AND the rendering template in the slot configuration.

B.

Change the default setting AND the rendering template in the slot configuration.

C.

Change the rendering template in the slot configuration AND delete the existingcontent slot to create a new one.

Buy Now
Questions 22

B2C-Commerce-Developer Question 22

The developer wants to be able to view DEBUG

The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?

Options:

A.

Change the Log Level for myLogCategory to DEBUG.

B.

Check the DEBUG box in the Log Files section.

C.

Change the Log Level for myLogCategory to DEBUG and check the DEBUG box in theLog Files section.

Buy Now
Questions 23

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

Options:

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Buy Now
Questions 24

A developer has these requirements for out-of-stock products:

Save the SKUs of the out-of-stock products that the customer is interested in

Save the customer email regardless if the customer is a guest or registered

Email the customer whenthe product is back-in-stock

Which step should the developer perform as part of the solution to achieve the requirements?

Options:

A.

Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing emailfield for the email.

B.

Create a new system object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

C.

Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

D.

Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

Buy Now
Questions 25

A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on thepipeline dictionary with the name myProduct.

Which code sample will achieve this?

Options:

A.

ISML.renderTemlpate ( " helloworld.isml " , { " myProduct " : " product " });

B.

ISML.renderTemlpate ( " helloworld.isml " , { " product " : myProduct });

C.

ISML.renderTemlpate ( " helloworld.isml " , { product: myProduct });

D.

ISML.renderTemlpate ( " helloworld.isml " , { myProduct: product });

Buy Now
Questions 26

A merchant checked the " Show Orderable Products Only " preference in Business Manager. What impact does this have on the Storefront from a user perspective?

Options:

A.

Back-order products will be excluded from search results.

B.

Products with an Available to Sell (ATS) - 0 will be excluded from search results.

C.

The product detail page will be hidden if Available to Sell (ATS) = 0.

D.

Pre-order products will be excluded from search results.

Buy Now
Questions 27

A DigitalDeveloper 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.

Buy Now
Questions 28

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.

Which snippet of code should be used?

Options:

Buy Now
Questions 29

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 30

A client has two B2C Commerce sites in the same instance: one forthe 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?

Options:

A.

Create a new custom preference by extending the Site Preference object type.

B.

Select the corresponding option in the system preference for Orders.

C.

Add a new Campaign using the Online Marketing section of the Business Manager.

D.

Configure a new localizable content slot with a market-specific value.

Buy Now
Questions 31

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 32

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 33

Which line of code creates a content slot that can be included on homepage.isml to display on the home page?

Options:

A.

< isslot id= " my_banner " description= " for home page " type= " global " context= " content " context-object= " ${pdict.ContentSearchResult.content} " / >

B.

< isslot id= " my_banner " description= " for home page " type= " global " context= " homepage " / >

C.

< isslot id= " my_banner " description= " for home page " context= " global " >

D.

< isslot id= " my_banner " description= " for home page " context= " global " context-object= " ${pdict.CurrentHomePage} " / >

Buy Now
Questions 34

A merchant has a requirement to render personalized content ton a category page via a Content Slot that

targets VIP high-spending customers during a specific promotional period.

Which two items should the developer create to achieve the specified requirements?

Choose 2 answers:

Options:

A.

VIP Customer Group

B.

Page Template

C.

Slot Configuration

D.

Rendering Template

Buy Now
Questions 35

A Digital Developer needs to store information temporarily and decides to create a custom object.

Which code creates a custom object?

Options:

A.

CustomObject.createCustomObject(CustomObjectType,primaryKey);

B.

CustomObject.createCustomObject(primaryKey,CustomObjectType);

C.

CustomObjectMgr.createCustomObject(primaryKey);

D.

CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)

Buy Now
Questions 36

A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to beincorporated into the search and navigation journey.

Which two things can the developer do to facilitate this for them?

Choose 2 answers

Options:

A.

Create a new search refinement for a Boolean value true or false and label it " big screen. "

B.

Define a new searchable attribute for Screen Size.

C.

Configure catalog-level search refinement definition for Screen Size.

D.

Configure Screen Size threshold search refinement bucket definitions.

Buy Now
Questions 37

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 38

The developer has been given the following business requirement:

The shipping method, Free Standard Ground Shipping ' hasan exclusion for products *lth category equals or is child of electronics-televisions. '

The marketing department has scheduled a sale offering a “Free Standard Ground Shipping” method for brand XyzTv televisions for the next 3 months.

What method accomplishes this while following best practices?

Options:

A.

Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.

B.

Extend the CheckoutShippingservices controller using module.superModuleand add an exception for the specified brand

C.

Create an allow list for the existing shipping method by adding a product exclusion for ' brand equals XyzTV " to the exclusion list for " Free Standard Ground Shipping. "

Buy Now
Questions 39

A client has a requirement to allow users on the Storefornt to filter by a newly created attribute.

Which is necessary to achieve this?

Options:

A.

Add a new Search Refinment Definition.

B.

Set the attributeas Searchable.

C.

Change the productseachrefinerbar.iml template

Buy Now
Questions 40

A developerhas a B2C site and a merchant requirement to add a new locale to it.

What are the steps to enable the locale in the Storefront?

Options:

A.

Create and configure the locale under Global Preferences section and activate it in Site Preferences.

B.

Create, configure,and activate the locale under Global Preferences section.

C.

Add an alias for the new locale and then create and configure the locale itself under Global Preferences section.

Buy Now
Questions 41

A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cartforms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.

The code below is the submit button for the ISML markup.

B2C-Commerce-Developer Question 41

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

B2C-Commerce-Developer Question 41

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 42

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 theexisting Store custom object type definition

C.

Create a new SingleBrandStore custom object configuration.

D.

Adjust the relevant Site Preference in the Stores group

Buy Now
Questions 43

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 44

A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:

They have one Master catalog and one storefront catalog.

Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.

Which method allows the developer to generate the export for the merchant?

Options:

A.

Using the Catalog Import and Export module, export the Master catalog with a category-assignment search to export specific

B.

Using the Site Import and Export module, export both the Site catalog and the Master catalog in a single archive.

C.

Using the Site Import and Export module, export the Master catalog filtered by the site catalog categoriesto export specific products.

Buy Now
Questions 45

A Digital Developer has identified that the code segment below is causing performance problems.

B2C-Commerce-Developer Question 45

What should theDeveloper do to improve the code?

Options:

A.

Use a system attribute instead of the isOnSaleFlag custom attribute.

B.

Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.

C.

Breaks the process into separate loops.

D.

Avoid using an Iterator and use a Collection instead.

Buy Now
Questions 46

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 47

The developer is asked to enhance the functionality of an existing controller route by adding information to the response ' s viewData.

How should thedeveloper approach this task while following SFRA best practices?

Options:

A.

Replace the callback function of the existing route using superModule.

B.

Use the " extend " method of the server module for the existing route.

C.

Copy the existing route in a new cartridge and modify where necessary.

D.

Use the " append " method of the server module for the existing route.

Buy Now
Questions 48

A new product has been added to the Storefront catalog that 15 assigned to a site

Which configuration does a developer need to ensure to have a new product visible in the Storefror

Options:

A.

The search index is built AND the product is online and searchable.

B.

The product has a master product AND the search index is built.

C.

The product has a price AND the product rs online and searchable.

Buy Now
Questions 49

Why should a Digital Developeruse 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.

Buy Now
Questions 50

A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:

B2C-Commerce-Developer Question 50

Which modification allows the requests to successfully execute?

Options:

A.

Change the " resource_id " value to: " /baskets/*/items " .

B.

Change the " write_attributes " value to: " (+items) " .

C.

Change the " read_attributes " value to: " (items) " .

D.

Change the " methods " value to: [ " get " , " post " ].

Buy Now
Questions 51

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

Buy Now
Questions 52

A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.

An example request URL is:

B2C-Commerce-Developer Question 52

Which resource_id value enables the appropriate resource?

Options:

A.

/inventory_lists/*

B.

/inventory_lists/**

C.

/inventory_list_search

D.

/products/*

Buy Now
Questions 53

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 54

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 54

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 55

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 55

B)

B2C-Commerce-Developer Question 55

C)

B2C-Commerce-Developer Question 55

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 56

Adigital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.

Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?

Options:

A.

Use the Catalog Export module to export the site catalog.

B.

Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.

C.

Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.

D.

Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.

Buy Now
Questions 57

Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

B2C-Commerce-Developer Question 57

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 58

A merchant uploads an image using the ContentImage Upload module of Business Manager.

Which three modules can the merchant or developer use to display the image on the Storefront?

Choose 3 answers

Options:

A.

ISML templates

B.

Content assets

C.

Storefront catalogs

D.

Content slots

E.

Payment types

Buy Now
Questions 59

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

Options:

A.

The cartridge containing the script isnot in the site’s cartridge path

B.

The script debugging session is not active

C.

The script is form a third party cartridge and hence does not allow_settings breakpoints.

Buy Now
Questions 60

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
Exam Name: Salesforce Certified B2C Commerce Developer (SU24)
Last Update: May 25, 2026
Questions: 203

PDF + Testing Engine

$64.99   $185.69

Testing Engine

$49.99   $142.83

PDF (Q&A)

$54.99   $157.11