QuizzesNode and Edge Runtimes — Concept Check
intermediate
nextjs

Node and Edge Runtimes — Concept Check

Questions on Node and Edge Runtimes. Edge starts instantly and runs close to the user, with a restricted API surface and no TCP. Node has everything and a cold start. Most routes should stay on Node.

7 minutes 7 questions Pass at 70%
Time Limit
7 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

7 questions on Node and Edge Runtimes — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer needs to implement middleware for geolocation-based routing. Which runtime should they choose?

    • AEdge runtime
    • BNeither Edge nor Node
    • CEither Edge or Node
    • DNode runtime
  2. 2.A function running on the edge queries a database located in a different region. What is the likely impact?

    • AImproved database performance
    • BNo impact on latency
    • CReduced latency due to the edge runtime's proximity to the user
    • DIncreased latency due to cross-region database queries
  3. 3.Which runtime should be used for processing large image files?

    • AEither Edge or Node
    • BEdge runtime
    • CNode runtime
    • DNeither Edge nor Node
  4. 4.A developer wants to use a native module like 'sharp' for image processing. Which runtime is appropriate?

    • AEdge runtime
    • BEither Edge or Node
    • CNode runtime
    • DNeither Edge nor Node
  5. 5.A service experiences slow startup times after deployment. What could be a contributing factor?

    • AProximity to the user
    • BUsing HTTP-based database drivers
    • CUsing the Edge runtime
    • DLarge bundle size and heavy module-level work
  6. 6.What is a drawback of using the Edge runtime for database operations?

    • ALarger bundle size limits
    • BHigher invocation costs
    • CNo TCP support for direct database connections
    • DLonger execution limits
  7. 7.Which runtime should be chosen for a token check without a database read?

    • ANode runtime
    • BEither Edge or Node
    • CNeither Edge nor Node
    • DEdge runtime