A developer is configuring Payment Methods on a storefront. Which of the following considerations should be kept in rmnd while configuring payment methods,
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?
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 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?
There is a business requirement to allow a third-party warehouse management system to update the MySampte.com storefront product inventory in real time. The architect decided that this is most easily accomplished by using the Open Commerce API (OCAPI). The developer needs to test the OCAPI settings m their sandbox. Assume the client ID for testing is "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'. What B the correct GCAPI setting for this?
A)
Below is a form definition snippet from the newsletter.xml file:
Which line of code creates a JSON object to contain the form data?
Given the code snippet aboce, what should be added after this code so it can be used for page
component display?
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?
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?
Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)
A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.
Which B2C feature should the developer use to achieve the request?
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?
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 users who 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 developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by
the dw.avc.ServiceCaliback class.
Which callback method is required only when invoking a SOAP service?
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 developer is implementing 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?
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?
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
A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.
Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)
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 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 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. Which two tasks does the developer need to perform to correct this issue?
Choose 2 answers
A Digital Developer selects “Show Orderable Products Only” in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
A merchant asks a developer to create a Cache Partition 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 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?
A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection’s target version directory.
Which action potentially solves this problem?
Which method is efficient and scalable because it uses the product search index rather than searching the database?
Multiple shoppers report slow performance on the Product Details Page.
Which tool can a developer use to view average response times for the Product-Detail controller route?
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?
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.
Which action should the developer take to resolve the problem?