AD0-E717 practice question 3 of 15
What folder would a developer place a custom patch on an Adobe Commerce Cloud project to have it automatically applied during the build phase?
Full set: 77 questionsThe Adobe Commerce on Cloud Infrastructure build process is specifically configured to automatically apply patches during the build phase. To enable this functionality, developers must place custom patch files (with a .patch extension) into the m2-hotfixes/ directory at the root of the project. The build script automatically detects and applies any patches found in this directory before the composer install command is executed, ensuring the fixes are in place before dependencies are resolved and the application is assembled.
B. Add the patch file to the patches/ directory: This directory is not automatically scanned by the Adobe Commerce Cloud build process for applying patches. While some projects use a patches/ directory with tools like cweagans/composer-patches, it is not the standard for automatic application on Cloud infrastructure.
C. Add the patch file to the m2-patches/ directory: This is an incorrect directory name. The officially designated directory for custom patches that are automatically applied during the build phase is m2-hotfixes/.
1. Adobe Commerce on Cloud Infrastructure Guide, "Apply patches": "To apply a custom patch that is not available from Adobe, you can add the patch file to the /m2-hotfixes directory in your project. The patch is applied automatically during the next build and deployment." (Found in the section "Apply a custom patch").
2. Adobe Commerce on Cloud Infrastructure Guide, "Build process": The documentation on the build process details the sequence of events, confirming that patches from the m2-hotfixes directory are applied early in the process. "Patches in the /m2-hotfixes directory are applied before the composer install command during the build phase." (Found in the section "Build phase").
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 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?
- Question 7Which Magento project directory is the recommended webroot for the web server?
