AD0-E725 practice question 3 of 10
An Adobe Commerce Developer is approached to disable several cron jobs from a customization completed by a third-party agency. The cron jobs will eventually be enabled again once a code review of the cron jobs is complete. Using best principles, how should the Developer action this request?
Full set: 50 questionsTo temporarily disable a cron job via configuration, the most effective method among the given options is to set its schedule to a non-existent date (e.g., 0 0 30 2 for February 30th). The Adobe Commerce cron scheduler interprets this schedule and will never find a matching time to queue the job in the cronschedule table for execution. This is a simple, configuration-based change that is easily reversible by restoring the original schedule, aligning with the temporary nature of the request.
A. This schedule ( ) configures the job to run every minute. This is the opposite of disabling the job and would significantly increase its execution frequency.
C. The disabled="true" attribute is not a valid attribute for the node within the crontab.xml file according to the official Adobe Commerce XML schema. This configuration would be invalid.
1. Adobe Commerce Developer Documentation
"Configure custom cron jobs and cron groups": This official documentation details the structure of the crontab.xml file. It specifies that the cron timing is controlled exclusively by the cron expression within the tag. This supports the conclusion that manipulating the schedule is the correct way to control execution.
Source: Adobe Commerce DevDocs
Custom cron jobs and cron groups. (The specific section on crontab.xml structure).
2. crontab.xsd XML Schema: The definitive source for the valid structure of crontab.xml is the XML Schema Definition (XSD) file included with Adobe Commerce. An inspection of this file confirms that the element does not have a disabled attribute.
Source: /vendor/magento/module-cron/etc/crontab.xsd. The xs:complexType definition for jobType lists only name
instance
method
and group as valid attributes.
Keep practicing
Take the free AD0-E725 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AD0-E725 practice questions
- Question 1A Developer working on an Adobe Commerce Cloud project encounters an issue with the datab…
- Question 2A Developer is tasked with creating a new index. The custom indexer is not automatically …
- Question 4An Adobe Commerce Developer is tasked to frequently send data to a third-party API. The A…
- Question 5A Developer creates daily cron jobs to automate a client’s business processes, including …
- Question 6A client wants to calculate tax differently when an order is billed for a range of partic…
- Question 7A client requests changes to their Pro Staging and Production environments. They supply a…
