Modern QA2026Practical Exercise — tiles
Log inJoin
55 / 65 · 15 SQL & Database Testing · NoSQL Basics← prev⊞ allnext →☰ Read as one page

7.6Practical Exercise

  1. Write MongoDB tests: insert a document, query it, verify structure, test schema validation
  2. Write Redis tests: set a key with TTL, verify it exists, wait for expiration, verify it is gone
  3. Write a test for Redis-backed rate limiting: increment a counter, verify it resets after the window
  4. Test cache invalidation: update data via API, verify the cache was cleared
  5. Compare testing patterns between SQL constraints and MongoDB schema validation