nerdexam
Salesforce

PDI · Question #146

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

The correct answer is C. Setup Menu D. SalesforceDX E. Tooling API. Developers can execute Apex tests in an org using the Setup Menu UI, the Salesforce DX command-line interface, or programmatically via the Tooling API.

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

Question

What are three ways for 2 developer to execute tests in an org? Choose 3 answers

Options

  • AMetadata APT
  • BBulk API
  • CSetup Menu
  • DSalesforceDX
  • ETooling API

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    94% (48)

Why each option

Developers can execute Apex tests in an org using the Setup Menu UI, the Salesforce DX command-line interface, or programmatically via the Tooling API.

AMetadata APT

The Metadata API is primarily used for retrieving, deploying, or modifying setup components and metadata, not for executing Apex tests.

BBulk API

The Bulk API is designed for loading or querying large sets of data, not for the execution of Apex tests.

CSetup MenuCorrect

The Salesforce Setup menu provides the 'Apex Test Execution' page, allowing developers to run Apex tests directly from the user interface.

DSalesforceDXCorrect

Salesforce DX includes CLI commands, such as `sfdx force:apex:test:run`, for executing Apex tests, which is essential for scripting and automation.

ETooling APICorrect

The Tooling API offers programmatic capabilities to execute Apex tests, commonly utilized by IDEs and continuous integration systems.

Concept tested: Apex test execution methods

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

Topics

#Apex Testing#Test Execution Methods#Salesforce CLI#Tooling API

Community Discussion

No community discussion yet for this question.

Full PDI Practice