wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Nodejs: Rate Limiting and File Upload

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the status code for too many requests?

a)

422

b)

425

c)

427

d)

429

2.

What technique can we use to control the rate at which a system or application processes incoming requests or operations

a)

Debouncer

b)

Rate Limiting

c)

Throttler

d)

None of the options

3.

One of the following is not a reason we need rate limiting

a)

Security

b)

Resoucre management

c)

Fair usage of APIs

d)

Validate user inputs

4.

Which of the following can we use to uniquely identify a request so as to rate limit user requests

a)

IP address

b)

user id

c)

device id

d)

all of the options

5.

How does "throttling" differ from rate limiting?

a)

Throttling and rate limiting are synonymous terms.

b)

Throttling is a more aggressive form of rate limiting.

c)

Rate limiting is a more aggressive form of throttling.

d)

Throttling controls the rate of data transfer, while rate limiting controls the rate of requests.

6.

Which of the following is a benefit of using rate limiting?

a)

Protection against brute force attacks

b)

Increased server load

c)

Slower response times for users

d)

Increased network bandwidth usage

7.

Which tool can we use to upload files when working with Nodejs

a)

Multer

b)

Express

c)

Filer

d)

None of the options

8.

User uploads file -> file is processed by multer -> server uploads the file to a file server -> _______

Choose the last step

a)

transform the file

b)

delete the file from file system

c)

move the file to another location

d)

rename the file to deleted

9.

Which of the following can act as file server to store our files

a)

Cloudinary

b)

AWS S3 bucket

c)

GCP cloud storage

d)

All of the options

10.

What is the format of the request body when uploading files?

a)

application/json

b)

application/form-data

c)

multipart/form-data

d)

multipart/data