CS FundamentalsModerateProduct-company MCQ pattern
How many of the following HTTP methods are idempotent by the HTTP specification: GET, PUT, DELETE, POST?
- A. Only one
- B. Only two
- C. Only three
- D. All four
Correct answer: C. Only three
GET, PUT and DELETE are idempotent: repeating them leaves the server in the same state. POST is not. (A repeated DELETE may return 404 the second time, but the server state is unchanged, which is what idempotency means.) So three are idempotent.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Assertion (A): In a RESTful API, every request from the client must carry all the information needed to process it, such as an auth token…
- Match each HTTP status code with its meaning. P. 204 Q. 304 R. 409 S. 429 1. Too many requests (rate limit hit) 2. Request conflicts with…
- How many of the following are managed by the cloud provider (not the customer) in a PaaS offering such as a managed app platform? 1. The…
- How many of the following statements about serverless computing (FaaS, such as AWS Lambda) are correct? 1. Functions are typically billed…
- A web tier has two identical servers in parallel (each 99% available; the tier works if at least one is up), connected in series with a…
- An SLA promises 99.9% availability over a 365-day year. What is the maximum downtime it allows, and how much does moving to 99.99% allow?