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

Hot Vendors

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

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

Buy Now
Questions 5

Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.

To which file should the developer addGerman string values?

Options:

A.

checkout_de.properties in resources folder

B.

checkout.properties in the de locale folder

C.

checkout.properties in the default locale folder

D.

de_checkout.properties in resources folder

Buy Now
Questions 6

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.

Buy Now
Questions 7

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

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

Options:

A.

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

B.

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

C.

exports.PaymentForm = guard.httpsPost(handlePaymentForm);

D.

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

Buy Now
Questions 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.

Buy Now
Questions 9

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.

Buy Now
Questions 10

Given a job step configured in the steptype.json, a developer needs to add a custom status code

“No_FILES_FOUND”.

Which code snippet will complete the requirement?

Options:

A.

var status = {success: ‘OK’. Message: ‘NO_FILES_FOUND’};return status;

B.

var status = require(‘dw/system/status’);return new Status(Status.OK, ‘NO_FILES_FOUND’);

C.

this.status = ‘NO_FILES_FOUND’return this;

D.

return ‘NO_FILES_FOUND

Buy Now
Questions 11

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 12

Assume the code below is executing:

B2C-Commerce-Developer Question 12

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 13

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 14

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 15

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

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

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

Email the customer whenthe product is back-in-stock

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

Options:

A.

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

B.

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

C.

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

D.

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

Buy Now
Questions 16

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 17

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 18

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 19

The Home-Show route uses this middleware chain:

B2C-Commerce-Developer Question 19

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 19

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 20

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

Whatis the correct code to accomplish this?

Options:

A.

${Resource.msg(‘myaccount’,’account’,request.locale())}

B.

${Resource.message(‘myaccount’)}

C.

${Resource.msg(‘myaccount’,’account’,null)}

D.

${ResourceMgr.getPropierties(‘myaccount’,’account’,null)}

Buy Now
Questions 21

Reference the following code snippets that allow a form to function correctly.

B2C-Commerce-Developer Question 21

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

Buy Now
Questions 22

Aclient has custom object definition and requirement that occasional data changes in staging also need to

exist in production,

Which task should the developer perform to meet these requirements when setting up the custom object?

Options:

A.

Create two copies of thecustom object in staging and set Sharing = True.

B.

Create the custom object definition in staging as Shared

C.

Create the custom object definition in production as Replicable

D.

Create the custom object definition in staging as Replicable

Buy Now
Questions 23

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 24

The developer has been given the following business requirement:

The shipping method, "Free Standard Ground Shipping" has an exclusion for products with 'category equals oris 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.

Createa new shipping method and label it "Free Standard Ground Shipping". Give it the qualifier 'brand equals XyzTv', and add it to the checkout options.

B.

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

C.

Extend the CheckoutShippingServices controller using module.superModule and add an exception for the specified brand.

D.

Extend the code in cartridge/models/shipping/shippingMethod.jsusing module.superModule and add an exception for the specified brand.

Buy Now
Questions 25

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

B2C-Commerce-Developer Question 25

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.

Buy Now
Questions 26

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 27

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)

Buy Now
Questions 28

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

C.

Change the productseachrefinerbar.iml template

Buy Now
Questions 29

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

Buy Now
Questions 30

A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.

Which cartridge path meets the project requirements?

Options:

A.

client_project:app_project:storefront_controllers:storefront_core

B.

app_project:storefront_controllers:storefront_core

C.

app_project:client_project:storefront_controllers:storefront_core

D.

storefront_core:storefront_controllers:client_project:app_project

Buy Now
Questions 31

A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to have the slot render a specific content asset so that the content experience is more personalized to the visitors.

Which two actions are necessary to make thischange?

Options:

A.

Change the content type AND the rendering template in the slot configuration.

B.

Change the default setting AND the rendering template in the slot configuration.

C.

Change the rendering template in the slot configuration AND delete the existingcontent slot to create a new one.

Buy Now
Questions 32

A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.

How should the developer update their sandbox with the data in this file?

Options:

A.

Connect and import the file using the remote option within the Site Import & Export Business Manager module.

B.

Upload and import the file using the local option within the Site Import & Export Business Manager module.

C.

Upload the file to the Impex WebDAV directory and import using the Site Import tool within UX Studio.

