nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #289

PROFESSIONAL-CLOUD-DEVELOPER Question #289: Real Exam Question with Answer & Explanation

The correct answer is B: Create one root collection for user profiles, and create one subcollection for each user's posts.. See the full explanation below for the reasoning.

Designing highly scalable, available, and reliable cloud-native applications

Question

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?

Options

  • ACreate one root collection for user profiles, and create one root collection for user posts.
  • BCreate one root collection for user profiles, and create one subcollection for each user's posts.
  • CCreate one root collection for user profiles, and store each user's post as a nested list in the user
  • DCreate one root collection for user posts, and create one subcollection for each user's profile.

Topics

#Firestore#Data Modeling#NoSQL#Collection Design

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions