Labour Day Sale Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 713PS592

B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (SP24) Questions and Answers

Questions 4

The developer is asked to enhance the functionality of an existing controller route by adding information to the response's viewData.

How should the developer approach this task while following SFRA best practices?

Options:

A.

Replace the callback function of the existing route using superModule.

B.

Use the "extend" method of the server module for the existing route.

C.

Copy the existing route in a new cartridge and modify where necessary.

D.

Use the "append" method of the server module for the existing route.

Buy Now
Questions 5

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 it is visible for the merchant to see in Business Manager?

Options:

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.

Buy Now
Questions 6

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 load scripts?

Options:

A.

importPackage () method

B.

$.ajax () jQuery method

C.

local include

D.

require () method

Buy Now
Questions 7

Given the requirement to add caching to an existing page while adhering to SFRA best practices, which code snippet should be used?

A)

B2C-Commerce-Developer Question 7

B)

B2C-Commerce-Developer Question 7

C)

B2C-Commerce-Developer Question 7

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 8

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 9

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.

Buy Now
Questions 10

A new product has been added to the Storefront catalog that 15 assigned to a site

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

Options:

A.

The search index is built AND the product is online and searchable.

B.

The product has a master product AND the search index is built.

C.

The product has a price AND the product rs online and searchable.

Buy Now
Questions 11

A developer has these requirements for out-of-stock products:

Save the SKUs of the out-of-stock products that the customer is interested in

Save the customer email regardless if the customer is a guest or registered

Email the customer when the product is back-in-stock

Which step should the developer perform as part of the solution to achieve the requirements?

Options:

A.

Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing email field for the email.

B.

Create a new system object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

C.

Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.

D.

Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

Buy Now
Questions 12

A developer needs to render a Page Designer page in JSON format. What is the correct syntax?

Options:

A.

PageMgr.serializePage(pageID), {parameter1:value1}};

B.

JSON.stringgify(PageMgrrenderpage(pageID), {paramter1:value1}}:

C.

PageMgr,renderPage{pageID, {parameter1: value1}}

Buy Now
Questions 13

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?

Options:

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.

Buy Now
Questions 14

A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.

Which code sample should the Developer use to make sure that HTTPS is used?

Options:

A.

exports.PaymentForm = guard.ensure([‘http’, ‘post’, ‘loggedIn’], handlePaymentForm);

B.

exports.PaymentForm = guard.expose([‘post’, ‘loggedIn’], handlePaymentForm);

C.

exports.PaymentForm = guard.httpsPost(handlePaymentForm);

D.

exports.PaymentForm = guard.ensure([‘https’, ‘post’, ‘loggedIn’], handlePaymentForm);

Buy Now
Questions 15

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.

B2C-Commerce-Developer Question 15

Which statement correctly adds a log entry?

Options:

A.

Logger.exception(‘Unable to find Apple Pay payment 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);

Buy Now
Questions 16

A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to be incorporated into the search and navigation journey.

Which two things can the developer do to facilitate this for them?

Choose 2 answers

Options:

A.

Create a new search refinement for a Boolean value true or false and label it "big screen."

B.

Define a new searchable attribute for Screen Size.

C.

Configure catalog-level search refinement definition for Screen Size.

D.

Configure Screen Size threshold search refinement bucket definitions.

Buy Now
Questions 17

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 18

When inspecting the weekly service status report for a critical internally hosted web service used in the

application, a developer notices that there are too many instances of unavailability.

Which two solutions can reduce the unavailability of the service?

Choose 2 answers.

Options:

A.

Update the service to have a faster response time.

B.

Modify the code that makes the request to the external service to be wrapped in a try/catch

block.

C.

Increase the web service time out

D.

Change the code that sets the throwOnError attribute of the service to be true.

Buy Now
Questions 19

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.

Buy Now
Questions 20

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.

Buy Now
Questions 21

Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?

Options:

A.

Var customobject = dw.object.CustomObjectMgr.createNewsletterSubscription(‘email’,

newsLetterForm.email.value);

