Month End Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: estly75

Business Manager has the configuration:

• Active Log category is " root "

• Log level of WARN

The code below is executing:

varlog=Logger.getLogger( " products " );

Using this information, what will be written to the log?

A.

log.warn( " This is a warn message " ); AND log.error( " This is an error message " );

B.

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

C.

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

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?

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.

To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form.

< form ... action= " submit " >

< input name= " ${dw.web.CSRFProtection.getTokenName()} "

value= " ${dw.web.CSRFProtection.generateToken()} " >

...

< the rest of the Form Fields >

....

< /form >

To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable:

validateRequest

validateAjaxRequest

Where in the code does the developer need to add this CSRF validation check?

A.

In the middleware chain of the controller post route

B.

In the controller function that displays the form

C.

In the model function that persists the form data

Which is an appropriate use of the < isif > ISML tag that follows B2C Commerce and SFRA best practices?

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.

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?

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.

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?

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

A developer is given a task to implement a new Page Designer layout component that doesn ' t accept certain asset components.

How should the developer achieve the above task?

A.

Add component_type_exclusions in the layout json configuration.

B.

Add component_type_inclusion in the layout json configuration.

C.

Add layout_type_exclusion in the other asset components json configuration.

Which is an appropriate use of the < isif > ISML tag that follows B2C Commerce and SFRA best practices?

A.

Display a section of the page to logged users only.

B.

Implement involved business logic through conditional statements.

C.

Redirect users to the registration page if they are not logged in.

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

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.

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?

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.