QuizzesThe Build, and What It Produces — Concept Check
intermediate
nextjs

The Build, and What It Produces — Concept Check

Questions on The Build, and What It Produces. The build is where static and dynamic are decided, where the bundle size is fixed, and where most production surprises are visible before they ship.

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 The Build, and What It Produces — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.During a Next.js build, a static page fails with the error 'Error occurred prerendering page /data'. What is the most likely cause?

    • AThe page queries a database not accessible from CI
    • BThe page has syntax errors
    • CThe page is missing required metadata
    • DThe page uses a deprecated API
  2. 2.If a route in your Next.js project silently changes from static to dynamic, what could be the consequence?

    • AReduced server load
    • BImproved SEO
    • CIncreased bundle size
    • DDecreased page load time
  3. 3.A developer notices that the 'First Load JS shared by all' size has increased significantly. What could be the reason?

    • ATypeScript errors were ignored
    • BThe build cache was not restored
    • CA new library was imported into a layout
    • DA static page was removed
  4. 4.What does a hashed filename in the .next/static directory ensure?

    • AClean client cache invalidation on deploy
    • BFaster build times
    • CReduced server load
    • DImproved SEO
  5. 5.A team decides to ignore TypeScript errors during the build by setting `typescript: { ignoreBuildErrors: true }`. What is a potential risk of this decision?

    • AErrors will only appear at runtime
    • BBuild times will increase
    • CThe bundle size will increase
    • DStatic pages will fail to render
  6. 6.What is the primary function of the .next/cache directory in a Next.js project?

    • AStore environment variables
    • BStore build and data caches for faster builds
    • CContain server-rendered HTML files
    • DHold static assets for CDN caching
  7. 7.A developer notices that the number of prerendered paths has increased unexpectedly. What could be a reason for this?

    • ATypeScript errors were ignored
    • BThe build cache was not restored
    • CgenerateStaticParams returned more paths than expected
    • DA new dynamic route was added
  8. 8.What is a key characteristic of the 'standalone' output mode in Next.js?

    • ARequires a running server at all times
    • BIncreases the bundle size
    • CGenerates a purely static site with no Node.js
    • DCreates a minimal self-contained server for Docker