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

B2C-Commerce-Developer Exam Dumps - Salesforce Certified B2C Commerce Developer (SU24)

Question # 4

A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes the developer does not see any log file with the message in the WebDEV folder.

Which two XML filesshould the developer import using the using-specific Merchant Tools import modules?

A.

Search settings and Promotion

B.

Search settings and Site Jobs

C.

Promotions and Site jobs

Full Access
Question # 5

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 # 6

Aclient has custom object definition and requirement that occasional data changes in staging also need to

exist in production,

Which task should the developer perform to meet these requirements when setting up the custom object?

A.

Create two copies of thecustom object in staging and set Sharing = True.

B.

Create the custom object definition in staging as Shared

C.

Create the custom object definition in production as Replicable

D.

Create the custom object definition in staging as Replicable

Full Access
Question # 7

Universal Containers specifies a new category hierarchy for navigating thedigital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.

How can other Developerswith sandboxes on the same realm create the same catalog in their own sandboxes?

A.

Use Business Manager to upload and import a copy of the export file obtained from the original Developer.

B.

Use the remote upload capability of the Site Import & Exportmodule of Business Manager.

C.

Use the import capability of the Site Import & Export module of Business Manager.

D.

Use the Business Manager Data Replication module to replicate the catalog from the original Developer’s sandbox.

Full Access
Question # 8

There is a business requirement thata custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 9

Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.

Which two additional steps should the developer take to troubleshoot this problem?

Choose 2 answers

A.

Check that the search index was recently rebuilt.

B.

Check the Business Manager site cartridge path.

C.

Check the Storefront site cartridge path.

D.

Check that the correct code version is selected.

Full Access
Question # 10

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

Full Access
Question # 11

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 # 12

A developer plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so

suggestion.product.image:view_type

What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?

A.

If the view_type is not set or if the view_type is unknown, the image properties are not part of the response.

B.

If the view_type is not set or if the view_type is unknown, the image size of 'small' is used by default

C.

If the view_type is not set or if theview_type is unknown, the image size of 'large' is used by default

Full Access
Question # 13

A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cartforms. In addition, a form field node is in the form XML and the necessary form input is present in the ISML template.

The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 14

A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.

Which statement should the Developer use to lazy loadscripts?

A.

importPackage () method

B.

$.ajax () jQuery method

C.

local include

D.

require () method

Full Access
Question # 15

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 # 16

A developer set up a newsite with Taxation: Net. However, the business requirements changed and the

site now needs to be Taxation:Gross. The Business Manager interface does not give this option.

Which sequence of steps is necessary to change the site to gross taxation?

A.

Make sure that the developer has “Administrator” Access, then change the Taxationsetting to Gross

B.

Unlock the site preferences and then change the Taxation setting to Gross

C.

Change the global setting,”Enable Taxation Methods” to true, then change the Taxationsetting to Gross

D.

Create a new site with Taxation set to Gross, then delete the old site.

Full Access
Question # 17

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 # 18

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 # 19

The developer wants to be able to view DEBUG

The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?

A.

Change the Log Level for myLogCategory to DEBUG.

B.

Check the DEBUG box in the Log Files section.

C.

Change the Log Level for myLogCategory to DEBUG and check the DEBUG box in theLog Files section.

Full Access
Question # 20

Given a file in a plug-in cartridge with the following code:

‘use strict’:

Var base = module.superModule;

Function applyCustomCache (req,res,next){

res.CachePeriod = 6; //eslint-disable-line no-param-reassign

res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign

next();

}

Module.exports = base;

Module.exports.applyCustomCache = applyCustomCache;

What does this code extend?

A.

A controller

B.

A middleware script

C.

A decorator

D.

A model

Full Access
Question # 21

A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.

How might this issue be resolved to ensure a better customer journey?

A.

In Business Manager, select Show Orderable Products Only at the root level to hide any products that are currently out of stock.

B.

In Business Manager, enter a higher boost factor for availability in SearchableAttributes.

C.

In Business Manager, set an availability low ranking threshold in Search Preferences.

D.

Create a job that sets all unavailable products to be hidden. Schedule the job to run hourly to clean up the catalog on a regular basis.

Full Access
Question # 22

A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code. Whatcan a developer do to quickly track down the potential problem?

A.

Use the Code Profiler in production instance. Set the mode to Development Mode and then wait a few minutes to collect data from onsite traffic. Click the refresh button to see the new data.

B.

Use the Code Profiler in production instance. Set the mode to Development Mode and click the refresh button to see the new mode displayed.

C.

Use the Code Profiler in a sandbox instance. Set the mode Extended Development Mode and then load the suspected pages and run the suspected process several times. Click the refresh button to see the new data.

Full Access
Question # 23

Universal Containers needs to have Apple Pay disabled for the country of Spain.

Which Business Manager module should the Developer use to meet this requirement?

A.

Merchant Tools > Ordering > PaymentMethods

B.

Merchant Tools > Site Preferences > Apple Pay

C.

Merchant Tools > Ordering > Payment Processors

D.

Merchant Tools > Site Preferences > Payment Types

Full Access
Question # 24

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 # 25

Assume the code below is executing:

Business Manager has the configuration:

    Active Log category is “root” with log level of “info.”

Given this information, what is the beginningof the filename in which the log will be written?

A.

xyz

B.

custominfo-blade

C.

custom-export

D.

custom-xyz

Full Access
Question # 26

Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).

To which hook should the Digital Developermove taxation logic to ensure consistent order totals within B2C Commerce?

A.

dw.ocapi.shop.order.validateOrder

B.

dw.ocapi.shop.basket.calculate

C.

dw.ocapi.shop.basket.afterPostShipment

D.

dw.ocapi.shop.order.afterPOST

Full Access
Question # 27

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 # 28

When exporting a price book from an externalsystem, which file format or formats should a developer use so it can be imported into a B2C Commerce site?

A.

JSON only

B.

XML only

C.

CSV only

D.

XML and CSV

Full Access
Question # 29

A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.

Which cartridge path meets the project requirements?

A.

client_project:app_project:storefront_controllers:storefront_core

B.

app_project:storefront_controllers:storefront_core

C.

app_project:client_project:storefront_controllers:storefront_core

D.

storefront_core:storefront_controllers:client_project:app_project

Full Access
Question # 30

A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module.

Which business goal does this accomplish?

A.

Exclude products from search results ifAvailable to Sell (ATS) = 0.

B.

Exclude back-ordered products from showing on the website.

C.

Block displaying the product detail page if Available to Sell (ATS) = 0.

D.

Exclude pre-order products from search results.

Full Access
Question # 31

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 # 32

An instance has custom logging enabled. The log reaches the file size limit.

What happens in this situation?

A.

The log file is deleted and a new log file is created.

B.

Logging is suspended for the day

C.

The currentlog file is archived and a new log file is created.

D.

The log file Rolls over and the oldest log messages are overwritten

Full Access
Question # 33

Refer to the screen shot below:

Given a site called RefArch that has the settings shown, whatmust be done for RefArch to use the same customer list as RefArchGlobal?

A.

Import the RefArchGlobal customer list into the RefArch site.

B.

Enable "Customer List Sharing" in Global Preferences.

C.

Select RefArchGlobal in the dropdown for Customer List.

D.

Enable "Customer List Sharing" in Site Preferences.

Full Access
Question # 34

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

Full Access
Question # 35

Which line of code creates a content slot that can be included on homepage.isml to display on the home page?

A.

B.

C.

D.

Full Access
Question # 36

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 # 37

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 # 38

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

Full Access
Question # 39

Below is a form definition snippet from the newsletter.xml file:

Which line of code creates a JSON object to contain the form data?

A.

Server.form.getForm(‘dwfrm_newsletter’)

B.

Server.form.getForm(‘newsletter’);

C.

Server.forms.getForm(‘newsletter’);

D.

Server.forms.getForm(‘dwfrm_newsletter’)En el controller: En el Formulario:

Full Access
Question # 40

Why should a Digital Developeruse ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?

A.

