Sub topic 2
Choosing a Salesforce Sandbox Type
Assume you understand Salesforce orgs, metadata, records, and the production development lifecycle. Choose a sandbox based on the data volume, test realism, and refresh frequency your team needs.
Match the Sandbox to the Job
| Job | Suitable type | Reason |
|---|---|---|
| Feature development | Developer | Small, fast environment for metadata and code |
| Larger development or integration | Developer Pro | More storage for test records |
| QA with selected production data | Partial Copy | Uses a sandbox template to copy chosen records |
| Full performance or release testing | Full | Copies the complete production dataset |
Developer and Developer Pro sandboxes are usually best for isolated development. Partial Copy is useful when testers need realistic records without copying everything. Full is the closest production replica, but it takes more storage and is less convenient to refresh frequently.
Control Data with a Sandbox Template
A sandbox template defines which objects and records Salesforce copies into a Partial Copy or Full sandbox. Select only the data needed for the test. For example, include Accounts, Contacts, and Opportunities for a sales process test, but omit unrelated historical objects.
Templates reduce copied data and help testers work with relevant records. They do not replace data masking. Sensitive production data may still require masking or anonymization.
Create or Clone a Sandbox
From Setup, open Sandboxes, select New Sandbox, choose a license type, enter a name, and select a template when the type supports one. Review the copied data and start the creation process. Salesforce then provisions the sandbox asynchronously.
You can also clone an existing sandbox when it already contains useful metadata and test data. Cloning is practical for creating a second test environment from a prepared source. Confirm that the source contains no temporary credentials, unwanted integrations, or test records that should not be copied.
Understand Refreshes
A refresh replaces the sandbox with a new copy from its source org. Use it when the sandbox has drifted from production, when testing needs current records, or when a clean baseline is required. Refreshing can remove sandbox-only records and settings, so export or commit anything valuable first. Afterward, reapply sandbox-specific integrations, users, and test configuration.
Exercise
Which sandbox should you choose for QA that needs a selected set of realistic production records?
Show answer
Choose a Partial Copy sandbox and define the required records with a sandbox template.