Exam AD0-E724 Topic 1 Question 40 Discussion
Actual exam question for Adobe's AD0-E724 exam
Question #: 40
Topic #: 1
Question #: 40
Topic #: 1
An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is.
How would they ensure the configuration is deployed and consistent across all environments?
How would they ensure the configuration is deployed and consistent across all environments?
Suggested Answer: A Vote an answer
The correct answer isOption A. This approach ensures that the configuration is set using the CLI with the -- lock-config flag, which prevents the setting from being overridden by configuration changes in other environments.
* Understanding the Configuration Requirement:
* The developer needs to ensure consistent configuration across all environments without visibility into them. This calls for a method that can enforce configuration at a system level.
* Setting catalog/price/scope to 1 configures pricing to be scoped at the website level, as required.
* Using the CLI with --lock-config:
* The command bin/magento config:set catalog/price/scope 1 --lock-config not only sets the configuration but also locks it. This lock ensures that the setting will not be inadvertently changed by system configuration settings in other environments.
* By locking the configuration, the value becomes consistent across all environments and is stored in app/etc/config.php, which can be committed to version control and deployed across environments.
* Why Other Options Are Incorrect:
* Option B: While this option sets the configuration, it lacks the --lock-config flag. Without locking, the setting can still be overridden or altered in other environments, which does not guarantee consistency.
* Option C: Modifying the config.xml for setting catalog/price/scope could be an approach, but this method is not environment-proof. It also doesn't provide the same guarantee as using --lock- config, which explicitly prevents environment-specific changes from altering the configuration.
* Understanding the Configuration Requirement:
* The developer needs to ensure consistent configuration across all environments without visibility into them. This calls for a method that can enforce configuration at a system level.
* Setting catalog/price/scope to 1 configures pricing to be scoped at the website level, as required.
* Using the CLI with --lock-config:
* The command bin/magento config:set catalog/price/scope 1 --lock-config not only sets the configuration but also locks it. This lock ensures that the setting will not be inadvertently changed by system configuration settings in other environments.
* By locking the configuration, the value becomes consistent across all environments and is stored in app/etc/config.php, which can be committed to version control and deployed across environments.
* Why Other Options Are Incorrect:
* Option B: While this option sets the configuration, it lacks the --lock-config flag. Without locking, the setting can still be overridden or altered in other environments, which does not guarantee consistency.
* Option C: Modifying the config.xml for setting catalog/price/scope could be an approach, but this method is not environment-proof. It also doesn't provide the same guarantee as using --lock- config, which explicitly prevents environment-specific changes from altering the configuration.
by Grover at Jun 29, 2026, 05:35 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).