NEW
Font size
WorksheetsNodejs: Rate Limiting and File Upload
Total questions: 10
Worksheet time: 5mins
What is the status code for too many requests?
422
425
427
429
What technique can we use to control the rate at which a system or application processes incoming requests or operations
Debouncer
Rate Limiting
Throttler
None of the options
One of the following is not a reason we need rate limiting
Security
Resoucre management
Fair usage of APIs
Validate user inputs
Which of the following can we use to uniquely identify a request so as to rate limit user requests
IP address
user id
device id
all of the options
How does "throttling" differ from rate limiting?
Throttling and rate limiting are synonymous terms.
Throttling is a more aggressive form of rate limiting.
Rate limiting is a more aggressive form of throttling.
Throttling controls the rate of data transfer, while rate limiting controls the rate of requests.
Which of the following is a benefit of using rate limiting?
Protection against brute force attacks
Increased server load
Slower response times for users
Increased network bandwidth usage
Which tool can we use to upload files when working with Nodejs
Multer
Express
Filer
None of the options
User uploads file -> file is processed by multer -> server uploads the file to a file server -> _______
Choose the last step
transform the file
delete the file from file system
move the file to another location
rename the file to deleted
Which of the following can act as file server to store our files
Cloudinary
AWS S3 bucket
GCP cloud storage
All of the options
What is the format of the request body when uploading files?
application/json
application/form-data
multipart/form-data
multipart/data
