Exam Dumps B2C-Commerce-Developer Practice Free Latest Salesforce Practice Tests [Q56-Q72]

Share

Exam Dumps B2C-Commerce-Developer Practice Free Latest Salesforce Practice Tests

B2C-Commerce-Developer Exam Questions | Real B2C-Commerce-Developer Practice Dumps

NEW QUESTION 56
What happens if the log file size limit is reached in custom logging?

  • A. The log file rolls over and the last used log is overwritten.
  • B. Logging is suspended for two hours.
  • C. Logging is suspended for the day.
  • D. The log file is deleted and recreated from scratch.

Answer: D

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FSiteDevelopment%2FUnderstandingLogFiles.html

 

NEW QUESTION 57
A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?:

  • A. { "hooks": "./cartridge/scripts/hooks.json" }
  • B. { hooks: ./scripts/hooks.json }
  • C. { hooks: "./cartridge/scripts/hooks.json" }
  • D. { "hooks": "./scripts/hooks.json" }

Answer: A

 

NEW QUESTION 58
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. A model
  • B. A middleware script
  • C. A controller
  • D. A decorator

Answer: C

 

NEW QUESTION 59
Given the following snippet:
* Server.append( 'Show' , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?
Choose 2 answers

  • A. res.viewData = {
    data: myDataObject
    };
    res.render('/content/myPage');
    next();
    });
  • B. res.setViewData ({
    data: myDataObject
    });
    res.render('/content/myPage');
    next();
    });
  • C. res.render('/content/myPage',{
    data: myDataObject
    });
    next();
    });
  • D. res.render('/content/myPage');
    next();
    }).append{(
    Data:myDataObject
    });

Answer: C

 

NEW QUESTION 60
A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.
Which code sample will achieve this?

  • A. ISML.renderTemlpate ( "helloworld.isml", { "product": myProduct });
  • B. ISML.renderTemlpate ( "helloworld.isml", { "myProduct": "product" });
  • C. ISML.renderTemlpate ( "helloworld.isml", { myProduct: product });
  • D. ISML.renderTemlpate ( "helloworld.isml", { product: myProduct });

Answer: B

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%
2Fcom.demandware.dochelp%2FSGJC%2FPipelinetoControllerConversion.html

 

NEW QUESTION 61
A Digital Developer wants to selectively retrieve products and process them from an (Phone. Which action should the Developer take, given that JavaScript controllers CANNOT be used?

  • A. Use OCAPI and invoke it in native language.
  • B. Use import/export in Business Manager.
  • C. Use WebDAV Client to retrieve products.
  • D. Create a webservice to retrieve products.

Answer: D

 

NEW QUESTION 62
A digital instance has one site, with one master product catalog separate from the site catalog. Some, but NOT all, products in the master catalog are assigned to categories of the site catalog.
Using Business Manager, how can a Digital Developer create a catalog export file that contains only the products assigned to the site catalog?

  • A. Use the Catalog Export module to export the site catalog.
  • B. Use the Catalog Export module to export the master catalog, with a category-assignment search to export specific products.
  • C. Use the Site Import & Export module to export both the site catalog and the master catalog in a single archive.
  • D. Use the Site Import & Export module to export the master catalog, filtered by site catalog categories to export specific products.

Answer: B

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%
2Fcom.demandware.dochelp%2FImportExport%2FCatalogObjectImportExport.html

 

NEW QUESTION 63
Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.
Which series of steps should a Digital Developer take to show this refinement on the storefront?

  • A. Define a sorting rule for weightCapacity, then rebuild the product search index.
  • B. Define search-suggestion buckets for weightCapacity, then rebuild the product search index.
  • C. Define a search refinement for weightCapacity, then clear the page cache segment for Search-Show.
  • D. Define a search refinement for weightCapacity, then rebuild the product search index.

Answer: D

Explanation:
Explanation/Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%
2Fcom.demandware.dochelp%2FSearchandNavigation%
2FConfiguringCataloglevelSearchRefinementDefinitions.html

 

NEW QUESTION 64
In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.
Which two courses of action might solve the problem? (Choose two.)

  • A. Delete the existing CSRF whitelists in Business Manager
  • B. Extend the CSRF token validity to avoid timeouts
  • C. Add csrfProtection.generateToken as a middleware step in the controller
  • D. Add the token in the ISML template

Answer: A,B

 

NEW QUESTION 65
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. Use the Session class in the B2C Commerce api.
  • B. Use an SFRA controller, because it runs server-side, the state is automatically maintained
  • C. Use a non-replicable Custom Object to store the information temporarily.
  • D. Use a client-side cookie to store the information for the session duration.

Answer: A

 

NEW QUESTION 66
Universal Containers created a site export file from staging in the global export directory. How should the Digital Developer update their sandbox using this staging site export file?

  • A. Download the site export file and use UX Studio to transfer the data to the sandbox.
  • B. Perform a data replication from staging.
  • C. Use the Site Development > Import & Export Business Manager module.
  • D. Use the Site Development > Site Import & Export Business Manager module.

Answer: D

 

NEW QUESTION 67
A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.
Which approach should the Developer use to implement the requirement?

  • A. Implement a condition that checks to see if the response was empty and execute fallback code if true.
  • B. Use the setTimeout method to execute fallback code if the request has NOT completed.
  • C. Implement a serviceUnavaiiableException exception handler to execute fallback code.
  • D. Create a site preference to store timeout settings and implement an IOException handler to execute fallback code.

Answer: C

 

NEW QUESTION 68
A Digital Developer suspects a logical error in a script.
Which action will help locate the error?

  • A. Check request logs for evidence of the logical error.
  • B. Put breakpoints in the code, debug, and examine variable values.
  • C. Submit a support ticket to B2C Commerce.
  • D. Print all values in the script node called before the current script.

Answer: A

 

NEW QUESTION 69
Which two methods are efficient and scalable? (Choose two.)

  • A. ProductMgr.queryAllSiteProducts()
  • B. ProductSearchModel.getProductSearchHits()
  • C. ProductSearchHit.getRepresentedProducts()
  • D. Category.getProducts()

Answer: B,D

 

NEW QUESTION 70
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 Pay payment instrument for order.'+paymentInstruments);
  • B. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • C. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
  • D. Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);

Answer: A

 

NEW QUESTION 71
Universal Containers requires that a new order comments attribute is added to the existing SiteGenesis checkout flow. This new attribute needs to be included as part of the standard order export.
Aside from updating the HTML markup and form definition, which option contains all necessary steps to achieve this task?

  • A. * Create a new custom object type for order comments that contains the attributes: order ID and comments.
    * Modify the "COPlaceOrder" controller to create a new order comments custom object upon order completion.
  • B. * Modify the "COPlaceOrder" controller to update a CSV file in the IMPEX WebDAV directory with the order ID and comments.
    * Modify the order export process to read information in the CSV file and include it as part of the export.
  • C. * Add the new attribute to the "Order" system object.
    * Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Order" object.
  • D. * Add the new attribute to the "Customer" system object.
    * Modify the "COPlaceOrder" controller to add this new attribute to the current session's "Customer" object.

Answer: C

 

NEW QUESTION 72
......

Verified B2C-Commerce-Developer Exam Dumps Q&As - Provide B2C-Commerce-Developer with Correct Answers: https://testking.prep4sureexam.com/B2C-Commerce-Developer-dumps-torrent.html