Test your knowledge
Let's see whether you can answer the following questions correctly:
- The
rest_framework.throttling.UserRateThrottleclass:- Limits the rate of requests that a specific user can make and applies to both authenticated and non-authenticated users
- Limits the rate of requests that a specific user can make and applies only to authenticated users
- Limits the rate of requests that a specific user can make and applies only to non-authenticated users
- Which of the following settings key in the
REST_FRAMEWORKdictionary specifies the global setting with a tuple of string whose values indicate the classes that we want to use for throttling rules:'DEFAULT_THROTTLE_CLASSES''GLOBAL_THROTTLE_CLASSES''REST_FRAMEWORK_THROTTLE_CLASSES'
- Which of the following settings key in the
REST_FRAMEWORKdictionary specifies a dictionary with the default throttle rates:'GLOBAL_THROTTLE_RATES''DEFAULT_THROTTLE_RATES''REST_FRAMEWORK_THROTTLE_RATES'
- The
rest_framework.throttling.ScopedRateThrottleclass:- Limits...