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
  1. 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
  2. What is the benefit of interdisciplinary collaboration in Drupal practice? It brings diverse expertise and perspectives that improve outcomes and innovation
  3. Which configuration management command in Drush imports YAML config files into the active Drupal database? drush cim
  4. How do Drupal professionals build trust with clients or stakeholders? Through consistent competence, transparency, reliability, and ethical behavior
  5. Which Drupal core module enables multi-step editorial workflows with role-based content state transitions? Content Moderation (core)
  6. When evaluating SEO performance on a Drupal site, which module provides the most direct evidence through structured data output? Schema.org Blueprints
  7. 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
  8. What is the correct format for defining a JavaScript library with a dependency on jQuery in a Drupal libraries.yml file? dependencies: - core/jquery
  9. What is the significance of Drupal's 'trusted host patterns' configuration? It prevents HTTP Host header injection attacks by whitelisting allowed hostnames
  10. 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)
  11. What is 'field formatter' in Drupal's field system? A plugin that controls how a field's value is displayed to end users
  12. What is the role of Drupal's 'State API'? Storing site-specific runtime information that should not be exported
  13. 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
  14. The acronym CCK stands for _________. Content Creation Kit
  15. 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
  16. 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
  17. 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
  18. 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
  19. Which Drupal module is commonly used to implement cookie consent banners required by GDPR and ePrivacy regulations? EU Cookie Compliance
  20. 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
  21. Drupal's fundamental building block is _________ . Node
  22. How should an Drupal professional respond to a compliance violation? Report it promptly, investigate the root cause, and implement corrective actions
  23. What is the purpose of Drupal's 'routing.yml' file in a custom module? To define URL paths and map them to controller classes
  24. 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
  25. Who originally wrote the Drupal? Dries Buytaert
  26. Which of the following statements about Blocks is accurate? Chunks of data and functionality
  27. In Drupal theming, what is the purpose of a 'preprocess function' in a .theme file? Add or modify variables available inside a Twig template
  28. What is the role of the 'stable9' base theme in Drupal 9/10 custom theme development? Supplies empty default templates ensuring theme upgrade stability
  29. 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
  30. What is 'Twig' in the context of Drupal theming? The PHP templating engine used to render HTML output
Was this helpful?