Recall & Review
beginner
What does 'data fetching at build time' mean in Astro?
It means Astro gets the data needed for your site while it is being built, before anyone visits the site. This helps make pages load faster because the data is already there.
Click to reveal answer
beginner
Why is fetching data at build time better for performance?
Because the data is included in the static files, the site loads quickly without waiting for data to load from a server when a user visits.
Click to reveal answer
beginner
How does build time data fetching improve user experience?
Users see the page content immediately since the data is already loaded, making the site feel faster and smoother.
Click to reveal answer
intermediate
What is a limitation of fetching data at build time?
The data is fixed when the site is built, so it won't update until you rebuild the site again.
Click to reveal answer
beginner
Give an example of when to use data fetching at build time in Astro.
Use it for blog posts or product pages where content changes rarely, so pages load fast and don’t need live updates.
Click to reveal answer
What is the main benefit of fetching data at build time in Astro?
✗ Incorrect
Fetching data at build time means the data is ready when the page loads, making pages faster.
When does Astro fetch data if using build time fetching?
✗ Incorrect
Build time fetching happens once during the build process, not on user visits.
What happens if data changes after build time in Astro static sites?
✗ Incorrect
Static sites with build time data fetching need a rebuild to update data.
Which type of content is best suited for build time data fetching?
✗ Incorrect
Static content that does not change often benefits most from build time fetching.
How does build time data fetching affect server load?
✗ Incorrect
Since data is fetched once at build, the server does less work when users visit.
Explain why Astro fetches data at build time and how it benefits website speed.
Think about when the data is ready and how that affects loading.
You got /4 concepts.
Describe a scenario where fetching data at build time is not ideal and why.
Consider content that needs to be fresh all the time.
You got /4 concepts.