Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 4 Topic 1 Discussion

Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) B2C-Commerce-Developer Question # 4 Topic 1 Discussion

B2C-Commerce-Developer Exam Topic 1 Question 4 Discussion:
Question #: 4
Topic #: 1

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 SFRAcontroller, because it runs server-side, the state is automatically maintained


D.

Use a client-side cookie to store the information for the session duration.


Get Premium B2C-Commerce-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.