PD1 Deployment Strategies 4 — Questions and Answers
Question 1: What must a developer do before performing a Quick Deploy in production?
- Run all tests manually in production first
- Complete a successful validation with tests passing within the last 10 days (Correct answer)
- Deploy to a full sandbox first
- Obtain approval from a Salesforce Release Manager
Correct answer: Complete a successful validation with tests passing within the last 10 days
Quick Deploy requires a completed, successful validation run (including passing tests) performed within the previous 10 days on the same org.
Question 2: Which metadata component type defines the automated deployment pipeline steps in a Salesforce DevOps Center project?
- DeploymentPipeline
- WorkItemStage
- PipelineStage (Correct answer)
- ReleaseDefinition
Correct answer: PipelineStage
PipelineStage metadata defines each environment stage (Dev, QA, UAT, Production) within a Salesforce DevOps Center pipeline.
Question 3: A developer runs 'sf project deploy start' and receives a 'DUPLICATE_VALUE' error. What is the most likely cause?
- A component with the same API name already exists and the deploy tried to create it (Correct answer)
- Two metadata files in the package share the same filename
- The org has reached its metadata component limit
- The package.xml contains a duplicate entry for the same component
Correct answer: A component with the same API name already exists and the deploy tried to create it
DUPLICATE_VALUE typically means a metadata component being deployed already exists in the org and the operation attempted an insert rather than an upsert.
Question 4: Which Salesforce feature enables teams to track which user story or work item a set of metadata changes belongs to?
- Change Sets with descriptions
- Salesforce DevOps Center Work Items (Correct answer)
- Git commit messages
- Metadata Coverage Report
Correct answer: Salesforce DevOps Center Work Items
Salesforce DevOps Center Work Items link specific metadata changes to user stories or tasks, providing full traceability throughout the pipeline.
Question 5: When using Salesforce CLI, which file format stores authentication credentials for connected orgs locally?
- .sfdcrc
- sfdx-project.json
- A JSON file in the .sf/credentials directory (Correct answer)
- config/project-scratch-def.json
Correct answer: A JSON file in the .sf/credentials directory
Salesforce CLI stores org authentication tokens and credentials in JSON files within the user's home .sf directory.
Question 6: A managed package component cannot be overwritten by a deployment. What should a developer do if a managed package field needs customization?
- Fork the managed package and redeploy
- Create a custom field on the same object and use it instead (Correct answer)
- Deploy a field with the same API name to override it
- Use a destructiveChanges.xml to first delete the field
Correct answer: Create a custom field on the same object and use it instead
Managed package components are locked and cannot be modified; developers must create their own custom components to extend or replace the functionality.
Question 7: In a CI/CD pipeline for Salesforce, what is the purpose of the 'sf project generate manifest' command?
- Generates a scratch org definition file
- Creates a package.xml based on local source files (Correct answer)
- Produces a deployment report for auditing
- Generates an unlocked package version
Correct answer: Creates a package.xml based on local source files
'sf project generate manifest' introspects the local source directory and creates a package.xml that lists all metadata components found.
What must a developer do before performing a Quick Deploy in production?