Drupal Cheat Sheet 2026
The 30 highest-yield Drupal facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
60 questions
90 min time limit
65.00% to pass
- A stakeholder needs to be notified when a specific user account is created on the Drupal site. How can this be automated? → Use the Rules module to trigger an email action on the 'User account created' event
- What is the benefit of interdisciplinary collaboration in Drupal practice? → It brings diverse expertise and perspectives that improve outcomes and innovation
- Which configuration management command in Drush imports YAML config files into the active Drupal database? → drush cim
- How do Drupal professionals build trust with clients or stakeholders? → Through consistent competence, transparency, reliability, and ethical behavior
- Which Drupal core module enables multi-step editorial workflows with role-based content state transitions? → Content Moderation (core)
- When evaluating SEO performance on a Drupal site, which module provides the most direct evidence through structured data output? → Schema.org Blueprints
- What is the recommended way to test Drupal REST API endpoints for response correctness in automated tests? → Using ResourceTestBase or extending BrowserTestBase with HTTP client assertions
- What is the correct format for defining a JavaScript library with a dependency on jQuery in a Drupal libraries.yml file? → dependencies: - core/jquery
- What is the significance of Drupal's 'trusted host patterns' configuration? → It prevents HTTP Host header injection attacks by whitelisting allowed hostnames
- When using Behat for Drupal acceptance testing, which extension provides Drupal-specific step definitions like 'Given I am logged in as a user with the role'? → Drupal Extension (behat/drupal-extension)
- What is 'field formatter' in Drupal's field system? → A plugin that controls how a field's value is displayed to end users
- What is the role of Drupal's 'State API'? → Storing site-specific runtime information that should not be exported
- Which professional standard applies when a Drupal developer reuses substantial portions of another developer's Drupal module in their own project? → Credit the original author and ensure the derived work is also GPL-2.0-or-later licensed
- The acronym CCK stands for _________. → Content Creation Kit
- A retail client needs a faceted search experience (filter by price, brand, category) for 100,000 products. Which stack is recommended? → Search API module with an Apache Solr or Elasticsearch backend
- In Drupal's automated testing, what is the role of `setUp()` in a test class? → Initializes the test environment and shared state before each test method runs
- What does the Drupal 'media' module provide out of the box in Drupal 9/10? → A centralized library for managing reusable media assets like images and videos
- A SaaS company runs multiple brand sites from a single Drupal codebase. Which Drupal architecture pattern best supports this? → Drupal Multisite with shared core and separate databases
- Which Drupal module is commonly used to implement cookie consent banners required by GDPR and ePrivacy regulations? → EU Cookie Compliance
- What is the primary mechanism Drupal's Database API uses to prevent SQL injection attacks? → Prepared statements that separate SQL structure from user-supplied data
- Drupal's fundamental building block is _________ . → Node
- How should an Drupal professional respond to a compliance violation? → Report it promptly, investigate the root cause, and implement corrective actions
- What is the purpose of Drupal's 'routing.yml' file in a custom module? → To define URL paths and map them to controller classes
- In a Drupal View, what is the purpose of a 'contextual filter'? → To dynamically filter results based on a value from the URL or current context
- Who originally wrote the Drupal? → Dries Buytaert
- Which of the following statements about Blocks is accurate? → Chunks of data and functionality
- In Drupal theming, what is the purpose of a 'preprocess function' in a .theme file? → Add or modify variables available inside a Twig template
- What is the role of the 'stable9' base theme in Drupal 9/10 custom theme development? → Supplies empty default templates ensuring theme upgrade stability
- What is a 'theme suggestion' in Drupal and how does it enable template overrides? → A prioritized list of template filenames Drupal tries before falling back to defaults
- What is 'Twig' in the context of Drupal theming? → The PHP templating engine used to render HTML output
Turn these facts into recall:
Was this helpful?