
Real Interview Questions for the Software Engineer at Totvs
NewPractice MCQs
Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A Totvs team maintains a Node 20 API and a React dashboard sharing order payloads, with frequent refactors and a latency-sensitive checkout endpoint. The gateway sometimes sends amounts as strings instead of numbers, and the current `any` types hide the mismatch until checkout fails. Which approach best fits this situation?
Answer to see the discussion.
MCQ-2A React dashboard lifts a search filter string to `App` state, so every keystroke in `SearchPanel` re-renders the expensive `DataGrid` even though only `SearchPanel` reads the filter. Where should the filter string live to stop those re-renders?
Answer to see the discussion.
MCQ-3A Totvs mobile client shows an order list needing only id, total and status, but `GET /orders` returns 180 KB across 40 fields. Line items are needed only on a detail screen opened for a few orders. A CDN caches those GET responses for 60 seconds because origin capacity is capped, and many installed clients cannot be updated quickly. Which API change best fits this situation?
Answer to see the discussion.
MCQ-4A Totvs checkout API's p99 latency rose from 90 ms to 1,200 ms after a deploy, while app CPU stays at 30% and memory is flat. APM traces show 85% of request time in `SELECT ... WHERE customer_email = ?` on a 40 million row orders table with no index on that column. What change should the team make first?
Answer to see the discussion.
MCQ-5A Totvs API runs two replicas in production behind a load balancer, and a new build raises p99 latency from 120 ms to 900 ms after a rolling deploy. The previous build is still tagged and healthy, and the team needs traffic restored within minutes without a database migration. Which deployment action restores service fastest?
Answer to see the discussion.
MCQ-6A batch job receives 4 million unsorted integers and must report whether any two sum to a target within 250 ms using 512 MB. Duplicates are allowed and the input fits in memory. Which approach fits these limits?
Answer to see the discussion.
MCQ-7A Totvs login service must migrate leaked unsalted SHA-256 hashes without forcing an immediate reset. Login containers allow 64 MB per verification, admin passphrases run to 120 characters, and attackers crack dumps on GPU rigs. Which replacement storage should the service adopt for new hashes?
Answer to see the discussion.
MCQ-8A candidate with four years building payment APIs at a fintech now interviews for a TOTVS role maintaining ERP modules for Brazilian small and mid-sized businesses. They want long-term product work in enterprise software rather than consumer growth. Which motivation best fits this candidate and role?
Answer to see the discussion.
MCQ-9You and the engineer who owns billing disagree on splitting the orders service before a Friday release. Your design is faster to build, hers avoids touching billing tables, the tech lead is on leave until Monday, and neither design has been tested against production billing traffic. What is your best next step?
Answer to see the discussion.
MCQ-10A candidate at Totvs says she led the migration of invoice PDF generation from a shared service to a queued worker. She alone rewrote the renderer, cut p95 from 4.2 seconds to 310 milliseconds, and support tickets fell 38% in the next month. The interviewer asks for the project she is proudest of and her specific contribution. Which account should she give?
Answer to see the discussion.
MCQ-11A Totvs engineer finishes a course on a new queue library during learning time. Her team already has a working queue, customers report no delivery delays, and two teammates are blocked on the same migration she studied. What should she do next to turn that learning into impact?
Answer to see the discussion.
MCQ-12A Totvs engineer wants to learn Kafka to prototype an ERP event integration, with only 30 minutes on weekdays and no manager-assigned training time. They keep abandoning weekend courses by week three, no teammate knows Kafka, and they want skills beyond their current tickets. Which weekly habit best fits this constraint?
Answer to see the discussion.
MCQ-13A Totvs engineer is asked about teamwork and improvement. Feedback says she interrupts in design reviews and rarely invites quieter teammates to speak, though she already rotates as facilitator and the team reads RFCs asynchronously. She wants a weekly practice she can track. Which answer shows self-awareness with a concrete plan?
Answer to see the discussion.
MCQ-14A Postgres orders table has 30 million rows and a B-tree index on `customer_email`. A lookup `WHERE LOWER(customer_email) = 'ana@example.com'` takes 2 seconds and its plan shows a sequential scan, while the same value without `LOWER` uses the index in 4 ms. Stored emails have mixed case, so dropping `LOWER` would miss matches. What change makes this lookup use an index?
Answer to see the discussion.
MCQ-15A Totvs engineer starts Monday with a checkout bug affecting paying customers and an end-of-day SLA, a feature promised for Friday, and three PR reviews for next sprint. She can complete only one major item before her on-call rotation begins. Which item should she start with today?
Answer to see the discussion.
MCQ-16A Totvs engineer describes a habit that sets her apart: before every fix, large or small, she spends two minutes writing the failure she expects, shares it with the whole team in standup, and reviews it after shipping. Her team has seen fewer repeat defects since she started. Which habit matches her description?
Answer to see the discussion.
MCQ-17A Totvs ERP `orders` table has a row-level `AFTER INSERT` trigger that updates `customer_totals` and writes an audit row per order. A nightly import inserts 2 million rows in one statement and now takes 6 hours instead of 40 minutes, while ad-hoc SQL inserts arrive concurrently during the import and must keep the same totals and audit trail. What change should the team make first?
Answer to see the discussion.
MCQ-18A Totvs enterprise platform has 12 product teams building 40 internal applications, each maintaining its own button and form components with inconsistent styling. Teams need patch fixes within days but cannot coordinate release windows across all applications. Which library structure best fits this scale?
Answer to see the discussion.
Curated: · Written: · Reviewed: