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?
A developer is configuring Payment Methods on astorefront. Which of the following considerations should be kept in rmnd while configuring payment methods,
Aclient has custom object definition and requirement that occasional data changes in staging also need to
exist in production,
Which task should the developer perform to meet these requirements when setting up the custom object?
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?
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)
Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.
Which two additional steps should the developer take to troubleshoot this problem?
Choose 2 answers
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?
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 plans to use the /search_suggestion (Shop API) in a Storefront application and the following property must be set to do so
suggestion.product.image:view_type
What consideration should the developer in keep in mind to ensure that image data is returned correctly as part of search suggestions?
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 Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.
Which statement should the Developer use to lazy loadscripts?
A Digital Developer has a site export file on their computer that needs to be imported into their sandbox.
How should the developer update their sandbox with the data in this file?
A developer set up a newsite with Taxation: Net. However, the business requirements changed and the
site now needs to be Taxation:Gross. The Business Manager interface does not give this option.
Which sequence of steps is necessary to change the site to gross taxation?
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 datamodel 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?
Given the file structure below, which ISML method call renders the customLandingPage template?
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?
Given a file in a plug-in cartridge with the following code:
‘use strict’:
Var base = module.superModule;
Function applyCustomCache (req,res,next){
res.CachePeriod = 6; //eslint-disable-line no-param-reassign
res.cachePeriodUnit = ‘hours’) //eslint-disable-line no-param-reassign
next();
}
Module.exports = base;
Module.exports.applyCustomCache = applyCustomCache;
What does this code extend?
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?
A custom cartridge that seemed to be performing well in a sandbox has been installed in production. The production instance is showing increased page load times that seem to be related to the new custom code. Whatcan a developer do to quickly track down the potential problem?
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 controller route in the SFRA base looks as follows:
In order to extend this route using prepared ( ), what should the developer consider?
Assume the code below is executing:
Business Manager has the configuration:
Active Log category is “root†with log level of “info.â€
Given this information, what is the beginningof the filename in which the log will be written?
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?
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?
When exporting a price book from an externalsystem, which file format or formats should a developer use so it can be imported into a B2C Commerce site?
A Digital Developer added afile named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.
Which cartridge path meets the project requirements?
A Digital Developer selects “Show Orderable Products Only†in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
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:
What should the Developer verify to identify the issue?
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?
Refer to the screen shot below:
Given a site called RefArch that has the settings shown, whatmust be done for RefArch to use the same customer list as RefArchGlobal?
A client that sells sport shows wants to allow its customers to filer products based on the intended activity (such as tennis, jogging, basketball, etc.) but this particular information is not present in the current catalog.
Which two actions does a developer need to perform in a B2C Commerce instance to allow this two happen?
Which line of code creates a content slot that can be included on homepage.isml to display on the home page?
A client sells its products in North America, Europe, and Asia, and has a B2C Commerce Site for each of these markets. The client receives three area-specific snippets of analytics code by a third-party provider to insert in the sites.
How should the developer configure an instance to allow the merchant to independently insert and update these snippets?
A developer needs to show only car accessories when shoppers use the search term car accessories and
exclude technology accessories and household accessories.
Given the above requirement, what is the recommended approach using the Search Dictionaries
Dashboard?
Business Manager has the configuration:
Active log category is “rootâ€
Log level of INFO
The code below execites:
Var log = Logger.getLogger(“productsâ€,â€exportâ€);
Log.info (“This is important informationâ€);
Using this information, what is the beginning of the filename in which the log will be written?
Below is a form definition snippet from the newsletter.xml file:
Which line of code creates a JSON object to contain the form data?
Why should a Digital Developeruse ProductSearchModel.getProducts() instead of Category.getOnlineProducts() to access products?
A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.
Which step must a developer take in Business Manager to achieve this?
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?
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 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?
A Digital Developer has identified that the code segment below is causing performance problems.
What should theDeveloper do to improve the code?
A developer wants to add a link to the My Account Page.
Whatis the correct code to accomplish this?
Which three configuration does a developer need to ensure to have a new product visible in the
Storefront?
Choose 3 answers
A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below to
What does this achieve?
A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.
Which three items are required to accomplish this task? (Choose three.)
A developer is using logging in scripts to troubleshoot an issue. They are using thedw.system.Log class to write to specific log levels and categories. Which log level is always enabled by default?
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?
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?
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 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?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
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 client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new
country, Italy, and the taxi s not being calculated correctly on the Storefront
What is the likely problem?
A developer has a requirement to adda new field to the IN registration from that must not appear in the US one.
Which path should be created to accomplish this requirement?