Client-Side Data Alongside Server Components — Concept Check
Questions on Client-Side Data Alongside Server Components. Server components do not remove the need for client fetching. Knowing which of the two a piece of data belongs to — and how to hand data from one to the other — is the real skill.
Questions in this quiz
7 questions on Client-Side Data Alongside Server Components — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A developer notices a delay when users type in a search box. Each keystroke triggers a server request. What should they consider changing?
- ACache server responses to reduce latency
- BIncrease server capacity to handle requests faster
- CMove search logic to the client-side for immediate feedback
- DUse server components for all interactions
2.Your application needs to display live sports scores. Where should this data fetching logic reside?
- AClient-side, as it involves real-time updates
- BServer-side, since the data is large
- CClient-side, because it uses a secret API
- DServer-side, to ensure data consistency
3.A page initially loads with data from a server component, but users report a loading spinner when navigating. What might be the issue?
- AClient-side caching is disabled
- BClient-side refetching without using initialData
- CServer component not caching data
- DServer-side prefetching is missing
4.Which scenario is best suited for server components?
- AFetching geolocation data
- BRendering a static blog page for SEO
- CHandling a search-as-you-type feature
- DUpdating a live chat interface
5.What is a sign that data fetching logic might be incorrectly implemented in a client-side component?
- AThe application uses server actions
- BData is cached and reused efficiently
- CA server round trip occurs on every keystroke
- DData loads instantly without delay
6.When should you avoid using a client-side data library like TanStack Query?
- AFor static content rendered with server components
- BWhen polling for updates
- CWhen implementing infinite scroll
- DFor optimistic UI updates
7.Which of the following is a benefit of using initialData in client-side components?
- AEnsures data is always up-to-date
- BAllows for real-time updates
- CPrevents unnecessary refetching on mount
- DReduces server load by caching