Salesforce DevOps & CI/CD Flashcards
Q. What is DevOps in Salesforce?
A. DevOps in Salesforce refers to a set of practices, tools, and cultural philosophies that automate and streamline development, testing, deployment, and collaboration in Salesforce projects.
Q. What are the key goals of Salesforce DevOps?
- Increase deployment speed and frequency
- Reduce manual errors in deployments
- Improve collaboration between teams
- Enable continuous integration & continuous deployment (CI/CD)
Q. What are the main challenges in Salesforce DevOps?
- Metadata-based deployment complexities
- Limited version control adoption
- Profile & permission management issues
- Data and environment inconsistencies
Q. What is version control in Salesforce DevOps?
A. Version control is a system that tracks code changes, metadata updates, and configuration changes, enabling team collaboration and rollback capabilities.
Q. What are common version control systems (VCS) used in Salesforce?
- Git (GitHub, GitLab, Bitbucket, Azure DevOps)
- SVN (Subversion)
- Perforce
Q. Why is version control important in Salesforce?
- Enables collaboration
- Provides audit history of changes
- Supports rollback & conflict resolution
- Allows branching & merging strategies
Q. What is the best Git branching strategy for Salesforce development?
- Feature Branching + GitFlow
- Main branch → Stable production
- Develop branch → Integrates new features
- Feature branches → Individual development tasks
- Hotfix branches → Urgent bug fixes
Q. What is Salesforce DX?
A. A developer-centric CLI toolset that enables modern DevOps practices, including version control, CI/CD, and scratch org-based development.
Q. What are key features of Salesforce DX?
- Scratch Orgs for temporary development environments
- Source-tracked development
- Metadata API & CLI-based deployments
- Automation for CI/CD
Q. What is a Scratch Org?
A. A temporary and disposable Salesforce environment used for development and testing.
Q. How do you create a scratch org using SFDX?
sfdx force:org:create -f config/project-scratch-def.json -a MyScratchOrg -s
Q. What is Continuous Integration (CI) in Salesforce?
A. CI is a practice where developers integrate code into a shared repository frequently and automatically, ensuring that changes are tested.
Q. What tools are commonly used for CI in Salesforce?
- GitHub Actions
- Jenkins
- Bitbucket Pipelines
- Azure DevOps
- CircleCI
Q. What are key benefits of Continuous Integration?
- Detects bugs early
- Reduces integration issues
- Automates testing & builds
Q. What steps are involved in a CI pipeline?
- Code is pushed to Git repository
- Automated build & test process starts
- Static code analysis is performed
- Deployment validation happens in a test environment