A developer starts an asynchronous job with System.enqueueJob() and stores the returned job ID. Which two options can the developer use to monitor whether the job is queued, processing, completed, or failed? Choose 2 answers.
Choose two.
- The Apex Jobs page in Setup, which lists asynchronous jobs and their status.
- A SOQL query on AsyncApexJob filtered by the ID returned from System.enqueueJob().
- The Apex Flex Queue page, which shows all Queueable jobs while they are running.
- The Scheduled Jobs page in Setup, which lists every asynchronous job type.
Show answer
Answer: A, B
Why: System.enqueueJob() returns the ID of an AsyncApexJob record. Its status can be viewed on the Apex Jobs page in Setup or queried programmatically from the AsyncApexJob object.