Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam B2C Commerce Developer Topic 1 Question 89 Discussion

Actual exam question for Salesforce's B2C Commerce Developer exam
Question #: 89
Topic #: 1
[All B2C Commerce Developer Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Destiny
4 days ago
But wouldn't using a client-side cookie be easier to implement and maintain?
upvoted 0 times
...
Pamella
6 days ago
I think option B is the way to go. The Session class in the B2C Commerce API is designed for this exact use case. It's scalable and follows best practices.
upvoted 0 times
...
Barbra
10 days ago
I disagree, I believe using an SFRA controller would be more efficient and scalable.
upvoted 0 times
...
Destiny
11 days ago
I think the best option is to use the Session class in the B2C Commerce api.
upvoted 0 times
...

Save Cancel