Salesforce Certified B2C Commerce Developer (SU24) Questions and Answers
Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.
Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?
A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to displayupdated information to the user when the request is completed, without otherwise modifying the appearance of the current page.
According to SFRA practices, which method best supports this objective?
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)
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?
In order to implement site custom functionality, a developer creates a new cartridge.
Which step should the developer take to ensure their cartridge changes take effect?
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.
Whichaction should the developer take to resolve the problem?
A retailer notices that the Account Addresses page is showing the wrong shopper’s address.
Which tool should the developerstart with to identify the issue?
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?
Which method is efficient and scalable because it uses the product search index rather than searching the database?
Universal Containers needs to have Apple Pay disabled for the country of Spain.
Which Business Manager module should the Developer use to meet this requirement?
A developer isimplementing new Page Designer content on a merchant's Storefront and adds the line shown below to the setupCsntentSearch function in the searchHelpers.Js file.
What does this achieve?
What is accomplished by the code below?
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 a sandbox with code to log a message during execution, and the following code:
After the code executes the developer does not see any log file with the message in the WebDEV folder.
Which two XML filesshould the developer import using the using-specific Merchant Tools import modules?
Universal Containers wants to give customers the ability to refine product search results by a product custom attribute,weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?
A developer wants to create in Business Manager extension with thecartridge named
plugin_vm_extension.
Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:
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
There is a business requirement thata custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A)
B)
C)
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.)
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:
The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.
Which statement correctly adds a log entry?
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 has custom debug statements in a script, but the messages are not showing up in the
Storefront Toolkit Request Log.
Which step needs to be completed to get the messages to appear in the Request Log?
Given the following conditions:
Site export file with a copy of the Storefront data for a custom site
Sandbox with the custom site code, but no Storefront data
Requirement for a working copy of SFRA for development reference
A developer is assigned the following Business manager tasks:
A) Import the custom Site using Site Import/Export
B) Import the SFRA Demo Sites using Site Import/Export
C) Rebuild the custom Site search indexes
In what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?
Which two methods are efficientand scalable? (Choose two.)
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?
In Log Center, a developer notes anumber of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.
Which two courses of action might solve the problem?
Choose 2 answers
Server.get(‘Show’, consentTracking.consent, cache.applyDefaultCache, function (req,res,next){
Var Site = require(‘dw/system/Syte”);
Var pageMetaHelpter = require(‘*/cartridge/scripts/helpers/pageMetaHelper’);
pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current);
res.render(‘/home/homePage’);
Missing code here
}, pageMetadata.computedPageMetadata);
The controller endpoint code snippet above does not work.
Which line of code should the developer use to replace line 6 and correct the problem?
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)
To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token
generation in the customer address form:
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?
When inspecting the weekly service status report for a critical internally hosted web service used in the
application, a developer notices that there are too many instances of unavailability.
Which two solutions can reduce the unavailability of the service?
Choose 2 answers.
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 developer has a sandbox with code to log a message during execution, and the following code:
After the code executes, the developer does not see any log file with the message in the WebDAV folder.
What could the developer do to correct this issue?
In order to build the SFRA code to adeveloper sandbox for the first time, which build steps should the developer perform for the site to appear and function as designed?
Universal Containers specifies a new category hierarchy for navigating thedigital commerce storefront. A Digital Developer uses Business Manager to manually create a catalog with the specified category hierarchy, then uses the Products & Catalogs > Import & Export module to export the catalog as a file.
How can other Developerswith sandboxes on the same realm create the same catalog in their own sandboxes?
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?
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 developer needs to perform the same additional checks before completing multiple routes in a custom controller, in orderto 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 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
The following code ensures that an address ID CANNOT be used if it is already in use by another address in the customer’s address book. There is a problem with the code. The error message for an invalid address ID is never shown to the user on the formfield.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.
Which threeparameters are required when using npm scripts?
Choose 3 answers
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 has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.
How might this issue be resolved to ensure a better customer journey?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
Adeveloper 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?
Reference the following code snippets that allow a form to function correctly.
Which code should a developer insert at the EXPRESSION placeholder m the ISML template snippet above to have the form work as expected?
A developer needs to check for product inventory in all inventory lists using the Open Commerce API.
An example requestURL is:
Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?
A developer observed a specific issue in production, which they cannot reproduce in other environments. The developer wants to do a hot fix to one of the ISMLpages, which uses
A developer wants to configure the following products so that same search results ire returned regardless of the search term used. The search term can be bag, purse, pocketbook, and tote. Mow should the developer configure this?
A controller route in the SFRA base looks as follows:
In order to extend this route using prepared ( ), what should the developer consider?
When looking at Custom Object instances for a site, a merchant notices that the creation date is not showing up on the instances in Business Manager.
Where should the developer add this attribute to the Custom Object so itis visible for the merchant to see in Business Manager?
Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?
Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.
To which file should the developer addGerman string values?
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 retailer notices that the Account Addresses page is showing the wrong shopper's address.
Which toolshould the developer start with to identify the issue?
A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an
unlimited number of these digital vouchers, this item should be available to sell at all items.
How can a developer use Business Manager to ensure that the gift vouchers are always available?
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 developer uses hooks for an extension point. Which n true for running multiple hooks for an extension point?
What happens if the log file size limit is reached in custom logging?
Given the above OCAPI definitions, which permission or permissions apply?