nerdexam
Salesforce

PDI · Question #201

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

The correct answer is A. VSCode C. SFDX CLI. For automated script-based deployments to sandboxes, developers can leverage the SFDX CLI directly or through its integration with VSCode.

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

Question

A development team wants to use a deployment script to automatically deploy to 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

  • AVSCode
  • BChange Sets
  • CSFDX CLI
  • DDeveloper Console

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    8% (2)
  • D
    17% (4)

Why each option

For automated script-based deployments to sandboxes, developers can leverage the SFDX CLI directly or through its integration with VSCode.

AVSCodeCorrect

Visual Studio Code (VSCode) with the Salesforce Extensions Pack provides an integrated development environment that allows developers to write and execute deployment scripts using the underlying SFDX CLI commands, facilitating automated deployments to sandboxes.

BChange Sets

Change Sets are a declarative, point-and-click tool within the Salesforce user interface for deploying metadata between related orgs, and they cannot be used to run automated deployment scripts.

CSFDX CLICorrect

The Salesforce DX Command Line Interface (SFDX CLI) is a powerful tool specifically designed for programmatic development and automated deployments, enabling developers to write and execute scripts for deploying metadata and code to sandboxes.

DDeveloper Console

The Developer Console is an in-browser development environment primarily used for writing and testing Apex code, Visualforce pages, and SOQL queries, and it does not support running external deployment scripts.

Concept tested: Salesforce CLI and IDEs for automated deployments

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

Topics

#Deployment tools#SFDX CLI#VS Code#Scripted deployment

Community Discussion

No community discussion yet for this question.

Full PDI Practice