0
0
Firebasecloud~5 mins

Supported data types in Firebase - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are the basic data types supported by Firebase Realtime Database?
Firebase Realtime Database supports strings, numbers, booleans, null, arrays, and objects as basic data types.
Click to reveal answer
intermediate
How does Firebase store a timestamp value?
Firebase stores timestamps as numbers representing milliseconds since Unix epoch or using special server timestamp values.
Click to reveal answer
intermediate
Can Firebase Realtime Database store binary data directly?
No, Firebase Realtime Database does not store binary data directly; binary data should be encoded as strings (e.g., base64) or stored in Firebase Storage.
Click to reveal answer
advanced
What data type does Firebase Firestore support that Firebase Realtime Database does not?
Firestore supports additional data types like GeoPoint, Timestamp, and Reference types that are not available in Realtime Database.
Click to reveal answer
intermediate
Why should you avoid using arrays in Firebase Realtime Database?
Arrays can cause issues with concurrent updates and indexing; it's better to use objects with unique keys for better scalability and data integrity.
Click to reveal answer
Which of the following is NOT a supported data type in Firebase Realtime Database?
AString
BFunction
CBoolean
DNumber
How should binary data be stored when using Firebase Realtime Database?
AAs base64 encoded strings
BAs JSON objects
CDirectly as binary
DAs numbers
Which Firebase service supports GeoPoint data type?
ARealtime Database
BCloud Storage
CFirestore
DFirebase Hosting
What is the recommended way to store lists in Firebase Realtime Database?
ANumbers
BArrays
CStrings
DObjects with unique keys
Which data type represents a null value in Firebase Realtime Database?
Anull keyword
BEmpty string
CZero
D"null" string
List and describe the main data types supported by Firebase Realtime Database.
Think about simple data types and how collections are stored.
You got /6 concepts.
    Explain why using objects with unique keys is preferred over arrays in Firebase Realtime Database.
    Consider how multiple users might update data at the same time.
    You got /4 concepts.