Package homePlatform Development Lifecycle and Deployment ArchitectStudy guide
Study guide

Chapter 18% of the exam30 min

Application Lifecycle Management

What application lifecycle management is and how it relates to DevOps, the stages every change moves through, the benefits and risks of waterfall, agile, Scrum, Kanban and hybrid methods, and how governance and development practices should grow with a customer's maturity.

By the end of this chapter you can

  • Given the project risk and customer requirements, explain how to assess the benefits and risks of the different development methodologies and recommend the appropriate governance strategies based on the customer maturity

What ALM is

Scenario: A retailer's admins change Salesforce directly in production. Last month a renamed field broke a flow, and nobody could say what had been deployed, when or by whom.

The lifecycle every change moves through. Plan: requirements and priorities. Build: in isolated environments. Test: unit, UAT and performance. Deploy: through a repeatable, automated process. Monitor: stability and adoption. Three pillars hold it up: people, processes and tools. Plan requirements and priorities Build isolated environments Test unit, UAT, performance Deploy repeatable, automated Monitor stability and adoption Three pillars hold it up: people, processes and tools
The lifecycle every change moves through

Application lifecycle management (ALM) is the set of tools and methods that manage an application's life from design to final release. It makes sure every change is:

  • planned, with clear requirements and a business reason;
  • built in isolated development environments;
  • tested before it reaches users;
  • deployed through a repeatable, automated process;
  • monitored for stability and performance.

Stages and pillars

Stage What happens What goes wrong without it
Plan Requirements, priorities, design Two teams build the same app without knowing it
Build Development in sandboxes or scratch orgs A renamed field breaks someone else's flow
Test Unit, integration, UAT, performance tests An untested change clashes with existing automation
Deploy / release Move changes to production Nobody knows what was deployed, or by whom
Monitor / observe Watch stability, performance and adoption Teams build unused features and miss bottlenecks
  • ALM rests on three pillars: people, processes and tools.
  • DevOps supplies the practices around ALM: continuous delivery, automation, shared responsibility for production and feedback loops. Salesforce's Lifecycle Center (formerly DevOps Center) supplies tools for it.

Environments per stage

Stage Typical environments
Plan Developer Edition, trial orgs, Developer sandboxes or scratch orgs
Build Developer or Developer Pro sandboxes, or scratch orgs, with source tracking
Test Scratch orgs, Partial Copy or Full sandboxes
Release Partial Copy or Full sandboxes, then production
Monitor Full sandboxes and production

Exam tip: ALM answers "how does a change get safely from an idea to production?" If a scenario has changes made straight in production with no record, the answer brings in source control, isolated environments and a repeatable release process.

Development methodologies

Scenario: A bank's project has fixed regulatory requirements and a deadline, while its sales app changes every month based on user feedback.

Comparing delivery methods. Waterfall: fixed scope and predictable, but hard to change later. Agile: iterative and flexible, but harder to budget up front. Scrum: 2-week sprints and defined roles, but urgent work waits. Kanban: continuous flow with WIP limits, suiting interruption-driven work. Scrumban: a sprint cadence plus WIP limits. Waterfall fixed scope, predictable; hard to change later Agile iterative and flexible; harder to budget up front Scrum 2-week sprints and roles; urgent work waits Kanban continuous flow, WIP limits; suits interruptions Scrumban sprint cadence plus WIP limits
Comparing delivery methods

Method Benefits Risks Fits when
Waterfall Structured and predictable; time and cost set up front; changes tightly controlled Inflexible; assumes requirements are fixed; little stakeholder involvement; dissatisfaction risk at the end Small, predictable projects with fixed scope, time and cost
Agile Flexible; iterative; requirements refined over time; frequent delivery; close stakeholder involvement Needs a culture of change; harder to budget the whole project; scope can grow; risk of piecemeal products Complex work where feedback and change are expected
Scrum Defined roles, meetings and deliverables; short sprints; protects the team from interruptions Urgent work waits for the next sprint Large planned projects delivered in fixed chunks
Kanban Continuous flow; visible work; WIP limits; easy to adopt; urgent work starts when capacity frees up Doesn't help if work isn't really interruption-driven Support, operations and other interruption-driven work
Scrumban Scrum's planning cadence with Kanban's WIP limits Needs discipline to keep both Planned work plus a steady stream of urgent requests

