Labour Day Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

B2C-Commerce-Developer Exam Dumps - Salesforce Certified B2C Commerce Developer (SP23)

Question # 4

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

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.

Full Access
Question # 5

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

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.

Full Access
Question # 6

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?

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

Full Access
Question # 7

Given the customer basket described below:

A customer has an existing basket that consists of multiple items.

One of the items is identified as a gift ítem by an attribute at the product line ítem.

The developer needs to write custom code to fetch the customer basket and then modify the basket based

upon the items in the cart. If the basket contains any gift items, modify the basket and create a separate

shipment for the gift item.

Four hooks are required to make the modification, beginning with modifyGETRespone and ending with

validatebasket.

Dw.ocapi.shop.basket.modifyGETResponse

-- missing hook –

-- missing hook --

dw.ocapi.shop.basket.validateBasket

What are the two missing hooks in the middle?

A.

dw.ocapi.shop.basket.shipment.afterDELETE

B.

dw.ocapi.shop.basket.shipment.beforePATCH

C.

dw.ocapi.shop.basket.shipment.beforeDELETE

D.

dw.ocapi.shop.baskep.shopment.beforePOST

Estos indican antes de actualizar y antes de introducir

Full Access
Question # 8

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?

A.

Pipeline profiler

B.

Code Profiler

C.

Storefront Toolkit

D.

Reports and Dashboards Module

Full Access
Question # 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.

Which action should the developer take to resolve the problem?

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.

Full Access
Question # 10

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

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.

Full Access
Question # 11

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

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.

Full Access
Question # 12

A Digital Developer suspects a logical error in a script.

Which action will help locate the error?

A.

Submit a support ticket to B2C Commerce.

B.

Check request logs for evidence of the 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.

Full Access
Question # 13

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

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

Full Access
Question # 14

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 appropriate technique the developer should perform to allow the merchant to create a new

store in this scenario?

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 to the Stores Data OCAPI.

Siempre que sea un objeto standard será put en vez de post

Full Access
Question # 15

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

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.

Full Access
Question # 16

A merchant has a requirement to render personalized content to n 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:

A.

VIP Customer Group

B.

Page Template

C.

Slot Configuration

D.

Rendering Template

Full Access
Question # 17

A developer working on a simple web service integration is asked to add 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?

A.

Logger.info(‘Unexpected service response’)

B.

Logger.debug(‘Unexpected service response’)

C.

Logger.error(‘Unexpected service response’)

D.

Logger.warn(‘Unexpected service response’)

Full Access
Question # 18

A developer is asked to implement a simple call to an authentication - protected REST web service.

Which configuration is valid?

A.

Add the authentication password to the service credentials.

B.

Configure the authentication username using a site preference.

C.

Insert the service's endpoint in a .properties file.

Full Access
Question # 19

A Digital Developer needs to store information temporarily and decides to create a custom object.

Which code creates a custom object?

A.

CustomObject.createCustomObject(CustomObjectType,primaryKey);

B.

CustomObject.createCustomObject(primaryKey,CustomObjectType);

C.

CustomObjectMgr.createCustomObject(primaryKey);

D.

CustomObjectMgr.createCustomObject(CustomObjectType,primaryKey)

Full Access
Question # 20

A client 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?

A.

Create two copies of the custom 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

Full Access
Question # 21

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?

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

Full Access
Question # 22

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

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

Full Access
Question # 23

A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products?

A.

Bundle

B.

Set

C.

Variation Group

Full Access
Question # 24

In order to build the SFRA code to a developer sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?

A.

npm run compile:js, npm run compile:html, npm run clean

B.

npm run compile:scss, npm run compile:html, npm run clean

C.

npm run compile:js, npm run compile: scss, npm run compile:html

D.

npm run compile:js, npm run compile:scss, npm run compile:fonts

Full Access
Question # 25

A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?:

A.

{ “hooks”: “./cartridge/scripts/hooks.json” }

B.

{ “hooks”: “./scripts/hooks.json” }

C.

{ hooks: “./cartridge/scripts/hooks.json” }

D.

{ hooks: ./scripts/hooks.json }

Full Access
Question # 26

A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:

Which modification allows the requests to successfully execute?

A.

Change the "resource_id" value to: "/baskets/*/items".

B.

Change the "write_attributes" value to: "(+items)".

C.

Change the "read_attributes" value to: "(items)".

D.

Change the "methods" value to: ["get", "post"].

Full Access
Question # 27

The Home-Show route uses this middleware chain:

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:

Assuming the code is correct on both functions, what is the expected result?

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 because the signature lines do not match.

Full Access
Question # 28

The developer has been given the following business requirement:

The shipping method, Free Standard Ground Shipping' has an 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?

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.superModule and 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."

Full Access
Question # 29

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?

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.

Full Access
Question # 30

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?

A.

templates/de

B.

templates/default

C.

templates/resources

D.

templates/default/resources

Full Access
Question # 31

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?

A.

Administration > Sites > Manage Sites > Site > Cache

B.

Operations > Site > Manage Sites > Cache

C.

Operations > Cache > Site

D.

Site > Site Preferences > Cache

Full Access