Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Salesforce B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (SP23) Exam Practice Test

Salesforce Certified B2C Commerce Developer (SP23) Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?

Options:

A.

Var customobject = dw.object.CustomObjectMgr.createNewsletterSubscription(‘email’,

newsLetterForm.email.value);

B.

Var customobject =

dw.object.CustomObjectMgr.createCustomObject(newsletterForm.email.value,

‘NewsletterSubscription’);

C.

Var customobject = dw.object.CustomObjectMgr. createCustomObject

(‘NewsletterSubscription’, newsLetterForm.email.value);

D.

Var customobject = dw.object.CustomObjectMgr. createCustomObject

(‘NewsletterSubscription’,’email’, newsLetterForm.email.value);

Question 2

A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.

Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)

Options:

A.

The Auto-Upload setting is enabled for the server connection.

B.

The Active Server setting is enabled for the server connection.

C.

The credentials for the server connection are correctly entered.

D.

The cartridge is for the current version of B2C Commerce.

E.

The server is configured to accept incoming connections.

Question 3

Universal Containers calls the following 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 step in 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 4

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 5

Given the above OCAPI definitions, which permission or permissions apply?

Options:

A.

Allows external applications to create coupons

B.

Allows external applications to create, update, and delete coupons

C.

Allow external applications to create, update, and delete both coupons and coupon codes

D.

Allows external applications to update coupons

Question 6

A developer has configured the following log levels for categories & sub categories as

WARN logging is enabled for 'product’ and DEBUG for "product.import"

What will be the log level used for various categories and sub-categories?

Options:

A.

WARN and ERROR are lugged for product" and all its subcategories. For the subcategory 'product.import' DEBUG and INFO are also logoed

B.

WARN and ERROR are logged fix product' and all its subcategories. For the subcategory’’ product.import* DEBUG and INFO are not logged.

C.

WARN and FRROR ate lugged for product" and all its subcategories.

Question 7

Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).

To which hook should the Digital Developer move taxation logic to ensure consistent order totals within B2C Commerce?

Options:

A.

dw.ocapi.shop.order.validateOrder

B.

dw.ocapi.shop.basket.calculate

C.

dw.ocapi.shop.basket.afterPostShipment

D.

dw.ocapi.shop.order.afterPOST

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

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

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

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 10

A developer wants to embed a link to a content page from within the body of another content asset. the target content asset ID is: about-us

Which option represents the correct format to use?

Options:

A.

$url(''page-Show,''cid'', about-us')$

B.

$url('Content_Show', 'about-us')$

C.

$url('Content-Page', cid 'about-us;)$

Question 11

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 12

A merchant has a requirement to sell a combination of four existing products with a unique product ID.

This collection will be known as ‘Our Top Combo’, and is base don the merchant’s trading information that

shows this combination to be in high demand.

What does the developer need to do next to fulfill this requirement?

Options:

A.

Create a unique produce to called ‘Our Top Combo’ and add the four products into the Product Bundles

tab.

B.

Create a Content Slot with Content Type = Product and add the four component products into that slot.

C.

Create a Product Set called ‘Our Top Combo’ and add the products into the set.

D.

Create a recommendation rule associating the four products as a recommendation group.

Question 13

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.

Product Available to sell is <1.

E.

Product is not online.

Question 14

A Digital Developer is working on a project to 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 15

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

Which tool should the developer start with to identify the issue?

Options:

A.

Pipeline profiler

B.

Code Profiler

C.

Storefront Toolkit

D.

Reports and Dashboards Module

Question 16

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 17

When exporting a price book from an external system, 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

Question 18

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.

Question 19

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.

Question 20

Which of these situations is an appropriate 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 21

A client that sells to multiple countries 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

Question 22

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

Question 23

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 24

Which three techniques improve client-side performance in production while following documented best practices? (Choose three.)

Options:

A.

Use one style sheet for each ISML decorator template.

B.

Place CSS outside of templates.

C.

Compress CSS.

D.

Use inline Javascript.

E.

Combine several images into a single image.

Question 25

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?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 26

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.

Question 27

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 stored are:

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 28

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

Question 29

A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISML pages, which uses tag, to see if that resolves while issue. Which consideration must the developer keep in mind while deploying the hot fix in production?

Options:

A.

It will be required to invalidate the cache for the hot fix.

B.

If the page has multiple tags, the highest cache duration will be used in production to determine the resulting page's caching behavior.

C.

The TTL cache setting only affects static content and not the page cache, which could potentially cause he production issue.

Question 30

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 31

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.

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