nerdexam
Salesforce

PDI · Question #76

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose

The correct answer is A. VS Code B. SFDX CLI. For automated deployments to a sandbox via scripting, the Salesforce CLI is the primary tool, which can be invoked from various environments, including integrated development environments like VS Code.

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

Question

A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose 2 answers

Options

  • AVS Code
  • BSFDX CLI
  • CChange Sets
  • DDeveloper Console

How the community answered

(39 responses)
  • A
    92% (36)
  • C
    3% (1)
  • D
    5% (2)

Why each option

For automated deployments to a sandbox via scripting, the Salesforce CLI is the primary tool, which can be invoked from various environments, including integrated development environments like VS Code.

AVS CodeCorrect

Visual Studio Code (VS Code) with the Salesforce Extension Pack provides a robust environment for Salesforce development and allows developers to execute Salesforce CLI commands, including deployment scripts, directly from its integrated terminal.

BSFDX CLICorrect

The Salesforce CLI (Command Line Interface) is specifically designed for programmatic interaction with Salesforce orgs, including source code deployment. It is the fundamental tool used in scripts for automated deployments.

CChange Sets

Change Sets are an administrative tool within the Salesforce UI for declarative deployments and are not scriptable for automated processes.

DDeveloper Console

The Developer Console is an in-browser IDE for manual code development and execution, not designed for running automated deployment scripts.

Concept tested: Automated deployment tools (Salesforce CLI, VS Code)

Source: https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_deploy_source.htm

Topics

#Deployment Tools#SFDX CLI#VS Code#Scripted Deployment

Community Discussion

No community discussion yet for this question.

Full PDI Practice