Notifications
Clear all

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

1 Posts
1 Users
0 Likes
89 Views
(@ozolinsezequiel)
Posts: 701
Noble Member
Topic starter
 

A developer is writing a server side script that needs to maintain state across calls.

The persistent information needed includes these items.

• The current customer

• Whether or not the customer is authenticated

• The privacy attributes (such as tracking consent or cookie policy)

Which technique should the developer use to maintain state in an efficient and scalable manner that follows best practice?

  • A . Use a non-replicable Custom Object to store the information temporarily.
    B. Use the Session class in the B2C Commerce api.
    C. Use an SFRA controller, because it runs server-side, the state is automatically maintained
    D. Use a client-side cookie to store the information for the session duration.

Show Answer Hide Answer

Suggested Answer: B
 
Posted : 05/02/2023 3:33 pm

Latest Salesforce Certified B2C Commerce Developer Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: