Bird
0
0

What is the main purpose of database migration in a Flask application deployment?

easy📝 Conceptual Q11 of 15
Flask - Deployment
What is the main purpose of database migration in a Flask application deployment?
ATo speed up the app by removing unused tables
BTo delete all existing data before deploying
CTo safely update the database structure as the app changes
DTo backup the database automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand database migration purpose

    Database migration updates the database schema to match app changes without losing data.
  2. Step 2: Compare options

    Only To safely update the database structure as the app changes describes safe schema updates; others describe unrelated or harmful actions.
  3. Final Answer:

    To safely update the database structure as the app changes -> Option C
  4. Quick Check:

    Migration = safe schema update [OK]
Quick Trick: Migration means changing database structure safely [OK]
Common Mistakes:
MISTAKES
  • Thinking migration deletes data
  • Confusing migration with backup
  • Assuming migration speeds up app

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes