Summer Special Discount 60% Offer - Ends in 0d 00h 00m 00s - Coupon code: brite60

Salesforce Certified B2C Commerce Developer (SP23) Question and Answers

Salesforce Certified B2C Commerce Developer (SP23)

Last Update Apr 19, 2024
Total Questions : 202

We are offering FREE B2C-Commerce-Developer Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare B2C-Commerce-Developer free exam questions and then go for complete pool of Salesforce Certified B2C Commerce Developer (SP23) test questions that will help you more.

B2C-Commerce-Developer pdf

B2C-Commerce-Developer PDF

$40  $99.99
B2C-Commerce-Developer Engine

B2C-Commerce-Developer Testing Engine

$48  $119.99
B2C-Commerce-Developer PDF + Engine

B2C-Commerce-Developer PDF + Testing Engine

$64  $159.99
Questions 1

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

Discussion 0
Questions 2

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?

Options:

A.  

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

B.  

Pass the Store 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 the Store Model.

Discussion 0
Questions 3

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.

Discussion 0
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 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.

Discussion 0
Questions 5

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

Options:

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.

Discussion 0
Questions 6

Given a template rendered by a controller with caching and a remote include without caching, which situation applies?

Options:

A.  

Both the remote include portion and the rest of the page are cached.

B.  

The remote include portion is not cached, but the rest of the page is cached.

C.  

The page is cached only for returning customers because of the remote include.

D.  

The page is not cached because the remote include introduces an uncached portion.

Discussion 0
Questions 7

A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.

Which three parameters are required when using npm scripts?

Choose 3 answers

Options:

A.  

Usemame/Password

B.  

Code Version

C.  

Hostname

D.  

Site ID

E.  

CSRF Token

Discussion 0
Questions 8

A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

How should the Developer change the request?

Options:

A.  

Change the URI to /dw/shop/v18_3/products/creative-zen-v.

B.  

Change the HTTP method to PUT.

C.  

Change the HTTP method to GET.

D.  

Include an authentication token in the request.

Discussion 0
Questions 9

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?

Options:

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.

Discussion 0
Questions 10

A developer has the following files in template/resources:

account.proierties

weight.unit=kilos

account_en.propierties

weight.unit=stones

account_en_US.propierties

weight.unit= pounds

Using the default locale configuration, what is the current outcome of the page that renders the

account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=

Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}

Options:

A.  

Your parcel weighs 10 stones.

B.  

Your parcel weighs 10 pounds.

C.  

Your parcel weighs 10 undefined.

D.  

Your parcel weighs 10 kilos

Discussion 0
Questions 11

A Digital Developer needs to store information temporarily and decides to create a custom object.

Which code creates a custom object?

Options:

A.  

CustomObject.createCustomObject(CustomObjectType,primaryKey);

B.  

CustomObject.createCustomObject(primaryKey,CustomObjectType);

C.  

CustomObjectMgr.createCustomObject(primaryKey);

D.  

CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)

Discussion 0
Questions 12

A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.

Which approach should the Developer use to implement the requirement?

Options:

A.  

Implement a ServiceUnavailableException exception handler to execute fallback code.

B.  

Implement a condition that checks to see if the response was empty and execute fallback code if true.

C.  

Create a site preference to store timeout settings and implement an IOException handler to execute fallback code.

D.  

Use the setTimeout method to execute fallback code if the request has NOT completed.

Discussion 0
Questions 13

A developer must configure permissions for an Open Commerce API resource on a sandbox instance that

currently does not have any permissions configured.

Which two configuration properties are required to enable Access to the resource?

Choose 2 answers

Options:

A.  

Resource_id

B.  

Read_attributes

C.  

Client_id

D.  

Versión_range

Discussion 0
Questions 14

A developer is tasked with implementing the necessary code for a new Page Designer component.

What are the two purposes of the JSON metadata definition file that the developer creates7

Choose 2 answers

Options:

A.  

Defines regions within the component type.

B.  

Defines the responsive layout of the rendered template.

C.  

Defines the business and rendering logic of the component required by the merchant.

D.  

Defines the attributes that a merchant enters when using the component type.

Discussion 0
Questions 15

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

Discussion 0
Questions 16

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 made for this to occur? (Choose two.)

Options:

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.

Discussion 0
Questions 17

A developer is tasked with the development of anew Page Designer Page Type, as requested by the merchant.

How should they define the rendering logic of the page?

Options:

A.  

Implement a JavaScript file with a render () function.

B.  

Implement a metadata JSON file with a ''render'' property.

C.  

Implement a Controller file with a ''render'' route.

Discussion 0
Questions 18

A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the

European market. The products they make are sold with different safety certificates based-on the world

location.

For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a

hairdryer with certificate C in the U.S and certificate D in Europe, and more.

How should a developer allow the merchant to display the appropriate certification logo in the produce to

details page, depending on the customer’s location?

Options:

A.  

Add a Localizable custom attribute to the Certificate system object type.

B.  

Ad and Image custom preference to the Sitepreference system object type

C.  

Add a Site-specific custom attribute to the Product system object type.

D.  

Add a Localizable custom preference to the SitePreference system object type.

Discussion 0
Questions 19

Given a sandbox with an active slot configuration with the following specifications:

• Content type set to product

• With some product configured

• With the following rendering template: slots/product/product_1x2 isml

• Correctly enabled and scheduled

And given the code contained in the selected rendering template:

Is an additional action needed for this to work as intended?

Options:

A.  

No - The content slot is rendered correctly.

B.  

Yes - The isloop should be removed because no loops are allowed in a content slot rendering template.

C.  

Yes - The content needs to be configured with a recommender to display products.

Discussion 0
Questions 20

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

Discussion 0
Questions 21

A developer has a B2C site and a merchant requirement to add a new locale to it.

What are the steps to enable the locale in the Storefront?

Options:

A.  

Create and configure the locale under Global Preferences section and activate it in Site Preferences.

B.  

Create, configure, and activate the locale under Global Preferences section.

C.  

Add an alias for the new locale and then create and configure the locale itself under Global Preferences section.

Discussion 0
Questions 22

A Newsletter controller contains the following route:

Server.post(‘Subscribe’, function (req,res,next){

var newsletterForm = server.forms.getForm(‘newsletter’);var CustomObjectMgr = require(‘dw/object/CustomObjectMgr’);

if(newsletterForm.valid){

try{

var CustomObject =

CustomObjectMgr.createCustomObejct(‘NewsletterSubscription’, newsletterform.email.value);

CustomObject.custom.firstName = newsletterForm.fname.value;

CustomObject.custom.lastName = newsletterForm.lname.value;-

} catch(e){

//Catch error here

}

}

next();

});

Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template

when the subscription form is correctly submitted?

Options:

A.  

Custom Objects can only be created by Job scripts

B.  

The Subscribe route is missing the server.middleware.httpt middleware.

C.  

The CustomObjectMgr variable should be declare outside of the route.

D.  

The Custom Object creation is not wrapped in a Transaction.

Discussion 0
Questions 23

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

Discussion 0
Questions 24

In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.

Which two courses of action might solve the problem?

Choose 2 answers

Options:

A.  

Add the token in the ISML template.

B.  

Extend the CSRF token validity to avoid timeouts.

C.  

Delete the existing CSRF whitelists in Business Manager.

D.  

Add csrfProtection.generateToken as a middleware step in the controller.

Discussion 0
Questions 25

A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.

Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?

Options:

A.  

Use the Catalog Export module to export the site catalog.

B.  

Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.

C.  

Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.

D.  

Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.

Discussion 0
Questions 26

Given a job step configured in the steptype.json, a developer needs to add a custom status code

“No_FILES_FOUND”.

Which code snippet will complete the requirement?

Options:

A.  

var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’};

return status;

B.  

var status = require(‘dw/system/status’);

return new Status(Status.OK, ‘NO_FILES_FOUND’);

C.  

this.status = ‘NO_FILES_FOUND’

return this;

D.  

return ‘NO_FILES_FOUND

Discussion 0
Questions 27

The developer has been given the following business requirement:

The shipping method, "Free Standard Ground Shipping" has an exclusion for products with 'category equals or is 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'

Options:

A.  

Create a 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.js using module.superModule and add an exception for the specified brand.

Discussion 0
Questions 28

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

Which business goal does this accomplish?

Options:

A.  

Exclude products from search results if Available 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.

Discussion 0
Questions 29

Reference the following code snippets that allow a form to function correctly.

Which code should a developer insert at the EXPRESSION placeholder m the ISML template snippet above to have the form work as expected?

Options:

A.  

pdict.newslettersFrom

B.  

Pdict, newsletter

C.  

sowslettersform

Discussion 0
Questions 30

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 cart forms. 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?

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 31

Given the above OCAPI definitions, which permission or permissions apply?

Options:

A.  

Allows external applications to create coupons

B.  

Allows external applications to create, update, and delete coupons

C.  

Allow external applications to create, update, and delete both coupons and coupon codes

D.  

Allows external applications to update coupons

Discussion 0