Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Salesforce Certified Platform Development Lifecycle and Deployment Architect Plat-Arch-202 Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 12 Total 118 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Application Lifecycle Management

Skill tested: Trace a source-controlled Salesforce change through integration, testing, and production release.

A team maintains Salesforce DX source in Git. Developers build features in separate sandboxes, and the release manager wants every production change to be reproducible from a reviewed commit. Today, developers sometimes make emergency edits directly in the integration org, so those edits are missing from the repository. The team has a shared integration environment, a full-copy staging environment, and production. Which lifecycle change best establishes a reliable path from development through release without treating an org as the authoritative source?

Correct Answer: B. Require all changes to be committed and reviewed in Git, validate the integrated source in the integration and staging environments, and deploy the identified release commit to production.
Explanation:

Git should record the reviewed source that defines the release. Changes are integrated and validated from version-controlled source, and the same identified release state is deployed to production. This makes the production deployment traceable and repeatable. Direct promotion from developer sandboxes can omit review and leaves no single release commit. Treating the integration org as authoritative perpetuates drift, while retrieving after deployment does not prove what was reviewed. Staging is a validation target, not a substitute for the controlled source artifact.

Question 2

New Single answer

Topic: Planning

Skill tested: Translate release cadence and environment constraints into a practical Salesforce delivery plan.

A financial-services team must deliver a regulatory change within six weeks. Two feature teams work in parallel, the production org has strict change controls, and business users require a four-week acceptance-test window. The organization has limited sandbox capacity and cannot freeze all development during acceptance testing. Before assigning implementation tasks, the architect must produce a plan that coordinates dependencies, environments, testing, and the controlled production release. What is the best planning approach?

Correct Answer: B. Map requirements and dependencies to a shared source-control workflow, integration milestones, a stable acceptance candidate, parallel ongoing development, and a scheduled production approval and deployment window.
Explanation:

The plan must preserve the four-week acceptance window while allowing feature work to continue. Dependency mapping and integration milestones expose conflicts early; a stable candidate can be tested and approved while later work remains isolated in source branches or separate development environments. A last-week merge is too late to resolve integration defects. Uncoordinated team schedules do not satisfy governance or dependency management. Using the acceptance environment for ongoing development makes it unstable and undermines user acceptance testing.

Question 3

New Multiple answers

Topic: Planning

Skill tested: Select planning inputs and project structures aligned with an org-based delivery model.

A company is evaluating an org-based development model for a small internal Salesforce application. The application has no subscriber upgrade requirement, is deployed only to the company's own production org, and includes configuration maintained by a central platform team. Several teams will contribute, but the company wants low setup overhead and reliable tracking of dependencies and release scope. Which TWO planning decisions best fit these requirements? Select TWO.

Correct Answer: B. Define a Salesforce DX project and Git branching or integration conventions that identify the source and scope of each release.; D. Inventory the relevant metadata, dependencies, owners, and deployment constraints before defining the project scope.
Explanation:

An inventory of metadata, dependencies, ownership, and deployment constraints is a sound planning input regardless of development model. A Salesforce DX project and explicit source-control conventions provide structure and reproducible release scope without imposing packaging overhead. Managed packages and subscriber upgrade planning are not justified by an internally deployed application with no external distribution requirement. Production should not be the source of truth; doing so obscures review and makes release reconstruction difficult.

Question 4

New Single answer

Topic: System Design

Skill tested: Choose package modularization based on ownership, dependencies, and subscriber upgrade requirements.

A product company delivers a Salesforce application to many customer orgs. A stable core is owned by one team, while an optional analytics capability is maintained by another team and must be installable only for customers who buy it. Customers should receive upgrades to each capability independently, and the analytics component depends on core objects and services. Which design best meets these governance and upgrade requirements?

Correct Answer: A. Create separate managed packages for the core and optional capability, declare the analytics package's dependency on core, and manage compatible version releases.
Explanation:

Separately versioned managed packages support distribution to customer orgs and independent upgrades. The optional analytics package can depend on the stable core package, making the dependency explicit while allowing customers to install it only when licensed or needed. A single package forces the optional capability into the same upgrade unit. Selective metadata deployment is not equivalent to subscriber package versioning. Customer-specific copies multiply maintenance and undermine shared product governance.

Question 5

New Single answer

Topic: System Design

Skill tested: Design environment topology that isolates development, integration, and acceptance testing.

A global organization has eight feature teams, a shared integration team, and business owners who conduct acceptance testing. The business requires a stable acceptance environment for several weeks, while teams continue developing and merging work. The org strategy must minimize conflicts and support controlled promotion; teams do not require production-scale data in every development environment. Which topology is most appropriate?

Correct Answer: D. Use isolated developer environments for feature work, a shared integration environment for coordinated merges, and a separate stable acceptance environment refreshed and promoted on a planned schedule.
Explanation:

Isolated development environments reduce concurrent metadata collisions, while a shared integration environment provides a place to validate combined changes. A separate acceptance environment can remain stable during business testing, with candidate deployments scheduled rather than disrupted by daily feature work. The teams do not need full-copy data everywhere, so assigning expensive production-like sandboxes to every team is unnecessary. Developing directly in integration makes it unstable, and production deployment before acceptance violates the stated release control.

Question 6

New Multiple answers

Topic: Building

Skill tested: Configure Salesforce DX package directories and dependencies for a modular source project.

A team is converting a Salesforce DX project into two unlocked packages: `foundation` and `service`. Service metadata references custom objects and Apex services in foundation. Both packages must be built from the repository, and CI must understand their dependency order. The team wants to preserve the project's existing source layout where practical. Which TWO changes are appropriate? Select TWO.

Correct Answer: B. Define the package directories and package identities in `sfdx-project.json`, assigning the appropriate source paths to each package.; D. Declare the service package's dependency on the appropriate foundation package version in the project configuration.
Explanation:

The Salesforce DX project configuration maps source directories to package identities and can express package dependencies. Declaring service's dependency on foundation makes the relationship explicit and supports correct package version creation and installation sequencing. Package names do not select subsets of metadata from one directory. Duplicating foundational metadata creates ownership and compatibility problems rather than a real dependency. Dependency requirements must be known during package development; an arbitrary build order does not remove them.

Question 7

New Multiple answers

Topic: Building

Skill tested: Use Salesforce CLI source commands to create a versioned unlocked package artifact.

A release engineer has a Salesforce DX project with an unlocked package configured in `sfdx-project.json`. The source has been reviewed and merged. The engineer must create a package version from that source for CI installation testing, without promoting it for release yet. Which TWO actions best follow the package build workflow? Select TWO.

Correct Answer: A. Run `sf package version create` for the configured package, using the intended target Dev Hub and an appropriate installation key or test settings if required.; B. Wait for package version creation to complete, then use the generated package version ID for installation testing in a scratch org or test org.
Explanation:

A package version is created from the configured package's source through the package-version creation workflow against its Dev Hub. Once creation completes, the resulting version ID identifies an immutable package artifact that can be installed into a test org for validation. A Metadata API deployment ID is not a package version. Installation consumes an existing version; it does not build one from a directory. A created version does not track future commits, so changes require a new version.

Question 8

New Single answer

Topic: Deploying

Skill tested: Select Metadata API deployment test levels based on change scope and Apex coverage requirements.

A team is deploying a small production change containing an Apex class and a custom field through a Metadata API deployment. The class has focused unit tests, and the release process requires validation of only the tests relevant to the deployment rather than all tests in production. The org has other unrelated Apex tests that are slow and sometimes fail for known independent reasons. Which test-level choice best matches the stated requirement?

Correct Answer: B. Use `RunSpecifiedTests` and specify the relevant Apex test classes, ensuring the deployed Apex meets the applicable coverage requirement.
Explanation:

`RunSpecifiedTests` runs the named test classes and is appropriate when the release process intentionally limits execution to selected tests. The team must still meet the applicable deployment coverage requirements for the Apex being deployed; selecting a test level does not waive coverage. Apex deployment cannot simply skip tests in this production scenario. `RunLocalTests` runs broader local tests, while org-wide execution would include tests the stated policy seeks to avoid and cannot be narrowed after execution starts.

Question 9

New Single answer

Topic: Deploying

Skill tested: Choose a deployment sequence that respects metadata dependencies and target-org state.

A release includes a custom field, an Apex class that references the field, a permission set granting access to it, and a Lightning page that displays it. The target org does not yet contain any of these components. The team plans a Metadata API deployment and wants to avoid failures caused by unresolved references. Which approach is most appropriate?

Correct Answer: D. Deploy the complete dependency-consistent change set of metadata together, then verify deployment results and user access in the target org.
Explanation:

The class, permission set, and page reference the field, so deploying the complete related metadata together allows the platform to resolve the components as a coherent change. The team should also verify that the permission set and page behave as intended after deployment. Deploying consumers first risks missing-component errors. Permission sets do not create the fields they reference, and Salesforce does not generate Apex or UI metadata from references.

Question 10

New Multiple answers

Topic: Testing

Skill tested: Run Salesforce CLI Apex tests and interpret deployment-related test execution choices.

A CI pipeline validates a Salesforce DX source change in a non-production org. The change includes Apex and metadata, and the team wants fast feedback from its focused test suite before a later production deployment. Test execution must be initiated explicitly, and results must be available to the pipeline for pass/fail reporting. Which TWO practices are appropriate? Select TWO.

Correct Answer: B. Run the Apex test suite in CI and make the pipeline fail when required tests fail or do not meet the project's defined criteria.; D. Use `sf apex run test` to execute the selected Apex test classes and capture the reported test results.
Explanation:

The Salesforce CLI provides `sf apex run test` for running Apex tests, and CI can collect the results and enforce the team's pass criteria. Making the test step explicit gives rapid feedback in the intended validation environment. A successful metadata deployment does not necessarily mean every desired test ran; test execution depends on deployment options and context. Tests can run in non-production orgs, and waiting until after production deployment defeats the purpose of pre-release validation.

Question 11

New Single answer

Topic: Testing

Skill tested: Design Apex tests that verify behavior across Salesforce transactions and integration boundaries.

An Apex service updates an Opportunity and publishes a platform event when a business threshold is reached. Its unit tests pass when the method is called directly, but failures occur in a larger workflow where a record-triggered Flow also updates related records. The release team needs confidence in both the service logic and the interaction of automation in a target-like org. Which testing strategy best addresses the gap?

Correct Answer: A. Keep focused Apex unit tests for service behavior and add integration tests that exercise the relevant record save, automation, and event behavior in a controlled test org.
Explanation:

Focused unit tests establish the service's own behavior, while an integration-level test should exercise the record transaction and relevant automation that produce the observed interaction. This helps expose ordering, recursion, or transaction-related defects that direct method calls miss. Coverage-only assertions do not verify outcomes. Production is not an appropriate test environment, and mocking all automation removes the very interaction the team needs to validate.

Question 12

New Single answer

Topic: Releasing

Skill tested: Promote and install an immutable unlocked package version through controlled release stages.

A company publishes an unlocked package internally. A candidate version passed automated and user acceptance testing, and the release manager has recorded its package version ID. The production change must install exactly the tested artifact; rebuilding from the current branch is prohibited because commits may have changed since testing. What should the release manager do?

Correct Answer: D. Install the recorded package version ID in production using the approved installation workflow, then retain the installation result for release traceability.
Explanation:

The recorded package version ID identifies the immutable artifact that passed testing, so installing that exact version preserves the link between validation and production. Rebuilding from a changed branch could produce different contents even if the version name appears similar. Deploying a source directory bypasses the tested package artifact. Production is not the place to create a package version; package versions are built in the development and release workflow, then installed into target orgs.

Question 13

New Multiple answers

Topic: Releasing

Skill tested: Manage package version lineage and release eligibility for an unlocked package.

A team is preparing an unlocked package release. Its current package version has been installed and tested in a preproduction org, but it has not been marked as released. The release manager needs a version that can be installed in production and must preserve a clear relationship to prior versions. Which TWO statements describe the appropriate release practice? Select TWO.

Correct Answer: A. Create a new package version for subsequent source changes; an existing package version is an immutable artifact.; B. Promote the validated package version when it is ready for distribution, then install that version in the target production org.
Explanation:

The validated version should be promoted for distribution when it is ready, then installed into production as the same artifact that was tested. Package versions are immutable; changes require creating a new version, preserving version lineage and reliable release traceability. Existing versions cannot be edited in place, nor can one ID represent different source commits. Installing an unvalidated version in production is not a promotion strategy and does not make it safe.

Question 14

New Single answer

Topic: Operating

Skill tested: Choose sandbox types and refresh practices for production-like operational validation.

A release team must validate a major data migration and end-to-end business process in a production-like Salesforce environment. The test requires a large volume of representative data and realistic integrations, but the team also needs short-lived isolated environments for routine feature development. Production data handling is subject to internal access controls. Which environment strategy is most appropriate?

Correct Answer: C. Use a full sandbox for the production-like migration rehearsal, apply appropriate data-access controls, and use developer sandboxes for isolated feature work.
Explanation:

A full sandbox is designed to provide a production-like copy, including data, making it suitable for large-scale migration and end-to-end rehearsals. Because it contains sensitive data, access must be controlled and organizational data-handling policies followed. Developer sandboxes are useful for isolated feature work but are not full production-data copies. Production is not a rehearsal environment, and scratch orgs are short-lived development environments rather than refreshed full-data replicas.

Question 15

New Single answer

Topic: Operating

Skill tested: Apply post-deployment monitoring and rollback decisions using release evidence.

A production deployment completes successfully, but within minutes the support team reports that users in one business unit cannot access a newly introduced action. No data corruption or system-wide outage is evident. The release included a permission-set update and a new UI component. The organization requires evidence-based operational response and discourages broad reversions that could remove unrelated fixes. What should the release team do first?

Correct Answer: B. Confirm the affected users' assignments and effective permissions, inspect deployment and runtime evidence for the permission set and component, then apply a scoped correction or rollback if justified.
Explanation:

A successful deployment does not guarantee that users have the intended effective access. Checking assignment, permission-set contents, and relevant deployment or runtime evidence isolates whether the issue is configuration, access, or component behavior. A scoped correction or rollback can then address the defect while preserving unrelated changes. An immediate broad rollback risks removing valid work without identifying the cause. Personal customization does not grant missing permissions, and disabling all permission sets would cause widespread access disruption.