Question:
What is the primary characteristic of an idempotent HTTP method in RESTful web services?
RESTful वेब सेवाओं में एक इडेम्पोटेंट (Idempotent) HTTP विधि की प्राथमिक विशेषता क्या है?
Options:
- Making multiple identical requests has the same intended effect on the server state as making a single request
- The method never alters any data on the server
- The method is encrypted with SSL/TLS by default
- The response from the server is always empty
- एकाधिक समान अनुरोध भेजने पर भी सर्वर की स्थिति पर वही प्रभाव पड़ता है जो केवल एक अनुरोध भेजने पर पड़ता है
- विधि कभी भी सर्वर पर कोई डेटा नहीं बदलती
- विधि हमेशा डिफ़ॉल्ट रूप से एन्क्रिप्टेड होती है
- सर्वर से प्रतिक्रिया हमेशा खाली होती है
Correct Answer: a)
Explanation:
An HTTP method is idempotent if the side-effects of \(N > 0\) identical requests is the same as for a single request. GET, PUT, DELETE, and HEAD are idempotent; POST is not.
Idempotent का अर्थ है कि एक ही अनुरोध को बार-बार दोहराने पर भी सर्वर की स्थिति पर कोई अतिरिक्त दुष्प्रभाव नहीं पड़ता (जैसे GET, PUT, DELETE)।