Sub topic 3
The four sandbox types at a glance
This chapter assumes you know what a sandbox is, can find your way around Setup, and understand the difference between metadata (configuration and code) and data (records). Later chapters cover storage, refresh intervals and type selection in detail. This one gives you the overview.
What distinguishes the types
Salesforce offers four sandbox types: Developer, Developer Pro, Partial Copy, and Full. They differ in two ways:
- What is copied from the source org. Developer and Developer Pro copy metadata only. Partial Copy copies metadata plus a sample of data. Full copies metadata plus all data.
- How much they can hold and how often you can refresh them. Larger copies take longer to build, so they have longer refresh intervals.
All four copy your metadata, such as custom objects, fields, Apex classes, flows and page layouts. The difference is in the records.
Comparison
| Type | Data copied | Data storage | Refresh interval |
|---|---|---|---|
| Developer | Metadata only | 200 MB | 1 day |
| Developer Pro | Metadata only | 1 GB | 1 day |
| Partial Copy | Metadata and a sample of data, chosen by a sandbox template | 5 GB | 5 days |
| Full | Metadata and all data | Same as production | 29 days |
Developer and Developer Pro also have file storage limits, which later chapters cover. Partial Copy and Full sandboxes are the types that can use a sandbox template to control which data is copied.
How the types relate
The types form a ladder. Each step up copies more data and takes longer to refresh.
Typical roles
- Developer and Developer Pro suit one person building and unit testing changes. You can refresh them daily, so they are cheap to reset. Developer Pro offers more storage for the same kind of work.
- Partial Copy suits QA and user acceptance testing, where you need realistic records but not a complete copy.
- Full suits performance testing, staging and training, where production-like volume and data matter.
Where each type fits in a lifecycle
A common pattern uses several types together. Developers work in their own Developer sandboxes. Their changes move to a Partial Copy sandbox for testing, then to a Full sandbox for final checks before production.
Common mistakes
- Expecting records in a Developer sandbox. A Developer sandbox copies no records, so reports and test scenarios that need data will come back empty until you load some.
- Assuming a Partial Copy sandbox is a full copy. It contains only a sample, so a bug that depends on a specific record may not reproduce.
- Planning around a refresh you cannot run yet. A Full sandbox can be refreshed only once every 29 days. Decide on timing before you need the refresh.
Exercise
A team wants to run a load test with production-like data volumes. Which sandbox type fits, and what limits how often they can reset it?
Show answer
A Full sandbox, because it copies all production data. It can be refreshed only once every 29 days.
Exercise
Which two sandbox types copy metadata only, and how do they differ?
Show answer
Developer and Developer Pro. Both can be refreshed daily. Developer Pro has more storage (1 GB of data storage, compared with 200 MB).