Salesforce Certified B2C Commerce Developer Practice Test - Questions Answers, Page 9
List of questions
Related questions
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 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 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?
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?
Business Manager has the configuration:
Active Log category is "root" 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 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 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?
An instance has custom logging enabled. The log reaches the file size limit.
What happens in this situation?
A developer is writing a server side script that needs to maintain state across calls. The persistent information needed includes these items. The current customer
Whether or not the customer is authenticated
The privacy attributes (such as tracking consent or cookie policy)
Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?
A developer is asked to improve the maintainability of a page by reducing its code repetition.
What are two techniques the developer should implement to achieve this? (Choose two.)
Question