Recall & Review
beginner
What is multi-tenancy in cloud applications?
Multi-tenancy means one app or system serves many different users or groups, called tenants, while keeping their data and settings separate.
Click to reveal answer
beginner
Name one common multi-tenancy pattern used in Firebase.
One common pattern is using separate collections or documents for each tenant in Firestore, so data stays isolated but uses the same database.
Click to reveal answer
intermediate
What is the benefit of using a shared database with tenant IDs in Firebase?
It saves resources by using one database but keeps tenant data separate by tagging data with tenant IDs for filtering and security.
Click to reveal answer
intermediate
How can Firebase Security Rules help in multi-tenancy?
Security Rules can check tenant IDs in requests to allow users to access only their own tenant's data, protecting privacy and data separation.
Click to reveal answer
advanced
What is a downside of using separate Firebase projects per tenant?
It can increase management overhead and cost because each tenant needs its own project setup and resources.
Click to reveal answer
Which multi-tenancy pattern uses one database but separates tenant data by tagging it?
✗ Incorrect
Shared database with tenant IDs keeps data in one place but uses tags to separate tenant data.
What Firebase feature helps enforce data access rules per tenant?
✗ Incorrect
Firebase Security Rules control who can read or write data, useful for tenant data separation.
What is a main advantage of using separate Firebase projects for each tenant?
✗ Incorrect
Separate projects isolate tenant data completely, improving security and fault isolation.
Which pattern might increase cost and management effort in Firebase multi-tenancy?
✗ Incorrect
Separate projects require more resources and setup per tenant, increasing cost and management.
Why is tagging data with tenant IDs important in a shared database?
✗ Incorrect
Tenant IDs help identify and restrict data access to the right tenant.
Explain the main multi-tenancy patterns you can use with Firebase and their pros and cons.
Think about data isolation, cost, and management effort.
You got /4 concepts.
How do Firebase Security Rules support multi-tenancy in a shared database setup?
Focus on how rules enforce data separation.
You got /3 concepts.