Back to programming Quizzes

Next.js Quiz ( Intermediate )

This intermediate-level Next.js quiz is designed for developers who already know the basics and want to test their applied knowledge. It focuses on rendering strategies, data fetching, routing, optimization, and real-world usage patterns commonly asked in interviews.

15
Questions
~10
Minutes
10
Min Limit

Try a few sample questions

The question bank contains 45 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. When should getServerSideProps be preferred over getStaticProps?

  1. When data is static
  2. When data must be fresh on every request
  3. When SEO is not needed
  4. When building a static site
Reveal sample answer and explanation

Answer: When data must be fresh on every request

getServerSideProps runs on every request, ensuring up-to-date data.

2. What does Incremental Static Regeneration primarily enable?

  1. Client-side updates
  2. API caching
  3. Updating static pages after build
  4. Faster routing
Reveal sample answer and explanation

Answer: Updating static pages after build

ISR allows static pages to be regenerated after deployment.

3. Which property enables ISR in getStaticProps?

  1. refresh
  2. rebuild
  3. revalidate
  4. cache
Reveal sample answer and explanation

Answer: revalidate

The revalidate property defines how often a page is regenerated.