nerdexam
Salesforce

PDI · Question #71

What should be used to create scratch orgs?

The correct answer is B. Salesforce CLI. Scratch orgs are temporary, source-driven Salesforce environments primarily created and managed using programmatic tools. The Salesforce CLI is the official and most common tool for creating and interacting with scratch orgs.

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

Question

What should be used to create scratch orgs?

Options

  • ADeveloper Console
  • BSalesforce CLI
  • CWorkbench
  • DSandbox refresh

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    93% (39)
  • D
    2% (1)

Why each option

Scratch orgs are temporary, source-driven Salesforce environments primarily created and managed using programmatic tools. The Salesforce CLI is the official and most common tool for creating and interacting with scratch orgs.

ADeveloper Console

The Developer Console is an in-browser IDE for developing Apex, Visualforce, and Lightning components, not for creating scratch orgs.

BSalesforce CLICorrect

The Salesforce CLI (Command Line Interface) is the dedicated tool for creating, configuring, and managing scratch orgs. It allows developers to quickly spin up ephemeral Salesforce environments for development and testing by defining the org's shape and features in a `project-scratch-def.json` file.

CWorkbench

Workbench is a web-based suite of tools for interacting with Salesforce APIs, primarily for data and metadata operations, not for creating scratch orgs.

DSandbox refresh

Sandbox refresh is an operation for updating existing sandboxes, which are persistent environments, and does not create scratch orgs.

Concept tested: Salesforce CLI and scratch org creation

Source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create.htm

Topics

#Scratch Orgs#Salesforce CLI#Salesforce DX#Development Environments

Community Discussion

No community discussion yet for this question.

Full PDI Practice