D.

Upload the file to the Static WebDAV directory and import using the Import & Export Business Manager module.

Buy Now
Questions 33

A Digital Developer has identified that the code segment below is causing performance problems.

B2C-Commerce-Developer Question 33

What should theDeveloper do to improve the code?

Options:

A.

Use a system attribute instead of the isOnSaleFlag custom attribute.

B.

Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.

C.

Breaks the process into separate loops.

D.

Avoid using an Iterator and use a Collection instead.

Buy Now
Questions 34

A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.

In which folder should the developer place resource bundles?

Options:

A.

templates/de

B.

templates/default

C.

templates/resources

D.

templates/default/resources

Buy Now
Questions 35

A developer is given the requirement to add a step to the existing business logic of theregistration process. How should the developer modify the route that handles the customer registration?

Options:

A.

Change the controller route with new functionality.

B.

Extend the route with new functionality.

C.

Copy the code from the original route to a new controller route, and change it.

D.

Override the route with new functionality.

Buy Now
Questions 36

There is a business requirement thata custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?

A)

B2C-Commerce-Developer Question 36

B)

B2C-Commerce-Developer Question 36

C)

B2C-Commerce-Developer Question 36

Options:

A.

Option A

B.

Option B

C.

Option C

Buy Now
Questions 37

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 37

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 38

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 39

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 40

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 41

A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on thepipeline dictionary with the name myProduct.

Which code sample will achieve this?

Options:

A.

ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });

B.

ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });

C.

ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });

D.

ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });

Buy Now
Questions 42

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 43

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

Buy Now
Questions 44

Given the file structure below, which ISML method call renders the customLandingPage template?

B2C-Commerce-Developer Question 44

Options:

A.

ISML.renderTamplate(‘cartridge/templates/default/content/custom/customLandingPage’);

B.

ISML(‘content/custom/customLandingPage’);

C.

ISML.render(‘content/custom/customLandingPage’);

D.

ISML.renderTemplate(‘content/custom/customLandingPage’);

Buy Now
Questions 45

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.

Buy Now
Questions 46

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 47

In Log Center, a developer notes anumber of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.

Which two courses of action might solve the problem?

Choose 2 answers

Options:

A.

Add the token in the ISML template.

B.

Extend the CSRF token validity to avoid timeouts.

C.

Delete the existing CSRF whitelists in Business Manager.

D.

Add csrfProtection.generateToken as a middleware step in the controller.

Buy Now
Questions 48

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 49

A merchant checked the "Show Orderable Products Only" preference in Business Manager. What impact does this have on the Storefront from a user perspective?

Options:

A.

Back-order products will be excluded from search results.

B.

Products with an Available to Sell (ATS) - 0 will be excluded from search results.

C.

The product detail page will be hidden if Available to Sell (ATS) = 0.

D.

Pre-order products will be excluded from search results.

Buy Now
Questions 50

A developer hasa 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 credentialURL field

B.

Use the service status area, set the override URL checkbox, and then populate the URLfield with the required one.

C.

Use a Sitepreference dedicated for the service URL

D.

Use a Globalpreference dedicated for the service URL

Buy Now
Questions 51

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 52

A client that sells to multiplecountries in Europe needs to disable Apple Pay for Denmark.

Which Business Manager module is used to achieve this requirement?

Options:

A.

Locale Payments

B.

Payment Methods

C.

Payment Processors

D.

Apple Pay

Buy Now
Questions 53

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 54

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

Options:

A.

ProductMgr.queryAllSiteProducts()

B.

ProductSearchHit.getRepresentedProducts()

C.

ProductSearchModel.getProductSearchHits()

D.

Category.getProducts()

Buy Now
Questions 55

A controller route in the SFRA base looks as follows:

B2C-Commerce-Developer Question 55

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 56

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 57

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

Buy Now
Questions 58

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.

Buy Now
Questions 59

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 60

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
Exam Name: Salesforce Certified B2C Commerce Developer (SU24)
Last Update: Nov 17, 2024
Questions: 203

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now B2C-Commerce-Developer testing engine

PDF (Q&A)

$35  $99.99
buy now B2C-Commerce-Developer pdf
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 21 Nov 2024