Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70xmasdy

Welcome To DumpsPedia

Comm-Dev-101 Sample Questions Answers

Questions 4

A developer needs to show only car accessories when shoppers use the search term " car accessories " and exclude technology accessories and household accessories.

Given the above requirement, what is the recommended approach using the Search Dictionaries Dashboard?

Options:

A.

Create a Synonym Dictionary entry: car accessories, household, technology. Use search mode First Word.

B.

Create a Common Phrase Dictionary entry: car accessories. Use search mode Exact Match.

C.

Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology. Use search mode Exact Match.

Buy Now
Questions 5

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 6

How might a developer resolve the issue of low-stock items appearing at the top of search results?

Options:

A.

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

B.

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

C.

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.

Buy Now
Questions 7

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 8

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 9

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 10

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

Options:

A.

The current log file is archived and a new log file is created.

B.

The log file is deleted and a new log file is created.

C.

Logging is suspended for the day.

Buy Now
Questions 11

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 12

Reference the following code snippets that allow a form to function correctly.

Form definition (newsletter.xml):

< ?xmlversion= " 1.0 " ? >

< formxmlns= " http://www.demandware.com/xml/form/2008-04-19 " >

< fieldformid= " email " label= " Email: " type= " string "

mandatory= " true " max-length= " 50 " / >

< /form >

Controller snippet:

varnewsletterForm=server.forms.getForm( ' newsletter ' );

res.render( ' NewsletterTemplate ' ,{newsletterForm:newsletterForm});

Template snippet:

< form action= " ${URLUtils.url( ' Newsletter-Submit ' )} " method= " POST "

< isprint value= " ${EXPRESSION.attributes} " encoding= " off " / > >

< input type= " input " id= " email "

< isprint value= " ${EXPRESSION.email.attributes} " encoding= " off " / > >

< button type= " submit " > Submit < /button >

< /form >

Which code should a developer insert at the EXPRESSION placeholder in the ISML template snippet above to have the form work as expected?

Options:

A.

pdict.newsletterForm

B.

pdict.newsletter

C.

newsletterForm

Buy Now
Questions 13

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 14

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 15

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 16

In the SFRA Page controller, the following route exists:

server.get( ' Include ' ,server.middleware.include,cache.applyDefaultCache,

function(req,res,next) {

...assume original code here...

next();

}

);

The result of navigating to the address below is an error page.

https://yourinstance/on/demandware.store/Sites-RefArch-Site/en_US/Page-Include?cid=about-us

What is the correct way to use this controller route in an ISML template?

Options:

A.

< a href= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " > ${Resource.msg( ' aboutus ' , ' content ' ,null)} < /a >

B.

< isinclude url= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " >

C.

< iscontent url= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " >

Buy Now
Questions 17

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 18

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 19

The Home-Show route uses this middleware chain:

server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,

function(req,res,next) {

// base code here

}

);

The developer added Home.js 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:

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

// custom code here

});

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

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 20

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 21

A controller route in the SFRA base looks as follows:

server.get( ' Show ' ,consentTracking.consent,cache.applyDefaultCache,

function(req,res,next) {

...base code omitted on purpose...

next();

},

pageMetaData.computedPageMetaData

);

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

Options:

A.

Specify any 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.

Removenext();on the new route so only the route ' s middleware functions execute.

Buy Now
Questions 22

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 23

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 24

A developer uses hooks for an extension point. Which is true for running multiple hooks for an extension point?

Options:

A.

It is possible to register multiple modules to call for an extension point in a single hooks.json file.

B.

It is possible to control the order in which registered modules are called.

C.

If you call multiple modules, only the first hook called returns a value.

Buy Now
Questions 25

What is the expected outcome when the log reaches the file size limit?

Options:

A.

Logging is suspended for the day.

B.

The current log file is archived and a new log file is created.

C.

The log file is deleted and a new log file is created.

Buy Now
Questions 26

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 27

A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?

Options:

A.

Bundle

B.

Set

C.

Variation Group

Buy Now
Questions 28

Business Manager has the configuration:

• Active Log category is " root "

• Log level of INFO

The code below executes.

varlog=Logger.getLogger( " products " , " export " );

log.info( " This is important information " );

Using this information, what is the beginning of the filename in which the log will be written?

Options:

A.

products

B.

custom-products

C.

custom-export

Buy Now
Questions 29

A client has a requirement to allow users on the Storefront to filter by a newly created attribute. Which is necessary to achieve this?

Options:

A.

Add a new Search Refinement Definition.

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

Buy Now
Questions 30

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 31

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 32

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 33

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 34

A developer has the following files in template/resources:

• account.properties - > weight.unit=kilos

• account_en.properties - > weight.unit=stones

• account_en_US.properties - > weight.unit=pounds

Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Storefront with the English for Canada (en_CA) locale?

Your parcel weighs 10 ${Resource.msg( ' weight.unit ' , ' account ' ,null)}.

Options:

A.

Your parcel weighs 10 pounds.

B.

Your parcel weighs 10 stones.

C.

Your parcel weighs 10 account.

Buy Now
Questions 35

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 36

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 of calls 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 37

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 38

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 39

A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the 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 product details page, depending on the customer ' s location?

Options:

A.

Add a Site-specific custom attribute to the Product system object type.

B.

Add a Localizable custom attribute to the Certificate system object type.

C.

Add a Localizable custom preference to the SitePreferences system object type.

Buy Now
Questions 40

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 41

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 42

Given a job step configured in the job that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status doesn ' t 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 43

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 44

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 is not in the site ' s cartridge path.

B.

The script debugging session is not active.

C.

The script is from a third-party cartridge and hence does not allow setting breakpoints.

Buy Now
Questions 45

A developer working on a simple web service integration is asked to add 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.warn( ' Unexpected service response. ' )

B.

Logger.debug( ' Unexpected service response. ' )

C.

Logger.error( ' Unexpected service response. ' )

Buy Now
Questions 46

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
Exam Code: Comm-Dev-101
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Oct 12, 2026
Questions: 154

PDF + Testing Engine

$51.42 $171.4

Testing Engine

$38.57 $128.55

PDF (Q&A)

$42.85 $142.82