nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #199

You are designing a chat room application that will host multiple rooms and retain the message history for each room. You have selected Firestore as your database. How should you represent the data in

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

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

Question

You are designing a chat room application that will host multiple rooms and retain the message history for each room. You have selected Firestore as your database. How should you represent the data in Firestore?

Exhibits

PROFESSIONAL-CLOUD-DEVELOPER question #199 exhibit 1
PROFESSIONAL-CLOUD-DEVELOPER question #199 exhibit 2
PROFESSIONAL-CLOUD-DEVELOPER question #199 exhibit 3
PROFESSIONAL-CLOUD-DEVELOPER question #199 exhibit 4

Options

  • ACreate a collection for the rooms. For each room, create a document that lists the contents of the
  • BCreate a collection for the rooms. For each room, create a collection that contains a document for
  • CCreate a collection for the rooms. For each room, create a document that contains a collection for
  • DCreate a collection for the rooms, and create a document for each room. Create a separate

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 Design#Subcollections#Scalable Data Structures
Full PROFESSIONAL-CLOUD-DEVELOPER Practice