The api property has enableCors set to false explicitly.
Step 2: Check the console.log output
Logging config.api.enableCors prints false as set.
Final Answer:
false -> Option A
Quick Check:
Property value false prints false [OK]
Hint: Check exact property value in config object [OK]
Common Mistakes:
Assuming default true if not set
Confusing undefined with false
Expecting error from valid property access
4. You deployed a Supabase app to production but forgot to set the database connection limit. The app crashes under load. What is the likely cause?
medium
A. The frontend is not loading CSS
B. The app has syntax errors in code
C. Too many database connections overwhelm the server
D. The API key is missing
Solution
Step 1: Understand connection limits role
Connection limits prevent too many simultaneous database connections.
Step 2: Link missing limit to crash
Without limits, the database can be overwhelmed, causing crashes under load.
Final Answer:
Too many database connections overwhelm the server -> Option C
Quick Check:
Missing limits = overload crash [OK]
Hint: Set connection limits to avoid overload crashes [OK]
Common Mistakes:
Blaming syntax errors for load crashes
Ignoring missing API keys impact
Confusing frontend issues with backend crashes
5. You want to deploy a Supabase app to production with these goals: - Secure database access - Limit API requests to prevent abuse - Use environment variables for secrets
Which combination of configurations best meets these goals?
hard
A. Enable SSL for DB, set rate limits in API, store secrets in env vars
B. Disable SSL, allow unlimited API requests, hardcode secrets in code
C. Enable SSL, no API limits, store secrets in public config files
D. No SSL, set API limits, store secrets in frontend code
Solution
Step 1: Secure database access
Enabling SSL encrypts data between app and database.
Step 2: Prevent API abuse
Setting rate limits controls request volume to avoid overload or attacks.
Step 3: Protect secrets
Storing secrets in environment variables keeps them out of code and public files.
Final Answer:
Enable SSL for DB, set rate limits in API, store secrets in env vars -> Option A