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?
A. Make sure that the developer has "Administrator" Access, then change the Taxationsetting to Gross B. Unlock the site preferences and then change the Taxation setting to Gross C. Change the global setting,"Enable Taxation Methods" to true, then change the Taxationsetting to Gross D. Create a new site with Taxation set to Gross, then delete the old site.
B. Unlock the site preferences and then change the Taxation setting to Gross When a developer needs to change the taxation setting from Net to Gross and the Business Manager interface does not initially offer this option, the necessary steps typically involve unlocking the site preferences. After unlocking, the developer can change the Taxation setting to Gross. This process is part of managing site-specific configurations where some settings may be locked by default and require administrative privileges to adjust. This procedure is consistent with the administrative controls and site management features described in Salesforce Commerce Cloud documentation, ensuring that changes adhere to platform capabilities and security protocols.
Question 52:
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?
A. Logger.exception(`Unable to find Apple Paypayment instrument for order.`+paymentInstruments); B. Logger.getErrorLog().log(`Unable to find Apple Pay payment instrument for order.`+paymentInstruments); C. Logger.fault(`Unable to find Apple Pay payment instrument for order.`+paymentInstruments); D. Logger.error(`Unable to find Apple Pay payment instrument for order.`+paymentInstruments);
D. Logger.error(`Unable to find Apple Pay payment instrument for order.`+paymentInstruments); Explanation Explanation/Reference:In Salesforce B2C Commerce, the Logger class provides several methods for different levels of logging severity: debug, info, warn, error, and fatal. The method Logger.error() is used to record error-level messages, which indicate significant issues that a developer needs to address. This is appropriate for scenarios like the one described where a payment instrument cannot be found, potentially affecting the order processing. Using Logger.error() ensures that these logs are recorded with an appropriate severity level, making them easier to identify and respond to during debugging and monitoring.
Question 53:
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?
A. Use import/export in Business Manager. B. Create a webservice to retrieve products. C. Use OCAPI and invoke it in native language. D. Use WebDAV Client to retrieve products.
C. Use OCAPI and invoke it in native language. Given that JavaScript controllers cannot be used for this scenario, the best choice is to use OCAPI (Open Commerce API). OCAPI allows external applications to interact with the Salesforce Commerce Cloud platform programmatically. By using OCAPI, the developer can create RESTful services to retrieve product information, which can then be invoked from a native app on an iPhone. This method leverages the capabilities of OCAPI to interact with the system from mobile platforms directly, providing a seamless integration without the need for JavaScript controllers. For more detailed information, the developer can refer to the "OCAPI" section in the Salesforce Commerce Cloud documentation.
Question 54:
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?
A. Develop and configure a steptype and corresponding CommonJ5 job step script. B. Implement and configure a recurring task using the cron commandin Business Manager. C. Configure a new custom OCAPI endpoint and use the Customers resource type.
A. Develop and configure a steptype and corresponding CommonJ5 job step script. To implement the requirement of periodically creating a CSV file in a WebDAV folder with the orders information for the last 30 days, the developer should develop and configure a custom job step script and corresponding JobScheduler entry in Salesforce B2C Commerce. This involves creating a new steptype and utilizing a CommonJS job step script to generate the CSV file. This setup allows for automated, scheduled execution of the script based on predefined intervals, ensuring the timely and efficient creation of order data reports. This method provides robust and scalable solutions for managing periodic data exports in B2C Commerce, utilizing the platform's native scheduling capabilities.
Question 55:
Given the file structure below, which ISML method call renders the customLandingPage template?
A. ISML.renderTamplate(`cartridge/templates/default/content/custom/customLandingPage'); B. ISML(`content/custom/customLandingPage'); C. ISML.render(`content/custom/customLandingPage'); D. ISML.renderTemplate(`content/custom/customLandingPage');
D. ISML.renderTemplate(`content/custom/customLandingPage'); To render the customLandingPage template given the file structure in the question, the correct ISML method call is: D. ISML.renderTemplate(`content/custom/customLandingPage');This method correctly specifies the path to the template relative to the cartridge path. The renderTemplate function is used to render an ISML template, and the provided path should accurately reflect the template's location within the file structure, ensuring that the right content is rendered. This approach is consistent with best practices for organizing and referencing ISML templates in Salesforce B2C Commerce, ensuring accurate rendering of the desired content.
Question 56:
Which two items are appropriate content of custom logs implemented atcheckout? Choose 2 answers:
A. Customer's password at post-checkout sign up B. Order failure information C. Transaction's credit card information D. Payment gateway service response code
B. Order failure information D. Payment gateway service response code Appropriate content for custom logs implemented at checkout should focus on capturing transactional errors and response codes without violating security or privacy standards: B. Order failure information - Useful for diagnosing why an order did not successfully process, helping in troubleshooting and improving the checkout process. D. Payment gateway service response code - Helps in diagnosing the interaction with payment gateways, understanding failures, or unexpected outcomes in payment processing.
Question 57:
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. Change the "resource_id" value to: "/baskets/*/items". B. Change the "write_attributes" value to: "(+items)". C. Change the "read_attributes" value to: "(items)". D. Change the "methods" value to: ["get", "post"].
D. Change the "methods" value to: ["get", "post"]. Explanation Explanation/Reference:The given configuration for the Open Commerce API (OCAPI) allows only GET requests to the /baskets/** resource, which permits reading basket data but does not allow modifying it, such as adding products to a basket. To successfully execute requests that modify the basket, such as adding items, the methods attribute needs to include POST. Changing the methods value to ["get", "post"] will allow both retrieving and modifying basket data. This is consistent with the typical usage of HTTP verbs where GET is used for retrieving data and POST is used for submitting data to be processed, as outlined in the Salesforce B2C Commerce documentation on configuring OCAPI.
Question 58:
Server.get(`Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){
Var Site = require(`dw/system/Syte");
Var pageMetaHelpter = require(`*/cartridge/scripts/helpers/pageMetaHelper');
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?
A. next(); B. return res; C. res.next(); D. req.next();
A. next(); Explanation Explanation/Reference:In the given controller endpoint code snippet, the correct code to replace the missing line 6 is next();. This instruction is essential in Salesforce B2C Commerce's controller scripts where middleware functions are used. The next() function is a part of the middleware pattern in Node.js, which is also utilized in SFCC's server-side scripting. It signals the server to proceed to the next middleware function in the stack. Without calling next(), the request-response cycle will halt, and the server won't proceed to handle subsequent operations, which might include additional middleware or ending the response cycle, potentially causing the application to hang or not respond as intended.
Question 59:
There is a business requirement thata custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?
A. Use dw.system.HookMgr.callHook('dw.order.calculateTax', 'calculateTax', {basket: currentBasket}); B. Add the location of the dw.order.calculateTax hook to hooks.json, and then use dw.system.HookMgr.callHook('dw.order.calculateTax', 'calculateTax', {basket: currentBasket}); C. Add the location of the dw.order.calculateTax hook to package.json, and then use dw.system.HookMgr.callHook('dw.order.calculateTax', 'calculateTax', {basket: currentBasket});
A. Use dw.system.HookMgr.callHook('dw.order.calculateTax', 'calculateTax', {basket: currentBasket}); To invoke the calculateTax(basket) function from a custom controller in app_custom_my_cartridge that is defined in the dw.order.calculateTax hook in app_storefront_base, the developer should implement Option A. This option correctly utilizes the dw.system.HookMgr.callHook method, specifying the hook identifier dw.order.calculateTax and passing the currentBasket as a parameter. This approach ensures that the custom controller can effectively call the existing logic defined in the base cartridge, leveraging Salesforce B2C Commerce's hook system to maintain clean and modular code architecture, facilitating code reuse and maintainability.
Question 60:
A new product has been added to the Storefront catalog that 15 assigned to a site
Which configuration does a developer need to ensure to have a new product visible in the Storefror
A. The search index is built AND the product is online and searchable. B. The product has a master product AND the search index is built. C. The product has a price AND the product rs online and searchable.
A. The search index is built AND the product is online and searchable. To ensure that a new product is visible in the Storefront catalog, the developer needs to confirm that the search index is built and that the product is online and searchable (Option A). This requirement is critical as the search index being updated includes the new product in the search results on the Storefront, and setting the product to be online and searchable ensures that it is visible and can be found by customers navigating the site.
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.