Weekend Sale Special Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Pass the Salesforce Developers Comm-Dev-101 Questions and answers with CertsForce

Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions
Questions # 11:

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


Questions # 12:

A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.

Which parameter is required when using npm scripts?

Options:

A.

Username


B.

CSRF Token


C.

Site ID


Questions # 13:

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


Questions # 14:

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. ' )


Questions # 15:

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()


Questions # 16:

A developer customized the Cart-Show controller route with a LINK cartridge that adds social media data. There is a new requirement to add a dataLayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Options:

A.

Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable.


B.

Replace the Cart-Show controller route in client cartridge and add dataLayer object to the viewData variable. Ensure that the client cartridge is on the left of the LINK cartridge in cartridge path.


C.

Append Cart-Show controller route in the client cartridge and add dataLayer object to the viewData variable.


Questions # 17:

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:

A.

Logger.warn( ' The current product is {0} with name {1} ' ,myProduct.getID(),myProduct.getName());


B.

Logger.warn( ' The current product is ${myProduct.getID()} with name ${myProduct.getName()} ' );


C.

Logger.warn( ' The current product is {0} with name {1} ' ).context(myProduct.getID(),myProduct.getName());


Questions # 18:

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


Questions # 19:

A developer implements an Open Commerce API call to add products to a basket. Given the following resource configuration:

{

" resource_id " : " /baskets/** " ,

" methods " :[ " get " ],

" read_attributes " : " (**) " ,

" write_attributes " : " (**) "

}

Which modification allows the requests to successfully execute?

Options:

A.

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


B.

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


C.

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


Questions # 20:

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} " / >


Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions