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

A developer is working on a feature that requires the use of a third-party API. What is the best practice for handling API responses in Salesforce B2C Commerce?

A.

Ignore error responses and proceed with the default behavior.

B.

Log all responses for debugging purposes and handle errors gracefully.

C.

Always return a success response to the user, regardless of the API response.

Business Manager has the configuration:

• Active Log category is " root "

• Log level of INFO

The code below executes.

varlog=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.

products

B.

custom-products

C.

custom-export

Given the requirements:

• To show the washing instructions for a clothing product on a dedicated section of the detail page

• Washing instructions come from the product information manager (PIM)

• To have this attribute available to localize in the Storefront

Which action meets these requirements?

A.

Create a custom attribute on the product system object and set it as localizable.

B.

Add a resource file for every locale for which the attribute needs to be translated.

C.

Set the product system object type as localizable.

A developer is asked to implement a simple call to an authentication-protected REST web service.

Which configuration is valid?

A.

Add the authentication password to the service credentials.

B.

Configure the authentication username using a site preference.

C.

Insert the service ' s endpoint in a.propertiesfile.

Given a job step configured in the job that calls a script module, a developer needs to add a custom status code " NO_FILES_FOUND " in the script. The status doesn ' t represent an error condition. Which code snippet completes this requirement?

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;

A client has a requirement to allow users on the Storefront to filter by a newly created attribute.

After creating the search refinement, what else is necessary to achieve this?

A.

Ensure the attribute has data and is indexed.

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

How should a developer achieve the task of not accepting certain asset components in a new Page Designer layout component?

A.

Addlayout_type_exclusionin the other asset components JSON configuration.

B.

Addcomponent_type_inclusionin the layout JSON configuration.

C.

Addcomponent_type_exclusionsin the layout JSON configuration.

A client that sells sport shoes wants to allow its customers to filter products based on the intended activity (such as tennis, jogging, basketball, etc.), but this particular information is not present in the current catalog.

Which two actions does a developer need to perform in a B2C Commerce instance to allow this to happen?

A.

Create a new Product custom attribute AND add a new Search Refinement Definition for the desired categories.

B.

Create a new ProductRefinement custom attribute AND add a new Search Refinement Definition for the desired categories.

C.

Create a new Product custom attribute AND add a new viewtype in the storefront catalog settings.

A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

A.

Logger.warn( ' Unexpected service response. ' )

B.

Logger.debug( ' Unexpected service response. ' )

C.

Logger.error( ' Unexpected service response. ' )

A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all times.

How can a developer use Business Manager to ensure that the gift vouchers are always available?

A.

Check the perpetual flag in the product inventory record.

B.

Manually set the inventory to a high number.

C.

Set StockLevel = maxAllocation for the product.