PDI · Question #11
What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers
The correct answer is B. View the apex flex Queue D. Query the AsyncApexJobe object. Developers can monitor the status of enqueued Queueable Apex jobs by viewing the Apex Flex Queue in the Salesforce UI or by querying the AsyncApexJob object programmatically.
Question
What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers
Options
- AView the apex status Page
- BView the apex flex Queue
- CView the apex Jobs page
- DQuery the AsyncApexJobe object
How the community answered
(42 responses)- A10% (4)
- B88% (37)
- C2% (1)
Why each option
Developers can monitor the status of enqueued Queueable Apex jobs by viewing the Apex Flex Queue in the Salesforce UI or by querying the AsyncApexJob object programmatically.
There is no standard Salesforce page explicitly named 'Apex status Page' for this purpose; the Flex Queue and Apex Jobs page are the relevant UI components.
The Apex Flex Queue provides a dedicated user interface in Salesforce Setup to view and manage Queueable Apex jobs that are currently waiting in the queue to be processed.
While there is an 'Apex Jobs' page, the Apex Flex Queue (B) is more specific for enqueued Queueable jobs, and querying the AsyncApexJob object (D) is the programmatic method, making B and D the more accurate and complete answers.
The AsyncApexJob object stores metadata about all types of asynchronous Apex jobs, including Queueable jobs, which can be queried using SOQL to retrieve their current status and other execution details programmatically.
Concept tested: Monitoring Queueable Apex job status
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_queue_monitoring.htm
Topics
Community Discussion
No community discussion yet for this question.