Solana developer interview questions and how to answer them

Solana developer interview questions center on the account model: programs hold no state of their own, every piece of data lives in an account the transaction must list up front, and safety depends on checking each account's owner, signer status and address. Expect questions on program derived addresses, cross-program invocations, rent, compute budgets and the SPL token programs, usually in Rust with the Anchor framework. Many interviews include reviewing a program for missing account checks, a frequent source of Solana bugs.

By Published 8 min read

What changes when you build on Solana

Developers coming from Ethereum usually stumble on the same idea: a Solana program is stateless code, and all state lives in separate accounts. A token balance is not a number inside the token program; it is a token account owned by that program. Because every transaction lists the accounts it will read and write, the runtime can run non-overlapping transactions in parallel, but it also means the caller chooses which accounts to pass in. A program that does not verify those accounts will happily operate on an attacker's fake ones. Interviewers test whether this way of thinking has become natural to you, and whether you write Rust that respects tight compute limits.

EVM habits and their Solana counterparts, a common interview comparison
ConceptOn an EVM chainOn Solana
StateStored inside the contractStored in accounts owned by the program
Who can change dataThe contract's own codeOnly the account's owner program may change its data or debit its lamports
Deterministic addressesCREATE2 for contractsProgram derived addresses from seeds and the program ID
Calling other codeExternal callsCross-program invocation, with signer privileges passed through
Execution costGas per operationCompute units per transaction, plus fees and optional priority fees
Main languageSolidityRust, often with Anchor
EVM habits and their Solana counterparts, a common interview comparison. Scroll sideways on a small screen.

How Solana developer interviews usually run

  1. ScreenPrograms you shipped, whether you used Anchor or native Rust, front-end or indexing work, and any audit experience.
  2. Concepts roundAccounts, PDAs, CPIs, rent, transactions and the token programs, often compared with EVM ideas.
  3. Rust and code exerciseWrite or extend a small Anchor program with tests, or review one for missing checks. Take-homes are common.
  4. System and client designAccount layout for a feature such as an escrow or a staking pool, plus how the client builds, signs and retries transactions.
  5. Team roundIncidents, audits, and how you handle a bug in a program that cannot be paused.

Account model questions

Account model questions, what they test and what a strong answer shows
QuestionWhat it testsWhat a strong answer shows
What fields does every account have?BasicsA lamport balance, a data byte array, an owner program, and a flag for whether it is executable
What is rent exemption?Storage costAccounts must hold a minimum lamport balance based on their data size to stay alive; programs check this when creating accounts
What is a program derived address and why is it off the curve?PDAsAn address derived from seeds and a program ID that has no private key, so only that program can sign for it
What is the bump seed for?PDA derivationA value added to the seeds to push the result off the curve; store the canonical bump and reuse it rather than searching every time
Why must a transaction list all accounts up front?Parallel runtimeSo the runtime can schedule transactions that touch different writable accounts at the same time
How does a program sign for a PDA in a CPI?Cross-program invocationIt invokes with signer seeds, and the runtime confirms they derive the PDA under the calling program
What is an associated token account?Token accountsThe standard token account address for a wallet and mint, derived so clients can find it without a lookup
What is the difference between the original token program and Token-2022?Token programsToken-2022 is a newer program with optional extensions such as transfer fees or metadata; programs must check which token program owns a mint
Account model questions, what they test and what a strong answer shows. Scroll sideways on a small screen.
use anchor_lang::prelude::*;

declare_id!("11111111111111111111111111111111"); // replace with your program ID

#[program]
pub mod counter {
    use super::*;

    pub fn increment(ctx: Context<Increment>) -> Result<()> {
        let counter = &mut ctx.accounts.counter;
        counter.count = counter.count.checked_add(1).ok_or(CounterError::Overflow)?;
        Ok(())
    }
}

#[derive(Accounts)]
pub struct Increment<'info> {
    #[account(
        mut,
        seeds = [b"counter", authority.key().as_ref()],
        bump = counter.bump,
        has_one = authority,
    )]
    pub counter: Account<'info, Counter>,
    pub authority: Signer<'info>,
}

#[account]
pub struct Counter {
    pub authority: Pubkey,
    pub count: u64,
    pub bump: u8,
}

#[error_code]
pub enum CounterError {
    #[msg("count overflow")]
    Overflow,
}
An Anchor instruction that only lets the stored authority update a PDA (teaching sketch, not compiled here).

Be ready to say what each line checks. Account<'info, Counter> confirms the account is owned by this program and carries the Counter discriminator. The seeds and bump confirm it is the PDA for this authority. has_one confirms the stored authority matches the account passed in, and Signer confirms that account signed. Remove any one of those and an interviewer will ask what an attacker could now do.

Anchor questions

  • What is the account discriminator? A short prefix Anchor writes at the start of account data to identify its type, so one account type cannot be passed off as another.
  • How do you size an account with init? Add the discriminator to the serialized size of every field, and plan for growth or use realloc later.
  • When is UncheckedAccount acceptable? When you validate it yourself, for example a program ID you compare with a known constant. Anchor asks you to document the reason in a comment.
  • What does the close constraint do? Sends the lamports to a destination and clears the account so it cannot be reused as if it were still live. Ask what happens if a program closes accounts by hand instead.
  • How do Anchor errors reach the client? Through error codes and messages in the program logs and the generated IDL, which client libraries map back to names.
  • What does the IDL give a front-end team? A description of instructions, accounts and types, used to generate typed clients.

Security questions

Common Solana vulnerability classes and the checks that prevent them
QuestionWhat it testsWhat a strong answer shows
What goes wrong if you skip an owner check?Owner validationAn attacker passes an account with the right layout created by their own program, and your code trusts its data
What is a missing signer check?AuthorizationThe program acts on behalf of an authority that never signed, so anyone can call an admin instruction
What is type confusion between accounts?Account typesTwo account types with similar layouts are swapped; discriminators prevent it
Why is an arbitrary CPI dangerous?Program ID checksIf the program to invoke comes from user input and is not checked, an attacker substitutes their own program
What can go wrong with PDA seeds?Seed designSeeds that are too broad let users share or collide on accounts; include the user's key or another unique value
Can the same account be passed twice?Duplicate accountsYes, unless you check; two mutable references to one account can corrupt balances in transfer logic
Can integer overflow happen in Rust programs?ArithmeticRelease builds can wrap unless overflow checks are enabled; use checked math on balances regardless
How can a closed account come back to life?Account closingIf lamports are drained but data is not cleared or marked, the account can be refunded within the same transaction and reused
Common Solana vulnerability classes and the checks that prevent them. Scroll sideways on a small screen.

Compute, transactions and client questions

  • What are compute units, and what do you do when an instruction runs out? A per-transaction budget of work; request a higher limit with the compute budget program, and reduce work such as logging, deserialization of large accounts and repeated PDA derivation.
  • How do priority fees work? Transactions can pay extra per compute unit to be scheduled ahead in busy periods; clients estimate a fee from recent conditions.
  • Why do transactions fail with an expired blockhash, and how do you handle it? A recent blockhash is valid for a limited window; rebuild and re-sign with a fresh one, and confirm the earlier one is truly gone before resending to avoid duplicates.
  • What limits how many accounts a transaction can use? The transaction size limit; versioned transactions with address lookup tables let you reference more accounts compactly.
  • What are the commitment levels? Processed, confirmed and finalized, trading speed for certainty. Pick per use case and explain why.
  • How would a front end send a transaction? Build instructions, simulate, have the wallet sign, send, then confirm with a sensible commitment and show clear errors. Name the client libraries you used and note they change quickly.
  • How would you index program activity? Subscribe to account or log updates over RPC for small needs, or use a dedicated indexing service or validator plugin for larger ones, and handle missed updates by backfilling.

Testing questions

  • How do you test an Anchor program? Integration tests against a local validator, plus faster in-process test harnesses where the team uses them, with unit tests for pure Rust logic.
  • What would you test for an escrow? Happy path, wrong signer, wrong mint, wrong token program, duplicate accounts, closing and reopening, and amounts at the edges.
  • How do you test against real program state? Clone accounts or programs from a live cluster into a local validator so tests use realistic data.

Fictional example

Answering "Tell me about a bug you caught in review"
I was reviewing a teammate's reward-claim instruction before an audit. It read a config account to find the reward rate, but the account was declared as an unchecked account so the program could support an older layout. Nothing verified who owned it. I wrote a test that created a fake config with the same layout under a throwaway program and set the rate absurdly high, and the claim paid out. We fixed it by migrating the old config to a typed Anchor account, adding an owner and seeds check, and keeping the test. I also added a review rule for our team: every unchecked account needs a comment saying what validates it, and reviewers check that the comment is true.

Behavioral questions

  • How would you respond if your program were exploited? Use upgrade authority or pause paths if they exist, coordinate disclosure, protect users and write a clear postmortem.
  • Should a program keep its upgrade authority? Discuss trust: upgrades allow fixes but give a key holder power; multisig control, timelocks or making the program immutable are real options.
  • How do you keep up with a fast-moving ecosystem? Release notes for the runtime and Anchor, published audit reports and incident write-ups.

If the role also covers EVM chains, the Solidity developer guide and the broader blockchain developer guide cover that side. For ownership, borrowing and error handling in Rust itself, see the Rust guide.

A two-week preparation plan

  1. Days 1 to 3: accounts and PDAsDraw the accounts for a token transfer and an escrow. Derive PDAs in a script and explain each seed.
  2. Days 4 to 6: AnchorBuild a small program with init, constraints, a CPI to the token program and close, with tests.
  3. Days 7 to 9: securityRemove one check at a time from your program and write a test that exploits each gap.
  4. Days 10 to 11: clientWrite a script that builds, simulates, sends and confirms a transaction, then handle an expired blockhash.
  5. Days 12 to 14: rehearsalExplain your program's account layout out loud and practice a review story and an incident story.

Account layouts are hard to explain clearly without a whiteboard, and practice is where you find the gaps. Natively, an AI interview assistant for Mac and Windows, transcribes a mock design or review session on your computer, so you can check whether you named the owner, signer and seeds check for every account. During practice it can read an Anchor error or a program snippet from a screenshot and suggest what to discuss, and the saved session history shows which topics keep tripping you up.

Questions people ask

What are common Solana developer interview questions?

How the account model works, what a program derived address is and why it has a bump, how a program signs in a cross-program invocation, what rent exemption means, which account checks prevent exploits, and how to handle compute limits and expired blockhashes.

Do I need Rust for a Solana developer job?

For on-chain program roles, yes in most cases, usually with the Anchor framework. Client and front-end roles lean on TypeScript libraries, but still expect you to understand accounts and transactions.

What security topics come up in Solana interviews?

Missing owner and signer checks, account type confusion, unchecked program IDs in CPIs, weak PDA seeds, duplicate mutable accounts, unchecked arithmetic and closing accounts safely.

How is Solana development different from Ethereum development?

Solana programs are stateless and data lives in accounts the caller passes in, so validating each account is central. Transactions declare accounts up front, which enables parallel execution, and cost is measured in compute units.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP