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

Salesforce B2C-Commerce-Developer Dumps

Salesforce Certified B2C Commerce Developer (SP23) Questions and Answers

Question 1

A developer is configuring Payment Methods on a storefront. 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 the column headers to change the sort order.

Question 2

Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,next){

Var Site = require(‘dw/system/Syte”);

Var pageMetaHelpter = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);

pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);

res.render(‘/home/homePage’);

Missing code here

}, pageMetadata.computedPageMetadata);

The controller endpoint code snippet above does not work.

Which line of code should the developer use to replace line 6 and correct the problem?

Options:

A.

next();

B.

return res;C. res.next();

C.

req.next();

Question 3

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

Question 4

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

Question 5

There is a business requirement to allow a third-party warehouse management system to update the MySampte.com storefront product inventory in real time. The architect decided that this is most easily accomplished by using the Open Commerce API (OCAPI). The developer needs to test the OCAPI settings m their sandbox. Assume the client ID for testing is "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'. What B the correct GCAPI setting for this?

A)

Options:

Question 6

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 7

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

Question 8

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.

Question 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

Question 10

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

Question 11

A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.

Which B2C feature should the developer use to achieve the request?

Options:

A.

Use the service credential URL field

B.

Use the service status area, set the override URL checkbox, and then populate the URL

field with the required one.

C.

Use a Sitepreference dedicated for the service URL

D.

Use a Globalpreference dedicated for the service URL

Question 12

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

B.

Merchant Tools > Site Preferences > Apple Pay

C.

Merchant Tools > Ordering > Payment Processors

D.

Merchant Tools > Site Preferences > Payment Types

Question 13

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 users who 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 group has 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.

Question 14

A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by

the dw.avc.ServiceCaliback class.

Which callback method is required only when invoking a SOAP service?

Options:

A.

initServiceClient

B.

createRequeat

C.

mockCall

D.

parseResponse

Question 15

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

Which is necessary to achieve this?

Options:

A.

Add a new Search Refinment Definition.

B.

Set the attribute as Searchable.

C.

Change the productseachrefinerbar.iml template

Question 16

A developer is implementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.

What does this achieve?

Options:

A.

Allows Page Designer pages and components to be searchable

B.

Prevents Page Designer pages from being searchable

C.

Allows filtering Page Designer pages by folder

Question 17

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

Question 18

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

Question 19

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.

Question 20

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 shown need 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:

Question 21

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.

Create a 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 custom attribute AND add a new viewtype in the storefront catalog settings

Question 22

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 WebDAV folder. Which two tasks does the developer need to perform to correct this issue?

Choose 2 answers

Options:

A.

Request that the developer's account be given permission to the Log Center of the current realm.

B.

Set the root log level to debug.

C.

Check the box for Info under Log Files.

D.

Set the logging global preference to true.

Question 23

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

Which business goal does this accomplish?

Options:

A.

Exclude products from search results if Available to Sell (ATS) = 0.

B.

Exclude back-ordered products from showing on the website.

C.

Block displaying the product detail page if Available to Sell (ATS) = 0.

D.

Exclude pre-order products from search results.

Question 24

A merchant asks a developer to create a Cache Partition 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 25

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

What could the developer do to correct this issue?

Options:

A.

Set the root log level to debug AND check the box for info under Log Files.

B.

Set the logging global preference to true AND set the root log level to debug.

C.

Set the logging global preference to true AND check the box for Info under Log Files

Question 26

A Digital Developer noticed 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.

Question 27

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

Question 28

Multiple shoppers report slow performance on the Product Details Page.

Which tool can a developer use to view average response times for the Product-Detail controller route?

Options:

A.

Pipeline Profiler

B.

Request Logs

C.

URL Request Analyzer

Question 29

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.

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

Question 30

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 31

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.

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