Salesforce B2B-Commerce-Developer Test Engine Practice Test Questions, Exam Dumps [Q97-Q114]

Share

Salesforce B2B-Commerce-Developer Test Engine Practice Test Questions, Exam Dumps

100% Free B2B-Commerce-Developer Daily Practice Exam With 223 Questions

NEW QUESTION # 97
What two kinds of queries do the methods in Salesforce B2B Commerce services perform by default? (2 answers)

  • A. SOSL
  • B. Schema-less queries
  • C. SQL
  • D. SOQL

Answer: A,D


NEW QUESTION # 98
A developer has the task to create custom Lightning web components (LWCs). Which two steps must a developer take when creating custom LWCs?

  • A. Create an Apex class.
  • B. CloneaLWC.
  • C. Authorize an org for an SFDX project.
  • D. Deploy a custom component.

Answer: C,D

Explanation:
Explanation
To create custom Lightning web components (LWCs), a developer must take two steps: authorize an org for an SFDX project and deploy a custom component. Authorizing an org for an SFDX project allows the developer to connect to a Salesforce org, such as a scratch org, a sandbox, or a production org, and use it as a development environment. Deploying a custom component allows the developer to push the LWC code from the local project to the org and make it available for use. Creating an Apex class is not a required step for creating custom LWCs, as not all LWCs need to use Apex. Cloning an LWC is not a required step either, as it is an optional way to create a new LWC based on an existing one. Salesforce References: Lightning Web Components Developer Guide: Authorize an Org for Development, Lightning Web Components Developer Guide: Deploy Your Component


NEW QUESTION # 99
Which wire adapter should a developer use to retrieve metadata about a specific picklist?

  • A. getPicklistMetadata
  • B. getPicklistMetadataValues
  • C. getPicklistValues
  • D. getPicklist

Answer: C

Explanation:
Explanation
To retrieve metadata about a specific picklist, a developer should use the getPicklistValues wire adapter. The getPicklistValues wire adapter imports data from the @salesforce/ui-api module and returns an object that contains information such as the picklist's label, value, default value, validity, and controlling field values.
The getPicklistMetadataValues wire adapter does not exist. The getPicklistMetadata wire adapter does not exist either. The getPicklist wire adapter does not exist either. Salesforce References: [Lightning Web Components Developer Guide: getPicklistValues], [Lightning Web Components Developer Guide: Import User Interface API]


NEW QUESTION # 100
An administrator has just provided a developer with a new org and username. Which two sets of steps can the developer use to authorize the org and begin deploying Lightning web components?
What should a developer do to expose a public property in a Lightning web component?

  • A. Decorate the field with @track
  • B. Decorate the field with @public
  • C. Decorate the field with @property
  • D. Decorate the field with @api

Answer: D

Explanation:
Explanation
To expose a public property in a Lightning web component, the developer should decorate the field with the @api decorator. This decorator marks the property as public, which means that it can be set by another component, such as a parent component. The @api decorator also makes the property reactive, which means that any changes to the property value are reflected in the component's template. The other decorators (@property, @track, and @public) are not valid for exposing public properties in Lightning web components. References: B2B Commerce and D2C Commerce Developer Guide, [Lightning Web Components Developer Guide]


NEW QUESTION # 101
While in the process of gathering requirements from a customer about how they would like to set up their net new storefront checkout experience, a consultant learns that the customer needs the ability to add new shipping and billing addresses during checkout.
Which approach should a developer take to meet this requirement?

  • A. Create a Lightning web component that enables this functionality and replaces the current shipping address screen within the Checkout subflow.
  • B. Enable Buyer Managed Contact Point Addresses within Commerce Administration.
  • C. Create a new shipping address checkout subflow that utilizes the Buyer Managed Contact Point Addresses component.
  • D. Enable Buyer Managed Contact Point Addresses within the Shipping Address standard component in the Checkout subflow.

