Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Exam Professional-Cloud-Developer All Questions
Exam Professional-Cloud-Developer All Questions

View all questions & answers for the Professional-Cloud-Developer exam

Google Cloud Developer Professional-Cloud-Developer Question # 8 Topic 1 Discussion

Professional-Cloud-Developer Exam Topic 1 Question 8 Discussion:
Question #: 8
Topic #: 1

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?


A.

 Create a collection for the rooms. For each room, create a document that lists the contents of the messages

Professional-Cloud-Developer Question 8 Option 1


B.

 Create a collection for the rooms. For each room, create a collection that contains a document for each message

Professional-Cloud-Developer Question 8 Option 2


C.

 Create a collection for the rooms. For each room, create a document that contains a collection for documents, each of which contains a message.

Professional-Cloud-Developer Question 8 Option 3


D.

 Create a collection for the rooms, and create a document for each room. Create a separate collection for messages, with one document per message. Each room’s document contains a list of references to the messages.

Professional-Cloud-Developer Question 8 Option 4


Get Premium Professional-Cloud-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.