It is more readable code.

B.

It has fewer lines of code.

C.

It uses the search index.

D.

It reduces accesses to the application server.

Full Access
Question # 41

A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.

Which step must a developer take in Business Manager to achieve this?

A.

In Payment Methods, enable American Express as a credit card type.

B.

Add American Express intothe Order settings in Site Preferences.

C.

In Payment Processor, create American Express as a payment type.

D.

Add American Express as a Payment Preference in Site Preferences.

Full Access
Question # 42

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 # 43

A merchant checked the "Show Orderable Products Only" preference in Business Manager. What impact does this have on the Storefront from a user perspective?

A.

Back-order products will be excluded from search results.

B.

Products with an Available to Sell (ATS) - 0 will be excluded from search results.

C.

The product detail page will be hidden if Available to Sell (ATS) = 0.

D.

Pre-order products will be excluded from search results.

Full Access
Question # 44

In the SFRA Page controller, the following route exists:

The result of navigating to the address below is an error page.

What is the correct way to use this controller route in an ISML template?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 45

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 # 46

A Digital Developer has identified that the code segment below is causing performance problems.

What should theDeveloper do to improve the code?

A.

Use a system attribute instead of the isOnSaleFlag custom attribute.

B.

Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.

C.

Breaks the process into separate loops.

D.

Avoid using an Iterator and use a Collection instead.

Full Access
Question # 47

A developer wants to add a link to the My Account Page.

Whatis the correct code to accomplish this?

A.

${Resource.msg(‘myaccount’,’account’,request.locale())}

B.

${Resource.message(‘myaccount’)}

C.

${Resource.msg(‘myaccount’,’account’,null)}

D.

${ResourceMgr.getPropierties(‘myaccount’,’account’,null)}

Full Access
Question # 48

Which three configuration does a developer need to ensure to have a new product visible in the

Storefront?

Choose 3 answers

A.

The product has a Price

B.

The Storefront catalog that contains the product is assignedto a site

C.

The product has a master product

D.

The product is online and searchable

E.

The search index is built.Tengo dudas con el A. REVISAR

Full Access
Question # 49

A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to

What does this achieve?

A.

Enables searching to find Page Designer content assets that are not in folders.

B.

Prevents Page Designer pages and components from being searchable.

C.

Filters Page Designer search results into separate page and component folders.

D.

Extends the ConrencSearchModei to allow the folder filter.

Full Access
Question # 50

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 # 51

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 # 52

Which two methods are efficientand scalable? (Choose two.)

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Full Access
Question # 53

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 # 54

A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.

An example request URL is:

Which resource_id value enables the appropriate resource?

A.

/inventory_lists/*

B.

/inventory_lists/**

C.

/inventory_list_search

D.

/products/*

Full Access
Question # 55

A developer has a requirement to display a banner in two different category pages.

Which snippet of code should the developeradd to a template to allow the merchant to configure each independently?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

Full Access
Question # 56

A DigitalDeveloper has a new requirement to disable the "Discover" credit card type for all checkouts.

What does the Developer need to change in Business Manager to fulfill this requirement?

A.

Checkout exclusion rules in the Merchant Tools > Site Preferences > Checkout Preferences module.

B.

Credit card exclusion rules in the Merchant Tools > Site Preferences > Payment Preferences module.

C.

Credit cards in the Merchant Tools > Ordering > Payment Methods module.

D.

Credit card exclusion rules in the CreditCardType.json configuration file.

Full Access
Question # 57

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 # 58

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 # 59

A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new

country, Italy, and the taxi s not being calculated correctly on the Storefront

What is the likely problem?

A.

Tax Region is configured wrong.

B.

Tax Country is missing

C.

Tax Jurisdiction is missing

D.

Tax Locale is configured wrong

Full Access
Question # 60

A developer has a requirement to adda new field to the IN registration from that must not appear in the US one.

Which path should be created to accomplish this requirement?

A.

cartridge/forms/en_IN/profile.xml

B.

cartridge/forms/profrfe_en_IN.xml

C.

cartridge/forms/profde.in. xml

Full Access