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

Salesforce B2C-Commerce-Developer - Salesforce Certified B2C Commerce Developer (SP25)

Page: 4 / 6
Total 203 questions

Business Manager has the configuration:

Active Log category is "root"

Log level of WARN

The code below is executing:

var log = Logger.getLogger("products");

Using this information, which two logs will be written?

Choose 2 answers

A.

log.warn("This is a warn message");

B.

log.error("This is an error message");

C.

log.info("This is an info message");

D.

log.debugfThis is a debug message");

Business Manager has the configuration:

Active log category is “root”

Log level of INFO

The code below execites:

Var log = 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?

A.

custom-export

B.

custom-products

C.

products

D.

info-export

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

A.

It is possible to register multiple modules to call for an extension point in a singlehooks.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

Given the code snippet aboce, what should be added after this code so it can be used for page

component display?

A.

Base.render = render;

B.

Module.exports.render = render;

C.

Module.exports = render;

D.

Module.exports = server.exports();

A Newsletter controller contains the following route:

Server.post(‘Subscribe’, function (req,res,next){

var newsletterForm = server.forms.getForm(‘newsletter’);var CustomObjectMgr = require(‘dw/object/CustomObjectMgr’);

if(newsletterForm.valid){

try{

var CustomObject =

CustomObjectMgr.createCustomObejct(‘NewsletterSubscription’, newsletterform.email.value);

CustomObject.custom.firstName = newsletterForm.fname.value;

CustomObject.custom.lastName = newsletterForm.lname.value;-

} catch(e){

//Catch error here

}

}

next();

});

Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template

when the subscription form is correctly submitted?

A.

Custom Objects can only be created by Job scripts

B.

The Subscribe route is missing the server.middleware.httpt middleware.

C.

The CustomObjectMgr variable should be declare outside of the route.

D.

The Custom Object creation is not wrapped in a Transaction.

A merchant has asked their development team to add a new site.

Which two tasks are essential for correct site configuration prior to launch?

Choose 2 answers

A.

Assign a default payment processor.

B.

Assign a default payment method.

C.

Assign a default currency.

D.

Assign a default payment type.

E.

Assign the appropriate taxation type.

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?

A.

Add a Boolean custom attribute to the Store system object

B.

Configure theexisting Store custom object type definition

C.

Create a new SingleBrandStore custom object configuration.

D.

Adjust the relevant Site Preference in the Stores group

Given the following snippet:

Server.append( ‘Show’ , function (req, res, next) )

According to SFRA, which two optionsshows a correct way to complete the code above in order to provide

data to the response using a controller?

Choose 2 answers

A.

res.viewData = {data: myDataObject};res.render(‘/content/myPage’);next();});

B.

res.setViewData ({data: myDataObject});res.render(‘/content/myPage’);next();});

C.

res.render(‘/content/myPage’,{data: myDataObject});next();});

D.

res.render(‘/content/myPage’);next();}).append{(Data:myDataObject});

A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.

Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)

A.

Enable cache information in the storefront toolkit and view the cache information for theproduct tile.

B.

View the cache information provided by the Merchant Tools > Technical Reports Business Manager module.

C.

View the product list page cache settings provided in the Administration > Manage Sites Business Manager module.

D.

Enable the template debugger to verify the cache times for the producttile.isml template.

A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,” to it.

Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?

A.

prod.extended.sellable

B.

prod.sellable

C.

prod.persistable.sellable

D.

prod.custom.sellable