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

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

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

Buy Now
Questions 5

A developer is writing a server side script that needs to maintain state across calls. The persistent

information needed includes these items.

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that

follows best practice?

Options:

A.

Use a non-replicable Custom Object to store the information temporarily.

B.

Use the Session class in the B2C Commerce api.

C.

Use an SFRA controller, because it runs server-side, the state is automatically maintained

D.

Use a client-side cookie to store the information for the session duration.

Buy Now
Questions 6

A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user.

What should a developer implement to achieve this requirement?

Options:

A.

Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user.

B.

Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered.

C.

Set the Content Asset configuration for a customer that is a registered, versus unregistered, user.

D.

Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user.

Buy Now
Questions 7

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 8

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 attribute Group with the desired attributes in it.

C.

Set the attributes to site-specific replicable.

Buy Now
Questions 9

Universal Containers wants to add a model field to each product. Products will have locale-specific model values.

How should the Digital Developer implement the requirement?

Options:

A.

Utilize resource bundles for translatable values.

B.

Set the model field as a localizable attribute.

C.

Store translated model values in different fields; one field for each locale.

D.

Add model to a new custom object with localizable attributes.

Buy Now
Questions 10

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

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

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 12

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

Buy Now
Questions 13

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, which two logs will be written?

Choose 2 answers

Options:

A.

log.warn("This is a warn message");

B.

log.error("This is an error message");

C.

log.info("This is an info message");

D.

log.debugfThis is a debug message");

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

Buy Now
Questions 15

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

Buy Now
Questions 16

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

Buy Now
Questions 17

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

Buy Now
Questions 18

A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline 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 19

Which technical reports datapoint measures the performance of a controller’s script execution if network factors and Web Adaptor processing is ignored?

Options:

A.

Processing time

B.

Cache hit ratio

C.

Call count

D.

Response time

Buy Now
Questions 20

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?

Options:

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

Buy Now
Questions 21

A developer set up a new site with Taxation: Net. However, the business requirements changed and the

site now needs to be Taxation:Gross. The Business Manager interface does not give this option.

Which sequence of steps is necessary to change the site to gross taxation?

Options:

A.

Make sure that the developer has “Administrator” Access, then change the Taxation

setting to Gross

B.

Unlock the site preferences and then change the Taxation setting to Gross

C.

Change the global setting,”Enable Taxation Methods” to true, then change the Taxation

setting to Gross

D.

Create a new site with Taxation set to Gross, then delete the old site.

Buy Now
Questions 22

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:

Buy Now
Questions 23

A client has three different sites with three locales. Two of the sites share a library and one site has a private library.

What does the shared library allow in this context?

Options:

A.

Sharing content slots between sites

B.

Sharing content assets among locales

C.

A Sharing content assets between sites

D.

Sharing content slots among locales

Buy Now
Questions 24

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

What is 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 25

A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.

By default, which URL format is a proper Open Commerce API for Sandbox?

Options:

A.

https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...

B.

https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...

C.

https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...

D.

https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa...

Buy Now
Questions 26

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

Buy Now
Questions 27

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:

Buy Now
Questions 28

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?

Options:

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

Buy Now
Questions 29

A merchant has a content slot on a page that currently displays products based on the top Sellers for the

current week.

They wish to change this functionality and, instead, 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 this change?

Choose 2 answers

Options:

A.

Delete the existing content slot and create a new one.

B.

Change the rendering template in the slot configuration

C.

Change the default setting in the slot configuration

D.

Change the content type for the slot configuration

Buy Now
Questions 30

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

Buy Now
Questions 31

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

Buy Now
Exam Name: Salesforce Certified B2C Commerce Developer (SP23)
Last Update: Apr 27, 2024
Questions: 204
B2C-Commerce-Developer pdf

B2C-Commerce-Developer PDF

$28  $80
B2C-Commerce-Developer Engine

B2C-Commerce-Developer Testing Engine

$33.25  $95
B2C-Commerce-Developer PDF + Engine

B2C-Commerce-Developer PDF + Testing Engine

$45.5  $130