CS FundamentalsModerateProduct-company MCQ pattern
Which HTTP method is NOT idempotent by definition?
- A. PUT
- B. POST
- C. DELETE
- D. GET
Correct answer: B. POST
Repeating GET, PUT or DELETE leaves the server in the same state as doing it once. Repeating POST typically creates another resource (two orders, two payments), which is why it is not 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
- A logged-in user with a valid token calls an admin-only API endpoint. Which status code should the server return?
- In the IaaS model (for example a plain cloud virtual machine), which of these is the customer's responsibility rather than the provider's?
- A Scrum team's last three sprints delivered 28, 32 and 30 story points. 240 points remain in the backlog and sprints are 2 weeks long…
- Using basic COCOMO for an organic project (E = 2.4 × KLOC^1.05 person-months), what is the estimated effort for a 32 KLOC project?
- For the code if (x > 0) { y = 1; } followed by print(y), a single test with x = 5 is run. What coverage does it achieve?
- A server has a mean time between failures of 990 hours and a mean time to repair of 10 hours. What is its availability?