Answer: D

Explanation:
Explanation
To enable the ability to add new shipping and billing addresses during checkout, a developer should enable Buyer Managed Contact Point Addresses within the Shipping Address standard component in the Checkout subflow. The Buyer Managed Contact Point Addresses is a feature that allows customers to add, edit, or delete their shipping and billing addresses during checkout. The developer can enable this feature bysetting the buyerManagedContactPointAddressesEnabled attribute to true in the Shipping Address standard component in the Checkout subflow. The Shipping Address standard component is a component that displays and collects the shipping address information for the cart or order. The Checkout subflow is a subflow that defines the steps and components for the checkout process in the storefront. Creating a new shipping address checkout subflow that utilizes the Buyer Managed Contact Point Addresses component is not a valid way to enable this feature, as there is no such component as Buyer Managed Contact Point Addresses. Enabling Buyer Managed Contact Point Addresses within Commerce Administration is not a valid way either, as this feature is not configurable in Commerce Administration. Creating a Lightning web component that enables this functionality and replaces the current shipping address screen within the Checkout subflow is not a valid way either, as this is unnecessary and complicated when there is already a standard component that supports this feature. Salesforce References: [B2B Commerce Developer Guide: Buyer Managed Contact Point Addresses],
[B2B Commerce Developer Guide: Shipping Address Component], [B2B Commerce Developer Guide:
Checkout Subflow]


NEW QUESTION # 102
Numerous flags, when set, have a direct impact on the result set provided by the Global API's. What is the default Global API DataSizing convention flag that is used by the API's unless otherwise specified?

  • A. CCRZ.ccPAI.SZ_XL
  • B. CCRZ.ccPAI.SZ_M
  • C. CCRZ.ccPAI.SZ_L
  • D. CCRZ.ccPAI.SZ_S

Answer: C


NEW QUESTION # 103
A Developer created a custom field that a project wants to expose on a given page.
How does the Developer ensure that the field is available to display on a given page?

  • A. Override the Service Class that the page uses and update the ServiceManagementin CCAdmin for the given storefront to use this new Service Class.
  • B. Override the Logic Class that the page uses and update the Service Management inCCAdmin for the given storefront to use this new Service Class
  • C. Create a new Logic Class that the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class
  • D. Create a new Service Classthat the page uses and update the Service Managementin CCAdmin for the given storefront to use this new Service Class

Answer: A

Explanation:
To ensure that a custom field is available to display on a given page, the Developer needs to override the Service Class that the page uses and update the Service Management in CCAdmin for the given storefront to use this new Service Class. The Service Class is responsible for retrieving and setting data for a given page. The Logic Class is responsible for implementing business logic and validation rules for a given page. Creating a new Service Class or Logic Class is not necessary, as overriding an existing one can achieve the same result. Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Service Classes, Logic Classes


NEW QUESTION # 104
Which cart item type is created with the Cart Delivery Group Method after the shipping integration?

  • A. Surcharge
  • B. Delivery
  • C. Shipping
  • D. Charge

Answer: D

Explanation:
A cart item with a type of Charge is created with the Cart Delivery Group Method after the shipping integration. A shipping integration is an integration that calculates and applies shipping costs and options to a cart or an order based on various factors, such as product weight, dimensions, quantity, location, and carrier service level. A shipping integration can use either an external shipping service provider or custom Apex code to perform the shipping calculation. The Cart Delivery Group Method is a method that determines how products are grouped into delivery groups based on their shipping methods and addresses. A delivery group is a logical grouping of products that are shipped together using the same shipping method and address. After performing the shipping calculation for each delivery group, the shipping integration creates a cart item with a type of Charge and a charge type of Shipping for each delivery group. These cart items represent the shipping costs and options that are applied to each delivery group. A cart item with a type of Surcharge, Shipping, or Delivery does not exist or is not related to the shipping integration. Salesforce References: [B2B Commerce Developer Guide: Shipping Integration], [B2B Commerce Developer Guide: Cart Delivery Group Method]


