Skip to content Week 5 Reading Questions | CurioCity

Week 5 Reading Questions

Question 1

๐Ÿš€ Youโ€™re deploying a full-stack childrenโ€™s educational app built with the Ionic framework (frontend) and a Python backend. The app runs on both mobile and web and includes AI-generated content. Based on the reading/your own research, rank the following deployment options for this app. (best fit to worst fit)

A. Vercel

B. Fly.io

C. Netlify

D. Heroku

Click to see answer
OptionFit for Python BackendFit for Mobile/WebAI SupportOverall Fit
Fly.ioโœ… Excellent (native support)โœ… Mobile/web friendly (Ionic OK)โœ… Good for AI, Docker-supported๐Ÿฅ‡ Best choice
Herokuโœ… Easy Python supportโœ… Decent for full-stack appsโš ๏ธ Limited AI/long-running task support๐Ÿฅˆ Good fallback
NetlifyโŒ No backend Python supportโœ… Static/mobile web support onlyโŒ AI features limited๐Ÿฅ‰ Not full-stack ready
VercelโŒ Optimized for Node/Next.js onlyโŒ Poor Ionic/mobile supportโŒ Limited for Python/AI๐ŸŸ  Worst fit here

Question 2

๐Ÿ” What is the first thing you should do as soon as you have deployed your application?

Click to see answer
  1. Navigate to the site where your application is deployed.

  2. Test all the different functionality and visuals of the application to make sure theyโ€™re consistent with what you have seen when testing locally. Sometimes there will be discrepencies and you want to burn down on them.

Question 3

๐Ÿ› ๏ธ Your application works locally, but after deploying to Vercel, youโ€™re seeing inconsistencies (differences) from your locally deployed app. Which should you try? Rank from most to least helpful. A. Check if all required environment variables are set correctly in your Vercel project settings

B. Look at Vercelโ€™s deployment logs and serverless function logs to debug any backend errors

C. Clear your browser cache and reload the page several times

D. Confirm that youโ€™re using NEXT_PUBLIC_ prefix for environment variables needed on the client

E. Reinstall node_modules on your local machine

F. Check for differences in how routes (especially dynamic ones like [id].tsx) are handled in production

Click to see answer
OptionDescription
A๐Ÿ”‘ Missing or misconfigured environment variables are the most common cause of deployment discrepancies on Vercel.
B๐Ÿชต Deployment/serverless logs often reveal runtime errors or build failures that donโ€™t appear locally.
C๐Ÿ”„ Cache can occasionally cause display issues, but itโ€™s not the root cause of server/client-side logic discrepancies.
D๐ŸŒ If client-side env vars lack NEXT_PUBLIC_, they wonโ€™t be exposed in production, causing issues like undefined values.
E๐Ÿ’ป Reinstalling local modules affects only local dev โ€” irrelevant to the deployed Vercel build.
F๐Ÿ” Vercel may handle dynamic routes differently (e.g. SSR/ISR), so itโ€™s worth confirming route behavior and fallbacks.

Question 4

๐Ÿ“Š You want to track how far users scroll down a page, and then trigger a custom event when they reach the bottom 25%, 50%, 75%, and 100% of the page. Which of the following best describes the requirements?

A. Google Analytics supports scroll tracking natively, so no extra setup is needed.

B. Google Analytics can track scroll depth, but only when integrated with a tag manager or custom script.

C. Google Analytics does not support scroll tracking; you must use a separate tool like Hotjar.

D. Google Analytics can support scroll tracking, but only through server-side event configuration.

Click to see answer B. โœ… Correct โ€” GA can track scroll events using Google Tag Manager (GTM) or custom JavaScript to fire events at 25%, 50%, 75%, and 100%.