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

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

Questions 4

A merchant uploads an image using the ContentImage 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 5

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 6

A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?

Options:

A.

The cartridge containing the script isnot in the site’s cartridge path

B.

The script debugging session is not active

C.

The script is form a third party cartridge and hence does not allow_settings breakpoints.

Buy Now
Questions 7

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.

Buy Now
Questions 8

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

An example requestURL is:

B2C-Commerce-Developer Question 8

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

Options:

A.

Client_id

B.

Ecom-inventory

C.

Inventory_list

Buy Now
Questions 9

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 10

Refer to the screen shot below:

B2C-Commerce-Developer Question 10

Given a site called RefArch that has the settings shown, whatmust be done for RefArch to use the same customer list as RefArchGlobal?

Options:

A.

Import the RefArchGlobal customer list into the RefArch site.

B.

Enable "Customer List Sharing" in Global Preferences.

C.

Select RefArchGlobal in the dropdown for Customer List.

D.

Enable "Customer List Sharing" in Site Preferences.

Buy Now
Questions 11

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

Buy Now
Questions 12

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 13

B2C-Commerce-Developer Question 13

The developer wants to be able to view DEBUG

The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?

Options:

A.

Change the Log Level for myLogCategory to DEBUG.

B.

Check the DEBUG box in the Log Files section.

C.

Change the Log Level for myLogCategory to DEBUG and check the DEBUG box in theLog Files section.

Buy Now
Questions 14

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 14

Which statement correctly adds a log entry?

Options:

A.

Logger.exception(‘Unable to find Apple Paypayment 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 15

A developer customized the Cart-Show controller routewith a LINK cartridge that adds social media data. There is a new requirement to add a datalayer object to the Cart-Show controller route.

How should the developer achieve this to ensure that no code change will be needed if the client decides to remove the LINK cartridge?

Options:

A.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable.

B.

Replace the Cart-Show controller route in client cartridge and add datalayer object to the viewData variable. Ensure thatthe client cartridge is on the left of the U.HK cartridge m cartridge path.

C.

Append Cart-Show controller route in the client cartridge and add datalayer object to the viewData variable.

Buy Now
Questions 16

A developer has custom debug statements in a script, but the messages are not showing up in the

Storefront Toolkit Request Log.

Which step needs to be completed to get the messages to appear in the Request Log?

Options:

A.

In Global preferences, check the box for Enable custom logging in Request Log.

B.

In Site Preferences, check the box for Enable custom Logging in Request Log

C.

In Custom Log Settings, check the DEBUG box for Select Log Levels Written to Files.

D.

In custom Log Settings, activate the loggin category at DEBUG level.

Buy Now
Questions 17

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 18

A Digital Developernoticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection’s target version directory.

Which action potentially solves this problem?

Options:

A.

Set the active code version to use the latest compatibility mode.

B.

Remove invalid characters from the code version’s name.

C.

Remove invalid characters from cartridge file and folder names.

D.

Set the server connection’s target version directory to the active code version.

Buy Now
Questions 19

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 20

Why should a Digital Developeruse 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 21

A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.

An example request URL is:

B2C-Commerce-Developer Question 21

Which resource_id value enables the appropriate resource?

Options:

A.

/inventory_lists/*

B.

/inventory_lists/**

C.

/inventory_list_search

D.

/products/*

Buy Now
Questions 22

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

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

The code segmentbelow executes.

B2C-Commerce-Developer Question 22

What is the result'

Options:

A.

Logs will not be written.

B.

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

C.

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

D.

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

Buy Now
Questions 23

Universal Containers needs to have Apple Pay disabled for the country of Spain.

Which Business Manager module should the Developer use to meet this requirement?

Options:

A.

Merchant Tools > Ordering > PaymentMethods

B.

Merchant Tools > Site Preferences > Apple Pay

C.

Merchant Tools > Ordering > Payment Processors

D.

Merchant Tools > Site Preferences > Payment Types

Buy Now
Questions 24

Given the code snippet aboce, what should be added after this code so it can be used for page

component display?

Options:

A.

Base.render = render;

B.

Module.exports.render = render;

C.

Module.exports = render;

D.

Module.exports = server.exports();

Buy Now
Questions 25

The Home-Show route uses this middleware chain:

B2C-Commerce-Developer Question 25

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:

B2C-Commerce-Developer Question 25

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 26

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)

Buy Now
Questions 27

The developer has been given the following business requirement:

The shipping method, Free Standard Ground Shipping' hasan exclusion for products *lth 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.

Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.

B.

Extend the CheckoutShippingservices controller using module.superModuleand add an exception for the specified brand

C.

Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTV" to the exclusion list for "Free Standard Ground Shipping."

Buy Now
Questions 28

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

Assume the code below is executing:

B2C-Commerce-Developer Question 29

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

Buy Now
Questions 30

A job executes a pipeline that makes calls to an external system.

Which two actions prevent performance issues in this situation? (Choose two.)

Options:

A.

Use synchronous import or export jobs

B.

Configure a timeout for the script pipelet.

C.

Disable multi-threading.

D.

Use asynchronous import or export jobs.

Buy Now
Questions 31

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

Buy Now
Questions 32

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 33

Which two methods are efficientand scalable? (Choose two.)

Options:

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Buy Now
Questions 34

The developercreated a new Storefront category in storefront-catalog-m-en, but when viewing the

Storefront site, the category is not visible.

What are two possible reasons?

Options:

A.

The Storefront catalog is offline

B.

The category does not contain available products

C.

The category is not sorted

D.

The category is offline.

Buy Now
Questions 35

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.

Buy Now
Questions 36

Which two items are appropriate content of custom logs implemented atcheckout?

Choose 2 answers:

Options:

A.

Customer’s password at post-checkout sign up

B.

Order failure information

C.

Transaction’s credit card information

D.

Payment gateway service response code

Buy Now
Questions 37

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

Given the SFRA Controller below:

B2C-Commerce-Developer Question 38

Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspection tool?

Options:

A.

cache. applyDefauItCache is not a valid middleware.

B.

viewdata is declared but not assigned.

C.

viewdata is assigned but not declared.

D.

viewdata is a B2C Script reserved name.

Buy Now
Questions 39

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 40

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 41

Which is an appropriate use of the ISML tag that follows B2C Commerce and SFRA best practices?

Options:

A.

Display a section of the page to logged users only

B.

Implement involved business logs through conditional statements.

C.

Redirect users to the registration page if they are not logged in

Buy Now
Questions 42

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 43

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

B2C-Commerce-Developer Question 43

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.

Buy Now
Questions 44

The developer needs to add custom category debug logging into the “contact’’ script, to ensure that a third-party service call responds as expected.

Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?

B2C-Commerce-Developer Question 44

A)

B2C-Commerce-Developer Question 44

B)

B2C-Commerce-Developer Question 44

C)

B2C-Commerce-Developer Question 44

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 45

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

Options:

A.

FATAL

B.

INFO

C.

ERROR

Buy Now
Questions 46

A developer has a sandbox with code to log a message during execution, and the following code:

After the code executes the developer does not see any log file with the message in the WebDEV folder.

Which two XML filesshould the developer import using the using-specific Merchant Tools import modules?

Options:

A.

Search settings and Promotion

B.

Search settings and Site Jobs

C.

Promotions and Site jobs

Buy Now
Questions 47

A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.

What are the appropriate actions to implement such a requirement?

Options:

A.

Develop and configure a steptype and corresponding CommonJ5 job step script.

B.

Implement and configure a recurring task using the cron commandin Business Manager.

C.

Configure a new custom OCAPI endpoint and use the Customers resource type.

Buy Now
Questions 48

Universal Containers wants to give customers the ability to refine product search results by a product custom attribute,weightCapacity.

Which series of steps should a Digital Developer take to show this refinement on the storefront?

Options:

A.

Define a sorting rule for weightCapacity, then rebuild the product search index.

B.

Define a search refinement for weightCapacity, then rebuild the product search index.

C.

Define search-suggestion buckets for weightCapacity, then rebuild the product search index.

D.

Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.

Buy Now
Questions 49

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 50

A merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:

They have one Master catalog and one storefront catalog.

Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.

Which method allows the developer to generate the export for the merchant?

Options:

A.

Using the Catalog Import and Export module, export the Master catalog with a category-assignment search to export specific

B.

Using the Site Import and Export module, export both the Site catalog and the Master catalog in a single archive.

C.

Using the Site Import and Export module, export the Master catalog filtered by the site catalog categoriesto export specific products.

Buy Now
Questions 51

What happens if the log file size limit is reached in custom logging?

Options:

A.

Logging is suspended for the day.

B.

Logging is suspended for two hours.

C.

The log file is deleted and recreated from scratch.

D.

The log file rolls over and the last used log is overwritten.

Buy Now
Questions 52

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:

B2C-Commerce-Developer Question 52

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

Buy Now
Questions 54

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 55

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 56

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

Buy Now
Questions 57

Given the requirements:

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

Washing instructions come from the product Information manager (PIM)

To have this attribute available to localize in the Storefront

Which action must these requirements?

Options:

A.

Create a custom attribute on the product system object and set it as localizable.

B.

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

C.

set the product system object type as localizable.

Buy Now
Questions 58

A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.

Which two factors might be causing a product to be hidden?

Choose 2 answers

Options:

A.

Product has been set to searchable.

B.

Product lacks a price.

C.

Product does not have any images.

D.

ProductAvailable to sell is <1.

E.

Product is not online.

Buy Now
Questions 59

A developer has aspecification to integrate with a REST API for retrieving traffic conditions. The service expects parameters to be form encoded.

Which service type should the developer register?

Options:

A.

HTML Form

B.

SOAP Form

C.

POST Form

D.

HTTP Form

Buy Now
Questions 60

Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.

Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

Options:

A.

• Add the new attribute to the "Order" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Order" object.

B.

• Modify the "COPIaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.• Modify the order export process to read information in the CSV file and include it as part of the export.

C.

• Add the new attribute to the "Customer" system object.• Modify the "COPIaceOrder" controller to add this new attribute to the current session's "Customer" object.

D.

• Create a new custom object type for order comments that contains the attributes: order ID and comments.• Modify the "COPIaceOrder" controller to create a new order comments custom object upon order completion.

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

PDF + Testing Engine

$66  $164.99

Testing Engine

$50  $124.99
buy now B2C-Commerce-Developer testing engine

PDF (Q&A)

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