NEW QUESTION # 105
Northern Trail Outfitters (NTO) has a requirement to schedule a reusable data import across multiple orgs for customer demo purposes. NTO also has a requirement to seed data of related objects-ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct- while preserving its relationships and without purchasing additional licenses or using thirdparty tools.
What is the recommended tool a developer should select to address the requirement?

  • A. Bulk Import Using Command Line Interface
  • B. Dataloader.io
  • C. Data Import Wizard
  • D. Commerce Product Data Import

Answer: D

Explanation:
n: The Commerce Product Data Import resource is the recommended tool for importing products for a B2B or B2C store using a .csv file. This resource supports importing data of related objects, such as ProductCatalog, ProductCategory, Product2, and ProductCategoryProduct, while preserving their relationships. It also does not require additional licenses or third-party tools. The other options are either not specific to Commerce products, or do not support importing data of related objects. References:
* Commerce Product Import Resource
* Import and Export Commerce Data
* B2B and D2C Commerce Data Model


NEW QUESTION # 106
Which event is triggered within Salesforce B2B Commerce whenever a cart's state changes?

  • A. pageMessage
  • B. cartState
  • C. cart
  • D. cartChange

Answer: D


NEW QUESTION # 107
Which three pages should be enabled for the Guest user profile for a storefront to have anonymous checkout?
(3 answers)

  • A. Checkout
  • B. OrderConfirmation
  • C. CCPaymentInfo
  • D. CheckoutNew
  • E. OrderView

Answer: B,C,D

Explanation:
Explanation
Three pages that should be enabled for the Guest user profile for a storefront to have anonymous checkout are:
* CCPaymentInfo: This page allows the guest user to enter their payment information, such as credit card number, expiration date, and security code. The page also displays the order summary and total amount.
* CheckoutNew: This page allows the guest user to enter their shipping and billing information, such as name, address, phone number, and email. The page also displays the cart items and shipping options.
* OrderConfirmation: This page displays the confirmation message and order number after the guest user places their order. The page also provides a link to view the order details or print the invoice. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Anonymous Checkout


NEW QUESTION # 108
What is likely to happen if a developer leaves debug mode turned on in an environment?

  • A. A banner will be displayed to the user indicating that the org is in debug mode
  • B. The org will turn off debug mode after 72 hours
  • C. The user will begin getting JavaScript limit exceptions
  • D. The performance of the org will become slower each day

Answer: C

Explanation:
If a developer leaves debug mode turned on in an environment, the user will begin getting JavaScript limit exceptions. Debug mode is a setting that enables more detailed logging and error reporting for Lightning web components. However, it also increases the size and complexity of the JavaScript code that is delivered to the browser, which can cause performance issues and JavaScript limit exceptions. The JavaScript limit exceptions are errors that occur when the browser reaches its maximum capacity for executing JavaScript code, such as memory heap size or script execution time. The performance of the org will not become slower each day, as debug mode only affects the client-side performance, not the server-side performance. The org will not turn off debug mode after 72 hours, as debug mode is a persistent setting that can only be changed manually by an administrator. A banner will not be displayed to the user indicating that the org is in debug mode, as debug mode is a transparent setting that does not affect the user interface. Salesforce Reference: Lightning Web Components Developer Guide: Debug Your Code, Lightning Web Components Developer Guide: JavaScript Limit Exceptions


NEW QUESTION # 109
Which two methods should a developer implement in a Lightning web component to successfully handle the subscription lifecycle of a Message Channel?

  • A. Subscribe()
  • B. stopListener()
  • C. startListener()
  • D. unsubscribe()

Answer: A,D

