AD0-E717 practice question 11 of 15
Which file should a developer use to set the default value when creating configuration fields for admin?
Full set: 77 questionsThe etc/config.xml file is the standard location within a module to define the default values for system configuration fields. When a module is installed or upgraded via the setup:upgrade command, Adobe Commerce reads this file and populates the coreconfigdata database table with these values for the 'default' configuration scope. This ensures that the module has its necessary default settings established system-wide without manual intervention in the Admin panel.
A. etc/adminhtml/config.xml: This is an incorrect file path. While configuration files exist in the etc/adminhtml directory, the specific file for setting default values for system configuration, config.xml, resides in the module's root etc directory.
C. etc/adminhtml/system.xml: This file is used to define the structure, layout, and user interface of the configuration fields that appear in the Admin panel under Stores > Settings > Configuration. It does not set the default values for these fields. ---
1. Adobe Commerce Developer Documentation, "Create a config.xml file": This official guide explicitly states, "A module’s config.xml file contains the default values for all fields that you defined in the system.xml file." It specifies the file path as /etc/config.xml.
Source: Adobe Commerce Developer Documentation > Development > Admin > Configuration > Create a config.xml file.
2. Adobe Commerce Developer Documentation, "Create a system.xml file": This document details the purpose of system.xml, confirming it is for defining the configuration sections, groups, and fields that are rendered in the Admin UI. It specifies the path as /etc/adminhtml/system.xml.
Source: Adobe Commerce Developer Documentation > Development > Admin > Configuration > Create a system.xml file.
Keep practicing
Take the free AD0-E717 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E717 practice questions
- Question 1A developer is creating a class \Vendor\Module\Model\MyModeL How should that class be def…
- Question 2What is one purpose of a customer data JS library?
- Question 3What folder would a developer place a custom patch on an Adobe Commerce Cloud project to …
- Question 4What action can be performed from the Cloud Project Portal (Onboarding Ul) of an Adobe Co…
- Question 5What database engine is part of the infrastructure of Adobe Commerce Cloud projects?
- Question 6What is the default store ID for the admin panel?
