Discount Offer
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99



Pass exam with Dumps4free or we will provide you with three additional months of access for FREE.

B2B-Commerce-Developer Practice Test


Page 14 out of 43 Pages

How is a price group dynamically set?


A. By overriding the ccLogicProductPrice class


B. By using contract pricing


C. By extending the ccApiPriceList API


D. By extending the cc_hk_priceing hook





D.
  By extending the cc_hk_priceing hook

Explanation:

A price group can be dynamically set by extending the cc_hk_pricing hook. This hook allows modifying the price group based on various factors, such as the user, cart, product, or storefront. For example, the hook can apply a different price group for a specific product category or for a specific user segment.

Which two aspects are applicable to Page Includes? (2 answers)


A. Standard Visualforce controls such as apex:form should not be used within a page include


B. Page Includes must be assigned to an OOTB Page, i.e. Home, Product Detail, etc., and enabled


C. Page Includes can be configured as Body Includes Begin.


D. If a controller is used for an included page, then a merge variable must be present on the page.





A.
  Standard Visualforce controls such as apex:form should not be used within a page include

C.
  Page Includes can be configured as Body Includes Begin.

Explanation:

Two aspects that are applicable to Page Includes are: Standard Visualforce controls such as apex:form should not be used within a page include. This is because the page include is rendered inside an existing Visualforce page that already has a form element. Using another form element inside the page include will cause conflicts and errors. Instead, the page include should use HTML elements or custom components that do not require a form element.

Page Includes can be configured as Body Includes Begin. This means that the page include will be rendered at the beginning of the body section of the page, before any other content or widgets. This can be useful for adding some custom content or functionality that applies to the whole page, such as a banner, a modal, or a script. Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Page Includes

What are two purposes of the Shadow DOM in a Lightning web component?


A. It encapsulates the internal document object model (DOM) structure of a web component


B. It allow components to be shared while protecting them from being manipulated by arbitrary code


C. It allows direct access to the document object model of the component


D. It allows older JavaScript libraries to manipulate the tagging structure





A.
  It encapsulates the internal document object model (DOM) structure of a web component

B.
  It allow components to be shared while protecting them from being manipulated by arbitrary code

Explanation:

According to the Lightning Web Components Developer Guide, Shadow DOM is a standard that encapsulates the internal document object model (DOM) structure of a web component. Encapsulating the DOM gives developers the ability to share a component and protect the component from being manipulated by arbitrary HTML, CSS, and JavaScript. Shadow DOM also provides style and behavior isolation for a web component, which means that the styles and scripts defined inside a component do not affect the rest of the page, and vice versa. Therefore, the purposes of the Shadow DOM in a Lightning web component are to encapsulate the internal DOM structure of a web component (A) and to allow components to be shared while protecting them from being manipulated by arbitrary code (B). The other options are incorrect because Shadow DOM does not allow direct access to the document object model of the component ©, nor does it allow older JavaScript libraries to manipulate the tagging structure (D). References: Lightning Web Components Developer Guide, Understand the Shadow DOM Unit

Which interface does a developer have to implement to override Inventory in Checkout?


A. sfdc_commerce.ValidationCartinventory


B. sfdc_commerce.CartinventoryValidation


C. sfdc_checkout.InventoryCartVvalidation


D. sfdc_checkout.CartinventoryValidation





D.
  sfdc_checkout.CartinventoryValidation

Explanation:

To override inventory in the checkout process, a developer must implement thesfdc_checkout.CartinventoryValidationinterface. This interface provides the necessary methods for custom inventory validation logic, allowing developers to define how inventory checks are conducted during the checkout process. Salesforce documentation on extending and customizing the checkout functionality in B2B Commerce would include guidance on implementing this interface to meet specific inventory validation requirements.

A developer attempts to export data from an org by launching Data Loader, selecting a standard entity, clicking the "Select All Fields" button and clicking the Finish button. The developer finds that the CustomField_c field they added to the entity has no values under the header in the CSV file output. What is the root cause?


A. The developer does not have the correct JDK that is recommended by Salesforce and this is known to cause issues with exporting custom attributes


B. The developer does not have access to the object's metadata


C. The field is not populated


D. The user does not have rights to the custom field





D.
  The user does not have rights to the custom field

Explanation:

The root cause of why the CustomField__c field they added to the entity has no values under the header in the CSV file output is that the user does not have rights to the custom field. A user’s access to a field is determined by their profile and permission sets, which define their field-level security settings. Field-level security settings control whether a user can see, edit, or delete the value for a particular field on an object. If a user does not have access to a field, they will not be able to view or modify its value in any interface, including Data Loader. Data Loader is a tool that allows users to import or export data between Salesforce and CSV files. When using Data Loader to export data from an org, Data Loader will only include fields that are accessible to the user based on their field-level security settings. If a user does not have access to a field, Data Loader will not include that field in the CSV file, neither as a column header nor as a value. The developer does not have the correct JDK that is recommended by Salesforce and this is known to cause issues with exporting custom attributes is not the root cause of why CustomField__c has no values under the header in the CSV file output, as it is not related to field access or Data Loader functionality.

The developer does not have access to the object’s metadata is not the root cause either, as it is not related to field access or Data Loader functionality. The object’s metadata defines its structure and properties, such as fields, relationships, and layouts. The field is not populated is not the root cause either, as it contradicts the fact that CustomField__c has no column header in the CSV file output. If the field was not populated but accessible to the user, Data Loader would still include CustomField__c as a column header in the CSV file, but leave its values blank. Salesforce References: Data Loader Guide: Export Data from Salesforce, [Data Loader Guide: Field Mapping], [Salesforce Help: Set Field-Level Security]


Page 14 out of 43 Pages
Previous