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 15 out of 43 Pages

What are two common and maintainable ways the content layout of a Lightning Web Component can be implemented?


A. Spreading layout styles across several separate components


B. Styling the :host pseudo-element (or other elements) via the CSS file


C. Using inline styles


D. Applying SLDS classes to internal elements





B.
  Styling the :host pseudo-element (or other elements) via the CSS file

D.
  Applying SLDS classes to internal elements

Explanation:

For maintainable and scalable Lightning Web Component development, it's recommended to style components by targeting the :host pseudo-element in the component's CSS file and by applying Salesforce Lightning Design System (SLDS) classes to internal elements. These practices ensure consistent styling that aligns with Salesforce's design standards and provides a clear separation of concerns between component structure and styling.

Which two log levels does a developer need to include to debug platform events?


A. Apex Code


B. Database


C. Callout


D. Workflow





A.
  Apex Code

D.
  Workflow

Explanation:

According to the Platform Events Developer Guide, to debug platform events, a developer needs to include the Apex Code and Workflow log levels in the trace flag entry for the Automated Process entity or the overridden user. The Apex Code log level captures the execution of the Apex trigger that subscribes to the platform event. The Workflow log level captures the execution of the event process or the resumed flow interview that subscribes to the platform event. The other log levels are not relevant for debugging platform events. The Database log level captures database operations, such as DML statements and SOQL queries. The Callout log level captures the details of HTTP requests andresponses, such as web service callouts.

References: Platform Events Developer Guide, Set Up Debug Logs for Event Subscriptions, Set Up Debug Logging

Which handlebars helper expression is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup?


A. {{#ifStoreSetting 'Field__c'}} ... {{/ifStoreSetting}}


B. {{#ifSetting 'Page.cfg}} ... {{/ifSetting}}


C. {{#ifConfig 'Field__c'}} ... {{/ifConfig}}


D. {{#ifDisplay 'Page.cfg'}} ... {{/ifDisplay}}





C.
  {{#ifConfig 'Field__c'}} ... {{/ifConfig}}

Explanation:

The handlebars helper expression that is used in Salesforce B2B Commerce pages and components to toggle the display of a block of markup is {{#ifConfig ‘Field__c’}} … {{/ifConfig}}. This expression will evaluate the value of the configuration setting with the API name Field__c and render the block of markup if the value is true, or skip it if the value is false. For example, {{#ifConfig 'CO.showMiniCart'}} {{/ifConfig}} will render the mini-cart div only if the configuration setting CO.showMiniCart is true.

Salesforce References: B2B Commerce and D2C Commerce Developer Guide, Handlebars Helpers

Numerous flags when set, have a direct impact on the result set provided by the Global API's. Which conversion flag allows for sObjects to be returned from the Global API's when provided as a Boolean parameter with a value of true?


A. ccrz.ccAPISizing.SKIPTRZ


B. ccrz.ccAPISizing.SOBJECT


C. ccrz.ccAPI.SZ_SKIPTRZ


D. ccrz.ccAPI.SZ_SOBJECT





D.
  ccrz.ccAPI.SZ_SOBJECT

Explanation:

The conversion flag that allows for sObjects to be returned from the Global API’s when provided as a Boolean parameter with a value of true is ccrz.ccAPI.SZ_SOBJECT. This flag indicates that the API should return the raw sObjects instead of the transformed objects that are usually returned by the API. For example, ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_SOBJECT,true) will return the Product2 sObjects instead of the ccrz__E_Product__c objects. Salesforce

Which three statements are true about Global API versioning? (3 answers)


A. 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.


B. 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.


C. The API version is scoped at the Class API level and NOT at the method level.


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 more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers.





A.
  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.

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 more than current maximum will result in exception case where the exception class ccrz.ExceedsMaxAPIVersionException will be returned to callers.

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


Page 15 out of 43 Pages
Previous