DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
API Development Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
API Development
Why is zod's runtime input validation still necessary even though TypeScript already provides compile-time type checking?
A
It isn't necessary — TypeScript checking makes it fully redundant
B
TypeScript checking happens only at BUILD time on trusted developer code — it provides zero protection against a malicious or malformed HTTP request hitting the server directly, which zod's runtime check does guard against
C
zod and TypeScript check for exactly the same thing in exactly the same way
D
zod is only needed when TypeScript is not used at all
Check Answer