Back to exam

Certified Development Lifecycle and Deployment Architect Cheatsheet

Salesforce Certified Development Lifecycle and Deployment Architect

Download free PDF

Governance and agile delivery

Lifecycle and decision ownership

  • **Application lifecycle management (ALM)** connects requirements, design, development, testing, release and operation. Define owners, entry and exit criteria, evidence and feedback across the lifecycle.
  • A **Center of Excellence (COE)** establishes shared architecture, standards and governance. An **executive steering committee** resolves strategic priorities, major funding changes and escalated risks.
  • The **product owner** orders the backlog and clarifies value and scope. The **release manager** coordinates dependencies, environments and cutover; the architect assesses technical soundness and risk.
  • A **Change Advisory Board (CAB)** evaluates change impact and readiness. Document approval authority, security review and separation of duties, including an expedited path for emergencies.

Agile, Scrum and Kanban

  • **Agile delivery** uses short feedback loops, working increments and continuous improvement. A sprint length alone does not make a team agile; measure useful outcomes and adapt the process.
  • **Scrum** uses transparency, inspection and adaptation. Its values are commitment, focus, openness, respect and courage; teams make progress and impediments visible and share responsibility for quality.
  • Use **sprint planning** to forecast work, the **Daily Scrum** to inspect progress toward the Sprint Goal, the **review** to inspect outcomes and the **retrospective** to improve teamwork.
  • **Kanban** visualizes flow and limits work in progress. Track **lead time**, **cycle time** and **throughput**; an overloaded board exposes bottlenecks but does not itself prove customer value.

Requirements, evidence and visibility

  • Agree a **prioritization model** using value, risk, urgency, dependencies and effort. Refine large stories and control scope changes rather than allowing competing stakeholders to bypass the backlog.
  • Write testable **acceptance criteria** for each story. A shared **Definition of Done** sets quality expectations; a **requirements traceability matrix** links requirements to tests and acceptance evidence.
  • An **agile tool** should expose ordered backlogs, sprint work, owners and current status. Distributed teams need a shared board and regular updates; tool adoption requires working agreements.
  • A **burndown** shows remaining work against time. Repeated missed forecasts suggest capacity, scope or estimation problems; use trends to improve planning rather than treating velocity as a quota.

Adoption and controlled change

  • **User-centered design** validates user needs before building. Prototypes, business feedback, training and adoption measures help distinguish delivered features from realized business value.
  • A **citizen development program** expands low-code delivery through training, approved patterns, access boundaries and review. Keep business ownership and technical escalation explicit.
  • A **minor change policy** defines eligible low-risk changes, testing, documentation and release cadence. Direct production edits still require control and reconciliation into source and lower environments.
  • Track **escaped defects**, change failure rate, recovery time and delivery lead time alongside adoption. ALM reduces release risk through repeatable checks; no process guarantees defect-free production.

Org strategy and application boundaries

Single org versus multiple orgs

  • Assess **process standardization** and **business integration** separately. Common processes can be distributed across orgs; shared customers and tightly coupled processes strengthen the case for consolidation.
  • A **single org** simplifies shared customer context, collaboration and common administration. It also concentrates limits, automation interactions, data-model complexity and release coordination.
  • **Multiple orgs** support business autonomy, regulatory separation and independent release schedules. They add integration, duplicate administration and challenges with consistent data and enterprise reporting.
  • An **acquisition** does not automatically require consolidation. Compare data residency, process overlap, customer overlap, existing customizations, ownership and the cost of migration against ongoing integration.

Customer data and integration topology

  • A **customer 360** requires identity matching, deduplication, data stewardship and a defined system of record. Installing the same application in every org does not consolidate their records.
  • **Hub-and-spoke** centralizes shared customer services or master data. Define read and write ownership, conflict resolution, latency, failure handling and reconciliation between the hub and each spoke.
  • A **point-to-point mesh** multiplies connections as orgs grow. Prefer intentional integration boundaries over every org independently reading and writing every other org's customer data.
  • A business unit with independent customers and processes may remain **stand-alone**. Connect it to shared services only when a real business requirement justifies the coupling.

Shared core and local extensions

  • Separate a **shared core** from regional or business-unit extensions. Define stable interfaces, component ownership and allowed configuration points so local changes do not silently fork the common solution.
  • Use **modular packages** and explicit dependencies when teams need independently testable releases. Global standards and coordinated upgrades remain necessary even when orgs are separate.
  • For a large shared org, use consistent **Apex patterns**, bulk-safe automation and clear data ownership. Coordinate changes to common objects and fields across teams before merge and deployment.

Application distribution and migration

  • An **unmanaged package** can copy an application for recipient ownership, but provides no managed upgrade path. Check metadata support, dependencies, configuration data and access before transfer.
  • A **managed package** suits ongoing distribution with publisher-controlled upgrades and protected implementation. Design extension points so subscriber automation can integrate without modifying protected components.
  • A **managed-to-unlocked migration** affects namespace-qualified names, records and dependent integrations. Existing managed packages can participate in CI/CD; changing package type is not a prerequisite for automation.
  • Treat moving **released components between packages** as a compatibility change. Check supported component rules, dependency references and upgrade order; renaming or deleting source files alone does not safely relocate subscriber metadata.

Source control and package development

Development models and source of truth

  • In **change set development**, teams assemble changes from org metadata. Component selection, dependencies and environment state require careful tracking; a change set is not a version-control repository.
  • In **org development**, source control represents the application or org metadata and scripted tools retrieve and deploy changes. Automate provisioning and delivery where supported; tools do not automatically fix defects.
  • In **package development**, versioned modules and declared dependencies form release units. Packages improve reproducibility and team independence while source control remains the authoritative development record.
  • Track **permissions**, reports, dashboards and declarative automation with code. Reconcile authorized production edits before the next release so stale metadata does not overwrite business changes.

Branching and parallel work

  • Use **feature branches** for isolated work and pull requests for review. Integrate frequently; separate sandboxes do not prevent conflicts when teams change the same metadata.
  • **GitHub flow** uses short branches into a deployable main branch. **Trunk-based development** favors very small, frequent integrations; feature flags can separate code integration from feature exposure.
  • A **release branch** stabilizes an approved scope while later development proceeds. Keep fixes synchronized with active development; multiple release timelines require explicit branch ownership and support rules.
  • A **hotfix branch** starts from the production baseline. Merge the fix into relevant release and development branches so the next scheduled deployment does not reintroduce the defect.
  • A **merge conflict** appears when Git combines incompatible changes, such as during merge, rebase or pull-request checks. Review semantic conflicts too: a clean text merge can still break shared behavior.

Package types, versions and visibility

  • **Unlocked packages** suit source-driven enterprise customization with editable installed components. Version local extensions deliberately; subscriber edits can be affected by subsequent package upgrades.
  • **Managed 1GP** uses a packaging org; **managed 2GP** uses source-driven package versions associated with a Dev Hub. Both require lifecycle and upgrade discipline, not only an installation step.
  • Split packages by cohesive capability and ownership, declare **dependencies**, and install prerequisites first. Consult **metadata coverage** for packaging and API support; avoid a monolith built only to simplify initial setup.
  • Managed 2GP packages can share a **namespace**. **@NamespaceAccessible** exposes annotated public Apex to packages in that namespace; **global** exposes an API across namespaces and creates a broader compatibility commitment.

CLI projects and CI/CD

  • A **Salesforce DX project** includes project configuration and metadata directories. Run project-dependent CLI commands from the project context and explicitly target the intended authenticated org.
  • **Source format** organizes metadata for development; **Metadata API format** represents deployable files and manifests, often in a ZIP. Match commands to the artifact format rather than mixing incompatible deployment inputs.
  • A **CI pipeline** checks changes, builds an artifact, runs static analysis and tests, then records results. Promote the same tested artifact or package version through integration, UAT, staging and production.
  • **Continuous delivery** keeps approved changes ready to release; **continuous deployment** releases automatically after gates pass. Production approvals can remain explicit while execution is automated.
  • Maintain an **environment release inventory** of commit, package versions, configuration data and deployment results. Source tracking helps with supported metadata; unsupported types and manual setup still need explicit capture.

Environments and reproducible data

Choose environments by purpose

  • **Scratch orgs** are temporary, configurable environments for isolated features and automated tests. Use a **Dev Hub**, project source, required features, package dependencies and a repeatable data seed.
  • **Developer** and **Developer Pro sandboxes** copy metadata for development; Developer Pro adds data capacity. Load representative test data explicitly rather than expecting a production data copy.
  • A **Partial Copy sandbox** uses a template to copy selected production data and metadata. It suits representative testing or training when the selected sample covers the scenario.
  • A **Full sandbox** supports production-scale data and realistic staging, volume testing or defect reproduction. Match data shape, integrations and permissions as well as metadata; a full copy alone does not ensure fidelity.

Refresh, clone and synchronize

  • Define a **refresh plan** around release milestones and environment purpose. Save uncommitted work first; activation replaces the old sandbox state. Refresh eligibility is a minimum interval, not a mandatory schedule.
  • A **sandbox clone** starts from another sandbox and can preserve completed work for a parallel stream. It requires an available license of the same type and can use a source on a different release from production.
  • When refresh is unavailable, check **status**, refresh eligibility and sandbox license allocation. Higher-tier licenses can support lower-tier copies, so compare actual usage and entitlement before assuming a platform fault.
  • Automate **post-refresh setup**: safe endpoints, credentials, email controls, scheduled jobs, user access and external-ID mappings. Use identifiers valid in the test ecosystem, not production integration targets.

Preview releases and environment drift

  • Use the **Sandbox Preview Guide** to plan instance placement and refresh timing. Keep a non-preview path for a release targeting the current platform and a preview environment for seasonal regression.
  • A **newer source release** can contain metadata or features an older target does not recognize. Align platform versions and feature enablement across the deployment path before diagnosing a deployment-tool defect.
  • Keep a **production support baseline** aligned with released metadata and representative permitted data. Rehearse the production deployment there and seed or synchronize data through controlled processes.
  • **Metadata drift** includes admin changes, permission-set edits and user-managed report updates. Capture and review differences regularly, reconcile them into source and rerun affected tests before promotion.

Safe, repeatable test data

  • Use **synthetic data** when production records cannot enter non-production. Reproduce relationship depth, skew, ownership, volume and boundary values, not just record counts.
  • **Data masking** transforms sensitive values but does not automatically satisfy every restriction. If copying production data is prohibited, do not copy it first and rely on later masking.
  • Automated **data seeds** make tests and training repeatable. Validate load results, parent references and cleanup; automation still needs monitoring and an owner.
  • For repeated test or training cycles, use controlled **reset jobs** and baseline reloads when refresh timing is unsuitable. Delete by test ownership or batch identifier in dependency order to protect baseline records.

Testing, code quality and security

Isolated Apex tests

  • Create **test-owned data** with factories or **@testSetup**. Avoid **SeeAllData=true** dependencies on business records so tests behave consistently in development and production.
  • Use **Test.loadData** with a CSV static resource for suitable fixtures. Make assumptions about configuration, record types, users and permissions explicit; do not hard-code org-specific record IDs.
  • Register **HttpCalloutMock** or **WebServiceMock** using **Test.setMock** before exercising callouts. Tests use controlled responses rather than live endpoints; cover failures, timeouts and malformed responses through mocks.
  • Place setup before **Test.startTest()**, exercise the target behavior inside the test window, then use **Test.stopTest()** and assert results. This separates governor-limit context and runs supported queued asynchronous test work; production limits still apply.

A test strategy beyond coverage

  • **Code coverage** measures executed lines, not correctness. Assert business outcomes, permissions and side effects; higher percentages cannot replace good acceptance criteria or meaningful tests.
  • Cover **positive**, **negative**, **bulk** and boundary scenarios. Test invalid input, unexpected callout results, permission failures and batch errors so failure handling is exercised deliberately.
  • **Unit tests** isolate logic; **integration tests** verify system boundaries; **regression tests** protect existing behavior. **UAT** lets business users validate requirements and workflows with traceable acceptance evidence.
  • Test **declarative behavior** as well as Apex: flows, validation, assignment, access and other automation can change outcomes. Run fast checks on change and merge, with broader scheduled or release-level suites.

UI, accessibility and performance

  • Test **LWC JavaScript** with Jest and test **Apex controllers** separately. Aura uses its own component-testing approach; choose a supported harness appropriate to the component technology.
  • **Browser tests** cover critical user journeys; DOM changes in Salesforce releases can invalidate selectors. Use resilient locators and review **accessibility** with automated checks plus keyboard, focus and assistive-technology testing.
  • **Load testing** measures expected traffic; **stress testing** explores overload and recovery. **Performance testing** evaluates response times, throughput and resource behavior under representative conditions.
  • Model **peak concurrency**, record skew, automation, API demand and batch jobs together. Use a suitable sandbox and follow Salesforce's performance-testing process; optimize bulk processing and queries rather than relying on higher limits.

