Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Salesforce B2C-Commerce-Developer - Salesforce Certified B2C Commerce Developer (SP25)

Page: 6 / 6
Total 203 questions

In the SFRA Page controller, the following route exists:

The result of navigating to the address below is an error page.

What is the correct way to use this controller route in an ISML template?

A)

B)

C)

A.

Option A

B.

Option B

C.

Option C

A job executes a pipeline that makes calls to an external system.

Which two actions prevent performance issues in this situation? (Choose two.)

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.

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?

A.

The code shownneed 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:

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

A.

Bundle

B.

Set

C.

Variation Group

A merchant asks a developer to create a CachePartition 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

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)

Which three operations should be done in a controller?

Choose 3 answers

A.

Generate the response as JSON or HTML

B.

Use the Script API to generate data for the view.

C.

Use middleware functions when applicable

D.

Create a plain JavaScript object representing a system object

E.

Use the model needed for the view.

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.

Varcustomobject = dw.object.CustomObjectMgr. createCustomObject(‘NewsletterSubscription’,’email’, newsLetterForm.email.value);

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 allowin this context?

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

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?

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.