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 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

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;


Questions # 2:

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


Questions # 3:

A developer wants to embed a link to a content page from within the body of another content asset. The target content asset ID is:about-us

Which option represents the correct format to use?

Options:

A.

$url( ' Page-Show ' , ' cid ' , ' about-us ' )$


B.

$url( ' Content-Show ' , ' about-us ' )$


C.

$url( ' Content-Page ' , ' cid ' , ' about-us ' )$


Questions # 4:

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.


Questions # 5:

What is the action needed for the content slot to work as intended?

Options:

A.

No; The content slot is rendered correctly.


B.

Yes; The content needs to be configured with a recommender to display products.


C.

Yes; The isloop should be removed because no loops are allowed in a content slot rendering template.


Questions # 6:

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.


Questions # 7:

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.


Questions # 8:

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 ' )} " >


Questions # 9:

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.


Questions # 10:

A client has a requirement to render different content on the homepage based on if the customer is logged in or a guest user.

What should a developer implement to achieve this requirement?

Options:

A.

Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.


B.

Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.


C.

Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.


Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions