SP Software Development Lifecycle 3 — Questions and Answers
Question 1: In Salesforce DevOps, what is a 'scratch org' primarily used for?
- Short-lived, configurable dev environments spun up on demand for feature development (Correct answer)
- A permanent sandbox tier that mirrors production data
- A read-only org used for UAT sign-off before release
- A backup org that stores previous metadata versions
Correct answer: Short-lived, configurable dev environments spun up on demand for feature development
Scratch orgs are ephemeral Salesforce environments configured from source that exist for up to 30 days, ideal for isolated feature development.
Question 2: Which type of sandbox provides a full copy of production data and is typically used for performance and load testing?
- Full Copy Sandbox (Correct answer)
- Partial Copy Sandbox
- Developer Pro Sandbox
- Developer Sandbox
Correct answer: Full Copy Sandbox
A Full Copy Sandbox replicates all production data and metadata, making it suitable for load testing and final UAT.
Question 3: What is the maximum number of active scratch orgs a Salesforce DX project can have by default with a Developer Edition org?
- 5 (Correct answer)
- 10
- 25
- 50
Correct answer: 5
Developer Edition orgs allow up to 5 active scratch orgs at a time by default, while Enterprise orgs receive a higher limit.
Question 4: A team is using GitFlow. After completing a hotfix branch merged into main, what additional step is required per GitFlow conventions?
- Merge the hotfix branch back into the develop branch as well (Correct answer)
- Delete the develop branch and restart from main
- Create a new release branch immediately
- Tag main and archive the hotfix branch without merging to develop
Correct answer: Merge the hotfix branch back into the develop branch as well
GitFlow requires hotfix branches to be merged into both main and develop so that the fix is included in ongoing feature development.
Question 5: Which Salesforce CLI command retrieves metadata from an org into the local SFDX project source format?
- sf project retrieve start (Correct answer)
- sf project deploy start
- sf org open
- sf apex run
Correct answer: sf project retrieve start
The 'sf project retrieve start' command pulls metadata from a connected org into the local source-format project directory.
Question 6: What is the role of a 'Definition File' (scratch-def.json) in Salesforce DX?
- It specifies the features, settings, and edition for a scratch org when it is created. (Correct answer)
- It maps local file paths to their remote metadata API names.
- It defines test data seeded into every new sandbox.
- It stores named credentials used by the deployment pipeline.
Correct answer: It specifies the features, settings, and edition for a scratch org when it is created.
The scratch org definition file declares which Salesforce features and settings the scratch org should have, acting as an infrastructure-as-code specification.
Question 7: Which practice helps prevent 'works on my machine' issues in Salesforce development across a team?
- Storing the full project metadata in version control so every developer works from the same source of truth (Correct answer)
- Each developer maintaining their own personal production org
- Deploying only using change sets to avoid CLI version differences
- Keeping all metadata exclusively in a shared sandbox that no one modifies
Correct answer: Storing the full project metadata in version control so every developer works from the same source of truth
Source-driven development with version control ensures all team members share a consistent, reproducible metadata baseline regardless of local environment.
In Salesforce DevOps, what is a 'scratch org' primarily used for?