Drupal powers large government, university, media and enterprise websites across the US, UK and Europe. Modern Drupal is a Symfony-based, object-oriented framework, so interviews now test PHP engineering skills as much as site building. These questions are written for Drupal 10 and Drupal 11, the current major versions.
Key takeaways
- Drupal 11 is the latest major release. Drupal 7 reached end of life in January 2025, so migration experience is valuable.
- Know the entity API, plugins, services and dependency injection, and the configuration management workflow.
- Caching with cache tags, contexts and max-age is a favorite senior topic.
- Drupal CMS, launched in 2025, packages recipes and AI-assisted tools for faster site building on top of Drupal core.
Fundamentals
1. What is Drupal?
Drupal is an open source content management system and framework written in PHP. It is known for flexible content modeling, granular permissions, multilingual support and security.
2. What are entities, bundles and fields?
Entities are content or configuration objects such as nodes, users, taxonomy terms and media. Bundles are subtypes, such as Article and Page content types. Fields attach data to bundles.
3. What is the difference between content entities and config entities?
Content entities store site content in the database and can have fields and revisions. Config entities store settings, such as views or image styles, and can be exported to YAML.
4. What is Views?
Views is the core query builder used to create lists, tables, blocks, pages and REST outputs without writing SQL.
Development
5. What is a hook?
A hook lets a module react to or alter Drupal behavior, such as hook_form_alter or hook_entity_presave. Since Drupal 11.1, hooks can be implemented as attributed methods on classes, not only as procedural functions.
6. What are services and dependency injection?
Services are reusable objects registered in the service container through a services.yml file, such as the entity type manager or logger. Dependency injection passes them into classes instead of calling static helpers, which makes code testable.
7. What is the plugin system?
Plugins are swappable components of a given type, such as blocks, field formatters and field widgets. They are discovered through PHP attributes (or annotations in older code) and managed by plugin managers.
8. What are event subscribers?
Classes that respond to Symfony events, for example reacting to a kernel request to apply a redirect. They are registered as tagged services.
9. How do routing and controllers work?
Routes are defined in a module’s routing.yml file with a path, controller and access requirements. The controller returns a render array or a response object.
10. What is a render array?
A structured PHP array describing output, which Drupal renders through Twig templates. Render arrays carry cache metadata, so they are central to performance.
Theming
11. How does Twig theming work?
Themes override templates with Twig files and use preprocess functions to prepare variables. Theme debug mode shows template suggestions in the page source.
12. What are libraries?
Libraries, defined in a libraries.yml file, group CSS and JavaScript assets so they are attached only where needed.
13. What are Single Directory Components?
Single Directory Components keep a component’s Twig, CSS, JavaScript and metadata together in one folder, which simplifies design system work.
Configuration, performance and security
14. How does configuration management work?
Site configuration is exported to YAML with drush config:export, committed to Git and imported in other environments with drush config:import. Config split can handle environment-specific settings.
15. Explain cache tags, contexts and max-age.
Cache tags say what data the output depends on, so it can be invalidated when that data changes. Contexts say what the output varies by, such as user role or language. Max-age sets how long the output stays valid.
16. How do you keep a Drupal site secure?
Apply core and contributed security updates promptly, follow Drupal security advisories, set strict permissions, sanitize output with Twig autoescaping and the database API, and use trusted host settings.
Tooling and migration
17. What are Composer and Drush used for?
Composer manages Drupal core, modules and PHP dependencies. Drush is the command-line tool for cache rebuilds, config, database updates and site tasks.
18. How do you migrate from Drupal 7?
Audit content and modules, build the new site on Drupal 10 or 11, use the Migrate API with source, process and destination plugins, run test migrations repeatedly and plan redirects to protect SEO.
19. What are recipes?
Recipes are reusable packages of configuration and modules that can be applied to a site to add a feature quickly. Drupal CMS is built from recipes.
How to prepare
Build a custom module with a route, a service, a block plugin and a configuration form, then theme it with Twig. Our Drupal training is live and instructor-led with hands-on labs, certification guidance and a free demo. If you work with other enterprise CMS platforms, see AEM training and Sitecore training.