Google Cloud Professional Cloud Developer — Question 83

Your team is developing an ecommerce platform for your company. Users will log in to the website and add items to their shopping cart. Users will be automatically logged out after 30 minutes of inactivity. When users log back in, their shopping cart should be saved. How should you store users' session and shopping cart information while following Google-recommended best practices?

Answer options

Correct answer: D

Explanation

The correct answer is D because using Memorystore for caching session information allows for quick access and efficient management of user sessions, while Firestore provides a scalable solution to store the shopping cart data persistently. The other options either do not adhere to best practices for session management or may lead to performance issues.