90 desafios
A01Programação e concorrência: A atualização perdidaDois depósitos rodam ao mesmo tempo e um deles some silenciosamente.Simulador de linha do tempoExplorador7 minA02Programação e concorrência: The DeadlockTwo transfers between the same accounts freeze each other forever.Simulador de linha do tempoEngenheiro8 minA03Programação e concorrência: The Thread Pool CollapseA slow third-party API takes down endpoints that never call it.Laboratório de performanceEngenheiro sênior10 minA04Programação e concorrência: The Invisible MutationA single-threaded Node.js service shows customers prices in another customer's currency.Simulador de linha do tempoExplorador6 minA05Programação e concorrência: The Async TrapA batch job reports “done” before anything is saved.Simulador de linha do tempoEngenheiro9 minA06Programação e concorrência: The Memory That Never LeavesA service is OOM-killed every few hours and the team keeps raising the memory limit.Laboratório de depuraçãoEngenheiro8 minB07Engenharia frontend: The Endless SubscriptionEach visit to a page adds another invisible listener that never goes away.Simulador de linha do tempoExplorador7 minB08Engenharia frontend: The Stale Search ResultsThe search box shows results for something the user typed a second ago.Simulador de linha do tempoEngenheiro8 minB09Engenharia frontend: The Frozen InterfaceChanging a filter freezes the page for more than a second.Laboratório de performanceEngenheiro8 minB10Engenharia frontend: The Rendering StormOne price changes per second, and the whole watchlist re-renders.Laboratório de performanceEngenheiro sênior9 minB11Engenharia frontend: The Duplicate Form SubmissionSupport receives the same ticket twice — and so does the customer's inbox.Simulador de fluxoExplorador6 minB12Engenharia frontend: The State Synchronization BugThe cart badge says 3, the cart page says 2, and checkout charges for 4.Simulador de fluxoEngenheiro8 minC13Engenharia backend: The Invisible RollbackA failed payment leaves an order behind — despite @Transactional.Desafio de códigoEngenheiro9 minC14Engenharia backend: The Hibernate N+1 NightmareA page of 20 orders triggers 41 SQL statements — and the obvious fix loads 50,000 rows.Laboratório de performanceEngenheiro9 minC15Engenharia backend: The Exhausted Connection PoolThe database is 78% idle, yet the service can't get a connection.Laboratório de performanceEngenheiro sênior10 minC16Engenharia backend: The Retry AvalancheA small slowdown in one service becomes an outage because everyone retries.Laboratório de performanceEngenheiro sênior10 minC17Engenharia backend: The Broken API ContractThe web app works perfectly after the release. Every other client is broken.Laboratório de depuraçãoEngenheiro9 minC18Engenharia backend: The Dependency Injection TrapCustomers occasionally see someone else's cart total.Laboratório de depuraçãoEngenheiro8 minD19Bancos de dados e SQL: The Million-Row ProblemAn order history page slows down as the table grows. Will a cache, or an index, fix it?Laboratório de performanceEngenheiro9 minD20Bancos de dados e SQL: The Dirty ReadA loan is approved based on money that never existed.Simulador de linha do tempoEngenheiro7 minD21Bancos de dados e SQL: The Phantom RowsThe daily report divides revenue by an order count from a different moment.Simulador de linha do tempoEngenheiro sênior8 minD22Bancos de dados e SQL: The Lost TransactionFive items in stock, two customers buy three each — and both succeed.Simulador de linha do tempoEngenheiro8 minD23Bancos de dados e SQL: The Slow PaginationPage 1 is instant, page 5,000 takes forever — and items repeat while you scroll.Laboratório de performanceEngenheiro7 minD24Bancos de dados e SQL: The Replica That LiedUsers save their profile, reload, and see the old name.Simulador de fluxoEngenheiro sênior8 minE25Sistemas distribuídos: The Duplicate PaymentA timeout and a well-meant retry charge a customer twice.Simulador de fluxoEngenheiro10 minE26Sistemas distribuídos: The Missing EventOrders exist in the database that the shipping service never heard about.Simulador de fluxoEngenheiro sênior10 minE27Sistemas distribuídos: The Out-of-Order DeliveryCancelled orders get shipped because “cancelled” arrived before “paid”.Simulador de fluxoEngenheiro8 minE28Sistemas distribuídos: The Poison MessageOne malformed message stops every order behind it.Simulador de linha do tempoEngenheiro7 minE29Sistemas distribuídos: The Growing Kafka LagConsumer lag grows all day. Doubling the consumers changes nothing.Laboratório de performanceEngenheiro sênior9 minE30Sistemas distribuídos: The Broken SagaA failed shipment refunds the customer twice and tells them before it happens.Simulador de linha do tempoArquiteto10 minF31Design de sistemas: Design a URL ShortenerBillions of redirects, a few writes, unique short codes and click analytics — on a budget.Construtor de arquiteturaEngenheiro12 minF32Design de sistemas: Design a Rate LimiterA “100 requests per minute” limit lets clients through eight times faster than intended.Simulador de fluxoEngenheiro sênior10 minF33Design de sistemas: Design a Notification SystemMillions of e-mails and push messages — sent once, respecting preferences and provider limits.Construtor de arquiteturaEngenheiro sênior12 minF34Design de sistemas: The Cache StampedeEvery 60 seconds the homepage cache expires and 1,600 identical queries hit the database at once.Simulador de fluxoEngenheiro sênior9 minF35Design de sistemas: The Hot PartitionOne mega-seller overloads a single partition while the other 11 sit idle.Laboratório de performanceEngenheiro sênior8 minF36Design de sistemas: The Unavailable ServiceA “nice to have” recommendations widget takes the whole homepage down.Simulador de fluxoEngenheiro9 minG37Cloud e DevOps: The Zero-Downtime DeploymentEvery release causes a burst of errors. Fix the rollout, then the database migration order.Simulador de linha do tempoEngenheiro sênior12 minG38Cloud e DevOps: The Kubernetes CrashLoopA healthy application is killed by Kubernetes every 50 seconds.Laboratório de depuraçãoEngenheiro8 minG39Cloud e DevOps: The Broken Readiness ProbeA payment provider's hiccup takes down the whole shop, including pages that never take payments.Laboratório de depuraçãoEngenheiro sênior8 minG40Cloud e DevOps: The Autoscaling ParadoxThe autoscaler adds pods to fix latency — and latency gets worse.Laboratório de performanceArquiteto10 minG41Cloud e DevOps: The Failed CI/CD PipelineA pipeline that deploys to production before running the tests that would have caught the bug.Simulador de linha do tempoEngenheiro8 minG42Cloud e DevOps: The Secret That EscapedA cloud access key was pushed to a public repository. What do you do first?Simulador de linha do tempoEngenheiro sênior8 minH43Segurança: The Expired TokenUsers are logged out at random — always on pages that load several things at once.Simulador de linha do tempoEngenheiro8 minH44Segurança: The Broken AuthorizationAny logged-in customer can read any order by changing the id in the URL.Laboratório de depuraçãoEngenheiro9 minH45Segurança: The Dangerous QueryA customer search turns user input into SQL.Desafio de códigoExplorador7 minH46Segurança: The CORS ConfusionThe frontend can't call the API — and the first “fix” lets every website read user data.Simulador de fluxoEngenheiro8 minH47Segurança: The Invisible Browser RequestVisiting a harmless-looking page transfers money from the visitor's account.Simulador de fluxoEngenheiro sênior9 minH48Segurança: The Excessive PermissionsAn invoice service's leaked credentials could read every customer record in the company.Laboratório de depuraçãoEngenheiro sênior8 minI49Engenharia de IA: The Hallucinating RAGA support assistant confidently quotes a refund policy that no longer exists.Simulador de fluxoEngenheiro10 minI50Engenharia de IA: The Wrong DocumentAsked about error E-4011 on a ZX-200, the assistant answers with a generic reset guide for another model.Simulador de fluxoEngenheiro8 minI51Engenharia de IA: The Broken Chunking StrategyThe eligibility rules are split across two chunks, and the assistant only ever sees half of them.Laboratório de depuraçãoEngenheiro8 minI52Engenharia de IA: The Expensive Agent LoopAn agent spends $1.50 searching for a typo forty times.Simulador de linha do tempoEngenheiro sênior9 minI53Engenharia de IA: The Unsafe MCP ToolA helpful agent can read SSH keys, run shell commands and email anyone.Laboratório de depuraçãoEngenheiro sênior9 minI54Engenharia de IA: The Prompt Injection TrapA customer ticket tells the support agent to email the customer list — and it tries.Simulador de fluxoEngenheiro sênior8 minJ55Missões fullstack: The Black Friday CollapseCheckout melts down at 8 pm. Five roles, five root causes, one system.Laboratório de performanceArquiteto20 minJ56Missões fullstack: The Double-Charged CustomerOne payment, three teams, three partial fixes — and the customer is still charged twice.Simulador de fluxoArquiteto15 minJ57Missões fullstack: The Dashboard That Takes Eight SecondsSix widgets, 306 queries, 7 MB of JSON and one missing index.Laboratório de performanceEngenheiro sênior15 minJ58Missões fullstack: The Failed Production ReleaseA column rename breaks old pods, old apps — and the rollback.Laboratório de depuraçãoArquiteto15 minJ59Missões fullstack: The Disappearing OrderA customer's order exists, was paid, and never shipped. Nobody saw an error.Simulador de fluxoArquiteto14 minJ60Missões fullstack: The Enterprise AI AssistantAn internal assistant leaks salary bands, quotes an old policy, obeys a wiki page and costs twice its budget.Simulador de fluxoArquiteto18 minA61Programação e concorrência: The Racy Cache MapA hand-written cache loads the same price three times and sometimes forgets everything.Laboratório de depuraçãoEngenheiro8 minA62Programação e concorrência: The Starved Thread PoolEvery thread in the pool waits for work that can never start.Laboratório de depuraçãoEngenheiro sênior9 minB63Engenharia frontend: The Layout ThrashScrolling a table drops to 9 frames per second because every row forces a layout.Laboratório de performanceEngenheiro8 minB64Engenharia frontend: The Stale ClosureA React stopwatch shows 1 forever — and keeps ticking after you leave the page.Desafio de códigoExplorador6 minC65Engenharia backend: The Missing TimeoutA slow fraud-check vendor takes down checkout — and every other page with it.Laboratório de depuraçãoEngenheiro9 minC66Engenharia backend: The Mass AssignmentA profile update endpoint lets anyone promote themselves to admin.Desafio de códigoEngenheiro7 minD67Bancos de dados e SQL: The Invisible IndexLogin takes two seconds because the query no longer matches the index it was built for.Laboratório de performanceEngenheiro7 minD68Bancos de dados e SQL: The Migration That Locked the TableA schema change that drops a column before the code stops reading it.Simulador de linha do tempoEngenheiro sênior10 minE69Sistemas distribuídos: The Split-Brain SchedulerTwo schedulers both believe they are the leader, and customers get two invoices.Laboratório de depuraçãoEngenheiro sênior10 minE70Sistemas distribuídos: Last Write Wins (Somebody Else's)Notes edited on two devices silently overwrite each other based on device clocks.Simulador de linha do tempoEngenheiro sênior9 minF71Design de sistemas: Design a File Upload ServiceUsers upload large files; they must be scanned, thumbnailed and downloaded quickly — without the API carrying the bytes.Construtor de arquiteturaEngenheiro12 minF72Design de sistemas: The Midnight Thundering Herd1.2 million phones sync at exactly midnight, and their retries make it worse.Laboratório de performanceEngenheiro8 minG73Cloud e DevOps: The Configuration DriftA midnight hotfix made with kubectl disappears the next morning — and nobody knows what production really runs.Laboratório de depuraçãoEngenheiro8 minG74Cloud e DevOps: The Ungraceful ShutdownEvery rolling deployment drops a few hundred requests because pods stop in the wrong order.Simulador de linha do tempoEngenheiro sênior9 minH75Segurança: The Unverified TokenAn API reads JWT claims without verifying them — anyone can be anyone.Desafio de códigoEngenheiro8 minH76Segurança: The SSRF Image ProxyAn “import image from URL” feature fetches cloud credentials for an attacker.Simulador de fluxoEngenheiro sênior9 minI77Engenharia de IA: The Overflowing ContextA RAG assistant stuffs 40 chunks into the prompt, and the client silently cuts off the system rules.Laboratório de depuraçãoEngenheiro9 minI78Engenharia de IA: The Tenant Leak in Vector SearchA multi-tenant RAG assistant retrieves other companies' documents and asks the model not to mention them.Simulador de fluxoEngenheiro sênior9 minJ79Missões fullstack: The Slow Checkout TraceA 6.8-second checkout page, a distributed trace, and four teams each sure it's someone else's layer.Laboratório de depuraçãoArquiteto15 minJ80Missões fullstack: The Incident ResponseAn outage drags on because the team investigates the root cause before restoring service.Simulador de linha do tempoEngenheiro sênior10 minA81Programação e concorrência: The Blocked Event LoopOne slow login freezes every request on a Node.js server.Laboratório de depuraçãoEngenheiro8 minB82Engenharia frontend: The Hydration MismatchA server-rendered page flickers, jumps and shows the wrong date because the server and browser render different things.Laboratório de depuraçãoEngenheiro sênior8 minC83Engenharia backend: The GraphQL N+1A feed query triggers 713 SQL queries because every author field loads its user separately.Laboratório de performanceEngenheiro8 minD84Bancos de dados e SQL: The Transaction That Never EndedOne job keeps a transaction open for hours, and PostgreSQL can't clean up dead rows anywhere.Laboratório de depuraçãoEngenheiro sênior9 minE85Sistemas distribuídos: The Rebalance StormConsumers that take too long between polls get kicked out of the group, over and over.Laboratório de depuraçãoEngenheiro sênior9 minF86Design de sistemas: Design Search AutocompleteSuggestions on every keystroke for millions of users — without LIKE queries on the main database.Construtor de arquiteturaEngenheiro12 minG87Cloud e DevOps: The Noisy NeighbourA nightly batch job without resource limits starves checkout pods on the same node.Laboratório de depuraçãoEngenheiro8 minH88Segurança: The Markdown XSSA comment preview turns user Markdown into HTML and runs whatever scripts it contains.Desafio de códigoEngenheiro8 minI89Engenharia de IA: The Unevaluated Prompt ChangeA “small” prompt tweak ships to everyone and quietly breaks answers nobody tested.Simulador de linha do tempoEngenheiro8 minJ90Missões fullstack: The Cascading FailureA full CDN purge floods the origin, the pool runs dry, and client retries finish the job.Laboratório de depuraçãoArquiteto14 min