Salesforce Certified Platform Development Lifecycle and Deployment Architect free question 2 / 10 · Domain 1: Application Lifecycle Management
A customer's developers edit in their orgs and tend to overwrite each other's work, and nobody can say which version of a component is correct. Which Salesforce DX practice from the Salesforce DX Developer Guide addresses this directly?
- Treat the production org as the source of truth, and have developers retrieve its metadata before they start a change
- Keep source code and metadata outside the org, with the version control system as the source of truth
- Give developers scratch orgs, and let the scratch org of the developer define the correct version of a component
- Move the team to one shared developer sandbox that holds a single copy of the components
Show the answer and explanation
Answer: B
Why this is correct
The guide says Salesforce DX brings source-driven development and team collaboration with governance. Its highlights include applying best practices to software development: source code and metadata exist outside of the org, which gives more agility to develop in a team environment, and instead of the org, the version control system is the source of truth. That is the direct answer to developers overwriting each other and to unclear versions.
Why the other options are wrong
"Treat the production org as the source of truth, and have developers retrieve its metadata before they start a change" … The guide moves the source of truth out of the org. Retrieving from production before each change leaves the org as the authority, which is the practice DX replaces.
"Give developers scratch orgs, and let the scratch org of the developer define the correct version of a component" … Scratch orgs are disposable development environments. The guide names the version control system as the source of truth, not any single org.
"Move the team to one shared developer sandbox that holds a single copy of the components" … A single shared sandbox keeps the org as the source of truth and invites more overwrites. The guide places truth in version control, which supports team development.
Key points
Moving from org-as-truth to repository-as-truth is the central maturity step in source-driven development. Branching, review and automation all depend on it.