75only - Ends in 0d 00h 00m 00s - Coupon code = 75only

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

Exam Comm-Dev-101 Premium Access

View all detail and faqs for the Comm-Dev-101 exam

Practice at least 50% of the questions to maximize your chances of passing.
Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions
Questions # 31:

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 # 32:

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

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.

Questions # 34:

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 # 35:

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 >

Questions # 36:

Which object type can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager?

Options:

A.

Content assets

B.

Content slots

C.

Products

Questions # 37:

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 " : " (**) " }]}] }

Questions # 38:

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.

Questions # 39:

Given the following OCAPI definitions, which permission or permissions apply?

{

" resource_id " : " /sites/*/coupons/* " ,

" methods " :[

" put "

],

" read_attributes " : " (**) " ,

" write_attributes " : " (**) "

}

Options:

A.

Allows external applications to create coupons

B.

Allows external applications to create, update, and delete coupons

C.

Allow external applications to create, update, and delete both coupons and coupon codes

Questions # 40:

Below is a form definition snippet from the newsletter.xml file:

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

Which line of code creates a JSON object to contain the form data?

Options:

A.

server.forms.getForm( ' newsletter ' )

B.

server.form.getForm( ' newsletter ' )

C.

server.forms.getForm( ' dwfrm_newsletter ' )

Viewing page 4 out of 5 pages
Viewing questions 31-40 out of questions