Engineering

Smart Contract Developer mock interview questions

19 questions a Smart Contract Developer panel actually asks, with what each one tests and what a strong answer contains, then practice any of them live. Solidity, security review and protocol design rounds for smart contract developer interviews.

No account needed

Answer one real Smart Contract Developer question now

A question a Smart Contract Developer panel actually asks, answered out loud, scored on what you said and how you said it. Under two minutes, and nothing to sign up for.

“Here is a withdraw function that sends ether before updating the user's balance. What is the vulnerability, and how do you fix it?”

We never store the audio. Your answer is deleted within 24 hours unless you save the result.

  • Adaptive follow-ups, not a fixed question list
  • Rubric scorecard with evidence from your answers
  • Voice or text, with delivery coaching on voice sessions

Thinking past the interview? Carmen can help with your whole Smart Contract Developer career: a switch, a raise, or what comes next.

19 smart contract developer mock interview questions

The questions a Smart Contract Developer panel actually asks, with what each one is testing and what a strong answer contains. Click any question to run it in a live session: your AI interviewer will cover it and score how you answer.

  1. 1.

    Here is a withdraw function that sends ether before updating the user's balance. What is the vulnerability, and how do you fix it?

    Why they ask it: Reentrancy is the canonical smart contract bug. Not spotting it immediately usually ends the interview.

    A strong answer: The external call hands control to the recipient, which can call back into withdraw before the balance is reduced and drain funds. Fix with checks-effects-interactions: update state before the external call, and add a reentrancy guard as defence in depth. Mention cross-function and read-only reentrancy as variants, and that token callbacks, such as those in some token standards, create the same risk.

  2. 2.

    How does storage work in the EVM, and how does that affect how you write gas-efficient contracts?

    Why they ask it: Gas cost is dominated by storage, and understanding layout is basic competence.

    A strong answer: Contract storage is a key-value store of 32-byte slots, and writing to storage is among the most expensive operations. Pack smaller variables into one slot where they are used together, read a storage variable into memory once rather than repeatedly, use calldata for external function inputs, use events for data that only needs to be read off-chain, and avoid unbounded loops over storage. Balance gas savings against readability and safety.

  3. 3.

    Why are unbounded loops over user-controlled arrays dangerous in a contract?

    Why they ask it: A denial of service pattern specific to blockchain.

    A strong answer: Each transaction has a gas limit, so a loop that grows with user data can eventually cost more than a block allows, permanently bricking the function, for example a payout function that iterates all users. Fix with pull-based patterns where users withdraw their own funds, pagination, or data structures that avoid iteration.

  4. 4.

    Your protocol needs to be upgradeable. How do proxy patterns work and what risks do they introduce?

    Why they ask it: Upgradeability is a common design decision with sharp edges.

    A strong answer: A proxy holds the state and delegates calls to an implementation contract with delegatecall, so the implementation can be swapped. Risks: storage layout collisions between versions, uninitialised implementation contracts, function selector clashes, and centralisation, since whoever controls upgrades controls user funds. Mitigations: follow a standard proxy pattern, preserve storage layout, use initialisers, and put upgrades behind a timelock and multi-signature approval.

  5. 5.

    A lending protocol uses a single decentralised exchange pool's spot price as its price oracle. What could go wrong?

    Why they ask it: Oracle manipulation is a major real-world attack class.

    A strong answer: An attacker can move the spot price within one transaction, often with a flash loan, borrow against inflated collateral or trigger unfair liquidations, then restore the price. Mitigate with time-weighted average prices, robust decentralised oracle networks, multiple sources, sanity bounds and circuit breakers.

  6. 6.

    How do you test a contract before it goes to audit and mainnet?

    Why they ask it: Testing discipline matters more when code is immutable and holds value.

    A strong answer: Unit tests for every function and revert path, fuzz tests and invariant tests that assert properties such as total supply equalling the sum of balances, fork tests against real mainnet state for integrations, static analysis tools, and a testnet deployment. An external audit is an addition, not a replacement, and a bug bounty after launch helps.

  7. 7.

    Tell me about a time you decided not to ship something, or to reduce scope, because of security risk.

    Why they ask it: Smart contract developers face pressure to launch quickly. The interviewer wants risk discipline.

    A strong answer: A specific feature, the risk identified, how it was communicated to the team or founders, the decision made such as a smaller launch, caps on deposits or delaying for audit, and the outcome.

How the Smart Contract Developer interview runs

Usually a screen with a founder or lead engineer, then a technical round on Solidity and the EVM: storage, gas, access control and common vulnerabilities. Many teams use a practical security exercise, reviewing a vulnerable contract or completing a small audit-style challenge, and some set a take-home building a contract with tests. A final round covers upgradeability, deployment and how you think about shipping code that cannot easily be changed once it holds funds.

What the panel scores

Security mindset

Whether you think like an attacker by default.

  • Spots reentrancy and access control flaws quickly
  • Understands oracle and flash loan risks
  • Prefers pull patterns and defence in depth

EVM and Solidity depth

Whether you understand what your code does on-chain.

  • Explains storage and gas costs
  • Knows delegatecall behaviour
  • Avoids unbounded operations

Testing discipline

Whether your code is proven before it holds funds.

  • Uses fuzzing and invariant tests
  • Tests against forked state
  • Treats audits as one layer

Design judgment

Whether you make sound tradeoffs for immutable systems.

  • Weighs upgradeability against trust
  • Uses timelocks and multi-signature controls
  • Reduces scope when risk is high

Common questions in every interview

These come up in almost every Smart Contract Developer interview regardless of the company or the round.

  1. 8.

    Tell me about yourself.

    Why they ask it: Opens the interview and sets the frame. The interviewer is checking whether you can select what matters for this job rather than narrate your whole history.

    A strong answer: A 60-90 second arc: where you are now, one or two proof points that match the posting, and why this role is the logical next step. Present, past, then future.

  2. 9.

    Why do you want this role?

    Why they ask it: Tests whether you read the job description or mass-applied. Weak answers are about what the candidate gets; strong answers connect to the work itself.

    A strong answer: Two specifics from the posting or the company's actual work, plus an honest line about what you want to get better at here.

  3. 10.

    Walk me through your resume.

    Why they ask it: Checks that your story holds together and that the transitions were deliberate rather than accidental.

    A strong answer: Chronological but fast, with a reason attached to each move and more time on the roles closest to this one.

  4. 11.

    Tell me about a time you failed.

    Why they ask it: Tests self-awareness and whether you own outcomes. Interviewers are listening for a real failure, not a disguised strength.

    A strong answer: A genuine miss, what you specifically got wrong, the cost, and the concrete thing you changed afterwards that has since held up.

  5. 12.

    Tell me about a conflict with a coworker or manager.

    Why they ask it: Predicts how you behave when the team disagrees. The trap is blaming the other person.

    A strong answer: The substance of the disagreement, what you did to understand their position, how it resolved, and what the working relationship looked like after.

  6. 13.

    What's your greatest strength?

    Why they ask it: Checks whether you know what you're actually good at and can prove it.

    A strong answer: One strength that maps to the posting, plus a short example where it produced a measurable result.

  7. 14.

    What's your greatest weakness?

    Why they ask it: Tests honesty and whether you're actively working on something. Rehearsed non-answers ('I work too hard') read as evasive.

    A strong answer: A real limitation that isn't core to the job, the system you built to manage it, and evidence it's improving.

  8. 15.

    Tell me about a time you had to influence someone without authority.

    Why they ask it: Almost every role depends on getting people who don't report to you to change course.

    A strong answer: What you wanted, why they resisted, the evidence or framing that moved them, and what actually shipped as a result.

  9. 16.

    Where do you see yourself in five years?

    Why they ask it: Tests whether this job fits your trajectory, which is a retention question in disguise.

    A strong answer: A direction rather than a title, and a line about the skills this role would build toward it. Vague ambition and rigid title-chasing both land badly.

  10. 17.

    Why are you leaving your current job?

    Why they ask it: Screens for red flags. Interviewers listen for how you talk about people you no longer work with.

    A strong answer: Forward-looking and specific about what you're moving toward. Criticism of a former employer costs you more than it gains, even when it's deserved.

  11. 18.

    What are your salary expectations?

    Why they ask it: Checks whether you've done market research and whether you're in range before anyone spends more time.

    A strong answer: A researched range with your target near the bottom of it, framed against the scope of the role. Deflect once if the posting has no band, then answer.

  12. 19.

    Do you have any questions for us?

    Why they ask it: The most under-prepared question in the interview, and the one that most changes the final impression.

    A strong answer: Two or three questions about how the team actually works: what the first 90 days look like, how success is measured, what the hardest part of the job is.

Every round ends in a scorecard like this

Your Smart Contract Developer answers, quoted back, scored on what this role is judged on, with the line to say instead.

Round Zero interview scorecard: a quoted answer flagged 'Light on metrics', a suggested fix, and an overall score of 84 out of 100.Round Zero interview scorecard: a quoted answer flagged 'Light on metrics', a suggested fix, and an overall score of 84 out of 100.

Real screen from the app. Sample from a product design round.

Related roles

All Engineering →

No spam. Unsubscribe anytime.

Ready to practice as a Smart Contract Developer?

Sign up free, no card. 30 voice minutes and unlimited typed interviews, each ending in the complete scorecard: rubric scores, strengths, and what to fix next. Nothing is blurred.

  • ✓ Predefined role or paste any job description
  • ✓ Rubric scores with evidence quotes
  • ✓ 888+ roles to choose from

Questions & answers

Is the Smart Contract Developer mock interview free?
Yes. 30 voice minutes and unlimited typed Smart Contract Developer interviews, no card. You get the complete rubric scorecard every time, with the evidence quoted from your own answers. Nothing is blurred.
Can I use my own job description instead?
Yes. Predefined roles are starting points. Paste any JD in the setup form and your AI interviewer will tailor questions to that posting.
How is scoring tailored to this role?
We pre-fill a realistic Smart Contract Developer job description and interview format so questions and the scorecard match how this role is actually interviewed.
Should I tailor my resume before practicing?
Run a resume fit check against a Smart Contract Developer job description first, then practice the interview with the same JD for a tighter loop.