NEW
Font size
WorksheetsFastAPI for Beginner
Total questions: 20
Worksheet time: 10mins
API คืออะไร?
ระบบที่ใช้เก็บข้อมูลเท่านั้น
กลไกที่ให้โปรแกรมต่าง ๆ ติดต่อกันได้
โปรแกรมแอนตี้ไวรัส
ระบบจัดการไฟล์
ข้อใดคือ HTTP Method สำหรับดึงข้อมูล
POST
PUT
GET
DELETE
Status Code 201 หมายถึงอะไร?
Bad Request
Created
OK
Forbidden
ข้อใดคือจุดเด่นสำคัญของ FastAPI
ช้าแต่ใช้งานง่าย
รองรับเฉพาะ MySQL
เร็วมากและรองรับ async/await
ต้องเขียน config เยอะ
คำสั่งสร้าง Virtual Environment ด้วย uv คือข้อใด
uv make
uv venv
uv env create
uv build
Endpoint /hello ควรเขียนด้วย Method ใดสำหรับการแสดงข้อความอย่างเดียว
POST
DELETE
GET
PUT
Path Parameter เหมาะใช้สำหรับสิ่งใด
ส่งข้อมูลใหญ่ ๆ
ระบุ resource เช่น id
ส่งไฟล์
ส่ง token
ข้อใดคือโครงสร้างที่ใช้ทำ In-memory CRUD
SQL Database
Docker Container
list หรือ dict
Binary File
ข้อใดเป็นคำสั่งรัน PostgreSQL ด้วย Docker Compose
docker compose up db
docker up postgres
docker compose start python
uv compose run postgres
ORM ย่อมาจากอะไร
Object Relational Mapping
Online Resource Monitor
Object Runtime Module
Operational Relational Method
SQLAlchemy ทำหน้าที่อะไร
ทดสอบ API
เชื่อมต่อและจัดการ Database
สร้าง JWT Token
จัดเก็บ Static File
Pydantic ใช้ทำอะไร
ส่งอีเมล
Validate Request Body
สร้าง Dockerfile
ทำการ Login
คำสั่งสร้าง Migration ใหม่ด้วย Alembic
alembic add
alembic new_version
alembic revision --autogenerate -m "init"
alembic migrate start
JWT ใช้สำหรับอะไร
ย่อไฟล์รูป
ยืนยันตัวตนผู้ใช้งาน
จัดการ HTML Template
เขียน CSS
Password Hashing ควรทำเมื่อไหร่
หลังผู้ใช้ลืมรหัสผ่าน
ก่อนเก็บ Password ลง DB
ตอนระบบ deploy
ขณะโหลด Static File
ข้อใดคือบทบาทของ Authorization
ตรวจสอบว่าเป็นใคร
ตรวจสอบเวอร์ชัน Python
ตรวจสอบว่ามีสิทธิทำอะไร
ตรวจสอบ Dockerfile
ใน FastAPI การ Upload File ใช้คลาสใด
Path
File
Static
Upload
Unit Test สำหรับ FastAPI ควรใช้เครื่องมือใด
pytest + TestClient
HTML Validator
SQL Shell
Docker Service
Dockerfile สำหรับ FastAPI ต้องเปิดพอร์ตใด (โดยทั่วไป)
22
8000
3306
5000
Platform ใดที่เหมาะสำหรับ Deploy FastAPI แบบฟรี
Photoshop
Render
WordPress
MS Excel
