Design Spam-Resistant Submission Limits for Google Forms
Last updated: November 29, 2026
Quick Overview
Design rate limiting for public Google Forms so that bots cannot flood a form with thousands of fake responses, while a popular form (like a class sign-up) can still accept a real burst from many people.
0
0
0 solved
Design rate limiting for public Google Forms so that bots cannot flood a form with thousands of fake responses, while a popular form (like a class sign-up) can still accept a real burst from many people.
Forms is a common anonymous-input surface at Google and a good small design to test judgment. The interviewer checks whether you limit by the right dimensions and distinguish a real burst of humans from automation.
What the Interviewer Expects
- Limit by source (IP, cookie, account) and by form
- Distinguish legitimate bursts using diversity of sources
- Use challenges instead of hard rejections when uncertain
- Let form owners choose stricter settings like one response per signed-in user
- Keep flagged responses reviewable rather than silently dropped
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you handle a form shared in a school where every student is behind one IP?
- How do you avoid losing real responses during a false positive?
- What would you show the form owner?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Public forms accept anonymous responses; some are limited to signed-in users or one response per user.
- Block automated floods (thousands of submissions per minute from few sources).
- Allow real b...
High-Level Design
Submit endpoint calls an abuse check with form ID, IP, cookie, account (if any), and client signals. The check reads counters in a fast cache: per (form, IP) per minute, per (form, cookie), per (f...