AD0-E724 · Question #30
A developer needs to specify a different 'SCD_THREADS' value for the build phase only on the 'staging' and 'production' environments to speed up deployment. Which configuration file allows for setting
The correct answer is B. '.magento.env.yaml'. .magento.env.yaml is the correct choice because it is Adobe Commerce Cloud's dedicated configuration file for defining environment variables across different deployment stages (build, deploy, post-deploy) and can be scoped per environment (e.g., staging, production), making it th
Question
A developer needs to specify a different 'SCD_THREADS' value for the build phase only on the 'staging' and 'production' environments to speed up deployment. Which configuration file allows for setting environment-specific variables for different deployment stages?
Options
- A'composer.json'
- B'.magento.env.yaml'
- C'deploy.json'
- D'.magento/services.yaml'
How the community answered
(38 responses)- A3% (1)
- B76% (29)
- C8% (3)
- D13% (5)
Explanation
.magento.env.yaml is the correct choice because it is Adobe Commerce Cloud's dedicated configuration file for defining environment variables across different deployment stages (build, deploy, post-deploy) and can be scoped per environment (e.g., staging, production), making it the only option that satisfies all three requirements: stage-specific, environment-specific, and variable-based configuration.
Why the distractors are wrong:
- A.
composer.jsonmanages PHP package dependencies and autoloading - it has no concept of deployment stages or environment variables. - C.
deploy.jsonis not a real Adobe Commerce Cloud configuration file; it's a fabricated distractor. - D.
.magento/services.yamldefines infrastructure services (MySQL, Redis, Elasticsearch) for your cloud environment, not deployment-stage variables.
Memory tip: Think of .magento.env.yaml as your environment's "control panel" - the word env in the filename is a direct clue that it handles environment variables, and yaml's hierarchical structure naturally supports nesting by stage and environment name.
Topics
Community Discussion
No community discussion yet for this question.