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

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

Questions 4

Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)

Options:

A.

Content slots

B.

Images and other static assets

C.

Products

D.

Folders

E.

Content assets

Buy Now
Questions 5

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?

Options:

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

Buy Now
Questions 6

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?

Options:

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.

Buy Now
Questions 7

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:

Options:

A.

VIP Customer Group

B.

Page Template

C.

Slot Configuration

D.

Rendering Template

Buy Now
Questions 8

Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 9

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?

Options:

A.

/inventory_lists/*

B.

/inventory_lists/**

C.

/inventory_list_search

D.

/products/*

Buy Now
Questions 10

Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?

Options:

A.

Images and other static assets

B.

Content slots

C.

Products

Buy Now
Questions 11

A controller route in the SFRA base looks as follows:

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

Options:

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.

Buy Now
Questions 12

A developer working on a simple web service integration is asked toadd appropriate logging to allow future

troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

Options:

A.

Logger.info(‘Unexpected service response’)

B.

Logger.debug(‘Unexpected service response’)

C.

Logger.error(‘Unexpected service response’)

D.

Logger.warn(‘Unexpected service response’)

Buy Now
Questions 13

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

Buy Now
Questions 14

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?

Options:

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.

Buy Now
Questions 15

Consider the following information:

• A merchant has this three-tier category structure setup in the Storefront catalog:

New Arrivals > Women > Clothing

• The category namedClothing has all the clothing items for Women and is merchandised.

• A Search Refinement named Newness is correctly configured for the Clothing category.

When a merchandiser views the Clothing category, the Search Refinement appears and Works as

expected.However, the merchandiser does not see the Search Refinement when searching for Clothing via

the Storefront search.

What is the Reason?

Options:

A.

There are conflicting Search Refinement definitions for Clothing and one of its parentcategories

B.

The Search Refinement definition is not set up for the Women category

C.

The Search Refinement definition is not set up for the New Arrivals Category.

D.

The Search Refinement definitions is not set up for the Root Category

Buy Now
Questions 16

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.

Buy Now
Questions 17

A developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data storedare:

Pricebook to be used

Image URL for country flag

The data used in staging also applies in production, but only for this site.

Which approach should the developer take to implement these requirements?

Options:

A.

Extend the Locale System Object to contain the custom data for each country.

B.

Create a replicable, site-specific Custom Object with the custom data for each country.

C.

Create site-specific content assets to store the data for each country.

Buy Now
Questions 18

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?

Options:

A.

dw.ocapi.shop.order.validateOrder

B.

dw.ocapi.shop.basket.calculate

C.

dw.ocapi.shop.basket.afterPostShipment

D.

dw.ocapi.shop.order.afterPOST

Buy Now
Questions 19

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?

Options:

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.

Buy Now
Questions 20

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

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

Options:

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:

Buy Now
Questions 21

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.)

Options:

A.

Instance Version

B.

Instance Hostname

C.

Business Manager Username

D.

Keystore Password

E.

Business Manager Password

Buy Now
Questions 22

Which three operations should be done in a controller?

Choose 3 answers

Options:

A.

Generate the response as JSON or HTML

B.

Use the Script API to generate data for the view.

C.

Use middleware functions when applicable

D.

Create a plain JavaScript object representing a system object

E.

Use the model needed for the view.

Buy Now
Questions 23

A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. Thedata needs to be persistent throughout the current shopping experience.

Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects?

Options:

A.

Request scope variable

B.

Page scope variable

C.

Session scope variable

D.

Content slot variable

Buy Now
Questions 24

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

Buy Now
Questions 25

A developer wants to configure the following products so that same search results ire returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. Mow should the developer configure this?

Options:

A.

Synonyms

B.

Hypernyms

C.

Hyponyms

Buy Now
Questions 26

A developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.

Options:

A.

You can exclude products that can't be shippedwith a particular shipping method

B.

You can't exclude addresses that aren't used by a particular shipping method

C.

You can't define surcharge shipping costs for specific product groups.

Buy Now
Questions 27

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

Given the following snippet:

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

According to SFRA, which two optionsshows 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 29

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?

Options:

Buy Now
Questions 30

A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.

However, the NewsletterSubscription custom object is not persisted.

What is a possible reason?

Options:

A.

The code shownneed to be wrapped in a transaction.

B.

The code shown needs to be wrapped in a try/catch block.

C.

The code shown is the wrong syntax. The correct syntax is:

Buy Now
Questions 31

Once the Cache Information tool of the storefront toolkit isenabled, how can a Digital Developer view caching information for a particular component of the page?

Options:

A.

Hover over the caching icons now present on the storefront.

B.

Open the Request Logs to view the caching information.

C.

Start a pipeline debugging session and view the caching information provided.

D.

Right-click on the component in UX Studio and view the caching properties of the file.

Buy Now
Questions 32

A developer is asked to create a new service instance that will call a remote web service.

Which method should the developer use to create the service instance?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 33

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

Options:

A.

B.

C.

D.

Buy Now
Questions 34

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 35

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

Which threeparameters are required when using npm scripts?

Choose 3 answers

Options:

A.

Usemame/Password

B.

Code Version

C.

Hostname

D.

Site ID

E.

CSRF Token

Buy Now
Questions 36

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.

Buy Now
Questions 37

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?

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 38

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'

Options:

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.

Buy Now
Questions 39

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

• Content type set to product

• With someproduct 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 asintended?

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.

Buy Now
Questions 40

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

Buy Now
Questions 41

A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:

Which modification allows the requests to successfully execute?

Options:

A.

Change the "resource_id" value to: "/baskets/*/items".

B.

Change the "write_attributes" value to: "(+items)".

C.

Change the "read_attributes" value to: "(items)".

D.

Change the "methods" value to: ["get", "post"].

Buy Now
Questions 42

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

Buy Now
Questions 43

Which method is efficient and scalable because it uses the product search index rather than searching the database?

Options:

A.

ProducrlndexModel.getOrderableProductsOnly()

B.

ProduccAvailabiliryModel.isOrderable()

C.

ProductSearcbHodel().gerProductSearchHita()

D.

ProductVanari.cnMcciel.aerVariams ()

Buy Now
Questions 44

A developer wants to create in Business Manager extension with thecartridge named

plugin_vm_extension.

Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:

Options:

A.

Add plugin_bm_extension to the cartridge path under business manager cartridge site

B.

Add the appropiate roles and permission to the user to view the business manager extension.

C.

Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.

D.

Activate a new code version for the Business Manager Site.

Buy Now
Questions 45

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?

Options:

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

Buy Now
Questions 46

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

Buy Now
Questions 47

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?

Options:

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.

Buy Now
Questions 48

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?

Options:

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

Buy Now
Questions 49

A Digital Developer is working in a sandbox on a site named test-site using thedomain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.

By default, which URL format is a proper Open Commerce API for Sandbox?

Buy Now
Questions 50

The client provides the system integrator with translation messages for the newly added "French" ("fr") locale.

What is the correct folder to store the associated .properties files?

Options:

A.

cartridge/templates/fr

B.

A cartridge/templates/resources

C.

cartridge/resources

D.

cartridge/templates/resources/fr

Buy Now
Questions 51

In order to build the SFRA code to adeveloper sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

Options:

A.

npm run compile:js, npm run compile:html, npm run clean

B.

npm run compile:scss, npm run compile:html, npm run clean

C.

npm run compile:js, npm run compile: scss, npm run compile:html

D.

npm run compile:js, npm run compile:scss, npm run compile:fonts

Buy Now
Questions 52

A developer uses hooks for an extension point. Which n true for running multiple hooks for an extension point?

Options:

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

Buy Now
Questions 53

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.

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.

Buy Now
Questions 54

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, what will be written to the log?

Options:

A.

log.warn("This is a warn message"); AND log.error("This is an error message");

B.

log.error("This is an error message"); AND log.info("This is an info message");

C.

log.info("This is a warn message");

Buy Now
Questions 55

A Digital Developer suspects a logical error in a script.

Which action will help locate the error?

Options:

A.

Submit a support ticket to B2C Commerce.

B.

Check request logs for evidence ofthe logical error.

C.

Put breakpoints in the code, debug, and examine variable values.

D.

Print all values in the script node called before the current script.

Buy Now
Questions 56

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?

Options:

A.

addressForm.invalidateFormElement("addressid");

B.

addressForm.addresssid.invalidateFormElement = true;

C.

addressForm.invalidateFormElement(addressForm.addressid);

D.

addressForm.addresssid.invalidateFormElement();

Buy Now
Questions 57

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

Options:

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.

Buy Now
Questions 58

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

Buy Now
Questions 59

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 isbase 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 Bundlestab.

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 fourproducts as a recommendation group.

Buy Now
Questions 60

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?

Options:

A.

JSON only

B.

XML only

C.

CSV only

D.

XML and CSV

Buy Now
Exam Name: Salesforce Certified B2C Commerce Developer (SU24)
Last Update: Nov 21, 2024
Questions: 203

PDF + Testing Engine

$140

Testing Engine

$105

PDF (Q&A)

$90