New Year Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in orderto decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

A.

Define a new middleware function and use it in the existing routes.

B.

Append a new function to all the existing routes with the server module.

C.

Replace the existing routes by creating a controller in separate new cartridge.

D.

Use the superModule property in the existing routes to extend their functionality.

A developer has aspecification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.

Which service type should the developer register?

A.

HTML Form

B.

SOAP Form

C.

POST Form

D.

HTTP Form

A developer customized the Cart-Show controller routewith a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

A.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable.

B.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable. Ensure thatthe client cartridge is on the left of the U.HK cartridge m cartridge path.

C.

Append Cart-Show controller route in the client cartridge and add datalayer object to the viewData variable.

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.

Ensurethe attribute has data and is indexed

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

A retailer notices that the Account Addresses page is showing the wrong shopper’s address.

Which tool should the developerstart with to identify the issue?

A.

Pipeline profiler

B.

Code Profiler

C.

Storefront Toolkit

D.

Reports and Dashboards Module

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

A client has three different sites with three locales. Two of the sites share a library and one site has a private library.

What does the shared library allowin this context?

A.

Sharing content slots between sites

B.

Sharing content assets among locales

C.

A Sharing content assets between sites

D.

Sharing content slots among locales

A client that sells sport shows wants to allow its customers to filer 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 two happen?

A.

Createa 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 customattribute AND add a new viewtype in the storefront catalog settings

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

A.

The cartridge containing the script isnot in the site’s cartridge path

B.

The script debugging session is not active

C.

The script is form a third party cartridge and hence does not allow_settings breakpoints.

A developer is using logging in scripts to troubleshoot an issue. They are using thedw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?

A.

FATAL

B.

INFO

C.

ERROR