Development & Deployment Flashcards
7 cards from real SAA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Development & Deployment flashcards as text
A team wants to ensure that metadata changes in a sandbox are automatically tracked and can be rolled back. Which tool is BEST suited for this requirement?
Answer: Salesforce DX (SFDX) with version control integration
Salesforce DX integrates with version control systems like Git, enabling automatic tracking of metadata changes and rollback capabilities.
During a code review, a developer used a SOQL query inside a for loop. What is the primary risk of this pattern in Salesforce?
Answer: It can exceed the 100 SOQL queries per transaction governor limit
SOQL queries inside loops multiply with each iteration and can quickly hit the 100 SOQL queries per transaction governor limit.
An architect needs to deploy a complex package with dependencies between components across multiple orgs. Which approach is MOST appropriate?
Answer: Use unlocked packages with explicit package dependencies defined in sfdx-project.json
Unlocked packages support explicit dependency declarations in sfdx-project.json, ensuring proper installation order across orgs.
A company wants to enforce code coverage requirements before any deployment to production. Which mechanism enforces this automatically?
Answer: Salesforce requires at least 75% overall Apex code coverage for production deployments
Salesforce enforces a minimum of 75% overall Apex code coverage as a built-in requirement for all production deployments.
Which environment type in Salesforce is BEST suited for performance and load testing before a production release?
Answer: Full Sandbox
A Full Sandbox contains a complete copy of production data and metadata, making it the best environment for realistic performance and load testing.
An architect is designing a CI/CD pipeline for a Salesforce project. Which sequence of steps BEST represents an automated pipeline?
Answer: Code commit → Automated tests → Validate deploy → Merge → Deploy to production
A best-practice CI/CD pipeline automates testing and validation on every code commit before promoting changes through environments to production.
A developer created a trigger on the Account object that fires on insert and update. During a data migration, 50,000 records are inserted via Data Loader. What Apex feature ensures the trigger handles this efficiently?
Answer: Writing bulkified trigger logic that processes records in collections
Bulkified trigger logic processes records using collections (lists/maps) rather than one at a time, efficiently handling large data volumes within governor limits.