Salesforce-Certified-B2C-Commerce-Developer Dumps Salesforce-Certified-B2C-Commerce-Developer Braindumps Salesforce-Certified-B2C-Commerce-Developer Real Questions Salesforce-Certified-B2C-Commerce-Developer Practice Test Salesforce-Certified-B2C-Commerce-Developer Actual Questions Salesforce Salesforce-Certified-B2C-Commerce-Developer Certified B2C Commerce Developer https://killexams.com/pass4sure/exam-detail/Salesforce-Certified-B2C-Commerce-Developer Question: 57 A client has a requirement to render different content on the homepage based on if the customer is logged in or guest user. What should a developer implement to achieve this requirement? A. Write specific custom code in the Content Asset for a customer that is a registered, versus unregistered, user. B. Set the Content Slot configuration so it is based on the system customer group registered, versus unregistered. C. Set the Content Asset configuration for a customer that is a registered, versus unregistered, user. D. Add specific custom messages in Page Designer for a customer that is a registered, versus unregistered, user. Answer: B Question: 58 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.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode); B. logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode); C. Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode); D. Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode); Answer: B Question: 59 A developer has a sandbox with code to log a message during execution, and the following code: After the code executes, the developer does not see any log file with the message in the WebDAV folder. What could the developer do to correct this issue? A. Set the root log level to debug AND check the box for info under Log Files. B. Set the logging global preference to true AND set the root log level to debug. C. Set the logging global preference to true AND check the box for Info under Log Files Answer: C Question: 60 A developer has the following files in template/resources: account.proierties weight.unit=kilos account_en.propierties weight.unit=stones account_en_US.propierties weight.unit= pounds Using the default locale configuration, what is the current outcome of the page that renders the account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale= Your parcel weighs 10 ${Resource.msg(‘weight.unit’,’account’)} A. Your parcel weighs 10 stones. B. Your parcel weighs 10 pounds. C. Your parcel weighs 10 undefined. D. Your parcel weighs 10 kilos Answer: A Question: 61 Assume the code below is executing: Business Manager has the configuration: Active Log category is “root” with log level of “info.” Given this information, what is the beginning of the filename in which the log will be written? A. xyz B. custominfo-blade C. custom-export D. custom-xyz Answer: D Question: 62 The developer has been given the following business requirement: The shipping method, Free Standard Ground Shipping’ has an exclusion for products *lth category equals or is child of electronics-televisions.’ The marketing department has scheduled a sale offering a “Free Standard Ground Shipping” method for brand XyzTv televisions for the next 3 months. What method accomplishes this while following best practices? A. Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand. B. Extend the CheckoutShippingservices controller using module.superModule and add an exception for the specified brand C. Create an allow list for the existing shipping method by adding a product exclusion for ‘brand equals XyzTV" to the exclusion list for "Free Standard Ground Shipping." Answer: C Question: 63 A developer needs to check for product inventory in all inventory lists using the Open Commerce API. An example request URL is: Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled? A. Client_id B. Ecom-inventory C. Inventory_list Answer: B Question: 64 To ensure SFRA best practices and protect against request forgery, the developer introduced CSRF token generation in the customer address form:
… To implement CSRF protection when the form is submitted, the developer needs to introduce the CSRF validation using one or both of these methods as applicable: validateRequest validateAjaxRequest Where in the code does the developer need to add this CSRF validation check? A. In the controller function that displays the form B. In the middleware chain of the controller post route C. In the controller function that handles the submitted form D. In the model function that persists the form data Answer: B Question: 65 A Digital Developer must give users the ability to choose an occasion (holiday, birthday, anniversary, etc.) for which gifts are currently being selected. The data needs to be persistent throughout the current shopping experience. Which data store variable is appropriate, assuming there is no need to store the selection in any system or custom objects? A. Request scope variable B. Page scope variable C. Session scope variable D. Content slot variable Answer: C Question: 66 A developer wants to configure multiple products that should only be sold as a group. It should not be possible for buyers to buy these products individually. How should the developer configure the products? A. Bundle B. Set C. Variation Group Answer: A Question: 67 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 2 answers A. log.warn("This is a warn message"); B. log.error("This is an error message"); C. log.info("This is an info message"); D. log.debugfThis is a debug message"); Answer: A,C Question: 68 A merchant has a content slot on a page that currently displays products based on the top Sellers for the current week. They wish to change this functionality and, instead, have the slot render a specific content asset so that the content experience is more personalized to the visitors. Which two actions are necessary to make this change? Choose 2 answers A. Delete the existing content slot and create a new one. B. Change the rendering template in the slot configuration C. Change the default setting in the slot configuration D. Change the content type for the slot configuration Answer: B,D Question: 69 Which two methods are efficient and scalable? (Choose two.) A. ProductMgr.queryAllSiteProducts() B. ProductSearchHit.getRepresentedProducts() C. ProductSearchModel.getProductSearchHits() D. Category.getProducts() Answer: C,D Question: 70 A controller route in the SFRA base looks as follows: In order to extend this route using prepared ( ), what should the developer consider? A. Specify any middleware functions needed for the new functionality. B. Specify any middleware functions needed for the new functionality using only those called by the base route. C. Remove next ( ); on the new route so only the route’s middleware functions execute. Answer: B 6$03/( 48(67,216 7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV .LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP $FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP ([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP 3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV *XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV 8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV 7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\ 'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU .LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG