Bird
Raised Fist0

Which advanced pattern combination best addresses these needs?

hard🚀 Application Q8 of Q15
Elasticsearch - Advanced Patterns
You are designing an Elasticsearch deployment for a SaaS platform that requires strict tenant data separation and fast search response times. Which advanced pattern combination best addresses these needs?
AUse index-per-tenant pattern combined with filtered aliases for query isolation
BUse a single shared index with nested documents for all tenants
CUse a single index with no filtering and rely on application-level filtering
DUse multiple shards per tenant without aliases
Step-by-Step Solution
Solution:
  1. Step 1: Understand multi-tenant requirements

    Data isolation and fast queries are critical for SaaS multi-tenancy.
  2. Step 2: Evaluate patterns

    Index-per-tenant ensures data separation; filtered aliases enable efficient, isolated queries.
  3. Final Answer:

    Use index-per-tenant pattern combined with filtered aliases for query isolation -> Option A
  4. Quick Check:

    Index-per-tenant + filtered aliases ensure isolation and speed [OK]
Quick Trick: Index-per-tenant plus filtered aliases for isolation [OK]
Common Mistakes:
MISTAKES
  • Using a single index without filtering risks data leaks
  • Relying solely on nested documents for tenant separation
  • Ignoring aliases reduces query efficiency

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes