Pass4itsure > Salesforce > Salesforce Developer > B2C-COMMERCE-DEVELOPER > B2C-COMMERCE-DEVELOPER Online Practice Questions and Answers

B2C-COMMERCE-DEVELOPER Online Practice Questions and Answers

Questions 4

A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront. The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.

Which modification should be made to the new cartridge path?

A. Set the cartridge path so that app_newsite is before app_storefront.

B. Set the cartridge path so that app_storefront is before int_cybersource.

C. Set the cartridge path to include only app_newsite.

D. Set the cartridge path so that app_newsite is after app_storefront.

Buy Now
Questions 5

A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

A. Use a system attribute instead of the isOnSaleFlag custom attribute.

B. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.

C. Breaks the process into separate loops.

D. Avoid using an Iterator and use a Collection instead.

Buy Now
Questions 6

A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cart forms. In addition, a form field

node is in the form XML and the necessary form input is present in the ISML template.

The code below is the submit button for the ISML markup.

What additional steps must occur before the Digital Developer can begin writing the processing code for this request?

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now
Questions 7

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct. Which snippet of code should be used?

A. Logger.warn(`The current product is ${myProduct.getID()} with name ${myProduct.getName()}');

B. Logger.warn(`The current product is {0} with name {1}', myProduct.getID(), myProduct.getName());

C. Logger.warn(`The current product is %s with name %s').context (myProduct.getID(), myProduct.getName());

D. Logger.warn(`The current product is {0} with name {1}'}.context (myProduct.getID(), myProduct.getName());

Buy Now
Questions 8

A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them. Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?

A. Add a Boolean custom attribute to the Store system object

B. Configure the existing Store custom object type definition

C. Adjust the relevant Site Preference in the Stores group

D. Create a new SingleBrandStore custom object configuration

Buy Now
Questions 9

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.svc.ServiceCallback class. Which callback method is required only when invoking a SOAP service?

A. initServiceClient

B. parseResponse

C. mockCall

D. createRequest

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

A. $url(`Content-Page', `cid', `about-us')$

B. $url(`Content-Show', `about-us')$

C. $url(`Page-Show', `about-us')$

D. $url(`Page-Show', `cid', `about-us')$

Buy Now
Questions 11

A developer adds a file named ControllerA.js in the cartridge named app_custom_new project. The design calls for this new file to extend functionality from ControllerA.js in app_custom_brand_project. The app_custom_brand_project and app_storefront_base cartridges include additional functionality that is required.

Which cartridge path meets the project requirements?

A. app_custom_new_project:app_storefront_base:app_custom_brand_project

B. app_custom_new_project:app_custom_brand_project:app_storefront_base

C. app_storefront_base:app_custom_brand_project:app_custom_new_project

D. app_custom_brand_project:app_custom_new_project:app_storefront_base

Buy Now
Questions 12

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

A. Replace the existing routes by creating a controller in separate new cartridge

B. Use the superModule property in the existing routes to extend their functionality

C. Append a new function to all the existing routes with the server module

D. Define a new middleware function and use it in the existing routes

Buy Now
Questions 13

A merchant uploads an image using the Content Image Upload module of Business Manager.

Which three modules can the merchant or developer use to display the image on the Storefront? (Choose three.)

A. Content assets

B. Storefront catalogs

C. ISML templates

D. Content slots

E. Payment types

Buy Now
Exam Name: Salesforce Certified B2C Commerce Developer
Last Update: Apr 14, 2024
Questions: 148
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99