Interview prep · written by the FindAJobAI team

Drupal Developer Interview Questions (2026) and How to Answer

By FindAJobAI Team Updated How we wrote this page

Drupal developer interviews usually cover PHP and the Drupal APIs (services, plugins, hooks, entities), Twig theming, the cache system, configuration management and migrations. Many teams also review a short custom module or ask you to talk through a past upgrade.

Interviewers want to see that you write clean, testable code instead of piling up contributed modules, that you understand how caching and access checks really work, and that you can move content safely between versions.

Below: 30 questions with what each one really asks and an answer outline, full sample answers to the 10 most asked, red flags to avoid and a 7-day plan.

Answering with STAR

Tell each story in four steps: the situation in a sentence, your task, the actions you took (most of the answer) and the result, with a number if you have one. Aim for about two minutes; the outlines show what to include, the details must be yours.

Behavioural questions (1–10)

How you've handled real situations. Answer each with one true story, in STAR order.

  1. 1.Tell me about a Drupal migration you planned and delivered.

    What they're really asking: Can you move a large site without losing content, links or search visibility?

    Answer outline (STAR)

    • SituationA Drupal 7 site with thousands of nodes, many file attachments and old bookmarked paths.
    • TaskMove everything to Drupal 10 with a short freeze and no broken links.
    • ActionWrote custom process plugins, ran several rehearsals on a production copy, compared counts after each run and built a redirect map for retired paths.
    • ResultThe cutover finished inside its window, and no one reported missing pages in the following weeks.

    Full sample answer (fictional example)

    I led the move of a transit authority's Drupal 7 site, with around twenty thousand nodes and many PDFs, to Drupal 10. I wrote custom process plugins for their odd date fields and file paths, and I ran three rehearsals on a copy of production, comparing node and file counts after each run. I also built a redirect map for every old path, because riders and journalists had years of bookmarks. On cutover weekend the import finished inside the window, and the support inbox had no missing-page complaints the next week.

  2. 2.Describe a time you wrote a custom module instead of using a contributed one.

    What they're really asking: Do you know when custom code is worth maintaining yourself?

    Answer outline (STAR)

    • SituationA permits workflow that three contributed modules covered only partly and in conflicting ways.
    • TaskDeliver the workflow cleanly without forking or patching other people's modules.
    • ActionCompared the options, wrote one module with a custom entity, a service for the status logic and an event subscriber for notifications, and covered it with unit tests.
    • ResultThe workflow shipped on time, the three modules were removed, and later changes took hours instead of days.

    Full sample answer (fictional example)

    A county permits workflow was spread across three contributed modules that each covered part of it and conflicted on updates. I compared what each offered against the real process and decided one custom module would be simpler. I built a permit entity, a service holding the status rules and an event subscriber that sends notifications when status changes, all with unit tests. After launch we removed the three modules, and later changes to the rules took hours instead of days because the logic lived in one tested service.

  3. 3.Tell me about a time a deployment broke configuration on production.

    What they're really asking: Can you recover quickly and fix the process behind the mistake?

    Answer outline (STAR)

    • SituationA release that overwrote field settings editors had changed directly on production.
    • TaskRestore the lost settings and stop configuration drifting again.
    • ActionRestored the settings from the previous export, then added Config Split for environment values and blocked config edits on production for most roles.
    • ResultEditors lost no content, and drift between environments stopped after the change.

    Full sample answer (fictional example)

    A release once overwrote field settings that editors had changed directly on production, because our config export did not include them. I restored the settings from the previous export the same morning, and no content was lost. Then I looked at why it happened. I set up Config Split so environment-specific values stayed separate, limited config changes on production to two admins, and added a check in CI that fails if production config differs from Git. We have not had config drift since.

  4. 4.Describe a time you explained a Drupal decision to non-technical stakeholders.

    What they're really asking: Can you help content owners choose without hiding behind jargon?

    Answer outline (STAR)

    • SituationA communications team that wanted a page builder with unlimited layout options on a slow site.
    • TaskAgree an approach that met their needs and kept pages fast and accessible.
    • ActionBuilt two demo pages, one with free layouts and one with a set of Layout Builder sections, and walked through speed and accessibility results with them.
    • ResultThey picked the sections, and the team now builds campaign pages without developer tickets.

    Full sample answer (fictional example)

    A communications team asked for a page builder so they could lay out campaign pages freely, but the site was already slow on phones. I built two demo pages, one with free layouts and one with a set of Layout Builder sections, and showed them both on a phone with load times and an accessibility check. I explained in plain words what editors could change in each. They chose the sections, and they now build campaign pages without sending tickets to my team.

  5. 5.Tell me about a contribution you made to a Drupal.org project.

    What they're really asking: Do you work well in the open source community Drupal depends on?

    Answer outline (STAR)

    • SituationA contributed module throwing errors on PHP 8 that blocked our upgrade.
    • TaskFix the problem for us and for other users of the module.
    • ActionReproduced the bug, wrote a patch with a test, opened an issue with clear steps and answered the maintainer's review comments.
    • ResultThe patch was committed in the next release, and our upgrade went ahead on schedule.

    Full sample answer (fictional example)

    A contributed module we relied on threw errors on PHP 8, which blocked our upgrade. I reproduced the problem on a clean site, found a deprecated function call, and wrote a patch with a small test. I opened an issue with exact steps, attached the patch and answered the maintainer's questions about edge cases. The fix was committed in the next release, and our upgrade went ahead on schedule. It also taught me how much a clear issue report speeds up review.

  6. 6.Tell me about a time you introduced automated testing on a Drupal project.

    What they're really asking: Can you raise quality on a team that had no tests?

    Answer outline (STAR)

    • SituationA site where every release needed a full day of manual clicking.
    • TaskReduce release risk without slowing the team down.
    • ActionStarted with a few functional tests for login, search and the main forms, ran them in CI on every merge request and added unit tests for new services.
    • ResultRelease checks shrank to under an hour, and two regressions were caught before production in the first month.

    Full sample answer (fictional example)

    On one site every release needed a full day of clicking through pages by hand. I started small, with functional tests for login, search and the three main forms, and set them to run in CI on every merge request. For new code I wrote unit tests for each service. Within a month the tests caught two regressions before production, which convinced the rest of the team. Release checks went from a day to under an hour, and I wrote a short guide so others could add tests.

  7. 7.Describe a time you trained editors on a new Drupal workflow.

    What they're really asking: Do you care about the people who publish content?

    Answer outline (STAR)

    • SituationA hospital communications team moving to Content Moderation with review states.
    • TaskGet editors confident without a flood of support requests.
    • ActionWrote a short illustrated guide, ran two sessions using their real pages and set permissions so drafts could not be published by mistake.
    • ResultQuestions dropped sharply after a month, and no unapproved pages went live.
  8. 8.Tell me about a disagreement with another developer over architecture.

    What they're really asking: Can you disagree constructively and reach a decision?

    Answer outline (STAR)

    • SituationA colleague wanted a decoupled front end for a small brochure site.
    • TaskReach a choice that suited the team's skills and the client's budget.
    • ActionListed the costs of each option, including preview and forms, built a small spike of both and asked the product owner to weigh in with us.
    • ResultWe kept the Twig theme for that site, and agreed criteria for when decoupling is worth it.
  9. 9.Describe a time you handled a sudden traffic spike on a Drupal site.

    What they're really asking: Can you keep a site online under pressure?

    Answer outline (STAR)

    • SituationA local news story sent many times the usual visitors to a council's emergency page.
    • TaskKeep the page available and current while editors kept updating it.
    • ActionConfirmed the reverse proxy was caching anonymous traffic, shortened the max-age for that page only and moved a heavy View off the page.
    • ResultThe site stayed up through the peak, and updates appeared within a minute.
  10. 10.Tell me about mentoring a newer Drupal developer.

    What they're really asking: Can you help others grow while keeping standards?

    Answer outline (STAR)

    • SituationA junior developer whose modules used static service calls and no cache metadata.
    • TaskImprove their code without discouraging them.
    • ActionPaired on one module to refactor it with injection, explained cache tags with a live example and set small review goals.
    • ResultWithin two months their merge requests needed far fewer review rounds.

