Pre-Winter Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: clap70

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

Questions 4

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 5

What is the 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 6

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 7

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 8

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 9

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 10

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 11

A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page cache 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.

Site > Site Preferences > Cache

Buy Now
Questions 12

What is accomplished by the code below?

< isinclude url= " ${URLUtils.url( ' Account-Header ' , ' mobile ' , true)} " / >

Options:

A.

Performs a remote include from the Account-Header endpoint.

B.

Performs a local include from the Account-Header endpoint.

C.

Creates a link to the Account-Header endpoint that allows mobile navigation.

Buy Now
Questions 13

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 14

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 15

A developer has a specification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.

Which service type should the developer register?

Options:

A.

HTTP Form

B.

POST Form

C.

HTML Form

Buy Now
Questions 16

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 17

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 18

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

Options:

A.

ProductAvailabilityModel.isOrderable()

B.

ProductIndexModel.getOrderableProductsOnly()

C.

ProductSearchModel().getProductSearchHits()

Buy Now
Questions 19

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 20

What code should the developer write to log an unexpected service response?

Options:

A.

Logger.warn( ' Unexpected service response. ' )

B.

Logger.debug( ' Unexpected service response. ' )

C.

Logger.error( ' Unexpected service response. ' )

Buy Now
Questions 21

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 22

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 23

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 24

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

After creating the search refinement, what else is necessary to achieve this?

Options:

A.

Ensure the attribute has data and is indexed.

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

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

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 27

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 28

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 29

A developer has a sandbox with code to log a message during execution, and the following code:

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

Logger.info(message);

After the code executes, the developer does not see any log file with the message in the WebDAV folder.

What could the developer do to correct this issue?

Options:

A.

Set the root log level to debug AND check the box for Info under Log Files.

B.

Set the logging global preference to true AND set the root log level to debug.

C.

Set the logging global preference to true AND check the box for Info under Log Files.

Buy Now
Questions 30

Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object?

Options:

A.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' ,newsletterForm.email.value);

B.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value, ' NewsletterSubscription ' );

C.

varCustomObject=dw.object.CustomObjectMgr.createCustomObject( ' NewsletterSubscription ' , ' email ' ,newsletterForm.email.value);

Buy Now
Questions 31

What step must a developer take in Business Manager to accept American Express credit cards?

Options:

A.

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

B.

In Site Preferences, add American Express as a Payment Preference.

C.

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

Buy Now
Questions 32

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 33

Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?

< isloop items= " ${pdict.Basket.products} " var= " product " status= " loopstatus " >

...

< /isloop >

Options:

A.

product

B.

pdict.product

C.

pdict.Basket.products[loopstatus]

Buy Now
Questions 34

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

Content type set to product

With some product 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:

< isif condition= " ${!empty(slotcontent)} " >

< isloop iterator= " ${slotcontent.content} " alias= " product " >

< div class= " product " >

< isprint value= " ${product.getID()} " > < br / >

< isprint value= " ${product.getName()} " > < br / >

< /div >

< /isloop >

< /isif >

Is an additional action needed for this to work as intended?

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 35

Multiple shoppers report slow performance on the Product Details Page.

Which tool can a developer use to view average response times for the Product-Detail controller route?

Options:

A.

Pipeline Profiler

B.

Request Logs

C.

URL Request Analyzer

Buy Now
Questions 36

A developer is tasked with creating a new payment method in Business Manager. What is the first step the developer should take?

Options:

A.

Create a new payment processor.

B.

Create a new payment method.

C.

Configure the payment method settings.

Buy Now
Questions 37

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 38

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.

Create a new SingleBrandStore custom object configuration.

C.

Adjust the relevant Site Preference in the Stores group.

Buy Now
Questions 39

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 should the developer do to implement such a requirement?

Options:

A.

Develop and configure a scheduled job and corresponding Job step script.

B.

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

C.

Configure a new custom Open Commerce API (OCAPI) endpoint and use the Custom resource type.

Buy Now
Questions 40

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 41

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 42

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 43

Which snippet works correctly when updating the package.json file to point to the hook file for a cartridge?

Options:

A.

{ " hooks " : " ./cartridge/scripts/hooks.json " }

B.

{ " hooks " : " ./scripts/hooks.json " }

C.

{ hooks: " ./cartridge/scripts/hooks.json " }

Buy Now
Questions 44

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 logged for " product " and all its subcategories. For the subcategory " product.import " DEBUG and INFO are also logged.

B.

WARN and ERROR are logged for " product " and all its subcategories. For the subcategory " product.import " DEBUG and INFO are not logged.

C.

WARN and ERROR are logged for " product " and all its subcategories.

Buy Now
Questions 45

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
Questions 46

Which line of code should a developer add for custom category debug logging?

Options:

A.

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

B.

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

C.

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

Buy Now
Exam Code: Comm-Dev-101
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Sep 23, 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