B2C-Commerce-Developer Salesforce Certified B2C Commerce Developer (SU24) Questions and Answers
A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.
Which link function generates the correct link?
Which method is efficient and scalable because it uses the product search index rather than searching the database?
A developer is asked to implementa simple call to an authentication - protected REST web service.
Which configuration is valid?
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?
A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used inthe application and notices that there are too many instances of unavailability.
Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
Universal Containers is preparing their storefront to use Open Commerce APIs (OCAPI).
To which hook should the Digital Developermove taxation logic to ensure consistent order totals within B2C Commerce?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
A Digital Developer is working in a sandbox on a site named test-site using thedomain 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?
A developer working on a simple web service integration is asked toadd 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 developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data storedare:
Pricebook to be used
Image URL for country flag
The data used in staging also applies in production, but only for this site.
Which approach should the developer take to implement these requirements?
A merchant requires that an existing section of the Site become editable from the Business Manager, so
that they can modify it independently of the developer.
Which of these is an important factor for a developerto consider when choosing the appropriate solution
between a content slot and a Page Designer component?
A developer is given the requirement to add a step to the existing business logic of theregistration process. How should the developer modify the route that handles the customer registration?
The developercreated a new Storefront category in storefront-catalog-m-en, but when viewing the
Storefront site, the category is not visible.
What are two possible reasons?
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
Given the requirements:
To integrate with an external web service using HTTP requests
To create a service for this purpose with the Service framework using the LocalServiceRegistry
class.
To test the service before the external service provider makes the API available
Which solution allows the developer to satisfy the requirements?
A merchant has asked their development team to add a new site.
Which two tasks are essential for correct site configuration prior to launch?
Choose 2 answers
A merchant has a content slot on a page that currently displays products based on thetop sellers for the current week. The merchant wants to change this functionality. They want to 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 thischange?

The developer wants to be able to view DEBUG
The developer wants to be able to view DEBUG level messages for myLogCategory in the Request Log tool. Given the custom log configurations in the image above, what does the developer need to do to accomplish this?
A developer has these requirements for out-of-stock products:
Save the SKUs of the out-of-stock products that the customer is interested in
Save the customer email regardless if the customer is a guest or registered
Email the customer whenthe product is back-in-stock
Which step should the developer perform as part of the solution to achieve the requirements?
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on thepipeline dictionary with the name myProduct.
Which code sample will achieve this?
A merchant checked the " Show Orderable Products Only " preference in Business Manager. What impact does this have on the Storefront from a user perspective?
A DigitalDeveloper has a new requirement to disable the " Discover " credit card type for all checkouts.
What does the Developer need to change in Business Manager to fulfill this requirement?
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 developer has configured the following log levels for categories & sub categories as
WARN logging is enabled for ' product’ and DEBUG for " product.import "
What will be the log level used for various categories and sub-categories?
A client has two B2C Commerce sites in the same instance: one forthe U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in the U.S., but only three products can be wrapped in the European region.
How should a developer allow the merchant to independently adjust this number?
A Digital Developer extends a system object, Product, andadds a Boolean attribute, “sellable,” to it.
Assuming “prod” is the variable name handling the product, what code can the Developer use to access it?
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)
Which line of code creates a content slot that can be included on homepage.isml to display on the home page?
A merchant has a requirement to render personalized content ton 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 Digital Developer needs to store information temporarily and decides to create a custom object.
Which code creates a custom object?
A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to beincorporated into the search and navigation journey.
Which two things can the developer do to facilitate this for them?
Choose 2 answers
A merchant has complained to the developers that some products are not appearing in the storefront and has asked them to diagnose and solve the issue.
Which two factors might be causing a product to be hidden?
Choose 2 answers
The developer has been given the following business requirement:
The shipping method, Free Standard Ground Shipping ' hasan 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 client has a requirement to allow users on the Storefornt to filter by a newly created attribute.
Which is necessary to achieve this?
A developerhas a B2C site and a merchant requirement to add a new locale to it.
What are the steps to enable the locale in the Storefront?
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 cartforms. 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 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 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 merchant wants to obtain an export file that contains all the products .assigned to their Storefront catalog. They do not know how to achieve this easily without manual processing, so asked their developer to help Generate this. The merchant s Instance setup is as follows:
They have one Master catalog and one storefront catalog.
Some, but not all, of the products in the Master catalog are assigned to categories within the Storefront catalog.
Which method allows the developer to generate the export for the merchant?
A Digital Developer has identified that the code segment below is causing performance problems.

What should theDeveloper do to improve the code?
The developer is asked to enhance the functionality of an existing controller route by adding information to the response ' s viewData.
How should thedeveloper approach this task while following SFRA best practices?
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
Why should a Digital Developeruse ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?
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?
The client provides the system integrator with translation messages for the newly added " French " ( " fr " ) locale.
What is the correct folder to store the associated .properties files?
A Digital Developer needs to check for product inventory in a specific inventory list using the Open Commerce API.
An example request URL is:

Which resource_id value enables the appropriate resource?
Universal Containers wants to add a model field to eachproduct. Products will have locale-specific model values.
How should the Digital Developer implement the requirement?
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:

How should the Developer change the request?
A developer has a requirement to display a banner in two different category pages.
Which snippet of code should the developeradd to a template to allow the merchant to configure each independently?
A)

B)

C)

Adigital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

A merchant uploads an image using the ContentImage Upload module of Business Manager.
Which three modules can the merchant or developer use to display the image on the Storefront?
Choose 3 answers
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?
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
