nerdexam
Adobe

AD0-E716 · Question #7

An Adobe Commerce developer is being tasked with creating a new cron job to run a method that has already been written. What are the minimally required steps to accomplish this?

The correct answer is C. Create a crontab.xmi file and set a schedule for the new cron job. According to the Configure and run cron guide for Magento 2 developers, the crontab.xmi file is used to declare and configure cron jobs for a module. The file should specify the name, instance, method and schedule of the cron job. Therefore, creating a crontab.xmi file and…

Infrastructure

Question

An Adobe Commerce developer is being tasked with creating a new cron job to run a method that has already been written. What are the minimally required steps to accomplish this?

Options

  • ACreate a crontab.xmi file and a new system configuration in system.xmi for the schedule.
  • BCreate crontab.xmi and cron_groups.xmi files to assign the new job to a cron group.
  • CCreate a crontab.xmi file and set a schedule for the new cron job.

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    10% (2)
  • C
    85% (17)

Explanation

According to the Configure and run cron guide for Magento 2 developers, the crontab.xmi file is used to declare and configure cron jobs for a module. The file should specify the name, instance, method and schedule of the cron job. Therefore, creating a crontab.xmi file and setting a schedule for the new cron job are the minimally required steps to accomplish this task. Verified Reference: https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html

Topics

#cron job#crontab.xml#scheduled tasks#module config

Community Discussion

No community discussion yet for this question.

Full AD0-E716 Practice