91
GB
What is the database-per-service pattern in microservices?
IN
माइक्रोसर्विसेज में डेटाबेस-प्रति-सेवा पैटर्न क्या है?
A
All services use the same database technology
सभी सेवाएँ समान डेटाबेस तकनीक का उपयोग करती हैं
B
All microservices share a single central database
सभी माइक्रोसर्विसेज एक एकल केंद्रीय डेटाबेस साझा करते हैं
C
Services share database tables but not schemas
सेवाएँ डेटाबेस तालिकाएँ साझा करती हैं लेकिन स्कीमा नहीं
D
Each microservice owns its private database preventing direct access by other services
प्रत्येक माइक्रोसर्विस का अपना निजी डेटाबेस होता है जो अन्य सेवाओं द्वारा सीधी पहुंच को रोकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Database per service: each microservice has its own private database that only it can access directly. Other services must use the service APIs to access data. This ensures loose coupling and allows each service to choose its optimal database technology.
व्याख्या (हिन्दी)
प्रति सेवा डेटाबेस: प्रत्येक माइक्रोसर्विस का अपना निजी डेटाबेस होता है जिसे केवल वह सीधे एक्सेस कर सकता है। अन्य सेवाओं को डेटा तक पहुंचने के लिए सेवा एपीआई का उपयोग करना होगा। यह ढीली युग्मन सुनिश्चित करता है और प्रत्येक सेवा को अपनी इष्टतम डेटाबेस तकनीक चुनने की अनुमति देता है।