Bird
0
0

What is the main role of Nginx when used as a reverse proxy for a Flask application?

easy📝 Conceptual Q11 of 15
Flask - Deployment
What is the main role of Nginx when used as a reverse proxy for a Flask application?
ACompile Flask Python code into machine code
BRun the Flask application code directly
CForward client requests to the Flask app server
DStore the Flask app's database
Step-by-Step Solution
Solution:
  1. Step 1: Understand Nginx's role

    Nginx acts as a middleman that receives client requests first.
  2. Step 2: Forward requests to Flask app

    Nginx sends these requests to the Flask app running on a backend server or port.
  3. Final Answer:

    Forward client requests to the Flask app server -> Option C
  4. Quick Check:

    Nginx forwards requests = D [OK]
Quick Trick: Nginx passes requests, it does not run Flask code [OK]
Common Mistakes:
MISTAKES
  • Thinking Nginx runs Flask code
  • Confusing Nginx with database storage
  • Believing Nginx compiles Python code

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes