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
What is the recommended way to test Drupal REST API endpoints for response correctness in automated tests?
Answer: Using ResourceTestBase or extending BrowserTestBase with HTTP client assertions
Drupal provides ResourceTestBase specifically for testing REST resources, allowing assertion of HTTP status codes, headers, and response bodies programmatically.
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'?
Answer: Drupal Extension (behat/drupal-extension)
The behat/drupal-extension package adds Drupal-aware step definitions for users, roles, nodes, and taxonomy terms that standard Behat/Mink steps do not cover.
Which metric best indicates that a Drupal module's test suite has adequate coverage for a QA sign-off?
Answer: High code coverage percentage combined with tests for critical user paths
Coverage percentage alone is insufficient; meaningful QA sign-off requires both measurable code coverage and explicit tests for the workflows users rely on.
What does `drush config:import --diff` do in a QA context?
Answer: Shows the difference between configuration on disk and active configuration before importing
The `--diff` flag prints a human-readable diff of what will change when config:import runs, allowing QA teams to review changes before applying them.
A Drupal site's content editor reports that a WYSIWYG editor toolbar button is missing after a module update. Which type of test would best prevent this regression?
Answer: A functional JavaScript test that checks the editor toolbar renders the expected buttons
Functional JavaScript tests use a real browser to render CKEditor and can assert that specific toolbar buttons are present in the rendered DOM, catching UI regressions that static tests miss.
What is the purpose of the `drupal/coder` Composer package in a Drupal project's QA setup?
Answer: It provides PHP_CodeSniffer ruleset sniffs for Drupal coding standards enforcement
drupal/coder ships the Drupal and DrupalPractice PHP_CodeSniffer sniff sets used to enforce the community's coding standards during linting.
When a Drupal hook_update_N function fails midway during `drush updatedb`, what is the safest recovery QA step?
Answer: Restore from the pre-update database backup and investigate the failure before re-running
Restoring from backup preserves data integrity and allows root-cause analysis of the failed update before attempting to re-run it in a controlled environment.
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
- 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
- acquia.com — Fees, exam format, passing score, time limit · verified Oct 2026