Não decore palavra por palavra: entenda a estrutura da resposta e refaça com as suas palavras, em inglês.
Options include query/index improvements, caching, read replicas, and a CDN for cacheable responses. Choose based on the measured bottleneck and freshness requirements.
Cache-aside: read cache → on miss read the source → populate cache with an appropriate TTL. Include authorization scope and source version in cache decisions.
Trap: invalidating on write is not a universal consistency guarantee. A concurrent reader can repopulate stale data after invalidation. Use suitable versioning or coordination where needed. Replicas can lag, so read-after-write flows may need the primary or an explicit consistency mechanism.
Essa pergunta tem uma armadilha que derruba muita gente em entrevista. Ela está marcada na resposta acima: vale reler antes de treinar.
Ler é o primeiro passo. No app, essa pergunta vira flashcard com repetição espaçada, e o módulo tem quiz e simulado para testar o que ficou.
Treinar essa pergunta no app