HTTP & REST Flashcards

1
Q

Which HTTP method should be used to update an existing resource in RESTful web services?

A

PUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following HTTP methods is used to retrieve a resource in RESTful architecture?

A

GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does REST stand for?

A

Representational State Transfer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In RESTful APIs, what does a status code in the 5xx range signify?

A

Server error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which HTTP status code indicates a successful GET request in a RESTful API?

A

200 OK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the HTTP method used to create a new resource in RESTful architecture?

A

POST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In RESTful APIs, what is used to uniquely identify a resource?

A

URI (Uniform Resource Identifier)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is NOT a constraint of RESTful architecture?

A

Cookie-based authentication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of architecture does RESTful APIs follow?

A

Client-server architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the primary role of a RESTful API’s Uniform Interface constraint?

A

To standardize the way clients interact with the server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What mechanism does RESTful APIs use to indicate the current state of the resource?

A

HTTP status codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does idempotence mean in the context of RESTful APIs?

A

The API produces the same result no matter how many times the same request is made

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In RESTful APIs, what is the purpose of a payload in a POST request?

A

To contain the data being sent by the client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a resource in the context of RESTful web services?

A

An entity that can be accessed and manipulated through a URI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly