Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
As a developer migrating an on-premises MySQL database for a social media platform to Google Cloud's Firestore, how would you design the Firestore collections to store user profiles and posts effectively?
A
Create one root collection for user profiles, and create one root collection for user posts.
B
Create one root collection for user profiles, and create one subcollection for each user's posts.
C
Create one root collection for user profiles, and store each user's post as a nested list in the user profile document.
D
Create one root collection for user posts, and create one subcollection for each user's profile.