Sub topic 7
Choosing a sandbox type for the job
This chapter assumes you know the four sandbox types (Developer, Developer Pro, Partial Copy, Full) and their storage and refresh limits from the earlier chapters. Here you use those facts to pick a type for a specific task.
Start from what the task needs
Ask three questions in order:
- Does the work need production-like data, or only the metadata (configuration and code)?
- If it needs data, does a sample work, or does it need the full volume?
- How often will you need to refresh the sandbox?
A sandbox that copies more than the task needs costs more and refreshes less often. The cheapest type that answers all three questions is usually the right one.
Matching types to common tasks
| Task | Suggested type | Reason |
|---|---|---|
| Building and unit testing a feature | Developer | Metadata only, refreshes daily, and you create your own test records |
| Developing with larger test data sets, or running a build pipeline | Developer Pro | Same as Developer with 1 GB of data storage |
| QA and user acceptance testing | Partial Copy | A sample of real data, defined by a template, with a 5-day refresh |
| Integration testing with realistic records | Partial Copy or Full | Depends on whether sample data exercises the integration paths |
| Performance and load testing, staging | Full | Production-sized data and volume, a 29-day refresh |
| Training | Developer or Partial Copy | Training rarely needs full volume |
Trade-offs to weigh
- Refresh interval. A Developer sandbox can be refreshed daily. A Full sandbox can be refreshed once every 29 days. If your team needs to reset often, a Full sandbox will get in the way.
- Data sensitivity. Partial Copy and Full sandboxes carry real customer data, so they need tighter access control. A Developer sandbox holds none.
- Allocation. Each edition includes a fixed number of each type. Full sandboxes are the scarcest, so reserve them for work only they can do.
- Test realism. Passing tests in a Developer sandbox does not show that code handles production volumes. Plan a Full sandbox stage before release if volume matters.
Common mistakes
- Using a Full sandbox for everyday development. It ties up your scarcest allocation and cannot be reset when you need to.
- Using a Developer sandbox to test data-dependent behavior, such as reports or sharing rules, then being surprised in production.
- Expecting Partial Copy to hold everything. It copies a sample, up to 10,000 records per object, chosen by the template.
Exercise
A team must run a load test with production-sized data before a major release. They have also been refreshing their Developer sandboxes daily. Which type do they need for the load test, and how often can they refresh it?
Show answer
A Full sandbox, because only Full copies all production data at production volume. It can be refreshed once every 29 days, so the team should schedule the refresh before the test. Their daily-refreshed Developer sandboxes can stay as they are.