Valentine Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

B2C-Commerce-Developer Sample Questions Answers

Questions 4

Given the requirements:

• To show the washing instructions for a clothing product on a dedicated section 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?

Options:

A.

Set the product system object type as localizable

B.

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

C.

Set the custom attribute as localizable

D.

Add a custom attribute for each locale

Buy Now
Questions 5

Given the following snippet:

Server.append( ‘Show’ , function (req, res, next) )

According to SFRA, which two options shows a correct way to complete the code above in order to provide

data to the response using a controller?

Choose 2 answers

Options:

A.

res.viewData = {

data: myDataObject

};

res.render(‘/content/myPage’);

next();

});

B.

res.setViewData ({

data: myDataObject

});

res.render(‘/content/myPage’);

next();

});

C.

res.render(‘/content/myPage’,{

data: myDataObject

});

next();

});

D.

res.render(‘/content/myPage’);

next();

}).append{(

Data:myDataObject

});

Buy Now
Questions 6

A Digital Developer extends a system object, Product, and adds a Boolean attribute, “sellable,” to it.

Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?

Options:

A.

prod.extended.sellable

B.

prod.sellable

C.

prod.persistable.sellable

D.

prod.custom.sellable

Buy Now
Questions 7

A developer wants to use an external application to manage their stores information (such as opening

hours, and so on), and see their changes in their B2C Commerce Staging instance aas son as they are

saved.

What is the appropriate technique the developer should perform to allow the merchant to create a new

store in this scenario?

Options:

A.

A POST request to the Stores Data OCAPI.

B.

A PUT request to the Stores Data OCAPI.

C.

A PATCH request to the Stores Data OCAPI.

D.

An UPDATE request to the Stores Data OCAPI.

Siempre que sea un objeto standard será put en vez de post

Buy Now
Questions 8

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

Options:

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

Buy Now
Questions 9

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

An example request URL is:

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

Options:

A.

Client_id

B.

Ecom-inventory

C.

Inventory_list

Buy Now
Questions 10

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

Which path should be created to accomplish this requirement?

Options:

A.

cartridge/forms/en_IN/profile.xml

B.

cartridge/forms/profrfe_en_IN.xml

C.

cartridge/forms/profde.in. xml

Buy Now
Questions 11

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?

Options:

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 because the signature lines do not match.

Buy Now
Questions 12

There are three logging categories: category1, category1.eu, and category1.us.

In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.

The code segment below executes.

What is the result'

Options:

A.

Logs will not be written.

B.

Logs will be written to the log file with a prefix loggerFile.

C.

Logs will be written to the log file with a prefix custom-loggerFile.

D.

Logs will be written to the log file with a prefix customwarn.

Buy Now
Questions 13

A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.

Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)

Options:

A.

Enable cache information in the storefront toolkit and view the cache information for the product tile.

B.

View the cache information provided by the Merchant Tools > Technical Reports Business Manager module.

C.

View the product list page cache settings provided in the Administration > Manage Sites Business Manager module.

D.

Enable the template debugger to verify the cache times for the producttile.isml template.

Buy Now
Questions 14

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?

Options:

A.

A controller

B.

A middleware script

C.

A decorator

D.

A model

Buy Now
Questions 15

Universal Containers wants to associate a region code value with an order to indicate the general area of its destination. This region code must be accessible whenever the order history is displayed.

What is required to accomplish this?

Options:

A.

Store the region code value in a session variable.

B.

Define a custom attribute on the Order system object type to store the region code value.

C.

Define a custom object type to store the username with the region code.

D.

Store the region code value in the geolocation system attribute of the Order.

Buy Now
Questions 16

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

Options:

A.

FATAL

B.

INFO

C.

ERROR

Buy Now
Questions 17

Given the sandbox with:

Service configured and assigned to its profile and credential

A code version that uses that service

And given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second.

Which configuration should the developer perform?

Options:

A.

Set the service as limited and change the services profile site preferences with the required values.

B.

Set the rate limiter in the service profile and configure its values with the ones required.

C.

Set a new quota limit for the service profile and assign the service to it.

Buy Now
Questions 18

There is a business requirement that a 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)

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 19

A merchant asks a developer to create a Cache Partition for the home page, so that when the home page

is edited, only the home page is cleaned.

Given the above requirement, where should the developer create that partition in Business Manager?

Options:

A.

Administration > Sites > Manage Sites > Site > Cache

B.

Operations > Site > Manage Sites > Cache

C.

Operations > Cache > Site

D.

Site > Site Preferences > Cache

Buy Now
Questions 20

A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.

Which two XML files should the developer import using the site-specific Merchant Tools import modules,

instead of the Administration section import modules?

Choose 2 answers.

Options:

A.

System type extensions (solo en Sites)

B.

Site Jobs (sites)

C.

Search Settings En (search y en Sites)

D.

Promotions ( en sites y en online marketing)

Buy Now
Questions 21

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?

Options:

A.

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

mock response.

B.

Create a service and implement the mockFill callback and set the service mode to mock.

C.

Create a service and a Sitepreference that induce the service to respond witch a mock response

using a conditional.

D.

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

Buy Now
Questions 22

The developer created 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?

Options:

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.

Buy Now
Questions 23

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?

Options:

A.

Add component_type_inclusion in the layout json configuration

B.

Add component_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.

Buy Now
Questions 24

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)

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 25

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.

Which snippet of code should be used?

A Logger.warn(‘The current producto is {0} with name {1}’, myProduct.getID(), myProduct.getName());

B Logger.warn(‘The current producto is {0} with name {1}’), context(myProduct.getID(), myProduct.getName());

C Logger.warn(‘The current producto is ${myProduct.getID()} with name ${myProduct.getName()}’);

D Logger.warn(‘The current producto is %s with name %s’), context(myProduct.getID(), myProduct.getName());

Options:

Buy Now
Questions 26

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?

Options:

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.

Buy Now
Questions 27

A Digital Developer adds the following line of code to a script.

The code executes without error; however, the log file on disk does NOT contain the log message.

Which two actions should be completed to write the log message to disk? (Choose two.)

Options:

A.

Ensure that the debug log level is enabled to write to file in the Custom Log Settings Business Manager module.

B.

Archive old log files to make room in the log directory.

C.

Ensure that the “login” category is added to the Custom Log Filters in the Log Settings Business Manager module.

D.

Ensure that the debug log level has been added to the custom log level types in the Global Preferences business manager module.

Buy Now
Questions 28

Which two items are appropriate content of custom logs implemented at checkout?

Choose 2 answers:

Options:

A.

Customer’s password at post-checkout sign up

B.

Order failure information

C.

Transaction’s credit card information

D.

Payment gateway service response code

Buy Now
Questions 29

A Digital Developer 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?

Options:

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.

Buy Now
Questions 30

Given the requirements:

To show the washing Instructions for a clothing product on a dedicated section the detail page

Washing instructions come from the product Information manager (PIM)

To have this attribute available to localize in the Storefront

Which action must these requirements?

Options:

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.

Buy Now
Questions 31

A Digital Developer added a file 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?

Options:

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

Buy Now
Exam Code: B2C-Commerce-Developer
Exam Name: Salesforce Certified B2C Commerce Developer (WI24)
Last Update: Feb 21, 2024
Questions: 202
$64  $159.99
$48  $119.99
$40  $99.99
buy now B2C-Commerce-Developer