Topic 1 Question 272
You are a developer at a social media company. The company runs their social media website on-premises and uses MySQL as a backend to store user profiles and user posts. Your company plans to migrate to Google Cloud, and your learn will migrate user profile information to Firestore. You are tasked with designing the Firestore collections. What should you do?
Create one root collection for user profiles, and create one root collection for user posts.
Create one root collection for user profiles, and create one subcollection for each user's posts.
Create one root collection for user profiles, and store each user's post as a nested list in the user profile document.
Create one root collection for user posts, and create one subcollection for each user's profile.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: B
For migrating user profile information to Firestore in your social media company, the best approach is:
B. Create one root collection for user profiles, and create one subcollection for each user's posts.
This structure offers better scalability, efficient data retrieval, and clearer organization, while also simplifying access control and data modeling. Options A, C, and D are less optimal due to potential performance issues, complex querying, and counterintuitive data relationships.
👍 1kapara2023/12/10 - 正解だと思う選択肢: B
B is more appropriate
👍 1Kadhem2023/12/26
シャッフルモード