Month End Sale Special 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: budy75

Comm-Dev-101 Salesforce Certified B2C Commerce Developer Questions and Answers

Questions 4

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.stringify(PageMgr.renderPage(pageID, {parameter1:value1}));

C.

PageMgr.renderPage(pageID, {parameter1:value1})

Buy Now
Questions 5

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

How should the developer approach this task while following SFRA best practices?

Options:

A.

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

B.

Replace the callback function of the existing route using superModule.

C.

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

Buy Now
Questions 6

What should a developer do to ensure that the gift vouchers are always available?

Options:

A.

Manually set the inventory to a high number.

B.

Set StockLevel = maxAllocation for the product.

C.

Check the perpetual flag in the product inventory record.

Buy Now
Questions 7

Which item is appropriate content for custom logs implemented at checkout?

Options:

A.

Order failure information

B.

Customer ' s password at post-checkout sign up

C.

Transaction ' s credit card information

Buy Now
Questions 8

A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.

Which step must a developer take in Business Manager to achieve this?

Options:

A.

In Payment Methods, enable American Express as a credit card type.

B.

In Payment Processor, create American Express as a payment type.

C.

Add American Express as a Payment Preference in Site Preferences.

Buy Now
Questions 9

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

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

Options:

A.

createRequest

B.

mockCall

C.

initServiceClient

Buy Now
Questions 10

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

Which module can the merchant use to display the image on the Storefront?

Options:

A.

Content slots

B.

Product images

C.

Payment methods

Buy Now
Questions 11

A developer needs to ensure that a specific product is always available for purchase, regardless of inventory levels. What should the developer do in Business Manager?

Options:

A.

Set the product to " Always Available. "

B.

Set the product ' s inventory to a high number.

C.

Enable the " Perpetual " flag for the product.

Buy Now
Questions 12

The developer needs to add custom category debug logging into the " contact " script, to ensure that a third-party service call responds as expected.

Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

01varLogger=require( ' dw/system/Logger ' );

02varservice=dw.svc.LocalServiceRegistry.createService( ' contact.http.submit ' ,options);

03varserviceResponse=service.call(requestJSON);

04

05if(serviceResponse.ok) {

06// Insert logging code here

07}

Options:

A.

Logger.getLogger( ' contact ' ).debug( ' Contact service responded with OK. ' )

B.

Logger.debug( ' Contact service responded with OK. ' )

C.

Logger.customLogger( ' contact ' ).debug( ' Contact service responded with OK. ' )

Buy Now
Questions 13

A developer is asked to periodically create a CSV 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 CommonJS job step script.

B.

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

C.

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

Buy Now
Questions 14

A developer plans to use the/search_suggestion(Shop API) in a Storefront application and the following property must be set to do so:

suggestion.product.image:view_type

What consideration should the developer keep in mind to ensure that image data is returned correctly as part of search suggestions?

Options:

A.

If theview_typeis not set or if theview_typeis unknown, the image properties are not part of the response.

B.

If theview_typeis not set or if theview_typeis unknown, the image size ofsmallis used by default.

C.

If theview_typeis not set or if theview_typeis unknown, the image size oflargeis used by default.

Buy Now
Questions 15

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 when the 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 email field for the email.

B.

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.

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.

Buy Now
Questions 16

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

Options:

A.

Change the data type of the attributes.

B.

Create an Attribute Group with the desired attributes in it.

C.

Set the attributes to site-specific replicable.

Buy Now
Questions 17

A client has three different sites with three locales. Two of the sites share a library and one site has a private library.

What does the shared library allow in this context?

Options:

A.

Sharing content assets between sites

B.

Sharing content slots between sites

C.

Sharing content slots among locales

Buy Now
Questions 18

A developer needs to display a products list of their " Women Dresses " category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements. Which B2C Commerce tool should the developer use to collect the necessary information?

Options:

A.

The ProductSearch resource of the Shop OCAPI.

B.

The Search-Show Controller URL to perform a web crawl.

C.

The existing category ' s endpoint to perform a REST call.

Buy Now
Questions 19

How should a developer set up the files before making required edits to the address form?

Options:

A.

Create a copy of existingaddress.xmlfile in the default folder. Rename that file toaddress_en_US.xml.

B.