B.

Var customobject =

dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value,

‘NewsletterSubscription’);

C.

Var customobject = dw.object.CustomObjectMgr. createCustomObject

(‘NewsletterSubscription’, newsLetterForm.email.value);

D.

Var customobject = dw.object.CustomObjectMgr. createCustomObject

(‘NewsletterSubscription’,’email’, newsLetterForm.email.value);

Buy Now
Questions 22

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?

Options:

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 Searchable Attributes.

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.

Buy Now
Questions 23

A developer is working on a new site for the U.S based on an existing Canadian site. One of the

requirements is a change to the address form. The current Canadian form has an list with the

correct two-letter abbreviation for the provinces.

The U.S. requirements are to:

Have an list with the correct two-letter abbreviation for the states in place of the

province field.

Set the U.S site locale.

Add the options list field definition to the XML file.

How should the developer set up the files before making the required edits?

Options:

A.

Create a copy of existing address.xml file in the default folder. Rename that file to

adres_US.xml

B.

Create a new sub-folder in the forms folder. Name it US. Copy existing address.xml file in

the new folder.

C.

Create a copy of existing address.xml file in the default folder. Rename that file to

address_en_US.xml

D.

Create a new sub-folder in the forms folder. Name it en_US. Copy existing address.xml file

in the new folder.

Buy Now
Questions 24

What is accomplished by the code below?

B2C-Commerce-Developer Question 24

Options:

A.

Performs a remote include from the Account-Header endpoint.

B.

Performs a local include from the Account-Header endpoint.

C.

Creates a link to the Account-Header end point that allows mobile navigation.

Buy Now
Questions 25

A merchant has a requirement to sell a combination of four existing products with a unique product ID.

This collection will be known as ‘Our Top Combo’, and is base don the merchant’s trading information that

shows this combination to be in high demand.

What does the developer need to do next to fulfill this requirement?

Options:

A.

Create a unique produce to called ‘Our Top Combo’ and add the four products into the Product Bundles

tab.

B.

Create a Content Slot with Content Type = Product and add the four component products into that slot.

C.

Create a Product Set called ‘Our Top Combo’ and add the products into the set.

D.

Create a recommendation rule associating the four products as a recommendation group.

Buy Now
Questions 26

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.

Buy Now
Questions 27

A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.

How should a developer allow the merchant to independently adjust this number?

Options:

A.

Create a new custom preference by extending the Site Preference object type.

B.

Select the corresponding option in the system preference for Orders.

C.

Add a new Campaign using the Online Marketing section of the Business Manager.

D.

Configure a new localizable content slot with a market-specific value.

Buy Now
Questions 28

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

Storefront?

Choose 3 answers

Options:

A.

The product has a Price

B.

The Storefront catalog that contains the product is assigned to 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

Buy Now
Questions 29

A developer is writing a server side script that needs to maintain state across calls. The persistent

information needed includes these items.

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that

follows best practice?

Options:

A.

Use a non-replicable Custom Object to store the information temporarily.

B.

Use the Session class in the B2C Commerce api.

C.

Use an SFRA controller, because it runs server-side, the state is automatically maintained

D.

Use a client-side cookie to store the information for the session duration.

Buy Now
Questions 30

A merchant uploads an image using the Content Image Upload module of Business Manager.

Which three modules can the merchant or developer use to display the image on the Storefront?

Choose 3 answers

Options:

A.

ISML templates

B.

Content assets

C.

Storefront catalogs

D.

Content slots

E.

Payment types

Buy Now
Questions 31

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
Exam Name: Salesforce Certified B2C Commerce Developer (SP24)
Last Update: Apr 30, 2024
Questions: 204

PDF + Testing Engine

$66.4  $165.99

Testing Engine

$46  $114.99
buy now B2C-Commerce-Developer testing engine

PDF (Q&A)

$42  $104.99
buy now B2C-Commerce-Developer pdf