nerdexam
Salesforce

PDI · Question #50

What are two ways for a developer to execute tests in an org?

The correct answer is A. Tooling API B. Developer console. Developers can execute Apex tests in an org through programmatic interfaces like the Tooling API or via the interactive Developer Console.

Submitted by fernanda_arg· Apr 18, 2026Testing, Debugging, and Deployment

Question

What are two ways for a developer to execute tests in an org?

Options

  • ATooling API
  • BDeveloper console
  • CBulk API
  • DMatadata API

How the community answered

(18 responses)
  • A
    94% (17)
  • D
    6% (1)

Why each option

Developers can execute Apex tests in an org through programmatic interfaces like the Tooling API or via the interactive Developer Console.

ATooling APICorrect

The Tooling API provides a programmatic interface that allows developers to run Apex tests, monitor their execution, and retrieve results, often used in continuous integration and deployment pipelines.

BDeveloper consoleCorrect

The Developer Console, accessible directly within the Salesforce UI, is an integrated development environment where developers can write, debug, and execute Apex code and tests interactively, providing a user-friendly interface for test execution and analysis.

CBulk API

The Bulk API is specifically designed for efficiently loading or querying large volumes of data into or from Salesforce, not for executing Apex tests.

DMatadata API

The Metadata API (assuming 'Matadata API' is a typo) is used for retrieving, deploying, and managing metadata customizations in Salesforce, but it does not directly facilitate the execution of Apex tests.

Concept tested: Executing Apex Tests

Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_code_execution.htm

Topics

#Apex Testing#Developer Console#Tooling API#Test Execution

Community Discussion

No community discussion yet for this question.

Full PDI Practice