Explanation:
Explanation
To handle the subscription lifecycle of a message channel in a Lightning web component, the developer should implement the subscribe() and unsubscribe() methods from the lightning/messageService module.
The subscribe() method returns a subscription object that represents the connection to the message channel.
The developer can use this object to unsubscribe from the message channel later. The unsubscribe() method takes a subscription object as a parameter and removes the listener from the message channel. The developer should call the unsubscribe() method when the component is disconnected from the DOM, such as in the disconnectedCallback() lifecycle hook, to avoid memory leaks and performance issues.
The other options are not correct because:
* B. stopListener() is not a valid method for handling the subscription lifecycle of a message channel.
There is no such method in the lightning/messageService module or the Lightning web component framework.
* C. startListener() is not a valid method for handling the subscription lifecycle of a message channel.
There is no such method in the lightning/messageService module or the Lightning web component framework.
References:
* Subscribe and Unsubscribe from a Message Channel
* Lifecycle Hooks
* Use message channel in both direction


NEW QUESTION # 110
A developer is on a tight timeline and needs to implement a Lightning web component which can read, create and modify single records. What is the recommended path forward?

  • A. Create an Apex Controller
  • B. Use Lightning Data Service
  • C. Use base components
  • D. Write custom functions against a wire adapter

Answer: B

Explanation:
To implement a Lightning web component which can read, create and modify single records, the recommended path forward is to use Lightning Data Service. Lightning Data Service is a service that provides access to Salesforce data and metadata, cache management, and data synchronization across components.
Lightning Data Service allows developers to use standard components or base componentsto perform CRUD (create, read, update, delete) operations on single records without writing Apex code or SOQL queries.
Lightning Data Service also handles data caching, performance optimization, and conflict resolution automatically. Using base components is not a sufficient way to implement a Lightning web component which can read, create and modify single records, as base components are only user interface elements that do not provide data access or manipulation functionality by themselves. Base components need to be used with Lightning Data Service or other services to perform CRUD operations on single records. Writing custom functions against a wire adapter is not a recommended way to implement a Lightning web component which can read, create and modify single records, as it involves writing complex and error-prone JavaScript code that may not be efficient or scalable. Writing custom functions against a wire adapter also requires handling data caching, performance optimization, and conflict resolution manually. Creating an Apex controller is not a recommended way either, as it involves writing Apex code that may not be necessary or optimal for performing CRUD operations on single records. Creating an Apex controller also requires exposing Apex methods using @AuraEnabled or @RemoteAction annotations and invoking them from JavaScript code using imperative calls or promises. Salesforce References: Lightning Web Components Developer Guide: Access Salesforce Data, Lightning Web Components Developer Guide: Base Components, [Lightning Web Components Developer Guide: Call Apex Methods]


NEW QUESTION # 111
Which three statements are true about Global API versioning? (3 answers)

  • A. There is no need to pass API_VERSION to the Global APIs, and based on the Salesforce B2B Commerce Managed Package version, Global APIs are able to figure out what version of the API to use.
  • B. The API version is scoped at the Class API level and NOT at the method level.
  • C. Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers.
  • D. Minimum API_VERSION is 1 and the Maximum API version follows the releases. E.g. The maximum was 4 as of Salesforce B2B Commerce Release-4.5, 5 as of Salesforce B2B CommerceRelease 4.6, etc.
  • E. Calling in with an API version set to lower than 1 will result in an exceptional case where the exception classccrz.BelowMinAPIVersionException will be returned tocallers.

Answer: C,D,E

Explanation:
Three statements that are true about Global API versioning are:
* Calling in with an API version set to lower than 1 will result in an exceptional case where the exception class ccrz.BelowMinAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a higher API version.
* The API version is scoped at the Class API level and NOT at the method level. This means that all the methods in a class will use the same API version that is specified by the caller. For example, if the caller passes an API version of 4 to ccrz.ccServiceProduct.getProducts(), then all the other methods in ccrz.ccServiceProduct will also use API version 4.
* Calling in with an API version set to more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers. This exception indicates that the API version is not supported by the framework and the caller should use a lower API version. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, API Versioning


