Pass the Salesforce Developers B2C-Commerce-Developer Questions and answers with CertsForce

Viewing page 6 out of 6 pages
Viewing questions 51-60 out of questions
Questions # 51:

Universal Containers calls thefollowing 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 stepin 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”.


Expert Solution
Questions # 52:

A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by

thedw.avc.ServiceCaliback class.

Which callback method is required only when invoking a SOAP service?

Options:

A.

initServiceClient


B.

createRequeat


C.

mockCall


D.

parseResponse


Expert Solution
Questions # 53:

To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token

generation in the customer address form:

<form … action = “submit”>

<input name =”${dw.web.CSRFProtection.getTokenName()}”

value = “${dw.web.CSRFProtection.generateToken()”>

To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF

validation using one or both of these methods as applicable:

validateRequest

validateAjaxRequest

Where in the code does the developer need to add this CSRF validation check?

Options:

A.

In the controller function that displays the form


B.

In the middleware chain of the controller post route


C.

In the controller function that handles the submitted form


D.

In the model function that persists the form data


Expert Solution
Questions # 54:

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


Expert Solution
Questions # 55:

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 userswho try to add a coupon are logged out.

The following processing code is found in the Cart.js controller file:

Question # 55

What should the Developer verify to identify the issue?

Options:

A.

The CSRF cartridge is included in the site’s cartridge path.


B.

The form grouphas 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.


Expert Solution
Questions # 56:

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)


Expert Solution
Questions # 57:

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.


Expert Solution
Questions # 58:

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


Expert Solution
Questions # 59:

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


Expert Solution
Questions # 60:

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 appropriatetechnique 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 tothe Stores Data OCAPI.Siempre que sea un objeto standard será put en vez de post


Expert Solution
Viewing page 6 out of 6 pages
Viewing questions 51-60 out of questions