Drupal Drupal Site Building & Configuration 1 — Questions and Answers
Question 1: Which Drupal concept allows you to define reusable groups of fields that can be attached to multiple content types?
- Field groups
- Fieldable entities
- Paragraphs (Correct answer)
- Entity reference
Correct answer: Paragraphs
Paragraphs is a popular Drupal module that lets editors create reusable, structured content components attachable to multiple content types.
Question 2: In Drupal, what is the purpose of the 'Manage Display' tab on a content type?
- Set field validation rules
- Control how fields are rendered to site visitors (Correct answer)
- Assign roles to content editors
- Configure URL aliases
Correct answer: Control how fields are rendered to site visitors
The 'Manage Display' tab controls which fields are shown and how they are formatted when content is viewed on the front end.
Question 3: What Drupal feature allows you to create relationships between different content entities using a field type?
- Taxonomy term reference
- Entity reference (Correct answer)
- Field collection
- Content moderation
Correct answer: Entity reference
The Entity Reference field type in Drupal creates relationships between nodes, users, taxonomy terms, or other entities.
Question 4: Which Drupal configuration object stores block placement and visibility settings for a theme?
- node.type.*
- block.block.* (Correct answer)
- system.theme.*
- layout.layout.*
Correct answer: block.block.*
Block placement and visibility rules are stored in block.block.* configuration objects tied to the active theme.
Question 5: What is the correct way to export Drupal configuration to code for deployment?
- Use the Database Export tool
- Run drush config:export (cex) (Correct answer)
- Copy the sites/default/files folder
- Use the Backup and Migrate module
Correct answer: Run drush config:export (cex)
The Drush command 'drush config:export' (cex) exports active configuration to YAML files in the sync directory for version-controlled deployments.
Question 6: In Drupal's permission system, which role automatically receives all permissions without explicit assignment?
- Editor
- Site Builder
- Administrator (Correct answer)
- Authenticated user
Correct answer: Administrator
The Administrator role in Drupal is granted all permissions automatically, bypassing individual permission checks.
Which Drupal concept allows you to define reusable groups of fields that can be attached to multiple content types?