NEW QUESTION # 112
What two things happen with the Cart during tax implementation?

  • A. Previous entries are deleted from the Cart
  • B. New entries are written to the Order Summary
  • C. Previous entries are copied to another object
  • D. New entries are written to the Cart

Answer: A,D

Explanation:
Explanation
Two things that happen with the cart during tax implementation are that new entries are written to the cart and previous entries are deleted from the cart. A tax implementation is an integration that calculates and applies tax rates and amounts to a cart or an order based on various factors, such as product type, price, quantity, location, and tax rules. A tax implementation can use either an external tax service provider or custom Apex code to perform the tax calculation. When a tax implementation is invoked for a cart, it writes new entries to the cart with a type of Charge and a charge type of Tax. These entries represent the tax amounts and adjustments that are applied to the cart. Before writing new entries to the cart, the tax implementation deletes any existing entries with a type of Charge and a charge type of Tax from the cart. This ensures that the tax calculation is accurate and up-to-date based on the current state of the cart and avoids any conflicts or inconsistencies with previous tax entries. Previous entries are not copied to another object or modified with the new tax calculation, as these are not valid actions for handling existing tax entries. Salesforce References: B2B Commerce Developer Guide: Tax Integration, B2B Commerce Developer Guide: Tax Calculation Flow


NEW QUESTION # 113
A developer needs to implement a custom Lightning web component (LWC) for the storefront.
The LWC contains language-specific text values.
How should the developer translate the text values?

  • A. Use a CustomLabel xml file in the LWC to add the text values there.
  • B. Create custom labels for the text values and import them in the LWC.
  • C. Create a custom Metadata object for the text values and query it in the LWC.
  • D. Import static resources for the text values and add them into the LWC.

Answer: B

Explanation:
Custom labels are text values that can be translated into any language that Salesforce supports. They are useful for displaying language-specific text in Lightning web components. To use custom labels in a LWC, the developer needs to create them in the Setup menu and assign them to a language and a value. Then, the developer can import them in the LWC using the @salesforce/label scoped module. For example, if the developer has a custom label named welcomeHeader, they can import it as follows:
import welcomeHeader from '@salesforce/label/c.welcomeHeader';
Then, they can use it in the HTML template or the JavaScript file of the LWC. For example, in the HTML template, they can use it as follows:
HTMLAI-generated code. Review and use carefully. More info on FAQ.
<template>
<h1>{welcomeHeader}</h1>
</template>
The custom label will automatically display the translated value based on the user's language preference. The developer can also use the lightning-formatted-text component to format the custom label value with HTML tags.
The other options are not correct because:
* A. Importing static resources for the text values is not a recommended way to translate text values in a LWC. Static resources are files that are stored in Salesforce and can be referenced by applications. They are not designed for storing language-specific text values and they do not support automatic translation based on the user's language preference.
* B. Using a CustomLabel xml file in the LWC to add the text values there is not a valid option. Custom labels are not stored in xml files, but in the Setup menu. They cannot be added directly to the LWC, but they need to be imported using the @salesforce/label scoped module.
* D. Creating a custom Metadata object for the text values and querying it in the LWC is not a feasible option. Custom Metadata objects are records that store configuration data that can be deployed and packaged. They are not intended for storing language-specific text values and they do not support automatic translation based on the user's language preference. Querying them in the LWC would also require an Apex class and a wire service, which would add unnecessary complexity to the solution.
References:
* Use Custom Labels in Lightning Web Components
* Custom Labels
* Internationalizing Your Lightning Web Component (LWC)


NEW QUESTION # 114
......

Use Valid New B2B-Commerce-Developer Test Notes & B2B-Commerce-Developer Valid Exam Guide: https://freetorrent.itpass4sure.com/B2B-Commerce-Developer-practice-exam.html