Choosing

  • Ask how much is known, how clear the requirements and solution are, how complex the work is, and how experienced the team and stakeholders are.
  • Consider Kanban when priorities change often, for example when at least a quarter of the work changes mid-sprint.
  • Agile expects change, but unlimited change raises cost and lengthens timelines; waterfall controls change through formal review and approval.

Agile at Salesforce

  • Salesforce moved to agile in 2006. Most teams use Scrum with 2-week sprints; others use Kanban or a mix.
  • Scrum roles: a product owner owns and prioritizes the backlog (the "what and why"), a Scrum lead removes blockers, and a self-organizing team of 3 to 9 people does the work.
  • The product backlog is the single source of truth for all requested changes. A definition of done sets what "finished" means for every item.

Exam tip: "Requirements are fixed and won't change" leans to waterfall. "Users will shape the app as it grows" leans to agile. "The team is constantly interrupted by urgent support work" points to Kanban.

Governance by maturity

Scenario: A company started with one admin. Now it has eight admins, three developers and an integration team, and releases keep breaking each other.

Governance grows with maturity. Ad hoc: changes in production and spreadsheets. Repeatable: source control, the org development model and a small CoE. Automated: packages, CI and quality gates. Enterprise: a federated CoE across many orgs. Governance and automation grow with the number of teams. Ad hoc production changes, spreadsheets Repeatable source control, org model, CoE Automated packages, CI, quality gates Enterprise federated CoE, many orgs Governance and automation grow with the number of teams
Governance grows with maturity

  • Governance is best from the start, but late is better than never. The more an org scales, the more governance it needs, because complexity grows quickly when many people change the same org.
  • The golden rule for a Center of Excellence: start small, then scale.

Matching practice to maturity

Maturity Signs Governance Development and release
Ad hoc Changes made in production; priorities set by whoever shouts loudest; spreadsheets of changes A change management process; limit who can customize production Move work into sandboxes; change sets for simple moves; a regular release schedule
Repeatable Several admins and developers; environments drift; change sets fail A small CoE with a Design Authority and a release manager The org development model with source control, the CLI and a manifest; at least development, staging and production
Defined and automated Several teams in one org; teams want to release independently Formal roles, KPIs and a regular governance rhythm The package development model, CI with scratch orgs, automated quality gates
Enterprise Many orgs or business units A federated or hybrid CoE, architecture review boards per org Packages shared from a hub, release management per org, delivery metrics

Testing and environments by maturity

  • No custom code: manual functional testing and UAT. Some code: add unit tests. Complex code: automated testing and CI. With more than one developer, use automated tools whatever the complexity.
  • As an org grows, use at least three orgs: development, staging and production, and often a fourth for UAT.

Center of Excellence models

Model Control Suits
Centralized The CoE decides, with veto power A single org focused on one process at a time
Federated Business units decide; the CoE advises Several orgs or several geographic markets
Hybrid Standards set centrally, enforced by each group One or many orgs with very different groups, such as B2B and B2C

Exam tip: Recommend governance that fits the customer's maturity: a two-admin team doesn't need a release board, but five teams in one org need a CoE, a release manager and automated testing.

Hands-on exercise

Choose a delivery approach

Recommend a methodology and governance level for two very different Salesforce teams.

Use a free Salesforce Developer Edition org — never a production org.

0 of 5 steps done

How to check your work: Team A fits a light agile or Kanban flow, change sets or simple source-driven deployment, a sandbox and production, and light governance; Team B fits Scrum or Scrumban, source control and the package or org development model with CI/CD, development, integration, UAT, staging and production environments, and a CoE with a Design Authority and release manager.

Domain quiz: Application Lifecycle Management

10 questions from the 19 in this domain, different each time and checked as you go. Anything you miss is saved to Mistakes review.

Questions
10
Time
Untimed
Feedback
After each answer

New questions each time you start, drawn from the bank, unseen ones first.

Planning