The Home-Show route uses this middleware chain:
server.get(`Show', consentTracking.consent, cache.applyDefaultCache, function (req, res, next) {
// based code here
});
The developer added Home.js 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:
server.append(`Show', function (req, res, next) {
// custom code here
});
Assuming the code is correct on both functions, what is the expected result?
A. The custom code executes and then the base code executes
B. A RunTime error is thrown, "Error: Params do not match route"
C. The base code executes, but the custom code is ignored because the signature lines do not match
D. The base code executes and then the custom code executes
Business Manager has the configuration:
1.
Active Log category is "root"
2.
Log level of INFO
The code below executes.
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?
A. custom-products
B. products
C. custom-export
D. info-export
A developer adds a file named ControllerA.js in the cartridge named app_custom_new project. The design calls for this new file to extend functionality from ControllerA.js in app_custom_brand_project. The app_custom_brand_project and app_storefront_base cartridges include additional functionality that is required.
Which cartridge path meets the project requirements?
A. app_custom_new_project:app_storefront_base:app_custom_brand_project
B. app_custom_new_project:app_custom_brand_project:app_storefront_base
C. app_storefront_base:app_custom_brand_project:app_custom_new_project
D. app_custom_brand_project:app_custom_new_project:app_storefront_base
A developer needs to display a products list of their "Women Dresses" category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements.
Which B2C Commerce tool should the developer use to collect the necessary information?
A. The existing category's endpoint to perform a REST call
B. The ProductSearch resource of the Shop OCAPI
C. The iframe of the existing category page
D. The Search-Show Controller URL to perform a web crawl
Given the requirements:
1.
To integrate with an external web service using HTTP requests.
2.
To create a service for this purpose with the Service framework using the LocalServiceRegistry class.
3.
To test the service before the external service provider makes the API available.
Which solution allows the developer to satisfy the requirements?
A. Create a service and a Sitepreference that induce the service to respond with a mock response using a conditional.
B. Create a service and implement the mockFull callback and set the service mode to mock.
C. Create a service and implement the mockFull callback and a sitepreference to enable or disable the mock response.
D. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one.
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. Add American Express as a Payment Preference in Site Preferences
B. Add American Express into the Order settings in Site Preferences
C. In Payment Methods, enable American Express as a credit card type
D. In Payment Processor, create American Express as a payment type
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?
A. $url(`Content-Page', `cid', `about-us')$
B. $url(`Content-Show', `about-us')$
C. $url(`Page-Show', `about-us')$
D. $url(`Page-Show', `cid', `about-us')$
Given a template rendered by a controller with caching and a remote include without caching, which situation applies?
A. The remote include portion is not cached, but the rest of the page is cached
B. Both the remote include portion and the rest of the page are cached
C. The page is cached only for returning customers because of the remote include
D. The page is not cached because the remote include introduces an uncached portion
A client that sells to multiple countries in Europe needs to disable Apple Pay for Denmark. Which Business Manager module is used to achieve this requirement?
A. Locale Payments
B. Apple Pay
C. Payment Processors
D. Payment Methods
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.svc.ServiceCallback class. Which callback method is required only when invoking a SOAP service?
A. initServiceClient
B. parseResponse
C. mockCall
D. createRequest
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your B2C-COMMERCE-DEVELOPER exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.