Acquia Certified Developer - Drupal 10 試験
最新更新時間: 2026/09/21
【秋学習応援セール|10月限定キャンペーン】:Acquia Certified Developer D10 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。
実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。
さらに試験準備時間の35%を節約するには、Acquia Certified Developer D10 問題集を使用してください。
Question No : 1
What is the purpose of hook_theme() in theming?
正解:
Explanation:
hook_theme() is used in custom modules or themes to declare new theme hooks and associate them with template files or render callbacks.
Question No : 2
Which method loads a CSS file globally in a theme?
正解:
Explanation:
To load a CSS file globally, declare it in a library defined in libraries.yml, and then include that library in the theme’s .info.yml file using the libraries: key.
Question No : 3
Which file is used to include CSS and JavaScript assets in a Drupal theme?
正解:
Explanation:
CSS and JS files are defined in a theme’s THEMENAME.libraries.yml. These libraries are then attached via the .info.yml file or in templates and preprocess functions.
Question No : 4
How do you declare a base theme in your sub-theme’s .info.yml file?
正解:
Explanation:
To define a sub-theme, use the base theme: key in the .info.yml file and provide the machine name of the theme you are extending (e.g., base theme: classy).
Question No : 5
What is a sub-theme in Drupal?
正解:
Explanation:
A sub-theme extends a base theme and inherits its templates, styles, and behaviors. This allows developers to build on existing themes without starting from scratch.
Question No : 6
Which of the following are valid regions that can be defined in a theme? (Choose two)
正解:
Explanation:
Themes can define regions like header, footer, sidebar, and content. These regions can then be assigned blocks using the UI. “Route” is not a theme region.
Question No : 7
Which file defines the block regions available in a Drupal theme?
正解:
Explanation:
Block regions are declared in the theme’s .info.yml file using the regions: key. Each region is given a machine name and human-readable label.
Question No : 8
What is the correct directory to place a custom theme in a Drupal site?
正解:
Explanation:
Custom themes should reside in /themes/custom. Placing themes in core directories is discouraged, as they are overwritten during core updates.
Question No : 9
Which of the following are valid base themes in Drupal core? (Choose two)
正解:
Explanation:
Core Drupal includes themes like Stark and Olivero, which can be used as base themes. Zen and Bootstrap are popular but contributed themes and not part of core.
Question No : 10
What file must every custom theme have in order to be recognized by Drupal?
正解:
Explanation:
Every custom theme must have an .info.yml file named after the theme’s machine name (e.g., mytheme.info.yml). This file defines metadata like name, base theme, regions, and libraries.
Question No : 11
What is the result of importing a configuration that deletes a field?
正解:
Explanation:
When a field is deleted via configuration import, Drupal flags it for deletion. It remains in the database until cleaned up by cron, ensuring a safe and reversible process.
Question No : 12
Which of the following tasks can be performed using the Configuration Synchronization UI? (Choose two)
正解:
Explanation:
The Configuration Synchronization UI allows viewing differences between active and staged configs and exporting the entire configuration set. Editing YAML directly or running cron are done elsewhere.
Question No : 13
When is configuration considered “staged” in Drupal?
正解:
Explanation:
Configuration is “staged” when there's a difference between exported YAML files and the active config.
You can preview and selectively import changes using the Configuration Synchronization UI or Drush.
Question No : 14
How can you translate a block title into multiple languages using core functionality?
正解:
Explanation:
Block titles are part of configuration. To translate them, enable both Interface Translation and Configuration Translation modules, then use the UI or YAML files to provide translations.
Question No : 15
Which command imports configuration from the sync directory using Drush?
正解:
Explanation:
The drush config:import command (or drush cim) brings configurations from the sync directory into the active configuration store, applying changes made in development or staging.