0
0
Supabasecloud~20 mins

Monitoring and logging in Supabase - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Supabase Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Supabase Logs Retrieval Command Output
You run the command to fetch the latest 5 logs from your Supabase project:
supabase logs tail --limit 5

What is the expected output format of this command?
AA JSON array with 5 log entries, each containing timestamp, level, and message fields.
BA plain text list of 5 log messages without timestamps or levels.
CAn error message stating 'Command not found' because 'logs' is not a valid subcommand.
DA CSV file download prompt with log data.
Attempts:
2 left
💡 Hint
Think about how CLI tools usually format logs for easy parsing.
🧠 Conceptual
intermediate
2:00remaining
Understanding Supabase Monitoring Metrics
Which of the following metrics is NOT typically monitored by Supabase's built-in monitoring tools?
ADatabase query latency and error rates.
BRealtime subscription connection counts.
CCPU usage of the client machine running the Supabase CLI.
DStorage bucket usage and file upload errors.
Attempts:
2 left
💡 Hint
Supabase monitoring focuses on cloud resources, not local client machines.
Troubleshoot
advanced
2:00remaining
Diagnosing Missing Logs in Supabase
You notice that your Supabase project logs are not showing any entries for recent API requests. Which configuration issue is the MOST likely cause?
ARealtime subscriptions are disabled in the project settings.
BThe Supabase CLI is outdated and needs to be updated.
CThe database connection string is incorrect.
DThe API logging level is set to 'error' instead of 'info'.
Attempts:
2 left
💡 Hint
Logs depend on the logging level to capture different types of events.
🔀 Workflow
advanced
2:00remaining
Setting Up Alerting for Supabase Logs
You want to get notified immediately when your Supabase project logs show any 'error' level messages. Which workflow correctly sets this up?
AConfigure a webhook in Supabase to send logs to an external alerting service filtering for 'error' level messages.
BRun 'supabase logs tail' manually every hour and check for errors yourself.
CEnable realtime subscriptions on the database to receive error messages as notifications.
DSet the Supabase CLI to verbose mode to print errors to the console.
Attempts:
2 left
💡 Hint
Automated alerting requires integration with external services.
Best Practice
expert
2:00remaining
Best Practice for Long-Term Log Storage in Supabase
What is the recommended best practice for storing Supabase logs for long-term analysis beyond the default retention period?
AUse the Supabase CLI to save logs locally on your development machine.
BExport logs regularly to an external storage service like AWS S3 or Google Cloud Storage.
CStore logs only in the Supabase dashboard and rely on screenshots for backup.
DIncrease the Supabase project plan to get unlimited log retention.
Attempts:
2 left
💡 Hint
Think about durable, scalable storage solutions for logs.