Loading

Quipoin Menu

Learn • Practice • Grow

express-js / Rate Limiting
mcq
Direction: Choose the correct option

Q1.

Why would you implement rate limiting in an Express app?
A. To reduce server load for legitimate users
B. To prevent abuse and brute-force attacks
C. To cache responses
D. To speed up responses
Direction: Choose the correct option

Q2.

Which middleware is commonly used for rate limiting in Express?
A. limiter
B. rate-limiter
C. express-throttle
D. express-rate-limit
Direction: Choose the correct option

Q3.

What does slowDown middleware do?
A. It limits total requests
B. It adds delay to all requests
C. It progressively slows down responses after a certain number of requests
D. It blocks requests permanently
Direction: Choose the correct option

Q4.

How can you identify a client for rate limiting?
A. By IP address
B. By username
C. By session ID
D. All of the above
Direction: Choose the correct option

Q5.

What HTTP status code is typically sent when rate limit is exceeded?
A. 401 Unauthorized
B. 403 Forbidden
C. 429 Too Many Requests
D. 500 Internal Server Error