11.11 Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Salesforce B2C-Commerce-Developer Dumps Questions Answers

Salesforce Certified B2C Commerce Developer (SU24) Questions and Answers

Question 1

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

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

Question 3

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.

Question 4

A developer is configuring Payment Methods on astorefront. Which of the following considerations should be kept in rmnd while configuring payment methods,

Options:

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.

Question 5

A Storefront is designed so that multiple pages share a common header and footer layout.

Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?

Options:

A.

B.

C.

D.

Question 6

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.

Question 7

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

How should thedeveloper 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.

Question 8

A Digital Developer has detected storefront pages being rendered with an error message. After inspecting the log files, the Developer discovered that an enforced quota is being exceeded.

What action should the Developer take to stop the quota violation?

Options:

A.

Rewrite the code that is causing the overage.

B.

Change the Business Managerconfiguration for the quota settings.

C.

Take no action, the overage will be resolved when concurrent visitors are reduced.

D.

Ask support to remove the quota limit.

Question 9

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:

Question 10

A Digital Developer needs to add logging to the following code:

Which statement logs the HTTP status code to a debug-level custom log file?

Options:

A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);

B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);

Question 11

A merchant has asked their development team to add a new site.

Which two tasks are essential for correct site configuration prior to launch?

Choose 2 answers

Options:

A.

Assign a default payment processor.

B.

Assign a default payment method.

C.

Assign a default currency.

D.

Assign a default payment type.

E.

Assign the appropriate taxation type.

Question 12

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

What does this achieve?

Options:

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.

Question 13

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?

Options:

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.

Question 14

Given the requirements:

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

• Washing instructionscome 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 whichthe attribute needs to be translated.

C.

Set the custom attribute as localizable

D.

Add a custom attribute for each locale

Question 15

A developer needs to display a products list of their "Women Dresses" category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements.

Which B2C Commerce tool should the developer use to collect the necessary information?

Options:

A.

The ProductSearch resource of the Shop OCAPI.

B.

The existing category's endpoint to perform a REST call.

C.

The iframe of the existing category page.

D.

The Search-Show Controller URL to perform a web crawl.

Question 16

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)

Question 17

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

Question 18

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)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 19

A Digital Developer is working on a projectto convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.

What must be done in order to use the debugger with the new controller when it is written?

Options:

A.

Create and use a new script debug configuration.

B.

Use the existing pipeline debugger.

C.

Modify the debugger configuration and use the existing pipeline debugger.

D.

Create and use a new controller debug configuration.

Question 20

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

Question 21

A retailer notices that the Account Addresses page is showing the wrong shopper’s address.

Which tool should the developerstart with to identify the issue?

Options:

A.

Pipeline profiler

B.

Code Profiler

C.

Storefront Toolkit

D.

Reports and Dashboards Module

Question 22

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 theattributes that a merchant enters when using the component type.

Question 23

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

Question 24

A client has a requirement to allow users on the Storefront to filter by a newly created attribute.

After creating the search refinement, what else is necessary to achieve this?

Options:

A.

Ensurethe attribute has data and is indexed

B.

Set the attribute as Searchable.

C.

Change the productsearchrefinebar.isml template.

Question 25

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.

Question 26

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

What happens in this situation?

Options:

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

Question 27

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.

Question 28

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 appropriatetechnique 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 tothe Stores Data OCAPI.Siempre que sea un objeto standard será put en vez de post

Question 29

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.

Question 30

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 SFRAcontroller, because it runs server-side, the state is automatically maintained

D.

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

Question 31

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?

Options:

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

Question 32

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

Question 33

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?

Options:

A.

xyz

B.

custominfo-blade

C.

custom-export

D.

custom-xyz

Question 34

A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used inthe application and notices that there are too many instances of unavailability.

Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)

Options:

A.

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

B.

Change the code that makes the request to set the throwOnError attribute, of the service, to be true.

C.

Increase the web service time out.

D.

Update the external service to have a faster response time.

Question 35

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

Question 36

A retailer notices that the Account Addresses page is showing the wrong shopper's address.

Which toolshould the developer start with to identify the issue?

Options:

A.

Storefront Toolkit

B.

Reports and Dashboards module

C.

Pipeline Profiler

Question 37

In order to implement site custom functionality, a developer creates a new cartridge.

Which step should the developer take to ensure their cartridge changes take effect?

Options:

A.

Add the new cartridge to the cartridge path for the business Manager site.

B.

Rebuild the site indexes to capture incremental changes.

C.

Add the new cartridge to the cartridge path for the relevant Storefront site.

Question 38

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?

Options:

A.

Tax Region is configured wrong.

B.

Tax Country is missing

C.

Tax Jurisdiction is missing

D.

Tax Locale is configured wrong

Question 39

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.

Question 40

To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token

generation in the customer address form:

value = “${dw.web.CSRFProtection.generateToken()”>

To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF

validation using one or both of these methods as applicable:

validateRequest

validateAjaxRequest

Where in the code does the developer need to add this CSRF validation check?

Options:

A.

In the controller function that displays the form

B.

In the middleware chain of the controller post route

C.

In the controller function that handles the submitted form

D.

In the model function that persists the form data

Question 41

A developeris 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)

Question 42

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

Question 43

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?

Options:

A.

importPackage () method

B.

$.ajax () jQuery method

C.

local include

D.

require () method

Question 44

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?

Options:

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.

Question 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

Question 46

Universal Containers calls thefollowing combination of products “The Basics” and sells the combination as a unique product ID:

    One Model 103 container

    Five Model 611 container

    Tree Model 201 container

The Developer created these three products in the catalog.

What is the next stepin Business Manager to create “The Basics” as a combination?

Options:

A.

In the Product Bundles module, create a bundle named “The Basics”.

B.

In the Products module, create a product named “The Basics” and add the products to the Product Bundles tab.

C.

In the Products module, create a product named “The Basics” and add the products to the Product Sets tab.

D.

In the Product Sets module, create a product set named “The Basics”.

Question 47

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 withthe 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 copyof existing address.xml file in the default folder. Rename that file toadres_US.xml

B.

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

C.

Create a copy of existing address.xml file in the defaultfolder. Rename that file toaddress_en_US.xml

D.

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

Question 48

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

The code executes without error; however, the log file on disk does NOTcontain 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 tomake 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.

Question 49

A merchant asks a developer to create a CachePartition 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

Question 50

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?

Options:

A.

cartridge/forms/en_IN/profile.xml

B.

cartridge/forms/profrfe_en_IN.xml

C.

cartridge/forms/profde.in. xml

Question 51

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.

Question 52

Which of these situations is anappropriate use of the B2C Commerce OCAPIs?

Options:

A.

Updating inventory information from a warehouse management software.

B.

Extending System Object Type definitions with new attributes.

C.

Showing the customer's information in their B2C Commerce "My Account’’ page.

Question 53

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

Question 54

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?

Options:

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.

Question 55

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

Question 56

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.

Question 57

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, which two logs will be written?

Choose 2 answers

Options:

A.

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

B.

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

C.

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

D.

log.debugfThis is a debug message");

Question 58

A Digital Developer has been given a specification to integrate with aREST API for retrieving weather conditions. The service expects parameters to be form encoded.

Which service type should the Developer register?

Options:

A.

FTP

B.

SOAP

C.

HTTP Form

D.

WebDAV

Question 59

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

Question 60

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

Whatis the correct code to accomplish this?