Technical and role-skill questions (11–22)

Can you do the work itself? Think out loud and name the trade-offs.

  1. 11.How do services and dependency injection work in Drupal?

    What they're really asking: Core architecture that separates modern Drupal developers from Drupal 7 habits.

    Answer outline

    • Services are reusable objects defined in a `services.yml` file and managed by the Symfony container.
    • Classes receive the services they need through the constructor or a `create()` method, which keeps code testable.
    • Calling `\Drupal::service()` inside classes should be avoided where injection is possible.

    Full sample answer (fictional example)

    In Drupal, services are objects registered in a module's `services.yml` file and built by the Symfony container. When my class needs something, like the entity type manager or a logger, I ask for it in the constructor, or in a `create()` method for controllers, forms and plugins. That keeps my code testable, because I can pass mocks in unit tests. I avoid `\Drupal::service()` inside classes and only use it in procedural code such as hooks, where injection is not available.

  2. 12.Explain cache tags, cache contexts and max-age in Drupal's render system.

    What they're really asking: Caching mistakes cause stale pages or slow sites, so teams test this closely.

    Answer outline

    • Cache tags say which data a render array depends on, such as `node:12`, so it is cleared when that data changes.
    • Cache contexts say what the output varies by, such as user roles or URL query, and max-age sets how long it may live.

    Full sample answer (fictional example)

    I think of them as three questions. Cache tags answer what data this output depends on, for example `node:42` or a config object, so when that changes Drupal clears exactly the affected entries. Contexts answer what the output varies by, such as the user's roles or the current language. Max-age answers how long it can live at most. When I build a block, I add the tags of every entity I load, because missing tags are the main cause of stale pages editors complain about.

  3. 13.How does configuration management work between environments?

    What they're really asking: Configuration bugs are a common source of production incidents.

    Answer outline

    • Site configuration is exported to YAML with `drush config:export`, committed to Git and imported with `drush config:import` on deploy.
    • Environment-specific values belong in Config Split or settings overrides, and content stays out of config.

    Full sample answer (fictional example)

    I make configuration changes on my local site, export them with Drush to YAML files, and commit them alongside code. On deploy, the pipeline runs database updates and then imports config, so every environment matches Git. Values that should differ, like API keys or development modules, go in settings files or Config Split. I keep content, such as menu links editors manage, out of config. Before merging I review the YAML diff, because it shows exactly which settings will change on production.

  4. 14.What is the difference between a hook, an event subscriber and a plugin?

    What they're really asking: Shows whether you can pick the right extension point.

    Answer outline

    • Hooks are functions core and modules call at set points, such as altering forms or entities.
    • Event subscribers react to Symfony events like requests and responses.
    • Plugins are swappable classes discovered by annotation or attribute, such as blocks, fields and migrate process plugins.
  5. 15.How do you control access to a custom route?

    What they're really asking: Security basics for any module that exposes pages or endpoints.

    Answer outline

    • Set requirements in the routing file, such as `_permission` or `_entity_access`, or use a custom access checker service.
    • Return access results with cacheability so access checks do not break the page cache.
  6. 16.How would you speed up a slow Drupal page?

    What they're really asking: Can you diagnose performance with evidence?

    Answer outline

    • Measure first with Webprofiler, database logs or an APM tool to find slow queries and uncacheable render arrays.
    • Fix missing cache metadata, heavy entity loads and slow Views, then add Redis and a reverse proxy where needed.
  7. 17.How do you theme output with Twig in Drupal?

    What they're really asking: Theming is a daily task on most Drupal teams.

    Answer outline

    • Override templates in the theme using the suggestion names shown in Twig debug mode.
    • Add variables in preprocess functions, keep logic out of templates and attach CSS and JavaScript through libraries.
  8. 18.How does the Migrate API structure a migration?

    What they're really asking: Migrations are a core skill for teams retiring older versions.

    Answer outline

    • Each migration has a source plugin, a set of process plugins mapping fields and a destination plugin.
    • Migrations can depend on each other, run with Drush, and be rolled back and rerun with ID maps.
  9. 19.What are entity types, bundles and fields?

    What they're really asking: The content model underpins everything in Drupal.

    Answer outline

    • An entity type, such as node or user, defines storage and behaviour, while bundles like Article are subtypes.
    • Fields attach data to bundles and have storage, widget and formatter settings.
  10. 20.How do you write tests for a Drupal module?

    What they're really asking: Your testing habits show the quality of your code.

    Answer outline

    • Use unit tests for isolated classes, kernel tests for code that needs the database and functional tests for pages and forms.
    • Run them with PHPUnit in CI, often using DDEV or containers to match production.
  11. 21.What is the Batch API and the Queue API used for?

    What they're really asking: Long tasks can time out if handled badly.

    Answer outline

    • Batch API splits a long task into steps run over several requests with a progress bar for a user.
    • Queue API stores items to process later in cron or a worker, which suits background jobs.
  12. 22.How do you expose Drupal content to a JavaScript front end?

    What they're really asking: Decoupled builds are common on larger platforms.

    Answer outline

    • Use core JSON:API or REST, with authentication such as OAuth for protected data.
    • Plan previews, routing and cache invalidation for the front end before building.

