Recall & Review
beginner
What does it mean when we say a database 'persists data'?
It means the database saves data permanently so it stays safe even if the app or computer turns off.
Click to reveal answer
beginner
Why can't we just keep data in a program's memory?
Because memory is temporary and clears when the program stops, so data would be lost without saving it somewhere permanent like a database.
Click to reveal answer
beginner
How does a database help a FastAPI app with data?
It stores user info, settings, and other data safely so the app can get it anytime, even after restarting.
Click to reveal answer
beginner
What is one real-life example of data persistence?
Like saving a photo on your phone gallery so you can see it later, databases save data so apps can use it later.
Click to reveal answer
beginner
What happens if data is not persisted in a database?
The data disappears when the app closes, so users would lose their info or progress.
Click to reveal answer
What does data persistence in a database ensure?
✗ Incorrect
Persistence means data remains saved and accessible after the app or system stops.
Why is storing data only in memory not enough?
✗ Incorrect
Memory is temporary and clears when the app or device turns off, so data would be lost.
Which of these is a benefit of using a database with FastAPI?
✗ Incorrect
Databases save data permanently so FastAPI apps can access it anytime.
What real-life example best explains data persistence?
✗ Incorrect
Saving a photo means you can see it later, just like data saved in a database.
What happens if data is not persisted?
✗ Incorrect
Without persistence, data disappears when the app or device stops.
Explain in your own words why databases are important for saving data in apps like FastAPI.
Think about what happens if you turn off your computer without saving.
You got /3 concepts.
Describe a simple real-life example that helps you understand data persistence.
What do you do to keep important things safe for later?
You got /3 concepts.