exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 112 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 112
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • A. Store the session information in Pub/Sub, and store the shopping cart information in Cloud SQL.
  • B. Store the shopping cart information in a file on Cloud Storage where the filename is the SESSION ID.
  • C. Store the session and shopping cart information in a MySQL database running on multiple Compute Engine instances.
  • D. Store the session information in Memorystore for Redis or Memorystore for Memcached, and store the shopping cart information in Firestore.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ParagSanyashiv
Highly Voted 2 years, 3 months ago
Selected Answer: D
Should be D definitely
upvoted 9 times
...
__rajan__
Most Recent 7 months, 1 week ago
Selected Answer: D
D is correct.
upvoted 1 times
...
telp
1 year, 3 months ago
Selected Answer: D
A is not correct because local memory is lost on process termination, so you would lose the cart information. B is not correct because accessing a Cloud Storage bucket is slow and expensive for session information. This is not a Google Cloud best practice. C is not correct because BigQuery wouldn't be able to handle the frequent updates made to carts and sessions. D is correct because Memorystore is fast and a standard solution to store session information, and Firestore is ideal for small structured data such as a shopping cart. The user will be mapped to the shopping cart with a new session, if required.
upvoted 1 times
...
omermahgoub
1 year, 3 months ago
Selected Answer: D
Answer is D When storing session and shopping cart information for an ecommerce platform, it's important to consider scalability, reliability, and security. One solution that follows Google-recommended best practices would be to use Memorystore for Redis or Memorystore for Memcached to store session information and Firestore to store shopping cart information. Memorystore can store session information and easily handle a large number of concurrent connections, which is crucial for an ecommerce platform where users are logged in and adding items to their shopping cart frequently. Firestore can easily handle large amounts of semi-structured data, such as a shopping cart's item. Firestore is also a scalable and reliable solution, and it supports automatic scaling and replication. By separating the session information and shopping cart information into different services, you can also increase security and avoid any potential data breaches. Using different services will also allows you to scale them independently.
upvoted 1 times
...
zellck
1 year, 4 months ago
Selected Answer: D
D is the answer.
upvoted 1 times
...
N8dagr8
1 year, 5 months ago
anyone actually seen this on a test? is A actually correct?
upvoted 1 times
TNT87
1 year, 5 months ago
D is correct https://cloud.google.com/memorystore/docs/redis/redis-overview
upvoted 1 times
...
...
tomato123
1 year, 8 months ago
Selected Answer: D
D is correct
upvoted 3 times
...
akshaychavan7
1 year, 8 months ago
Selected Answer: D
Agree with D
upvoted 1 times
...
nqthien041292
2 years ago
Selected Answer: D
Vote D
upvoted 1 times
...
assuf
2 years, 3 months ago
Selected Answer: D
vote D
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago