Salesforce Certified Development Lifecycle and Deployment Designer

Question bank

Salesforce logo

Salesforce Certified Development Lifecycle and Deployment Designer

Salesforce-DevLife

40 Salesforce Certified Development Lifecycle and Deployment Designer questions with the correct answer and a written explanation, organised across 4 exam domains.

40 questions
4 domains
Foundation level

Question index

Jump straight to any question. Answers and explanations are inline.

Deployment Management

12 questions in this domain

  1. Question 1Single Choice

    What is a Change Set in Salesforce deployment management?

    • AA declarative point-to-point process that uploads selected metadata components to a target orgCorrect answer
    • BA Git-integrated visual tool that automates sandbox synchronization
    • CAn API designed for high-volume package deployments
    • DA tool for migrating data between environments

    Why this is the answer

    Change Sets are manual, declarative point-to-point transfers requiring a direct org connection; they do not integrate with Git or manage data migration.

  2. Question 2Multiple Select

    Which limitations are correctly associated with Change Sets?

    • AThey require a direct connection between orgsCorrect answer
    • BThey cannot support branching or parallel development streamsCorrect answer
    • CThey lack detailed historical change trackingCorrect answer
    • DThey support Git merge and pull request workflows

    Why this is the answer

    Change Sets are linear and single-path, require org connections, and do not offer granular historical tracking or Git workflows.

  3. Question 3Interactive

    Examine the XML snippet and identify the API that primarily relies on this manifest style for package-level operations.

    • AMetadata APICorrect answer
    • BTooling API
    • CDevOps Center Work Items
    • DData Migration API

    Why this is the answer

    The Metadata API uses package manifests to deploy or retrieve large metadata bundles; Change Sets and CLI depend on it.

  4. Question 4Single Choice

    What does DevOps Center require to function effectively?

    • AAn external Git repositoryCorrect answer
    • BA direct org-to-org connection
    • CA Metadata API package
    • DA sandbox-only architecture

    Why this is the answer

    DevOps Center relies on an external Git provider to version, branch, merge, and synchronize metadata changes.

  5. Question 5Multiple Select

    Which advantages does DevOps Center provide over Change Sets?

    • AWork Items group related metadata changesCorrect answer
    • BConflicts are identified through Git integrationCorrect answer
    • CSandbox and Git repository synchronization is automatedCorrect answer
    • DMetadata components are uploaded without any connection

    Why this is the answer

    DevOps Center visualizes work, automates sandbox-Git sync, and detects conflicts via Git, unlike disconnected Change Sets.

  6. Question 6Interactive

    The CLI command in the code block is run to check deployment readiness. Which deployment pattern does it support?

    • AValidate FirstCorrect answer
    • BPush-to-Pull
    • CDirect-to-Production
    • DData Migration

    Why this is the answer

    The validation-only or dry-run pattern verifies errors, dependencies, and test coverage before actual deployment.

  7. Question 7Single Choice

    Which API is designed for high-volume operations and complete package deployments?

    • AMetadata APICorrect answer
    • BTooling API
    • CDevOps Center
    • DChange Sets

    Why this is the answer

    Metadata API handles complex dependencies and large, package-level deployments across environments.

  8. Question 8Multiple Select

    Which statements about Metadata API and Tooling API are true?

    • AMetadata API operates at package levelCorrect answer
    • BTooling API allows surgical updates to selected componentsCorrect answer
    • CTooling API is optimized for developer velocityCorrect answer
    • DMetadata API is intended only for data migration

    Why this is the answer

    Metadata API handles package deployments; Tooling API is lightweight, granular, and built for developer-centric tasks.

  9. Question 9Interactive

    The snippet below retrieves only metadata about an Apex class without performing a full deployment. Which API is represented?

    • ATooling APICorrect answer
    • BMetadata API
    • CBulk API
    • DREST API for Change Sets

    Why this is the answer

    A URL path containing /tooling/ identifies the Tooling API, optimized for granular developer workflow calls.

  10. Question 10Single Choice

    In source-driven development, where does the authoritative version of truth reside?

    • AGit repositoryCorrect answer
    • BProduction org
    • CSandbox
    • DChange Set package

    Why this is the answer

    The CLI supports a source-driven model where Git is the authoritative source, not an org or Change Set.

  11. Question 11Multiple Select

    Which statements about Salesforce CLI are correct?

    • AIt runs non-interactively for automation serversCorrect answer
    • BIt manages scratch org lifecycleCorrect answer
    • CIt handles both Metadata API format and Source formatCorrect answer
    • DIt only works with Change Sets

    Why this is the answer

    CLI is non-interactive, orchestrates scratch orgs, and converts between metadata and source formats; it does not depend on Change Sets.

  12. Question 12Interactive

    The command shown is part of which lifecycle concept?

    • AScratch Org orchestrationCorrect answer
    • BChange Set deployment
    • CPackage migration
    • DData backup

    Why this is the answer

    CLI commands create, configure, and destroy scratch orgs, enabling clean and reproducible developer environments.

Development Lifecycle Management

12 questions in this domain

  1. Question 13Single Choice

    Which answer best describes the role of a Change Set in Salesforce metadata movement between connected orgs?

    • AManual point-to-point metadata transfer between orgsCorrect answer
    • BGit-based branch management for parallel work
    • CAPI for real-time code analysis in IDEs
    • DTool for migrating records between orgs

    Why this is the answer

    A Change Set is a manual, declarative process that packages selected metadata and uploads it to a target org through a direct connection.

  2. Question 14Multiple Select

    Which two statements are true about the features and requirements of Salesforce DevOps Center?

    • ASalesforce-native and Git-integratedCorrect answer
    • BGroups related changes into Work ItemsCorrect answer
    • CEliminates the need for Git
    • DOnly supports linear deployments

    Why this is the answer

    DevOps Center is Salesforce-native and uses Git integration. It groups related changes into Work Items, but it requires Git and does not replace branching.

  3. Question 15Interactive

    Based on the command shown in the code block, what action is being performed on the target production org?

    • AValidates without saving changesCorrect answer
    • BDeploys metadata to production
    • CRetrieves metadata from Git
    • DCreates a Scratch Org

    Why this is the answer

    The --dry-run flag runs a validation-only deployment, checking components and tests without making changes to the target org.

  4. Question 16Single Choice

    In the Salesforce development lifecycle, what is the Tooling API primarily designed to optimize?

    • AGranular developer metadata interactionsCorrect answer
    • BBulk package deploys
    • CData migration between orgs
    • DAutomatic Change Set creation

    Why this is the answer

    The Tooling API is lightweight and optimized for developer workflows such as IDE integrations, code analysis, and surgical metadata updates.

  5. Question 17Multiple Select

    Which two statements correctly compare the Metadata API with the Tooling API for deployment and development tasks?

    • AMetadata API handles large package deploymentsCorrect answer
    • BTooling API supports granular developer updatesCorrect answer
    • CTooling API replaces Metadata API entirely
    • DMetadata API can only retrieve metadata

    Why this is the answer

    Metadata API is for high-volume package deployments and retrievals; Tooling API enables surgical, real-time developer interactions. Neither replaces the other.

  6. Question 18Interactive

    What is the outcome of running the conversion command shown in the code block for metadata format management?

    • AMetadata API format to source formatCorrect answer
    • BSource format to Metadata API format
    • CDeploys metadata to production
    • DCreates a Scratch Org

    Why this is the answer

    The convert mdapi command transforms Metadata API format into source format so metadata can be managed in a Git-based workflow.

  7. Question 19Single Choice

    What is a Work Item in Salesforce DevOps Center and how does it improve release visibility?

    • ARelated metadata changes grouped with visibilityCorrect answer
    • BSingle point-to-point Change Set upload
    • CA Git branch for hotfixes only
    • DAn XML metadata definition file

    Why this is the answer

    Work Items group related metadata changes under one logical unit, improving visibility and traceability in the pipeline.

  8. Question 20Multiple Select

    Which two statements correctly describe the differences between Change Sets and DevOps Center in a deployment lifecycle?

    • AChange Sets do not support branchingCorrect answer
    • BDevOps Center requires a Git repositoryCorrect answer
    • CChange Sets support complex branching
    • DDevOps Center does not need Git

    Why this is the answer

    Change Sets are linear and require a direct org connection. DevOps Center depends on Git and supports branching, merging, and pull requests.

  9. Question 21Interactive

    In source-driven development, what does the command in the code block indicate about the location of the authoritative source?

    • AThe Git repositoryCorrect answer
    • BThe target org
    • CThe Change Set
    • DThe production environment

    Why this is the answer

    In source-driven development, local source managed in Git is the source of truth; deployments synchronize that source to target orgs.

  10. Question 22Single Choice

    Which Salesforce org type is specifically designed to be ephemeral, clean, and reproducible for each developer in a team?

    • AScratch OrgCorrect answer
    • BProduction org
    • CDeveloper Sandbox
    • DChange Set target

    Why this is the answer

    Scratch Orgs are ephemeral environments that provide every developer a clean, isolated, and reproducible workspace.

  11. Question 23Multiple Select

    Which two characteristics make the Salesforce CLI a standard tool for non-interactive CI/CD pipeline automation?

    • ANon-interactive executionCorrect answer
    • BProgrammatic validation and testingCorrect answer
    • CRequires manual browser authentication
    • DCan only run in a sandbox

    Why this is the answer

    The CLI is non-interactive and supports programmatic testing, validation, and environment setup, making it ideal for CI/CD.

  12. Question 24Interactive

    Why should an architect run the validation command in the code block before a production deployment is committed?

    • ADetects errors before committing changesCorrect answer
    • BMigrates field data to production
    • CCreates a Git branch
    • DPermanently saves changes

    Why this is the answer

    Validation-first deployment detects errors, dependencies, and test coverage issues before changes are committed to production, saving time and resources.

Governance and Risk Management

8 questions in this domain

  1. Question 25Single Choice

    What is a defining characteristic of Change Sets?

    • AThey automatically create branches for parallel development.
    • BThey manually package selected metadata and require a direct org-to-org connection.Correct answer
    • CThey rely on an external GitHub repository to store metadata versions.
    • DThey record every historical change at the component level.

    Why this is the answer

    Change Sets are manual point-to-point tools that package selected metadata and require a direct connection. They do not support branching or granular historical tracking.

  2. Question 26Multiple Select

    Which statements about DevOps Center are correct? Select all that apply.

    • AIt is a Salesforce-native application with a visual management interface.Correct answer
    • BIt automates synchronization between a sandbox and a Git repository.Correct answer
    • CIt can operate without an external Git repository when used for simple deployments.
    • DIt groups related metadata changes into Work Items for better pipeline visibility.Correct answer

    Why this is the answer

    DevOps Center is Salesforce-native, Git-integrated, and uses Work Items. It requires an external Git provider and is not designed to function without one.

  3. Question 27Interactive

    What is the purpose of the command shown in the code block?

    • AIt deploys local source to the specified Salesforce org.Correct answer
    • BIt retrieves metadata from a sandbox to local files.
    • CIt creates a scratch org for isolated development.
    • DIt converts source-format files into Metadata API format.

    Why this is the answer

    The sf project deploy start command pushes local source code into the target org, making it the primary CLI deployment command.

  4. Question 28Single Choice

    What is the primary purpose of the Metadata API's retrieve call?

    • ATo deploy Apex classes to production
    • BTo retrieve metadata components from an org so they can be versioned or deployedCorrect answer
    • CTo query individual record data stored in custom objects
    • DTo run automated Apex tests before deployment

    Why this is the answer

    The Metadata API retrieve call extracts metadata from an org for version control or later deployment. It does not migrate data or run Apex tests.

  5. Question 29Multiple Select

    Which characteristics are true of the Tooling API? Select all that apply.

    • AIt is optimized for developer-centric, granular interactions.Correct answer
    • BIt is commonly used for IDE integrations and real-time code analysis.Correct answer
    • CIt is the standard choice for high-volume, full package deployments.
    • DIt can perform surgical updates to specific metadata elements.Correct answer

    Why this is the answer

    The Tooling API is lightweight and designed for developer workflows. The Metadata API, not the Tooling API, is best for high-volume package deployments.

  6. Question 30Interactive

    What does this command do in the deployment process?

    • AIt applies all changes to production immediately.
    • BIt validates deployment, dependencies, and tests without changing the org.Correct answer
    • CIt creates a rollback plan for the previous deployment.
    • DIt generates a package from the org's current metadata.

    Why this is the answer

    The --dry-run flag uses the validate-first pattern, checking components, dependencies, and Apex test readiness before an actual deployment.

  7. Question 31Single Choice

    In a modern source-driven development lifecycle, where does the authoritative source of truth reside?

    • AThe production org
    • BThe Git repositoryCorrect answer
    • CThe sandbox where development started
    • DThe latest Change Set

    Why this is the answer

    In source-driven development, Git is the authoritative version of truth. Orgs and sandboxes are deployment or development targets, not the source of truth.

  8. Question 32Multiple Select

    Which limitations are associated with Change Sets? Select all that apply.

    • AThey support only linear, single-path development.Correct answer
    • BThey cannot track granular historical changes to components.Correct answer
    • CThey require a direct connection between source and target orgs.Correct answer
    • DThey automatically resolve parallel development conflicts using Git.

    Why this is the answer

    Change Sets are point-to-point and linear, lack granular history, and need a direct org connection. They do not provide Git-based conflict resolution.

Testing and Validation

8 questions in this domain

  1. Question 33Single Choice

    Which deployment pattern does the Salesforce CLI enable by using dry-run or validation-only flags before any changes are committed to production?

    • AValidate FirstCorrect answer
    • BRetroactive Deployment
    • CHot Swap
    • DSchema Compare

    Why this is the answer

    The Salesforce CLI supports the Validate First deployment pattern through dry-run or validation-only flags, allowing teams to check deployment errors and test coverage before committing changes.

  2. Question 34Multiple Select

    Which statements correctly describe DevOps Center? Select all that apply.

    • AIt requires an external Git repository to operate effectively.Correct answer
    • BIt provides a visual interface and automates synchronization between sandboxes and Git.Correct answer
    • CIt groups related metadata changes into Work Items for better deployment visibility.Correct answer
    • DIt eliminates the need for Git by operating entirely inside Salesforce.

    Why this is the answer

    DevOps Center is a Salesforce-native, Git-integrated tool. It requires an external Git provider, provides a visual interface, automates sandbox-Git synchronization, and uses Work Items to group metadata changes. It does not remove the need for Git.

  3. Question 35Interactive

    A developer executes the following Salesforce CLI command. What is the primary purpose of this command?

    • ADeploy all local metadata to production and run local tests.
    • BValidate the deployment and run tests without committing changes.Correct answer
    • CRetrieve metadata from production into the local source directory.
    • DDelete the production org's metadata and recreate it.

    Why this is the answer

    The --dry-run flag triggers a validation-only deployment, confirming whether the metadata would deploy and whether tests pass, without actually changing the target org.

  4. Question 36Single Choice

    Which API is designed for high-volume operations, complete package deployments, and serves as the backbone of Change Sets and CLI-driven deployments?

    • AMetadata APICorrect answer
    • BTooling API
    • CAnalytics API
    • DConnect REST API

    Why this is the answer

    The Metadata API handles high-volume operations, complete package deployments, and complex metadata dependencies. It is the backbone of Change Sets and CLI-driven deployments.

  5. Question 37Multiple Select

    Which statements correctly describe the Tooling API? Select all that apply.

    • AIt is a lightweight version of the Metadata API optimized for developer-centric tasks.Correct answer
    • BIt is the primary engine for deploying complete packages and complex dependency bundles.
    • CIt allows faster, more granular interactions with specific metadata components.Correct answer
    • DIt is essential for IDE integrations, real-time code analysis, and surgical updates.Correct answer

    Why this is the answer

    The Tooling API is a lightweight, developer-focused API for granular interactions and speeds up IDE integrations and code analysis. It does not handle large package deployments like the Metadata API.

  6. Question 38Interactive

    A CI/CD pipeline runs the Salesforce CLI command below. Which outcome should the pipeline expect?

    • AThe target sandbox receives all changes and runs all tests.
    • BThe command validates the deployment and executes all tests, but makes no permanent changes.Correct answer
    • CThe command synchronizes local source with the sandbox and then deletes the sandbox.
    • DThe command only retrieves Apex test results from the target sandbox.

    Why this is the answer

    This command is a validation-only deployment with --dry-run. It checks whether the package can be deployed and whether tests pass, without permanently changing the target org.

  7. Question 39Single Choice

    In a modern CLI-driven lifecycle, what is considered the authoritative source of truth?

    • AGit repositoryCorrect answer
    • BProduction org
    • CSandbox
    • DChange Set

    Why this is the answer

    In source-driven development, the authoritative source of truth is the Git repository, not the production org or sandbox. The CLI synchronizes local source code with orgs.

  8. Question 40Multiple Select

    Which statements correctly describe the Metadata API? Select all that apply.

    • AIt handles both deploy and retrieve calls.Correct answer
    • BIt manages inter-dependencies through complex XML structures.Correct answer
    • CIt is optimized for small, frequent micro-updates in developer tools.
    • DIt is the backbone of Change Sets and CLI-driven deployments.Correct answer

    Why this is the answer

    The Metadata API supports deploy and retrieve, handles complex dependencies via XML, and underpins Change Sets and CLI deployments. For small, frequent updates, the Tooling API is the better design pattern.

Frequently asked questions

Everything about the Salesforce Certified Development Lifecycle and Deployment Designer question bank and how to use it.