QuizzesRunning Both Locally — Concept Check
intermediate
full-stack

Running Both Locally — Concept Check

Questions on Running Both Locally. Two processes, a database and a proxy decision. The goal is that a new developer is productive in one command, and that local behaviour predicts production.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Running Both Locally — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer sets up their local environment with Docker for the database and runs the app natively. What is a key advantage of this setup?

    • AEnsures production-like latency
    • BFast reloads and real debugger without manual database installation
    • CAvoids cross-origin cookie issues
    • DEliminates the need for CORS configuration
  2. 2.Your production environment proxies API requests, but your local setup calls the API directly. What issue might this cause?

    • ALocal cookies behave as first-party
    • BNetwork tab shows incorrect URLs
    • CCORS and cookie issues in production
    • DIncreased latency locally
  3. 3.A developer uses a seed script instead of a database dump for local setup. Why is this recommended?

    • ATo minimize local storage usage
    • BTo simplify database migrations
    • CTo avoid handling sensitive production data
    • DTo ensure database schema integrity
  4. 4.Why might a mismatch between local and production API setups cause silent failures?

    • ACookies work locally but fail in production due to cross-site issues
    • BLocal filesystem writes vanish
    • CProduction API requires HTTPS
    • DLocal database extensions are missing
  5. 5.In a local setup, why is it important to match the API configuration to production?

    • ATo minimize resource usage
    • BTo reduce local setup complexity
    • CTo ensure faster local development
    • DTo debug CORS and cookie issues locally
  6. 6.A developer notices that their local environment is missing CORS issues present in production. What might be the cause?

    • ALocal environment lacks SSL configuration
    • BLocal database uses Docker
    • CLocal app runs natively
    • DLocal setup proxies API requests, unlike production
  7. 7.What is a common issue when using production data for local development?

    • AComplex database migrations
    • BIncreased local latency
    • CCompromising user privacy
    • DInconsistent API endpoints
  8. 8.Why is it recommended to use staging environments before production?

    • ATo reduce local development time
    • BTo test real domains, TLS, and CORS
    • CTo avoid using Docker in production
    • DTo simplify API configuration