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?
The Home-Show route uses this middleware chain:
The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:
Assuming the code is correct on both functions, what is the expected result?
Given the sandbox with:
Service configured and assigned to its profile and credential
A code version that uses that service
And given the requirement to limit the number of success or error calls the code can perform to a restricted number ofcalls per second.
Which configuration should the developer perform?
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.
Which method is efficient and scalable because it uses the product search index rather than searching the database?
Given a template rendered by a controller with caching and a remote include without caching, which situation applies?
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 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:
A merchant has a requirement to sell a combination of four existing products with a unique product ID.
This collection will be known as ‘Our Top Combo’, and isbase don the merchant’s trading information that
shows this combination to be in high demand.
What does the developer need to do next to fulfill this requirement?
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)
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
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
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 is tasked with the development of anew Page Designer Page Type, as requested by themerchant.
How should they define the rendering logic of the page?
A NewsletterSubscription custom object exists that has a key attribute named email of type String and the following script code.
However, the NewsletterSubscription custom object is not persisted.
What is a possible reason?
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 job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)
A client has two B2C Commerce sites in the same instance: one for the U.S market, the other forthe
European market. The products they make are sold with different safety certificates based-on the world
location.
For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a
hairdryer with certificate C in the U.S and certificate D in Europe, and more.
How should a developer allow the merchant to display the appropriate certification logo in the produce to
details page, depending on the customer’s location?
A client wants to differentiate their monobrand stores with a special icon when shown in the store
locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.
How should the developer follow SFRA best practices to expose this data for rendering?
A developer is asked to create a new service instance that will call a remote web service.
Which method should the developer use to create the service instance?
A)
B)
C)
A merchant asks a developer to create a CachePartition for the home page, so that when the home page
is edited, only the home page is cleaned.
Given the above requirement, where should the developer create that partition in Business Manager?
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
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 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?
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?
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
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 Storefront is designed so that multiple pages share a common header and footer layout.
Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?
A controller route in the SFRA base looks as follows:
In order to extend this route using prepared ( ), what should the developer consider?
A developer is asked to periodically create a CSB file in a WebDAV folder to hold the orders information of the last 30 days.
What are the appropriate actions to implement such a requirement?
Given a sandbox with an active slot configuration with the following specifications:
• Content type set to product
• With someproduct configured
• With the following rendering template: slots/product/product_1x2 isml
• Correctly enabled and scheduled
And given the code contained in the selected rendering template:
Is an additional action needed for this to work asintended?
Given the requirement to add caching toan existing page while adhering to SFRA best practices, which code snippet should be used?
A)
B)
C)
A Digital Developer has created a new PaymentForm controller thatrequires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?
UniversalContainers created a site export file from staging in the global export directory.
How should the Digital Developer update their sandbox using this staging site export file?
Given a job step configured in the steptype.json, a developer needs to add a custom status code
“No_FILES_FOUND”.
Which code snippet will complete the requirement?
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 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 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 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 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?
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
A developer wants to add a link to the My Account Page.
Whatis the correct code to accomplish this?
Once the Cache Information tool of the storefront toolkit isenabled, how can a Digital Developer view caching information for a particular component of the page?
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 client that sells to multiplecountries in Europe needs to disable Apple Pay for Denmark.
Which Business Manager module is used to achieve this requirement?
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 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 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?
Below is a form definition snippet from the newsletter.xml file:
<form xmlns=http://www.demandware.com/xml/form/2008-04-15 >
Which line of code creates a JSON object to contain the form data?
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 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?
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?
Given the following ISML example, how should a developer reference the product object in the current
iteration of thebasket?
…
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?
A developer is working on a new site for the U.S based on an existing Canadian site. One of the
requirements is a change to the address form. The current Canadian form has an
correct two-letter abbreviation for the provinces.
The U.S. requirements are to:
Have an
province field.
Set the U.S site locale.
Add the options list field definition to the XML file.
How should the developer set up the files before making the required edits?