Released Salesforce B2C-Commerce-Developer Updated Questions PDF [Q40-Q60]

Share

Released Salesforce B2C-Commerce-Developer Updated Questions PDF

B2C-Commerce-Developer Dumps and Practice Test (115 Exam Questions)

NEW QUESTION 40
A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountCoatrol.-s and accountlanding.isul in the app_at storefront cartridge The app_3torefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:
mc_];aypal:app_storefront.
The Developer creates a new cartridge named app_newsire that contains only the accountlanding.isml template for the new site.
Which modification should be made to the new cartridge path?

  • A. Set the cartridge path so that app_newsite is before app_storefront.
  • B. Set the cartridge path so that app_newsite is after app_storefront.
  • C. Set the cartridge path to include only app_newsite.
  • D. Set the cartridge path so that app_storefront is before int_cybersource.

Answer: A

 

NEW QUESTION 41
When inspecting the weekly service status report for a critical internally hosted web service used in the application, a developer notices that there are too many instances of unavailability.
Which two solutions can reduce the unavailability of the service?
Choose 2 answers.

  • A. Update the service to have a faster response time.
  • B. Increase the web service time out
  • C. Modify the code that makes the request to the external service to be wrapped in a try/catch block.
  • D. Change the code that sets the throwOnError attribute of the service to be true.

Answer: B,C

Explanation:

 

NEW QUESTION 42
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

 

NEW QUESTION 43
The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.
What are two possible reasons?

  • A. The category is not sorted
  • B. The category does not contain available products
  • C. The category is offline.
  • D. The Storefront catalog is offline

Answer: B,C

 

NEW QUESTION 44
A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.
Which link function generates the correct link?

  • A. $httpUrl('Content-Show\ 'cid', ,terms-and-conditions')$
  • B. $url(*Page-Show', 'cid', 'terms-and-conditions')s
  • C. $http('Content-Page', 'cid', 'terms-and-conditions^S
  • D. $include('Page-Include', 'cid', 'terms-and-conditions')$

Answer: B

 

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

Answer: C

 

NEW QUESTION 46
A Digital Developer added a file named MyBusinessController. js in the cartridge named app_project. The project design calls for this new file to override MyBusinessControiier.3s in claient_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controliers cartridges.
Which cartridge path meets the project requirements?

  • A. client_project:app_project:storefront_controllers:storefront_core
  • B. storefront_core:storefront_controllers:client_project:app_project
  • C. app_project:client_project:storefront_controllers:storefront_core
  • D. app_project:storefront_controllers:storefront_core

Answer: C

 

NEW QUESTION 47
A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.
Which code sample should the Developer use to make sure that HTTPS is used?

  • A. exports.PaymentForm = guard.expose(['post', 'loggedIn'], handlePaymentForm);
  • B. exports.PaymentForm = guard.ensure(['https', 'post', 'loggedIn'], handlePaymentForm);
  • C. exports.PaymentForm = guard.httpsPost(handlePaymentForm);
  • D. exports.PaymentForm = guard.ensure(['http', 'post', 'loggedIn'], handlePaymentForm);

Answer: B

 

NEW QUESTION 48
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 49
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 kilos
  • B. Your parcel weighs 10 stones.
  • C. Your parcel weighs 10 pounds.
  • D. Your parcel weighs 10 undefined.

Answer: B

 

NEW QUESTION 50
A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the European market. The products they make are sold with different safety certificates based-on the world location.
For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a hairdryer with certificate C in the U.S and certificate D in Europe, and more.
How should a developer allow the merchant to display the appropriate certification logo in the produce to details page, depending on the customer's location?

  • A. Ad and Image custom preference to the Sitepreference system object type
  • B. Add a Site-specific custom attribute to the Product system object type.
  • C. Add a Localizable custom preference to the SitePreference system object type.
  • D. Add a Localizable custom attribute to the Certificate system object type.

Answer: B

Explanation:

 

NEW QUESTION 51
Which three object types can a developer import using the Merchant Tools > Content > Import & Export module in Business Manager? (Choose three.)

  • A. Folders
  • B. Content assets
  • C. Images and other static assets
  • D. Content slots
  • E. Products

Answer: A,D,E

 

NEW QUESTION 52
A Digital Developer has identified that the code segment below is causing performance problems.

What should the Developer do to improve the code?

  • A. Breaks the process into separate loops.
  • B. Avoid post-processing and use the isOnSaleFlag attribute as a search refinement.
  • C. Use a system attribute instead of the isOnSaleFlag custom attribute.
  • D. Avoid using an Iterator and use a Collection instead.

Answer: A

 

NEW QUESTION 53
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

 

NEW QUESTION 54
Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?

  • A. Hover over the caching icons now present on the storefront.
  • B. Start a pipeline debugging session and view the caching information provided.
  • C. Right-click on the component in UX Studio and view the caching properties of the file.
  • D. Open the Request Logs to view the caching information.

Answer: D

 

NEW QUESTION 55
A Digital Developer is adding support for an additional language other than the default. The locale code for the new language is de.
In which folder should the developer place resource bundles?

  • A. templates/de
  • B. templates/default
  • C. templates/resources
  • D. templates/default/resources

Answer: C

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

 

NEW QUESTION 56
A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net.
The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.
By default, which URL format is a proper Open Commerce API for Sandbox?

  • A. https://test.demandware.net/s/test-site/dw/shop/v18_3/products/M1355?client_id=aaa...
  • B. https://www.test.com/s/test-site/sfc/shop/products/M1355?client_id=aaa...
  • C. https://test.demandware.com/dw/shop/products/M1355?client_id=aaa...
  • D. https://www.test.com/dw/shop/v18_3/products/M1355?client_id=aaa...

Answer: A

 

NEW QUESTION 57
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. Activate a new code version for the Business Manager Site.
  • B. Add plugin_bm_extension to the cartridge path under Storefront cartridge site path.
  • C. Add the appropiate roles and permission to the user to view the business manager extension.
  • D. Add plugin_bm_extension to the cartridge path under business manager cartridge site

Answer: A,D

Explanation:

 

NEW QUESTION 58
A developer cannot create a custom object in Business Manager because the attributes do not show. The developer can view the object but not the attributes.
Which action should the developer take to resolve the problem?

  • A. Sort the attributes in the custom object type
  • B. Change the data type of the attributes
  • C. Create an Attribute Group with the desired attributes in it
  • D. Set the attributes to site-specific replicable

Answer: B

Explanation:
Explanation/Reference:

 

NEW QUESTION 59
Which code sample is required to use a custom tag provided in SiteGenesis in an ISML template?

  • A. <isinclude template="util/customtags">
  • B. <isscript>
    dw.util.CustomTagMgr.createCustomTag("mytag"); <isscript>
  • C. <isinclude url="${URLUtils.url("CustomTag-Start")}>
  • D. <isinclude template="util/modules">

Answer: D

 

NEW QUESTION 60
......


Salesforce B2C-Commerce-Developer Exam Syllabus Topics:

TopicDetails
Topic 1
  • Given A Business Manager Task, Work With The Product Data Model To Manage Products, Their Categorization, And Associated Inventory
Topic 2
  • Create A Javascript Controller That Leverages A Script And Renders A Template/JSON
  • Write Code That Logs Non-Sensitive Data To Custom Log Files With Different Log Levels
Topic 3
  • Modify The Appearance Of A Form, Add Validation And CSRF Protection, And Use Bindings To Process Fields
Topic 4
  • Given A Performance Issue And Sample Code, Determine The Faulty Cache Configuration And Identify The Cause
Topic 5
  • Given A Requirement And A Simple Service Specification, Integrate And Deploy Using Service Framework
  • Use OCAPI Shop And Data Apis To Enable Interoperability With An External System
Topic 6
  • Implement And Enhance Templates, Form Definitions, Static Files, Properties Files
  • Extend Functionality With A Hook That Is Not Previously Defined In Hooks
Topic 7
  • Configure And Use The Debugger To Inspect Script And Pipeline Functions
  • Modify A Javascript Controller To Alter The Control Logic
Topic 8
  • Given Existing Code And A Sandbox Instance, Enable And Access Logging Category In Business Manager
Topic 9
  • Troubleshoot File Synchronization Issues Between UX Studio And The Sandbox Environment
  • Given A Sandbox Instance And UX Studio Connection
Topic 10
  • Create ISML Templates That Use The Following ISML Functionality: Local Include, Remote Include, Modules, And Components
Topic 11
  • Persistent Object Attributes To Ensure That Localized Pages Are Displayed As Expected
  • Identify The Issues And Modify The Code To Conform To Best Practices Including Performance & Scalability

 

B2C-Commerce-Developer Exam Dumps Pass with Updated 2022 Certified Exam Questions: https://www.passexamdumps.com/B2C-Commerce-Developer-valid-exam-dumps.html

Guide (New 2022) Actual Salesforce B2C-Commerce-Developer Exam Questions: https://drive.google.com/open?id=1DUI8yw-MKD2La8A1digZaqotupX5vkNn