Create a new sub-folder in the forms folder. Name iten_US. Copy existingaddress.xmlfile in the new folder.

C.

Create a new sub-folder in the xmls folder. Name iten_US. Copy existingaddress.xmlfile in the new folder.

Buy Now
Questions 20

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.

After checking the Storefront site cartridge path, which step should the developer take to troubleshoot this problem?

Options:

A.

Check that the correct code version is selected.

B.

Check that the search index was recently rebuilt.

C.

Check the Business Manager site cartridge path.

Buy Now
Questions 21

Given a site called RefArch with the settings shown, what must be done for RefArch to use the same customer list as RefArchGlobal?

Options:

A.

Import the RefArchGlobal customer list into the RefArch site.

B.

Enable " Customer List Sharing " in Global Preferences.

C.

Select RefArchGlobal in the dropdown for Customer List.

Buy Now
Questions 22

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?

Options:

A.

Define a new middleware function and use it in the existing routes.

B.

Append a new function to all the existing routes with the server module.

C.

Use the superModule property in the existing routes to extend their functionality.

Buy Now
Questions 23

A developer is asked to implement a 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 ' s endpoint in a.propertiesfile.

Buy Now
Questions 24

What is the expected result when extending a route without the middleware chain?

Options:

A.

The base code executes and then the custom code executes.

B.

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

C.

The custom code executes and then the base code executes.

Buy Now
Questions 25

There are three logging categories: category1, category1.eu, and category1.us. In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.

The code segment below executes.

varlogger=Logger.getLogger( " loggerFile " , " category1.eu " );

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

What is the result?

Options:

A.

Logs will be written to the log file with a prefix loggerFile.

B.

Logs will be written to the log file with a prefix custom-loggerFile.

C.

Logs will be written to the log file with a prefix customwarn.

Buy Now
Questions 26

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

Which task is essential for correct site configuration prior to launch?

Options:

A.

Assign a default currency.

B.

Assign a default payment method.

C.

Assign a default payment processor.

Buy Now
Questions 27

Which is an appropriate use of the < isif > ISML tag that follows B2C Commerce and SFRA best practices?

Options:

A.

Show a different < div > tag depending on a pdict Boolean variable.

B.

Implement involved business logic through conditional statements.

C.

Redirect users to the registration page if they are not logged in.

Buy Now
Questions 28

There is a business requirement that a custom controller in app_custom_my_cartridges invokes the calculateTax function of the dw.order.calculateTax hook that is defined in app_storefront_base. How can the developer implement this call?

Options:

A.

Use:dw.system.HookMgr.callHook( ' dw.order.calculateTax ' , ' calculateTax ' ,currentBasket);

B.

Add the location of the dw.order.calculateTax hook to hooks.json, and then usedw.system.HookMgr.callHook(...).

C.

Add the location of the dw.order.calculateTax hook to package.json, and then usedw.system.HookMgr.callHook(...).

Buy Now
Questions 29

A developer has 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 30

Which ISML tag should a developer use to avoid code repetition in common header and footer layout?

Options:

A.

< isreplace > ... < /isreplace >

B.

< isdecorate > ... < /isdecorate >

C.

< isinclude > ... < /isinclude >

Buy Now
Questions 31

Which method should a developer use to create a service instance that will call a remote web service?

Options:

A.

dw.svc.LocalServiceRegistry.createService()

B.

dw.svc.LocalServiceInstance

C.

dw.svc.LocalServiceRegistry.getDefaultService()

Buy Now
Questions 32

Given a job step configured in the steptype.json that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status does not represent an error condition.

Which code snippet completes this requirement?

Options:

A.

this.status= ' NO_FILES_FOUND ' ;returnthis;

B.

varStatus=require( ' dw/system/Status ' );returnnewStatus(Status.OK, ' NO_FILES_FOUND ' );

C.

varstatus={success: ' OK ' ,message: ' NO_FILES_FOUND ' };returnstatus;

Buy Now
Questions 33

What action meets the requirement to show washing instructions for a clothing product?

Options:

A.

Add a resource file for every locale for which the attribute needs to be translated.

B.

Create a custom attribute on the product system object and set it as localizable.

C.

Set the product system object type as localizable.

Buy Now
Questions 34

