Test Your Understanding
Duration: 30 Minutes
Section 1: Database
- What is a database?
- List 2 or more types of database
- What is a primary key in a database?
- Assume you have a table called `POST`, write an SQL statement to fetch all posts.
- What is CRUD in the context of database operations?
Section 2: APIs
- What is an API?
- Name four HTTP methods used in RESTful APIs and briefly explain their purposes.
- What does the HTTP status code 404 indicate?
- Explain the difference between PUT and CREATE HTTP methods.
- What category of status codes does the 2xx series represent?
Section 3: FastAPI
Write a short essay on FastAPI, what it is, how it is installed and its alternatives.
Section 4: SQLAlchemy
- What is an ORM?
- What is SQLAlchemy?
- How do you install SQLAlchemy?
- What is the difference between ORM models and Pydantic models?