0
0
Flaskframework~5 mins

CI/CD pipeline for Flask - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does CI/CD stand for in software development?
CI/CD stands for Continuous Integration and Continuous Delivery (or Continuous Deployment). It means automatically testing and delivering code changes to users quickly and safely.
Click to reveal answer
beginner
Why use a CI/CD pipeline for a Flask application?
A CI/CD pipeline helps catch errors early, speeds up delivery, and makes sure your Flask app updates smoothly without breaking for users.
Click to reveal answer
beginner
Name a common tool used for running automated tests in a Flask CI pipeline.
Pytest is a popular tool to run automated tests for Flask applications during the CI process.
Click to reveal answer
intermediate
What is the role of Docker in a CI/CD pipeline for Flask?
Docker packages your Flask app and its environment into a container, making it easy to test and deploy consistently across different machines.
Click to reveal answer
intermediate
Explain the difference between Continuous Delivery and Continuous Deployment.
Continuous Delivery means your code is always ready to be released but needs manual approval. Continuous Deployment means code changes are automatically released to users after passing tests.
Click to reveal answer
What is the first step in a typical CI/CD pipeline for a Flask app?
APush code to the repository
BBuild the Docker image
CRun automated tests
DDeploy to production
Which file commonly defines the steps of a CI/CD pipeline in GitHub Actions?
Aapp.py
Brequirements.txt
CDockerfile
D.github/workflows/*.yml
What command installs dependencies listed in requirements.txt for a Flask app?
Apip install -r requirements.txt
Bpython app.py
Cdocker build .
Dpytest
In a CI/CD pipeline, what does 'automated testing' help prevent?
AManual code writing
BSlow internet
CCode errors and bugs
DServer crashes unrelated to code
Which tool can be used to deploy a Flask app to a cloud service in a CI/CD pipeline?
Anpm
BHeroku CLI
CGit
Dpytest
Describe the main stages of a CI/CD pipeline for a Flask application.
Think about what happens from writing code to making it live.
You got /5 concepts.
    Explain how Docker helps in deploying a Flask app in a CI/CD pipeline.
    Imagine packing your app in a box that works anywhere.
    You got /4 concepts.