A developer is inspecting the weekly service status report for a critical internally-hosted web service and notices there are too many instances of unavailability.

Which solution can reduce service unavailability?

Options:

A.

Increase the web service time out.

B.

Change the code that sets the throwOnError attribute of the service to be true.

C.

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

Buy Now
Questions 35

A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.

How might this issue be resolved to ensure a better customer journey?

Options:

A.

Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.

B.

In Business Manager, set an availability low ranking threshold in Search Preferences.

C.

In Business Manager, enter a higher boost factor for availability in Searchable Attributes.

Buy Now
Questions 36

What is the expected result when the code segment executes with the logger configuration?

Options:

A.

Logs will be written to the log file with a prefix custom-loggersFile.

B.

Logs will be written to the log file with a prefix custom-loggers.

C.

Logs will be written to the log file with a prefix loggerFile.

Buy Now
Questions 37

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

varCustomObject=

dw.object.CustomObjectMgr.createCustomObject(

' NewsletterSubscription ' ,

newsletterForm.email.value

);

However, the NewsletterSubscription custom object is not persisted. What is a possible reason?

Options:

A.

The code shown needs 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:varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' , ' email ' ,newsletterForm.email.value);

Buy Now
Questions 38

A developer needs to implement a new feature that requires the use of a custom attribute. What is the first step the developer should take?

Options:

A.

Create the custom attribute in Business Manager.

B.

Define the custom attribute in the code.

C.

Write the logic to handle the custom attribute.

Buy Now
Questions 39

A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISML pages, which uses the < iscache > tag, to see if that resolves the issue. Which consideration must the developer keep in mind while deploying the hot fix in production?

Options:

A.

It will be required to invalidate the cache for the hot fix.

B.

If the page has multiple tags, the highest cache duration will be used in production to determine the resulting page ' s caching behavior.

C.

The TTL cache setting only affects static content and not the page cache, which could potentially cause the production issue.

Buy Now
Questions 40

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 < options > list with the correct two-letter abbreviation for the provinces.

The U.S. requirements are to:

Have an < options > 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 new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file in the new folder.

B.

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

C.

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

Buy Now
Questions 41

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 42

A retailer notices that the Account Addresses page is showing the wrong shopper ' s address.

Which tool should the developer start with to identify the issue?

Options:

A.

Storefront Toolkit

B.

Reports and Dashboards module

C.

Pipeline Profiler

Buy Now
Questions 43

There is a business requirement to allow a third-party warehouse management system to update the MySample.com storefront product inventory in real time. The architect decided that this is most easily accomplished by using the Open Commerce API (OCAPI). The developer needs to test the OCAPI settings in their sandbox. Assume the client ID for testing is " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " . What is the correct OCAPI setting for this?

Options:

A.

Type:Data,Context:Global{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.example.com " ], " resources " :[{ " resource_id " : " /inventory_lists/* " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

B.

Type:Shop,Context:MySample{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.example.com " ], " resources " :[{ " resource_id " : " /product/*/inventory " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

C.

Type:Data,Context:Global{ " _v " : " 20.4 " , " clients " :[{ " client_id " : " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa " , " allowed_origins " :[ " http://www.mysample.com " ], " resources " :[{ " resource_id " : " /product/*/inventory " , " methods " :[ " get " , " put " , " patch " ], " read_attributes " : " (**) " , " write_attributes " : " (**) " }]}] }

Buy Now
Questions 44

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 it is visible for the merchant to see in Business Manager?

Options:

A.

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

B.

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

C.

Mark the existing creation date attribute as visible.

Buy Now
Questions 45

A developer needs to ensure that a specific product is displayed only to customers in a certain region. What is the best approach to achieve this?

Options:

A.

Use a custom attribute on the product to specify the region and filter products based on this attribute.

B.

Create a separate catalog for each region and assign products accordingly.

C.

Implement a script that checks the customer ' s location and displays products based on that.

Buy Now
Questions 46

What should a developer implement to enhance the functionality of an existing controller route?

Options:

A.

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

B.

Replace the callback function of the existing route using superModule.

C.

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

Buy Now
Exam Code: Comm-Dev-101
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Sep 29, 2026
Questions: 154

PDF + Testing Engine

$140

Testing Engine

$105

PDF (Q&A)

$90