Winter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ex2p65

Exact2Pass Menu

Question # 4

Given the requirements:

To integrate with an external web service using HTTP requests

To create a service for this purpose with the Service framework using the LocalServiceRegistry

class.

To test the service before the external service provider makes the API available

Which solution allows the developer to satisfy the requirements?

A.

Create a service and implement the mockfull callback and a sitepreference to enable or disable themock response.

B.

Create a service and implement the mockFill callback and set the service mode tomock.

C.

Create a service and a Sitepreference that induce the service to respond witch a mock responseusing a conditional.

D.

Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one

Full Access
Question # 5

A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.

Which link function generates the correct link?

A.

$include(‘Page-Include’, ‘cid’,‘terms-and-conditions’)$

B.

$http(‘Content-Page’, ‘cid’, ‘terms-and-conditions’)$

C.

$httpUrl(‘Content-Show’, ‘cid’, ‘terms-and-conditions’)$

D.

$url(‘Page-Show’, ‘cid’, ‘terms-and-conditions’)$

Full Access
Question # 6

A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.

What are the appropriate actions to implement such a requirement?

A.

Develop and configure a steptype and corresponding CommonJ5 job step script.

B.

Implement and configure a recurring task using the cron commandin Business Manager.

C.

Configure a new custom OCAPI endpoint and use the Customers resource type.

Full Access
Question # 7

A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on thepipeline dictionary with the name myProduct.

Which code sample will achieve this?

A.

ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });

B.

ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });

C.

ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });

D.

ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });

Full Access
Question # 8

A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.

Which three items are required to accomplish this task? (Choose three.)

A.

Instance Version

B.

Instance Hostname

C.

Business Manager Username

D.

Keystore Password

E.

Business Manager Password

Full Access
Question # 9

A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and datamodel remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.

The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.

Which modification should be made to the new cartridge path?

A.

Set the cartridge path sothat app_newsite is before app_storefront.

B.

Set the cartridge path so that app_storefront is before int_cybersource.

C.

Set the cartridge path to include only app_newsite.

D.

Set the cartridge path so that app_newsite is after app_storefront.

Full Access
Question # 10

When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.

Where should the developer add this attribute to the Custom Object so itis visible for the merchant to see in Business Manager?

A.

Assign the current date/time to a new custom attribute, creationDate, via code.

B.

Add the creation date to the attributes of the Custom Object.

C.

Mark the existing creation date attribute as visible.

D.

Add the creation date to the attribute group for the Custom Object.

Full Access
Question # 11

A developer wants to configure multiple products that should only be sold as a group. It should not bepossible for buyers to buy these products individually. How should the developer configure the products?

A.

Bundle

B.

Set

C.

Variation Group

Full Access
Question # 12

A Digital Developer is working on a projectto convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.

What must be done in order to use the debugger with the new controller when it is written?

A.

Create and use a new script debug configuration.

B.

Use the existing pipeline debugger.

C.

Modify the debugger configuration and use the existing pipeline debugger.

D.

Create and use a new controller debug configuration.

Full Access
Question # 13

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.

Full Access
Question # 14

Given the customerbasket described below:

A customer has an existing basket that consists of multiple items.

One of the items is identified as a gift ítem by an attribute at the product line ítem.

The developer needs to write custom code to fetch the customer basket andthen modify the basket based

upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate

shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETRespone and endingwith

validatebasket.

Dw.ocapi.shop.basket.modifyGETResponse

-- missing hook –

-- missing hook --

dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?

A.

dw.ocapi.shop.basket.shipment.afterDELETE

B.

dw.ocapi.shop.basket.shipment.beforePATCH

C.

dw.ocapi.shop.basket.shipment.beforeDELETE

D.

dw.ocapi.shop.baskep.shopment.beforePOSTEstos indican antes de actualizar y antes de introducir

Full Access
Question # 15

Which of these situations is anappropriate use of the B2C Commerce OCAPIs?

A.

Updating inventory information from a warehouse management software.

B.

Extending System Object Type definitions with new attributes.

C.

Showing the customer's information in their B2C Commerce "My Account’’ page.

Full Access
Question # 16

A developer hasa sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

A.

Use the service credentialURL field

B.

Use the service status area, set the override URL checkbox, and then populate the URLfield with the required one.

C.

Use a Sitepreference dedicated for the service URL

D.

Use a Globalpreference dedicated for the service URL

Full Access
Question # 17

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

Full Access
Question # 18

A developer is configuring Payment Methods on astorefront. Which of the following considerations should be kept in rmnd while configuring payment methods,

A.

You can't delete a default payment method. You can only disable it.

B.

You can add only up to 5 payment methods

C.

You can't drag and drop thecolumn headers to change the sort order.

Full Access
Question # 19

A developer needs to show only car accessories when shoppers use the search term car accessories and

exclude technology accessories and household accessories.

Given the above requirement, what is the recommended approach using the Search Dictionaries

Dashboard?

A.

Create a Synonym Dictionary entry: car accessories, household, technology.Use search mode Exact Match

B.

Create a Common Phrase Dictionary entry: car accessories, NOT household, NOT technology.Use search mode Exact Match.

C.

Create a Synonym Dictionary entry: car accessories, household, technology.Use search mode First Word.

D.

Create a Common Phrase Dictionary entry: car accessories.Use search mode Exact Match.

Full Access
Question # 20

A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.

How should the developer configure an instance to allow the merchant to independently insert and update these snippets?

A.

Create a new "HTML" attribute in the SitePreference object type.

B.

Use ISML conditional tags to add the snippet into the codebase.

C.

Configure a new Service Profile with the provided snippet of code.

Full Access
Question # 21

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

Full Access
Question # 22

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?

A.

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

B.

$url('Content_Show', 'about-us')$

C.

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

Full Access
Question # 23

A developer needs to check for product inventory in all inventory lists using the Open Commerce API.

An example requestURL is:

Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?

A.

Client_id

B.

Ecom-inventory

C.

Inventory_list

Full Access
Question # 24

UniversalContainers created a site export file from staging in the global export directory.

How should the Digital Developer update their sandbox using this staging site export file?

A.

Perform a data replication from staging.

B.

Use the Site Development > SiteImport & Export Business Manager module.

C.

Download the site export file and use UX Studio to transfer the data to the sandbox.

D.

Use the Site Development > Import & Export Business Manager module.

Full Access
Question # 25

The Home-Show route uses this middleware chain:

The developer added Home.;s 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:

Assuming the code is correct on both functions, what is the expected result?

A.

A RunTime error is thrown, "Error: Params do not match route".

B.

The base code executes and then the custom code executes.

C.

The custom code executes and then the base code executes.

D.

The base code executes, but the custom code is ignored becausethe signature lines do not match.

Full Access
Question # 26

The developercreated a new Storefront category in storefront-catalog-m-en, but when viewing the

Storefront site, the category is not visible.

What are two possible reasons?

A.

The Storefront catalog is offline

B.

The category does not contain available products

C.

The category is not sorted

D.

The category is offline.

Full Access
Question # 27

A developer is given the requirement to add a step to the existing business logic of theregistration process. How should the developer modify the route that handles the customer registration?

A.

Change the controller route with new functionality.

B.

Extend the route with new functionality.

C.

Copy the code from the original route to a new controller route, and change it.

D.

Override the route with new functionality.

Full Access
Question # 28

Universal Containers wants to change a content slot that is currently configured to display a content asset. Now they want the slot to display the top five selling boxes for the week.

Which two changes need to be madefor this to occur? (Choose two.)

A.

Change the slot’s configuration content type to “products.”

B.

Change the slot’s configuration content type to “recommendations.”

C.

Change the slot’s configuration template to the appropriate rendering template.

D.

Delete the existing content asset.

Full Access
Question # 29

A merchant has a content slot on a page that currently displays products based on the top Sellers for the

current week.

They wish to change this functionality and, instead, have the slot render a specific content asset so that the

content experience is more personalized to the visitors.

Which two actions are necessary to make this change?

Choose 2 answers

A.

Delete the existing content slot and create a new one.

B.

Change the rendering template in the slot configuration

C.

Change the default setting in the slot configuration

D.

Change the content type for the slot configuration

Full Access
Question # 30

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();

Full Access
Question # 31

Given the file structure below, which ISML method call renders the customLandingPage template?

A.

ISML.renderTamplate(‘cartridge/templates/default/content/custom/customLandingPage’);

B.

ISML(‘content/custom/customLandingPage’);

C.

ISML.render(‘content/custom/customLandingPage’);

D.

ISML.renderTemplate(‘content/custom/customLandingPage’);

Full Access
Question # 32

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.

Full Access
Question # 33

A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.

Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)

A.

The Auto-Upload setting is enabled for the server connection.

B.

The Active Server setting is enabled for the server connection.

C.

The credentials for the server connectionare correctly entered.

D.

The cartridge is for the current version of B2C Commerce.

E.

The server is configured to accept incoming connections.

Full Access
Question # 34

In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.

After adding the token in the 15ML template, which action might solve this problem'

A.

Add csrfProtection middleware steps in the controller

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF allow list in Business Manager.

Full Access
Question # 35

A Digital Developer has been given a specification to integrate with aREST API for retrieving weather conditions. The service expects parameters to be form encoded.

Which service type should the Developer register?

A.

FTP

B.

SOAP

C.

HTTP Form

D.

WebDAV

Full Access
Question # 36

Universal Containers recently completed updates to their storefront shopping cart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated userswho try to add a coupon are logged out.

The following processing code is found in the Cart.js controller file:

What should the Developer verify to identify the issue?

A.

The CSRF cartridge is included in the site’s cartridge path.

B.

The form grouphas the secure attribute set to true.

C.

The CSRF token is present in the form and is being submitted in the request.

D.

The CSRF settings in Business Manager are properly configured.

Full Access
Question # 37

A Digital Developer wants to selectivelyretrieve products and process them from an iPhone.

Which action should the Developer take, given that JavaScript controllers CANNOT be used?

A.

Use import/export in Business Manager.

B.

Create a webservice to retrieve products.

C.

Use OCAPI and invoke it in native language.

D.

Use WebDAV Client to retrieve products.

Full Access
Question # 38

Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.

Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

A.

• Add the new attribute to the "Order" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.

B.

• Modify the "COPIaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.• Modify the order export process to read information in the CSV file and include it as part of the export.

C.

• Add the new attribute to the "Customer" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object.

D.

• Create a new custom object type for order comments that contains the attributes: order ID and comments.• Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion.

Full Access
Question # 39

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

Full Access
Question # 40

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_inclusion in the layout json configuration

B.

Addcomponent_type_Exclusions in the layout json configuration

C.

Add layout_type_inclusion in the target components json configurations.

D.

Add layout_type_exclusion in the other asset components json configuration.

Full Access
Question # 41

A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Whichaction should the developer take to resolve the problem?

A.

Change the data type of the attributes.B Create an Attnbute Group with the desired attributes in it.

B.

Set the attributes to site-specific replicable.

Full Access
Question # 42

Given the following conditions:

Site export file with a copy of the Storefront data for a custom site

Sandbox with the custom site code, but no Storefront data

Requirement for a working copy of SFRA for development reference

A developer is assigned the following Business manager tasks:

A) Import the custom Site using Site Import/Export

B) Import the SFRA Demo Sites using Site Import/Export

C) Rebuild the custom Site search indexes

In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?

A.

Task A, then C, then B

B.

Task B, then C, then A

C.

Task A, then B, then C

D.

Task B, then A, then C

Full Access
Question # 43

Adeveloper cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.

Which action should the developer take to resolve the problem?

A.

Change the data type of the attributes.

B.

Create an attribute Group with the desired attributes in it.

C.

Set the attributes to site-specific replicable.

Full Access
Question # 44

A controller route in the SFRA base looks as follows:

In order to extend this route using prepared ( ), what should the developer consider?

A.

Specifyany middleware functions needed for the new functionality.

B.

Specify any middleware functions needed for the new functionality using only those called by the base route.

C.

Remove next ( ); on the new route so only the route's middleware functions execute.

Full Access
Question # 45

A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.

How should the developer update their sandbox with the data in this file?

A.

Connect and import the file using the remote option within the Site Import & Export Business Manager module.

B.

Upload and import the file using the local option within the Site Import & Export Business Manager module.

C.

Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.

D.

Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.

Full Access
Question # 46

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.

Full Access
Question # 47

Given the SFRA Controller below:

Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?

A.

cache. applyDefauItCache is not a valid middleware.

B.

viewdata is declared but not assigned.

C.

viewdata is assigned but not declared.

D.

viewdata is a B2C Script reserved name.

Full Access
Question # 48

The developer has been given the following business requirement:

The shipping method, "Free Standard Ground Shipping" has an exclusion for products with 'category equals oris child of electronics-televisions.'

The marketing department has scheduled a sale offering a "Free Standard Ground Shipping" method for brand XyzTv televisions for the next 3 months.

What method accomplishes this while following best practices'

A.

Createa new shipping method and label it "Free Standard Ground Shipping". Give it the qualifier 'brand equals XyzTv', and add it to the checkout options.

B.

Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTv' to the exclusion list fo<" "Free Standard Ground Shipping."

C.

Extend the CheckoutShippingServices controller using module.superModule and add an exception for the specified brand.

D.

Extend the code in cartridge/models/shipping/shippingMethod.jsusing module.superModule and add an exception for the specified brand.

Full Access
Question # 49

A client that sells to multiplecountries in Europe needs to disable Apple Pay for Denmark.

Which Business Manager module is used to achieve this requirement?

A.

Locale Payments

B.

Payment Methods

C.

Payment Processors

D.

Apple Pay

Full Access
Question # 50

A Digital Developer needs to add logging to the following code:

Which statement logs the HTTP status code to a debug-level custom log file?

A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Full Access
Question # 51

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

Which toolshould the developer start with to identify the issue?

A.

Storefront Toolkit

B.

Reports and Dashboards module

C.

Pipeline Profiler

Full Access
Question # 52

A merchant has a requirement to render personalized content ton a category page via a Content Slot that

targets VIP high-spending customers during a specific promotional period.

Which two items should the developer create to achieve the specified requirements?

Choose 2 answers:

A.

VIP Customer Group

B.

Page Template

C.

Slot Configuration

D.

Rendering Template

Full Access
Question # 53

The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?

A.

Logger.exception(‘Unable to find Apple Paypayment instrument for order.‘+paymentInstruments);

B.

Logger.getErrorLog().log(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

C.

Logger.fault(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

D.

Logger.error(‘Unable to find Apple Pay payment instrument for order.‘+paymentInstruments);

Full Access
Question # 54

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.

Full Access
Question # 55

A developer is asked to implementa 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'sendpoint in a .properties file.

Full Access
Question # 56

A client wants to differentiate their monobrand stores with a special icon when shown in the store

locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.

How should the developer follow SFRA best practices to expose this data for rendering?

A.

Extend the existing Stores_Find controller with a new middleware function that performs the query

B.

Pass theStore system object to the template, so that custom propierties are available

C.

Ad dan to the template, and call StoreMgr.searchStoresByCoordinates();

D.

Use the module.superModule functionality and the call method to add a new property to theStore Model.

Full Access
Question # 57

A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to have the slot render a specific content asset so that the content experience is more personalized to the visitors.

Which two actions are necessary to make thischange?

A.

Change the content type AND the rendering template in the slot configuration.

B.

Change the default setting AND the rendering template in the slot configuration.

C.

Change the rendering template in the slot configuration AND delete the existingcontent slot to create a new one.

Full Access
Question # 58

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

Full Access
Question # 59

The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer’s address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the formfield.

How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?

A.

addressForm.invalidateFormElement("addressid");

B.

addressForm.addresssid.invalidateFormElement = true;

C.

addressForm.invalidateFormElement(addressForm.addressid);

D.

addressForm.addresssid.invalidateFormElement();

Full Access
Question # 60

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");

Full Access