What are two advantages of using Lightning Data Service?
A. Communicates with other components
B. Converts between different data formats
C. Combines and de-duplicates server calls
D. Loads record data progressively
Explanation:
Two advantages of using Lightning Data Service are that it combines and de-duplicates
server calls and that it loads record data progressively. Lightning Data Service is a service
that provides access to Salesforce data and metadata in Lightning web components. It
optimizes performance and minimizes server round trips by caching data on the client side
and sharing data across components. It also combines and de-duplicates server calls by
batching requests for the same record or object and returning a single response. It also
loads record data progressively by returning available cached data first and then fetching
updated data from the server asynchronously. Communicating with other components and
converting between different data formats are not advantages of using Lightning Data
Service, as they are not related to its functionality or features.
Salesforce
References: Lightning Web Components Developer Guide: Lightning Data
Service, Lightning Web Components Developer Guide: Work with Salesforce Data
Which event is invoked by any CCRZ Salesforce B2B CommeceView after the view is rendered?
A. view:*:load
B. view:*:refresh
C. view:*:onload
D. view:*:rendered
Explanation:
The event that is invoked by any CCRZ Salesforce B2B Commerce View after the view is
rendered is view:*:rendered. This event is triggered by the render method of the
CCRZ.View class, which is the base class for all views in the framework. The event can be
used to perform any actions or logic that depend on the view being rendered, such as
initializing widgets, binding events, or updating the user interface.
Salesforce
References: B2B Commerce and D2C Commerce Developer Guide, Events, View Class
In which threeways can Salesforce B2B Commerce API sizing blocks support multiple API sizing requests? (3 answers)
A. When different entities are specified in the method invocation.
B. The sizing block is not removed.
C. SZ_ASSC is used.
D. The sizing block is removedafter the first handler.
E. SZ_ASSC is not used.
Explanation:
Salesforce B2B Commerce API sizing blocks can support multiple API sizing requests in
three ways:
When different entities are specified in the method invocation. For
example, ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_M,
ccrz.ccAPI.SZ_L) will use the SZ_M sizing block for the product entity and the
SZ_L sizing block for the related entities.
SZ_ASSC is used. This flag indicates that the associated entities should use the
same sizing block as the primary entity. For
example, ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_M,
ccrz.ccAPI.SZ_ASSC) will use the SZ_M sizing block for both the product entity
and the related entities.
SZ_ASSC is not used. This flag indicates that the associated entities should use
the default sizing block, which is SZ_M, unless otherwise specified. For
example, ccrz.ccServiceProduct.getProducts(ccrz.ccAPI.SZ_M) will use the SZ_M
sizing block for the product entity and the SZ_M sizing block for the related
entities.
Salesforce References: B2B Commerce and D2C Commerce Developer
Guide, Data Sizing Conventions
Which three actions must a developer take, in a B2B Commerce store, to accept credit card payments using a client's chosen payment provider?
A. Create a named credential for authentication with the payment provider.
B. Create a RegisteredExternalService record for the custom payment provider class.
C. Create an Apex class that implements the sfdc_checkout.PaymentGatewayAdapter
D. Create a PaymentProviderGateway record for the custom payment provider class.
E. Create an Apex class that implements the commerce payments. Payment Gateway Adapter.
Explanation:
Three actions that a developer must take, in a B2B Commerce store, to
accept credit card payments using a client’s chosen payment provider are: create a named
credential for authentication with the payment provider, create an Apex class that
implements the sfdc_checkout.PaymentGatewayAdapter interface, and create a
PaymentProviderGateway record for the custom payment provider class. Creating a named
credential for authentication with the payment provider allows the developer to securely
store and manage authentication information, such as username, password, token, or
certificate, for connecting to the payment provider’s API or service. Creating an Apex class
that implements the sfdc_checkout.PaymentGatewayAdapter interface allows the
developer to define custom logic for processing credit card payments using the payment
provider’s API or service. The interface provides methods for validating credit card
information, authorizing payments, capturing payments, voiding payments, and refunding
payments. Creating a PaymentProviderGateway record for the custom payment provider
class allows the developer to register the custom payment provider class as a payment
gateway in the store and associate it with a payment method.
Creating a
RegisteredExternalService record for the custom payment provider class is not a required
action, as this is only used for registering external services that are not related to payment
processing, such as tax or shipping services. Creating an Apex class that implements the
commercepayments.PaymentGatewayAdapter interface is not a required action either, as
this is only used for D2C Commerce stores, not B2B Commerce stores. Salesforce
References: B2B Commerce Developer Guide: Payment Integration, B2B Commerce
Developer Guide: Payment Gateway Adapter Interface, B2B Commerce Developer Guide:
Payment Provider Gateway Object
Which three statements are accurate?
A. An Aura component can contain another Aura component
B. An Aura component can contain a Lightning Web Component
C. A Lightning Web Component can contain an Aura component
D. A Lightning Web Component cannot contain an Aura component
Explanation:
Salesforce documentation clarifies the interoperability between Aura and
Lightning Web Components (LWCs). An Aura component can indeed contain another Aura
component, as well as a LWC, allowing for a mix of component technologies in a single
application. However, due to the architectural and design principles of LWCs, a LWC
cannot contain an Aura component. This is because LWCs are designed to be lightweight
and leverage web standards, which makes them not fully compatible with the older Aura
component framework in terms of containment.
Page 12 out of 43 Pages |
Previous |