Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)
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?
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?
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:
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
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?
Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?
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 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?
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?
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?
Consider the following information:
• A merchant has this three-tier category structure setup in the Storefront catalog:
New Arrivals > Women > Clothing
• The category namedClothing has all the clothing items for Women and is merchandised.
• A Search Refinement named Newness is correctly configured for the Clothing category.
When a merchandiser views the Clothing category, the Search Refinement appears and Works as
expected.However, the merchandiser does not see the Search Refinement when searching for Clothing via
the Storefront search.
What is the Reason?
Given a template rendered by a controller with caching and a remote include without caching, which situation applies?
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?
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 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?
Below is a form definition snippet from the newsletter.xml file:
Which line of code creates a JSON object to contain the form data?
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 Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. Thedata needs to be persistent throughout the current shopping experience.
Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects?
A developer has the following files in template/resources:
account.proierties
weight.unit=kilos
account_en.propierties
weight.unit=stones
account_en_US.propierties
weight.unit= pounds
Using the default locale configuration, what is the current outcome of the page that renders the
account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=
Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)}
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 developer is is configuring Shipping Methods on a storefront. Which of the following considerations must be kept in mind while configuring shipping methods.
Universal Containers wants to associate a region code value with an order to indicate the general area of its destination. This region code must be accessible whenever the order history is displayed.
What is required toaccomplish this?
Given the following snippet:
Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two optionsshows a correct way to complete the code above in order to provide
data to the response using a controller?
Choose 2 answers
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 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?
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 new service instance that will call a remote web service.
Which method should the developer use to create the service instance?
A)
B)
C)
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 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 Newsletter controller contains the following route:
Server.post(‘Subscribe’, function (req,res,next){
var newsletterForm = server.forms.getForm(‘newsletter’);var CustomObjectMgr = require(‘dw/object/CustomObjectMgr’);
if(newsletterForm.valid){
try{
var CustomObject =
CustomObjectMgr.createCustomObejct(‘NewsletterSubscription’, newsletterform.email.value);
CustomObject.custom.firstName = newsletterForm.fname.value;
CustomObject.custom.lastName = newsletterForm.lname.value;-
} catch(e){
//Catch error here
}
}
next();
});
Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template
when the subscription form is correctly submitted?
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?
In Log Center, a developer notes j number of Cross Site Request Forgery (CSRF) log entries.
After adding the token in the 15ML template, which action might solve this problem'
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?
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 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?
A developer must configure permissions for an Open Commerce API resource on a sandbox instance that
currently does not have any permissions configured.
Which two configuration properties are required to enable Access to the resource?
Choose 2 answers
Which method is efficient and scalable because it uses the product search index rather than searching the database?
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 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?
Which three configuration does a developer need to ensure to have a new product visible in the
Storefront?
Choose 3 answers
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?
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 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?
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?
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?
A developer uses hooks for an extension point. Which n true for running multiple hooks for an extension point?
A developer is given a task to implement a new Page Designer layout component that doesn’t accept
certain asset components.
How should the developer achieve the above task?
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, what will be written to the log?
A Digital Developer suspects a logical error in a script.
Which action will help locate the error?
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?
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 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 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?
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?