Python Flask Interview Questions
Carvia Tech | December 09, 2019 | 2 min read | 756 views | Flask - Python micro web framework
Here we will cover top interview questions for Python Flask Micro web framework - API development, Deployment in production, logging and monitoring and testing
How will you write a simple Flask API for hello world
How will you implement caching in Flask API
How to return a JSON response form a Flask API
What is virtual environment in python? How does it help in Flask API development?
Is Flask’s WSGI Werkzeug development server suitable for production deployment? Why not?
How will you deploy a flask microservice to production?
What is WSGI?
How will you use Gunicorn server for production deployment?
What is containerization? What is docker?
How will you create a simple docker image using gunicorn server for a flask API?
Logging & Monitoring
How to handle all exceptions at a common place?
How to add logs to the API calls?
How to measure time for API calls using generic approach
How will you write a unit test for Flask REST API
How to achieve load testing for Flask API
How to write integration tests for Flask API?
Top articles in this category:
- Top 100 interview questions on Data Science & Machine Learning
- Python coding challenges for interviews
- Google Data Scientist interview questions with answers
- Part 3: Dockerize Flask application and build CI/CD pipeline in Jenkins
- Part 2: Deploy Flask API in production using WSGI gunicorn with nginx reverse proxy
- Write a program to check if the given word is Isogram & Pair isogram in python
- Pass the ball game: NxN matrix in python
Find more on this topic:
Data science, machine learning, python, R, big data, spark, the Jupyter notebook, and much more
Last updated 1 week ago
Recommended books for interview preparation:
- Configure Logging in gunicorn based application in docker container
- Connect to Cassandra with Python 3.x and get Pandas Dataframe
- Connect to MySQL with Python 3.x and get Pandas Dataframe
- Connect to Postgresql with Python 3.x and get Pandas Dataframe
- Python - Get Google Analytics Data
- Installing PySpark with Jupyter notebook on Ubuntu 18.04 LTS
- Python send GMAIL with attachment
- Send rich text multimedia email in Python
- Blueprints in Flask API Development
- Singleton Design Pattern in Python