Take-home or live exercise: tips

Drupal developer interviews often include reviewing a short custom module for bugs and security issues, writing a small block plugin or service as a take-home, or talking through a migration plan for a sample Drupal 7 content model.

  • Check access requirements, cache metadata and injected services first when reviewing module code.
  • Use Drush generators or a clean structure with services and plugins rather than putting logic in hooks.
  • Add a short readme with install steps, decisions and what you would improve with more time.
  • Explain how editors and caching will behave with your code, not only how it works on your machine.

Situational questions (23–30)

Scenarios that test judgement: say what you'd do first, and why.

  1. 23.A security advisory marked critical is published for a module you use. What do you do?

    What they're really asking: Can you act quickly without skipping testing?

    Answer outline

    • Read the advisory to see whether your configuration is affected and how it can be exploited.
    • Update with Composer, run tests on staging and deploy the same day, then check logs for signs of earlier abuse.

    Full sample answer (fictional example)

    I read the advisory first to see whether our configuration is affected and how the flaw could be used. If it applies, I update the module with Composer on a branch, run our tests and a quick manual check of the affected feature on staging, and deploy the same day. Afterwards I search logs for any requests that match the exploit pattern from before the fix. Finally, I note the update in our changelog so the team knows what changed and why.

  2. 24.Editors say a page shows old content after they save. How do you investigate?

    What they're really asking: Can you trace a cache problem across layers?

    Answer outline

    • Check whether the block or render array has the right cache tags for the content it shows.
    • Then check reverse proxy and CDN purging rules to see whether invalidations reach them.
  3. 25.You inherit a Drupal 9 site with logic spread across many hook functions in one module file. What do you do?

    What they're really asking: Can you refactor legacy Drupal code without breaking it?

    Answer outline

    • Put the site under tests first, even simple functional ones, so changes can be checked.
    • Move logic into services step by step, deploying small changes rather than one large rewrite.
  4. 26.A stakeholder asks to keep a Drupal 7 site running for another two years. How do you respond?

    What they're really asking: Can you weigh risk and cost honestly?

    Answer outline

    • Explain the end of community security support and what extended support or hosting changes would cost.
    • Offer a phased plan, such as moving the most-visited sections first.
  5. 27.The production database has grown very large and backups are slow. What do you check?

    What they're really asking: Can you reason about database health in Drupal?

    Answer outline

    • Look at revision tables, cache tables, watchdog logs and old sessions.
    • Prune revisions on a schedule and move caches to Redis.
  6. 28.A content owner wants a field added to every content type by tomorrow. How do you handle it?

    What they're really asking: Can you meet a deadline without hurting the content model?

    Answer outline

    • Ask what the field is for, since a shared field storage or a taxonomy may fit better.
    • Add it through config on development, test the export and deploy the normal way.
  7. 29.You find that an important contributed module is no longer maintained. What do you do?

    What they're really asking: Can you manage the risk in contributed module dependencies?

    Answer outline

    • Check open issues and forks, and whether a maintained alternative exists.
    • Offer to co-maintain it or plan a replacement, and track it in the team's risk list.
  8. 30.Search results on the site are wrong after a migration. How do you investigate?

    What they're really asking: Can you debug Search API indexing?

    Answer outline

    • Check whether the index was rebuilt after import and whether field mappings changed.
    • Reindex on staging, compare counts and fix processors before reindexing production.

