0
0
GCPcloud~5 mins

Firestore collections and documents in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Firestore collection?
A Firestore collection is like a folder that holds multiple documents. It organizes data into groups so you can find and manage related information easily.
Click to reveal answer
beginner
What is a Firestore document?
A Firestore document is a single record inside a collection. It stores data as fields with values, similar to a row in a spreadsheet.
Click to reveal answer
intermediate
Can a Firestore document contain subcollections?
Yes, a Firestore document can have subcollections inside it. This lets you create nested data structures, like folders inside folders.
Click to reveal answer
beginner
How do Firestore collections and documents relate to each other?
Collections hold documents, and documents hold data fields or subcollections. You always access data by specifying a collection and then a document inside it.
Click to reveal answer
intermediate
Why does Firestore use collections and documents instead of tables and rows?
Firestore uses collections and documents to allow flexible, hierarchical data storage. This helps store complex data easily and scale well in cloud apps.
Click to reveal answer
What is the smallest unit of data storage in Firestore?
AField
BDocument
CCollection
DDatabase
Which of these can contain multiple documents in Firestore?
ASubcollection
BDocument
CField
DCollection
Can a Firestore document exist without being inside a collection?
ANo, documents must be inside collections
BYes, documents can stand alone
COnly if it has subcollections
DOnly in the root database
What is a subcollection in Firestore?
AA database inside Firestore
BA field inside a document
CA collection inside a document
DA document inside a collection
How do you access data in Firestore?
ABy specifying a collection and then a document
BBy specifying a database only
CBy specifying a field only
DBy specifying a subcollection only
Explain how Firestore organizes data using collections and documents.
Think of folders and files on your computer.
You got /4 concepts.
    Describe why Firestore uses collections and documents instead of traditional tables and rows.
    Consider how cloud apps need to store different types of data.
    You got /4 concepts.