nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #289

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

Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #289. The question stem and answer options stay visible for context.

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.

Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer

You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Firestore#Data Modeling#NoSQL#Collection Design
Full PROFESSIONAL-CLOUD-DEVELOPER Practice