AD0-E725 practice question 5 of 10
A Developer creates daily cron jobs to automate a client’s business processes, including automated stock imports via CSV files once per day. After a…
Full set: 50 questionsThe issue described, where a custom cron job is marked as 'missed' and other jobs get stuck, is a classic symptom of cron job contention. By default, custom cron jobs are placed in the default group. If a long-running task like a large stock import runs in this group, it can prevent other jobs in the same group from executing on schedule. Creating a dedicated, custom cron group for the stock import isolates its execution process. This ensures it does not interfere with or get blocked by other system cron jobs, allowing it to run reliably and preventing the 'missed' status.
B. Set the cron jobs to run multiple times per day instead of once daily. This does not solve the underlying resource contention issue. The job could still be missed or block others, and running it more frequently might even exacerbate the problem.
C. In the execute() function, implement a lock checker to make sure the cron runs alone. A lock checker prevents the same job from running concurrently, which is a good practice but does not solve the problem of it blocking or being blocked by other different jobs in the same cron group.
1. Adobe Commerce Developer Documentation
"Configure custom cron jobs and cron groups": "We recommend you run your custom cron job in a separate group. This way
your custom cron job does not interfere with other cron jobs. For example
if you have a long-running cron job in the default group
it can cause other cron jobs to be missed." This directly supports creating a custom group to resolve the issue.
Source: Adobe Commerce Developer Documentation > Fundamentals > Configure > Configure cron jobs > Configure custom cron jobs and cron groups.
2. Adobe Commerce Developer Documentation
"Cron job configuration reference": This document details the crontab.xml configuration
showing how to define a with a unique id. It explains that cron jobs are processed on a group-by-group basis
confirming that separating a job into its own group isolates its execution from others.
Source: Adobe Commerce Developer Documentation > Fundamentals > Configure > Module configuration files > crontab.xml.
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 3An Adobe Commerce Developer is approached to disable several cron jobs from a customizati…
- Question 4An Adobe Commerce Developer is tasked to frequently send data to a third-party API. The A…
- 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…
