← All Drupal Flashcard Decks

Quality Control & Assurance Flashcards

7 cards from real Drupal practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Quality Control & Assurance flashcards as text
  1. What is the role of a 'test fixture' in Drupal automated testing?

    Answer: Pre-created content, configuration, or data used to set up a known state for tests

    Test fixtures establish a deterministic starting state (nodes, users, config) so that each test runs against consistent data and produces reproducible results.

  2. Which Drupal security hardening check should QA verify is enabled on a production site to prevent text injection via user input fields?

    Answer: Filtering user input through an allowed HTML text format with XSS filtering enabled

    Drupal's text format system with XSS filtering strips disallowed HTML tags from user input, preventing cross-site scripting attacks through content fields.

  3. In a Drupal project using GitLab CI, what artifact should the PHPUnit test stage produce to allow QA review of test results?

    Answer: A JUnit XML report file consumed by GitLab's test reports UI

    PHPUnit can output JUnit XML via `--log-junit`, which GitLab CI's `reports: junit:` artifact key parses to display test pass/fail directly in merge request pipelines.

  4. A QA team finds that a Drupal cron job silently fails without logging errors. What is the best practice fix?

    Answer: Wrapping cron logic in try/catch blocks that log errors to Drupal's watchdog

    Catching exceptions in cron implementations and logging them via \Drupal::logger() ensures failures are surfaced and actionable rather than silently swallowed.

  5. What does `PHPStan` with the `phpstan/phpstan-drupal` extension add to a Drupal project's quality pipeline?

    Answer: Static type analysis that catches type errors and undefined method calls without running the code

    phpstan-drupal extends PHPStan with Drupal-specific stubs and rules so that static analysis understands Drupal's service container, entity APIs, and hook system during type checking.

  6. Which strategy should a QA team adopt to validate that a Drupal site's Views-generated pages remain correct after a database schema change?

    Answer: Automated functional tests that assert specific field values appear in the rendered view output

    Functional tests that render views and assert expected field values in the HTML output will immediately fail if a schema change causes a view query to break or return unexpected data.

  7. What is the purpose of the Drupal `upgrade_status` module in a QA workflow?

    Answer: Scanning installed modules and themes for compatibility with the next major Drupal version

    The upgrade_status module analyzes installed projects for deprecated API usage and flags those that need updates before a major Drupal version migration, giving QA teams a readiness checklist.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. docs.acquia.com — Retake fee, retake policy, score release, exam format, passing score, time limit, score validity, test delivery, eligibility, registration deadline · verified Oct 2026
  2. acquia.com — Fees, exam format, passing score, time limit · verified Oct 2026
Quality Control & Assurance Flashcards — Drupal Study Cards with Answers