0
0
Supabasecloud~20 mins

Self-hosting Supabase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Supabase Self-hosting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Understanding Supabase Self-hosting Components

Which component is essential for managing authentication in a self-hosted Supabase setup?

AGoTrue service
BRealtime server
CPostgreSQL database
DStorage server
Attempts:
2 left
💡 Hint

Think about which service handles user sign-ups and logins.

Configuration
intermediate
2:00remaining
Configuring Environment Variables for Supabase

Which environment variable must be set to specify the PostgreSQL connection string in a self-hosted Supabase deployment?

APG_SUPABASE_URL
BSUPABASE_DB_URL
CPOSTGRES_CONNECTION
DDATABASE_URL
Attempts:
2 left
💡 Hint

Look for the standard variable used by PostgreSQL clients.

security
advanced
2:00remaining
Securing Supabase Self-hosted API Access

In a self-hosted Supabase setup, which method best protects the API from unauthorized access?

ADisable all API keys and allow anonymous access
BUse JWT tokens with role-based policies
CUse service_role key only for client requests
DExpose the database directly to clients
Attempts:
2 left
💡 Hint

Think about how to control user permissions securely.

service_behavior
advanced
2:00remaining
Behavior of Realtime Server in Self-hosted Supabase

What happens if the Realtime server in a self-hosted Supabase setup loses connection to the PostgreSQL replication slot?

ARealtime server continues to send outdated data indefinitely
BRealtime server automatically switches to a backup database
CRealtime server stops sending updates until connection is restored
DRealtime server deletes all cached data and restarts
Attempts:
2 left
💡 Hint

Consider how real-time data streaming depends on database replication.

Best Practice
expert
3:00remaining
Best Practice for Scaling Self-hosted Supabase Storage

When scaling the storage service in a self-hosted Supabase environment, which approach best ensures high availability and durability?

AUse a distributed object storage system like MinIO or S3-compatible service
BReplicate files manually between storage servers using cron jobs
CStore all files on a single local disk attached to the storage server
DKeep files only in PostgreSQL large objects for simplicity
Attempts:
2 left
💡 Hint

Think about how cloud providers handle file storage at scale.