Pre-Winter Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

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

Questions 4

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

Which Business Manager module is used to achieve this requirement?

Options:

A.

Payment Methods

B.

Payment Processors

C.

Locale Payments

Buy Now
Questions 5

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 6

A developer is asked to improve a page ' s maintainability by reducing its code repetition.

Which technique should the developer implement to achieve this?

Options:

A.

Implement template decorators paired with replace tags.

B.

Require and render templates with < isscript > tags.

C.

Embed partial files using ISML expressions.

Buy Now
Questions 7

A developer is working on a new feature that requires the use of a custom script. What is the first step the developer should take?

Options:

A.

Create the custom script in Business Manager.

B.

Define the custom script in the code.

C.

Write the logic to handle the custom script.

Buy Now
Questions 8

A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items:

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

Options:

A.

Use a client-side cookie to store the information for the session duration.

B.

Use the Session class, and its additional class references and attributes, in the B2C Commerce API.

C.

Use an SFRA controller. Because it runs server-side, the state is automatically maintained.

Buy Now
Questions 9

The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.

Why might the categories not be visible?

Options:

A.

The category does not contain available products.

B.

The Storefront catalog is offline.

C.

The categories are not sorted.

Buy Now
Questions 10

A developer set up a new site 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.

In Business Manager, which sequence of steps is necessary to change the site to gross taxation?

Options:

A.

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

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 Taxation setting to Gross.

Buy Now
Questions 11

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

Options:

A.

server.get( ' Show ' ,cache.applyDefaultCache,function(req,res,next) {// code});

B.

< iscache type= " relative " hour= " 24 " / >

C.

server.get( ' Show ' ,function(req,res,next) {// code}).applyDefaultCache();

Buy Now
Questions 12

A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example request URL is:

http://refarch.demandware.net/dw/data/v18_3/inventory_lists/ecom-inventory/product_inventory_records/00883408601

Which property should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

Options:

A.

client_id

B.

ecom-inventory

C.

inventory_lists

Buy Now
Questions 13

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 14

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

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 categories to export specific products.

Buy Now
Questions 15

Given this customer basket information:

• A customer has an existing basket that consists of multiple items.

• One of the items is identified as a gift item by an attribute at the product line item.

• The developer needs to write custom code to fetch the customer basket and then modify the basket based upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETResponse and ending with validateBasket.

    dw.ocapi.shop.basket.modifyGETResponse

    -- missing hook --

    -- missing hook --

    dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?

Options:

A.

dw.ocapi.shop.basket.shipment.beforePOST AND dw.ocapi.shop.basket.shipment.beforePATCH

B.

dw.ocapi.shop.basket.shipment.beforePOST AND dw.ocapi.shop.basket.shipment.beforeDELETE

C.

dw.ocapi.shop.basket.shipment.beforePATCH AND dw.ocapi.shop.basket.shipment.afterDELETE

Buy Now
Questions 16

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

Options:

A.

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

B.

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

C.

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

Buy Now
Questions 17

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 18

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 19

A developer is tasked with the development of a new Page Designer Page Type, as requested by the merchant. How should they define the rendering logic of the page?

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 client that sells sport shoes wants to allow its customers to filter 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 to happen?

Options:

A.

Create a 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 custom attribute AND add a new viewtype in the storefront catalog settings.

Buy Now
Questions 21

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

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

Options:

A.

< isbanner id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

B.

< isslot id= " category-banner " description= " Categories Banner " context= " category " context-object= " ${pdict.ProductSearchResult.category} " / >

C.

< iscontent context= " global " description= " Categories Banner " id= " category-banner " context-object= " ${pdict.ProductSearchResult.category} " / >

Buy Now
Questions 22

Given the requirements:

• To show the washing instructions for a clothing product on a dedicated section of the detail page

• Washing instructions come from the product information manager (PIM)

• To have this attribute available to localize in the Storefront

Which action meets these requirements?

Options:

A.

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

B.

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

C.

Set the product system object type as localizable.

Buy Now
Questions 23

A developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in mind while configuring payment methods?

Options:

A.

You can ' t delete a default payment method. You can only disable it.

B.

You can add only up to 5 payment methods.

C.

You can ' t drag and drop the column headers to change the sort order.

Buy Now
Questions 24

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 25

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.propertiesfiles?

Options:

A.

cartridge/templates/resources

B.

cartridge/resources

C.

cartridge/templates/resources/fr

Buy Now
Questions 26

To build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

Options:

A.

npm run compile:js, npm run compile:html, npm run clean

B.

npm run compile:js, npm run compile:scss, npm run compile:html

C.

npm run compile:js, npm run compile:scss, npm run compile:fonts

Buy Now
Questions 27

Given the following snippet:

server.append( ' Show ' ,function(req,res,next) {

According to SFRA, which option can a Developer use to complete the code above and provide data to the response using a controller?

Options:

A.

res.setViewData({data:myDataObject});res.render( ' /content/myPage ' );next();});

B.

res.viewData={data:myDataObject};res.render( ' /content/myPage ' );next();});

C.

res.render( ' /content/myPage ' );next();}).append({data:myDataObject});

Buy Now
Questions 28

A developer is implementing a new feature that requires the use of a custom object. What is the first step the developer should take?

Options:

A.

Create the custom object in Business Manager.

B.

Define the custom object in the code.

C.

Write the logic to handle the custom object.

Buy Now
Questions 29

Which operation should be done in a controller?

Options:

A.

Generate the response as JSON.

B.

Use the Script API to generate data for the view.

C.

Create a plain JavaScript object representing a system object.

Buy Now
Questions 30

Which action should a developer take to resolve the problem of not seeing attributes when creating a custom object?

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 31

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 32

What step should a developer take to troubleshoot code changes not appearing on the Storefront?

Options:

A.

Check the Business Manager site cartridge path.

B.

Check that the correct code version is selected.

C.

Check that the search index was recently rebuilt.

Buy Now
Questions 33

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 34

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 35

A merchant has a content slot on a page that currently displays products based on the top 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 this change?

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 existing content slot to create a new one.

Buy Now
Questions 36

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.

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

B.

Back-order products will be excluded from search results.

C.

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

Buy Now
Questions 37

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 38

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 39

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

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

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 is online and searchable.

Buy Now
Questions 40

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 41

A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all times.

How can a developer use Business Manager to ensure that the gift vouchers are always available?

Options:

A.

Check the perpetual flag in the product inventory record.

B.

Manually set the inventory to a high number.

C.

Set StockLevel = maxAllocation for the product.

Buy Now
Questions 42

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

Options:

A.

Payment gateway service response code

B.

Customer ' s password at post-checkout sign up

C.

Transaction ' s credit card information

Buy Now
Questions 43

A developer implements the necessary code for a new Page Designer component.

What is the purpose of the JSON metadata definition file the developer creates?

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.

Buy Now
Questions 44

What is the correct format to use for embedding a link to a content page?

Options:

A.

< a href= " ${URLUtils.url( ' Content-Show ' , ' about-us ' )} " > About Us < /a >

B.

< a href= " ${URLUtils.url( ' Page-Show ' , ' cid ' , ' about-us ' )} " > About Us < /a >

C.

< a href= " ${URLUtils.url( ' Content-Page ' , ' cid ' , ' about-us ' )} " > About Us < /a >

Buy Now
Questions 45

A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code. What can a developer do to quickly track down the potential problem?

Options:

A.

Use the Code Profiler in production instance. Set the mode to Development Mode and then wait a few minutes to collect data from onsite traffic. Click the refresh button to see the new data.

B.

Use the Code Profiler in production instance. Set the mode to Development Mode and click the refresh button to see the new mode displayed.

C.

Use the Code Profiler in a sandbox instance. Set the mode to Extended Development Mode and then load the suspected pages and run the suspected processes several times. Click the refresh button to see the new data.

Buy Now
Questions 46

A developer is using logging in scripts to troubleshoot an issue. They are using the dw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?

Options:

A.

FATAL

B.

INFO

C.

ERROR

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

Comm-Dev-101 PDF

$25.5  $84.99
Comm-Dev-101 Engine

Comm-Dev-101 Testing Engine

$30  $99.99
Comm-Dev-101 PDF + Engine

Comm-Dev-101 PDF + Testing Engine

$40.5  $134.99