Standards and secure review

  • Define **coding standards**, train teams and run **static analysis** before human review. Small pull requests and shared review checklists reduce bottlenecks while preserving architectural and security judgment.
  • Enforce **CRUD**, **field-level security** and **record sharing** deliberately in Apex. Sharing rules do not replace object or field authorization; test least-privilege access and guard against SOQL injection and cross-site scripting.
  • For **AppExchange security review**, investigate scanner findings, fix real vulnerabilities and document justified false positives. A clean scan alone does not establish security, and unexplained findings should not be ignored.
  • **Apex metadata access** supports a limited set of metadata. Testing an uncertified managed package can require the **Deploy Metadata from Non-Certified Package Versions via Apex** org setting; respect namespace protection and user authorization.

Deployment, release and recovery

Release planning and readiness

  • Maintain a **release calendar** for major changes, smaller releases, hotfixes and Salesforce seasonal upgrades. Coordinate shared components, training and freeze windows; avoid major cutovers near peak business periods.
  • A **deployment runbook** names the exact artifact, target, owner, prerequisites, manual steps, activation, smoke tests and recovery actions. Separate business approval from technical execution and retain audit evidence.
  • **Validate** the final artifact against production before cutover and rehearse it in a representative environment. Resolve missing dependencies, tests, permissions and manual configuration before the deployment window.
  • A **validation** checks deployability without committing changes. A qualifying **quick deployment** reuses successful validation; ordinary deployment follows its own execution and testing path. Validation success is not business acceptance.

Metadata deployment mechanics

  • **Metadata API** retrieves and deploys application configuration in file-based artifacts. **Tooling API** supports developer tooling and finer-grained supported metadata operations, including queryable tooling objects.
  • A **package.xml** manifest lists metadata types and members. A destructive manifest such as **destructiveChanges.xml** requests supported deletions and is accompanied by package.xml, even when no additions are deployed.
  • **Change sets** move supported metadata between affiliated orgs with deployment connections. They support validation but are a manual mechanism, do not migrate business data and do not provide one-click rollback of a completed deployment.
  • A change set includes **one flow version**: the active version, or the latest inactive version if none is active. Include referenced components and verify the target activation setting; production activation may require a separate step.

Configuration data and migration

  • **Custom metadata records** travel as metadata; deploy the type definition through **CustomObject**, its fields through supported field metadata, and records through **CustomMetadata**. Custom-setting definitions and their data have different deployment needs.
  • **CPQ configuration** and other reference records stored in ordinary sObjects need data-aware migration. Version the export and transformation rules, preserve stable keys and use tooling that handles relationships and repeatable upserts.
  • Load **parents before children**: Accounts before related Contacts and Opportunities; Products, Price Books and Price Book Entries before Opportunity Line Items. Reconcile ownership, assignments, transformations and relationships against the source.
  • **REST Composite** can connect subrequests using earlier results; **SObject Tree** creates supported related record hierarchies. Choose the operation and transaction controls explicitly; **Bulk API** serves asynchronous high-volume data processing.
  • For related reference data, plan **relationship depth**, payload size, dependencies and circular references. Use staged loads with stable external IDs and later relationship updates when one hierarchical request cannot represent the graph.

Hotfixes, rollback and recovery

  • An **emergency hotfix** uses a production-aligned branch and environment, focused tests, security review and required approval. Assess data impact and synchronize the fix across active workstreams and lower environments.
  • For urgent **production containment**, use the approved incident path and peer review. Record any permitted direct configuration changes and reconcile them afterward; shared UAT with unreleased features is an unsafe hotfix baseline.
  • Distinguish **failed-deployment rollback** from reversing a successful release. Recovery can require redeploying prior metadata, removing new components, restoring data or applying a forward fix; rehearse the chosen path.
  • Keep **metadata snapshots**, data backups and tested restore procedures. Metadata redeployment does not undo records changed by automation; destructive changes and package upgrades require their own recovery analysis.
  • After release, perform **smoke tests**, monitor errors and integration health, and verify business outcomes. Define recovery time and acceptable data loss, evaluate backup tools against them, and feed incidents into the backlog.