Bird
0
0

How do you specify a throttle rate of 5 requests per minute for a custom throttle class in Django REST Framework?

easy📝 Syntax Q3 of 15
Django - DRF Advanced Features
How do you specify a throttle rate of 5 requests per minute for a custom throttle class in Django REST Framework?
Arate = '5/minute'
Brate = '5/second'
Crate = '5/hour'
Drate = '5/day'
Step-by-Step Solution
Solution:
  1. Step 1: Understand rate format

    The rate string format is '/' where period can be second, minute, hour, or day.
  2. Step 2: Match the required rate

    For 5 requests per minute, the correct string is '5/minute'.
  3. Final Answer:

    rate = '5/minute' -> Option A
  4. Quick Check:

    Rate string matches requests per minute [OK]
Quick Trick: Rate format is '/' like '5/minute' [OK]
Common Mistakes:
MISTAKES
  • Using incorrect time units like '5/second' for per minute rate
  • Omitting quotes around the rate string
  • Confusing rate syntax with other settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes