Senior LevelMongoDB & Mongoose
How does Zone Sharding route documents to specific geographic data centers for GDPR compliance?
❓ Interview Prompt: Explain Zone Sharding, mapping shard key ranges to geographic zones, and enforcing local data residency.
Zone Sharding maps shard key ranges to specific cluster zones, physically pinning regional user documents (e.g. EU users) to local data center shards for GDPR compliance.
Code Implementation Example
typescript
console.log('Zone Sharding pins EU customer documents to European data center shards');💡Zone Sharding for geographic data residency.
🎯 Interview Key Takeaway
Use Zone Sharding to ensure compliance with geographic data residency regulations like GDPR.
#Zone Sharding#Data Residency#GDPR#Senior
Back to all MongoDB & Mongoose Questions→