Red flags to avoid in your answers

Each one is quick to fix before the day.

  1. Solving every requirement by enabling another contributed module.

    Explain when you write custom code and how you judge a module's maintenance and security record first.

  2. Ignoring cache metadata in custom blocks and controllers.

    Show how you add tags and contexts and how you test that content updates appear for visitors.

  3. Making configuration changes directly on production.

    Describe exporting config to Git and deploying it through the normal pipeline with review.

  4. Having no experience or plan for major version upgrades.

    Talk about deprecation checks, Upgrade Status and rehearsed migrations as part of your process.

How to prepare for a Drupal developer interview in 7 days

An hour or two a day is enough; the order matters more than the length.

  1. Day 1: Services and plugins review

    Write a small module with an injected service, a block plugin and an event subscriber, and explain each piece aloud.

  2. Day 2: Cache metadata drill

    Build a block that lists recent nodes, add tags and contexts, and confirm it updates when a node is saved.

  3. Day 3: Config workflow check

    Export, change and import configuration on a local site, then set up a simple Config Split for development modules.

  4. Day 4: Migration walkthrough

    Write a migration from a CSV file with one custom process plugin, then roll it back and run it again.

  5. Day 5: Security and access

    Add a custom route with permission checks, then review an old module of yours for access and escaping gaps.

  6. Day 6: Project story prep

    Prepare short stories about a migration, a custom module and a production problem you fixed, with clear results.

  7. Day 7: Module review rehearsal

    Have a friend give you a short module to review aloud in thirty minutes, then rest before the interview.

Questions to ask the interviewer

Pick two or three; the answers tell you whether you want the job.

  1. Which Drupal versions do you run today, and is a major upgrade planned?
  2. How is configuration moved from development to production?
  3. How quickly are security advisories applied, and who decides?
  4. Does the team contribute patches or modules back to Drupal.org?
  5. Who edits content day to day, and what slows them down most?

Preparation tips

  • Bring a custom module you wrote and be ready to explain its services, routing and cache metadata.
  • Revise cache tags and contexts with a concrete example from a block you built.
  • Prepare one story about a migration and one about a production problem you fixed.

Prepare the general questions too: tell me about yourself, why do you want to work here? and why are you leaving? Afterwards, send a thank-you email; when the offer comes, negotiate the salary.

How we wrote this page

The FindAJobAI team wrote the questions, outlines and sample answers for Drupal developer interviews. The people, employers and numbers in the samples are invented: copy the structure, and use details from your own work.

Once we track enough live Drupal developer job ads, this page also shows the skills they ask for most, counted the same way as our in-demand skills report.

Last reviewed on November 1, 2026.