Free B2C-Commerce-Developer Braindumps Download Updated on Dec 05, 2021 with 115 Questions
Salesforce B2C-Commerce-Developer Exam Practice Test Questions
Salesforce B2C-Commerce-Developer Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
| Topic 6 |
|
| Topic 7 |
|
| Topic 8 |
|
| Topic 9 |
|
| Topic 10 |
|
| Topic 11 |
|
| Topic 12 |
|
| Topic 13 |
|
| Topic 14 |
|
| Topic 15 |
|
| Topic 16 |
|
| Topic 17 |
|
| Topic 18 |
|
| Topic 19 |
|
| Topic 20 |
|
NEW QUESTION 18
A developer configures the dw.json file and needs to fill in the necessary parameters to complete the task.
Which three parameters are required when using npm scripts? (Choose three.)
- A. Hostname
- B. Username/Password
- C. Site ID
- D. Code Version
- E. CSRF Token
Answer: C,D,E
NEW QUESTION 19
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 "write_attributes" value to: "(+items)".
- B. Change the "methods" value to: ["get", "post"].
- C. Change the "read_attributes" value to: "(items)".
- D. Change the "resource_id" value to: "/baskets/*/items".
Answer: D
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FOCAPI%2F15.6%2Fusage%2FOCAPISettings.html
NEW QUESTION 20
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, which two logs will be written? (Choose two.)
- A. log.info("This is an info message");
- B. log.debug("This is a debug message");
- C. log.warn("This is a warn message");
- D. log.error("This is an error message");
Answer: A,C
NEW QUESTION 21
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?
- A. Add layout_type_exclusion in the other asset components json configuration.
- B. Add layout_type_inclusion in the target components json configurations.
- C. Add component_type_inclusion in the layout json configuration
- D. Add component_type_Exclusions in the layout json configuration
Answer: D
NEW QUESTION 22
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. Create a service and implement the mockfull callback and a sitepreference to enable or disable the mock response.
- B. Create a service and a Sitepreference that induce the service to respond witch a mock response using a conditional.
- C. Create two services, one mock and the real one, and a Sitepreference that enable the mock or the real one
- D. Create a service and implement the mockFill callback and set the service mode to mock.
Answer: D
NEW QUESTION 23
Which technical reports datapoint measures the performance of a controller's script execution if network factors and Web Adaptor processing is ignored?
- A. Call count
- B. Response time
- C. Cache hit ratio
- D. Processing time
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION 24
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.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- B. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- C. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
- D. Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answer: D
NEW QUESTION 25
A developer wants to create in Business Manager extension with the cartridge 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. Add the appropiate roles and permission to the user to view the business manager extension.
- B. Add plugin_bm_extension to the cartridge path under business manager cartridge site
- C. Activate a new code version for the Business Manager Site.
- D. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.
Answer: B,C
Explanation:
NEW QUESTION 26
Given the following ISML example, how should a developer reference the product object in the current iteration of the basket?
- A. loopstatus.product
- B. pdict.product
- C. product
- D. pdict.Basket.products[loopstatus]
Answer: D
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fisml%2Fb2c_isloop.html
NEW QUESTION 27
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 form field.
How should the Digital Developer resolve this issue so that the error message is displayed on the address ID form field?
- A. addressForm.addresssid.invalidateFormElement();
- B. addressForm.invalidateFormElement("addressid");
- C. addressForm.invalidateFormElement(addressForm.addressid);
- D. addressForm.addresssid.invalidateFormElement = true;
Answer: C
NEW QUESTION 28
A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:
How should the Developer change the request?
- A. Change the HTTP method to GET.
- B. Change the URI to /dw/shop/v18_3/products/creative-zen-v.
- C. Include an authentication token in the request.
- D. Change the HTTP method to PUT.
Answer: A
NEW QUESTION 29
A Digital Developer needs to add logging to the following code:
Which statement logs the HTTP status code to a debug-level custom log file?
- A. logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
- B. Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode); - C. logger.getLogger('profile').debug("Error retrieving profile email, Status Code: ", http.statusCode);
- D. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.",
http.statusCode);
Answer: A
NEW QUESTION 30
A job executes a pipeline that makes calls to an external system.
Which two actions prevent performance issues in this situation? (Choose two.)
- A. Use asynchronous import or export jobs.
- B. Configure a timeout for the script pipelet.
- C. Use synchronous import or export jobs
- D. Disable multi-threading.
Answer: B,D
NEW QUESTION 31
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. Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
- B. Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
- C. Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());
- D. Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
Answer: D
NEW QUESTION 32
Why should a Digital Developer use ProductSearchModel.getProducts() instead of Category.getOnlineProducts()to access products?
- A. It uses the search index.
- B. It reduces accesses to the application server.
- C. It has fewer lines of code.
- D. It is more readable code.
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION 33
A Digital Developer selects "Show Orderable Products Only" in the Search > Search Preferences Business Manager module.
Which business goal does this accomplish?
- A. Block displaying the product detail page if Available to Sell (ATS) = 0.
- B. Exclude pre-order products from search results.
- C. Exclude products from search results if Available to Sell (ATS) = 0.
- D. Exclude back-ordered products from showing on the website.
Answer: C
Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%
2Fcom.demandware.dochelp%2FSearchandNavigation%
2FExcludeUnavailableProductsfromSearchResults.html
NEW QUESTION 34
......
Updated Verified B2C-Commerce-Developer dumps Q&As - Pass Guarantee or Full Refund: https://www.testkingfree.com/Salesforce/B2C-Commerce-Developer-practice-exam-dumps.html
Updated Certification Exam B2C-Commerce-Developer Dumps - Practice Test Questions: https://drive.google.com/open?id=1zZP9gQA-xpAWPNpZFSdlxbGXJRgw2KAT