Unit 2: Rendering Strategies and Data Fetching - Subjective Questions

INT257 — Modern Web Application Development • Practice Questions with Detailed Answers

20 questions

1

Define Server-Side Rendering (SSR) and explain its complete request-response lifecycle in a modern web application.

2

Explain Static Site Generation (SSG). Discuss its working process, advantages, limitations, and suitable use cases.

3

What is Incremental Static Regeneration (ISR)? Explain how it combines the benefits of SSG and SSR.

4

Describe Client-Side Rendering (CSR) and compare its loading process with Server-Side Rendering.

5

Distinguish between SSR, SSG, ISR, and CSR based on rendering time, data freshness, performance, and typical applications.

6

Explain the factors that should be considered when selecting a rendering strategy for a web application.

7

What are Server Components? Explain their execution model, benefits, and limitations.

8

What are Client Components? Explain when they are required and how they interact with Server Components.

9

Compare Server Components and Client Components with respect to execution environment, data access, interactivity, bundle size, and security.

10

Explain the Fetch API and describe how it is used to retrieve data from a remote resource.

11

Describe client-side data fetching and explain the states that a well-designed client-side data-fetching workflow should manage.

12

Explain server-side data fetching and compare it with client-side data fetching.

13

What is caching in a web application? Explain how caching improves performance and identify common risks associated with it.

14

Explain revalidation and distinguish time-based revalidation from event-based or on-demand revalidation.

15

Describe a stale-while-revalidate approach and explain how it affects user experience and data freshness.

16

A product catalog changes every 30 minutes and contains thousands of product pages. Recommend a rendering strategy and justify your choice.

17

Explain how a hybrid rendering application can use different rendering strategies for different routes or components.

18

Discuss the role of hydration in applications that use SSR or Server Components. What problems can occur during hydration?

19

Explain how request cancellation, error handling, and response validation should be implemented when using the Fetch API.

20

A page displays public article content and a personalized list of saved articles. Explain how you would divide the rendering and data-fetching responsibilities.