0
0
Supabasecloud~20 mins

Seed data management in Supabase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Seed Data Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Supabase handle seed data execution order?

When running multiple seed files in Supabase, how does the system determine the order in which they execute?

ASupabase runs seed files based on the timestamp inside each file.
BSupabase runs seed files alphabetically by filename.
CSupabase runs seed files in parallel without guaranteed order.
DSupabase runs seed files in the order they were created in the file system.
Attempts:
2 left
💡 Hint

Think about how files are usually sorted when listed.

Configuration
intermediate
2:00remaining
Which command seeds data into a Supabase project?

You want to load seed data into your Supabase database. Which CLI command should you use?

Asupabase seed apply
Bsupabase db seed
Csupabase db push
Dsupabase seed run
Attempts:
2 left
💡 Hint

Look for the command that explicitly mentions running seeds.

Architecture
advanced
3:00remaining
What is the best practice for managing seed data in a team using Supabase?

Your team collaborates on a Supabase project. What is the best way to manage seed data to avoid conflicts and ensure consistency?

AStore seed files in the project repository and run them via CI/CD pipelines.
BEach developer runs their own local seed files independently without sharing.
CManually insert seed data directly into the production database.
DUse separate seed files for each developer and merge results manually.
Attempts:
2 left
💡 Hint

Think about collaboration and automation.

security
advanced
3:00remaining
What security risk should you avoid when managing seed data in Supabase?

When adding seed data to your Supabase project, which practice can lead to a security risk?

AUsing environment variables to store database connection info.
BEncrypting sensitive data before adding it to seed files.
CIncluding sensitive user credentials or API keys in seed files.
DLimiting seed data to non-sensitive sample records.
Attempts:
2 left
💡 Hint

Think about what data should never be in code files.

🧠 Conceptual
expert
3:00remaining
What happens if a seed file in Supabase contains a SQL error during execution?

You run supabase seed run but one seed file has a syntax error in its SQL. What is the expected behavior?

AThe seed process stops immediately and reports the error; no further seed files run.
BThe seed process skips the faulty file and continues with the next seed files.
CThe seed process ignores errors and completes all seed files regardless.
DThe seed process rolls back all previously applied seed files and stops.
Attempts:
2 left
💡 Hint

Consider how errors usually affect batch operations.