Free Salesforce Platform Development Lifecycle and Deployment Architect Practice Test Questions
118 questionsUpdated 15-Nov-20268 topics
TopicBuilding
Question 11Choose 2
Universal Containers (UC) is a high-tech company using SFDX tools and methodologies for its Salesforce
development Configuration to Unlocked Packages.
Which two best practices should an architect recommend to support UC ' s new package development
strategy? Choose 2 answers
Correct answer:
B. Consult the metadata coverage report to identify features supported by packages.
C. Test developed packages in test environments before installing to production.
Explanation
UC is adopting an SFDX, source-driven, unlocked package development strategy. Two best practices are essential to make this successful.
B is correct because not all Salesforce metadata is supported by unlocked packages. Some metadata types cannot be included in packages (e.g., certain settings, standard object configurations, some CPQ or managed-package–related metadata). The Metadata Coverage Report (published by Salesforce) tells you which metadata types are supported by unlocked packages, source format, and other distribution methods. An architect must consult it before deciding what can go into packages — otherwise the package build will fail or silently omit components.
C is correct because packages must be installed and validated in test environments (e.g., scratch orgs, sandboxes) before production. This verifies:
* The package installs cleanly (no dependency or namespace conflicts).
* Apex tests pass in the install context.
* The installed components behave correctly with org-specific configuration.
Testing packages before production is a fundamental deployment safety practice, especially in source-driven CI/CD pipelines.
Together, B and C ensure UC knows what can be packaged (B) and verifies packages before production (C) — both critical to a healthy package strategy.
Why Other Options Are Incorrect
A. Version control does not need to be used, as packages manage all code and configuration — This is fundamentally false. Unlocked packages are built from source in version control — Git is the backbone of source-driven development. Packages don't replace version control; they depend on it. Skipping version control breaks CI/CD, traceability, and rollback.
D. Move everything into a single monolithic package — This is an anti-pattern. Best practice is modular, domain-aligned packages (e.g., by business capability), which improve deployability, reuse, and independence. A single monolithic package creates tight coupling, long build/deploy times, and deployment fragility — the opposite of what unlocked packages are meant to achieve.
References
* Salesforce Developer Docs – Metadata Coverage Report: Supported metadata types for unlocked packages, source format, and other distribution methods.
* Salesforce Developer Docs – Unlocked Packages: Best practices for modular package design and testing.
Question 12Choose 1
Sales and Service products will be created by two teams that will use second generation managed package(s).
The Sales team will use a specific function of the Service product, but the architect wants to ensure that this
team will only use the functions exposed by the Service team. No other team will use these same functions.
What should an architect recommend?
Correct answer:
B. Create two second generation managed packages with the same namespace and set the methods that
should be shared with the @namespaceAccessible Annotation.
Explanation
The scenario: Sales and Service products are built by two separate teams, but the Sales team needs to use a specific function of the Service product, and the architect wants only the Sales team (no other team) to use those Service functions.
In second-generation managed packages (2GP), packages created under the same namespace can share code with each other using the `@namespaceAccessible` annotation. This annotation:
Exposes an Apex method or class so it can be called from another package in the same namespace. Keeps it hidden from all other namespaces/orgs — so only the sibling package (Sales) can access it, and no external team can.
By creating two 2GP packages under the same namespace (one for Sales, one for Service) and annotating the shared Service methods with `@namespaceAccessible`, the architect achieves:
Controlled sharing — only the Sales package can call the exposed Service methods. Encapsulation — other teams and external orgs cannot access those methods. Clean separation — each team owns its own package.
This is precisely the mechanism Salesforce provides for cross-package code sharing within the same namespace in 2GP.
Why Other Options Are Incorrect
A. Create one managed package with both products; use a code review process with approvers from each team — A single package couples the two teams' code, defeating the purpose of independent team ownership. A code review process is a human control, not a technical enforcement — it doesn't guarantee only Sales uses the Service functions. The requirement calls for technical access control, which this doesn't provide.
C. Create two managed packages; use an authentication token in the Service package — This is over-engineered and not how Salesforce package access works. Building a custom token-based authorization mechanism to gate access is unnecessary complexity when the platform already provides `@namespaceAccessible` for exactly this purpose. It also doesn't leverage the namespace model.
D. Create two managed packages with Sales and Service namespaces; use `@salesAccessible` annotation — The `@salesAccessible` annotation does not exist in Salesforce. This is a fabricated option. Additionally, different namespaces cannot access each other's code — packages in separate namespaces are isolated, so this approach would not even allow the sharing the requirement demands.
Salesforce Developer Docs – `@namespaceAccessible` Annotation: Sharing Apex classes/methods between packages in the same namespace.
Question 13Choose 1
All AppExchange products are subject to Salesforce security reviews.
What is the most common reason that the prospect AppExchange products fail the security review?
Correct answer:
B. CRUD/FLS (field level security)
Explanation
Salesforce's AppExchange Security Review enforces a set of security requirements that all partner applications must pass before listing. The single most common reason applications fail the review is failure to enforce CRUD (Create, Read, Update, Delete) and FLS (Field-Level Security) permissions.
In Apex, SOQL/DML operations run in system mode by default, which means they bypass object and field-level permissions. If a developer doesn't explicitly enforce CRUD/FLS — using constructs like:
...then users could read or modify records and fields they shouldn't. This is the most frequently flagged issue in security reviews because it's easy to overlook and affects nearly every app.
Why Other Options Are Incorrect
A. Session hacking — Session security is largely handled by the Salesforce platform itself (session settings, HTTPS, secure cookies). It is not the most common AppExchange security review failure — app developers have limited control over session management, so it's rarely the cause.
C. SOQL injection — While real and important, SOQL injection is less commonly the failing reason than CRUD/FLS. It occurs when user input is concatenated into queries; developers can prevent it with bind variables and `String.escapeSingleQuotes()`. It's a known issue but not the #1 failure cause.
D. Cross-site scripting (XSS) — XSS is a valid security concern (especially in Visualforce/LWC with unescaped output), but Salesforce provides built-in protections (e.g., automatic escaping in Visualforce with ``). It is not the most common reason for security review failure compared to CRUD/FLS.
References
Salesforce Partner Program – Security Review Requirements: CRUD/FLS enforcement is a core requirement.
Apex Developer Guide – Enforcing CRUD and FLS: `WITH SECURITY_ENFORCED`, `Security.stripInaccessible()`, and schema describe methods.
TopicDeploying
Question 14Choose 1
Universal Containers (UC) currently uses the org development model and utilizes the Salesforce CLI as the
deployment tool. After the feature release artifact file has been tested in a lower sandbox, it is being deployed
to the full sandbox for performance testing and production deployment readiness check.
Since quick deployment options are not being used, what is the correct way to deploy the artifact to the full
sandbox?
Correct answer:
B. Authorize to the Full sandbox org; Validate with sfdx:mdapi:deploy On successful validation, deploy
with sfdx:mdapi:deploy
Explanation
The key phrase in the question is: "the feature release artifact file has been tested." This tells us the deployment is using a release artifact — a single, pre-built metadata package (a `.zip` file), not source-format files.
The Metadata API (`mdapi`) commands work with metadata format (zip files). The Source (`source`) commands work with source format (individual files/directories). Since UC is deploying a release artifact (a packaged zip), the correct commands are the `mdapi` variants.
Why Other Options Are Incorrect
A. Authorize; Validate with `sfdx:source:deploy`; Deploy with `sfdx:mdapi:deploy` — This mixes command types. `source:deploy` works with source format, but the artifact is a metadata zip. You can't validate source format and then deploy metadata format for the same artifact — the formats don't match. Inconsistent and incorrect.
C. Authorize; Validate with `sfdx:source:deploy`; Deploy with `sfdx:source:deploy` — This uses `source:deploy` for both steps, which is for source-format deployments, not for a release artifact zip. Since the artifact is metadata format, `source:deploy` is the wrong command.
D. Authorize; Validate with `sfdx:mdapi:deploy`; Deploy with `sfdx:source:deploy` — This validates with the right command (`mdapi:deploy`) but then deploys with the wrong one (`source:deploy`). Again, a format mismatch — you can't validate a metadata zip and then deploy it as source format.
Universal Containers (UC) is using custom metadata types to control the behavior of a few of the custom
functionalities. UC wants to Deploy custom metadata types to production using Metadata API.
Which two data types does UC need to include? Choose 2 answers
Correct answer:
A. CustomMetadataType
B. CustomMetadata
Explanation
Custom Metadata Types in Salesforce consist of two distinct metadata components that must both be included when deploying via the Metadata API:
A. `CustomMetadataType` — This represents the definition/schema of the custom metadata type: its fields, relationships, and structure. It's analogous to the "object definition." Without it, the type itself doesn't exist in the target org.
B. `CustomMetadata` — This represents the records (data) of the custom metadata type. Custom metadata records are metadata, not data, so they are deployed as part of the metadata package — unlike regular object records, which are data and are not deployed via Metadata API.
When deploying custom metadata types to production, UC must include both the type definition (`CustomMetadataType`) and its records (`CustomMetadata`) in the deployment package. If only the type is deployed, the records are missing; if only records are deployed, the type won't exist to hold them.
Why Other Options Are Incorrect
C. `CustomObject` — Custom metadata types are not custom objects. They are a separate metadata component (`CustomMetadataType`), and they don't behave like custom objects (no page layouts, no standard DML in the same way, records are metadata). Deploying `CustomObject` is unrelated to custom metadata types.
D. Custom Field — While custom metadata types have fields, the field metadata is included within the `CustomMetadataType` definition itself — you don't deploy a separate "Custom Field" component for custom metadata types. Fields of a custom metadata type are part of its type definition, not standalone custom fields on an object. So this isn't a separate required component.
References
Salesforce Metadata API Developer Guide – CustomMetadataType: Definition/schema of a custom metadata type.
Question 16Choose 3
What are the three considerations that the architect should recommend for Change Set deployment? Choose 3
answers
Correct answer:
A. Change Sets cannot be automated.
D. Change Sets cannot be rolled back.
E. Change Sets cannot be reused between Production Salesforce orgs.
Explanation
Change Sets are a declarative, point-and-click deployment tool in Salesforce. They have well-known limitations that an architect must consider.
A is correct because Change Sets are inherently manual — they are built and deployed through the Setup UI by selecting components and clicking "Deploy." They cannot be scripted, scheduled, or integrated into a CI/CD pipeline. This makes them unsuitable for automated, source-driven deployment workflows, which is a major consideration when choosing a deployment strategy.
D is correct because Change Sets cannot be rolled back. Once deployed, there is no built-in undo. To reverse a Change Set, you must manually recreate and deploy a new Change Set containing the previous versions of the components (or use another tool like the Metadata API with a backup). This lack of rollback is a significant risk consideration.
E is correct because Change Sets can only be used between orgs that are affiliated with the same production org (i.e., a production org and its sandboxes, or sandbox-to-sandbox within the same org family). They cannot be reused between unrelated Production Salesforce orgs — you can't deploy a Change Set from one company's production to another's. This limits their use for distributing changes across independent orgs.
Together, A, D, and E capture the core limitations: no automation, no rollback, and restricted to affiliated orgs.
Why Other Options Are Incorrect
B. Change Sets cannot be validated before deployment — This is false. Change Sets can be validated before deployment — Salesforce provides a "Validate" option that performs a dry run (deploy without committing), running tests and checking for errors. So this is not a limitation.
C. Change Sets cannot be used for orgs affiliated with the same production org — This is false and backwards. Change Sets are specifically designed to work between orgs affiliated with the same production org (production ↔ sandboxes). This is exactly the scenario they do support.
References
* Salesforce Help – Change Sets: Manual creation/deployment; only between affiliated orgs; no rollback.
Question 17Choose 1
Cloud Kicks is switching to Salesforce from a different CRM. They have existing datasets for all standard
Salesforce objects.
In which optimized order should the architect recommend these objects be loaded?
Correct answer:
D. Accounts, Contacts, Opportunities, Products, Opportunity Line Items, Leads
Explanation
When loading data into Salesforce, the correct order is determined by object dependencies (lookup and master-detail relationships). Parent objects must be loaded before their children so that lookup/master-detail relationships can be established.
The dependency chain here is:
1. Accounts — A foundational parent object. Contacts and Opportunities both reference Accounts. Load first.
2. Contacts — Contacts have a lookup to Account (via `AccountId`), so Accounts must exist first.
3. Leads — Leads are standalone (no lookup to Account/Contact required), so they can be loaded independently — placing them here is fine since they have no dependency on the other objects.
4. Products — Products (`Product2`) are parents of `PricebookEntry` and `OpportunityLineItem`. Opportunities reference Pricebook/Products via `OpportunityLineItem`, so Products must exist before Opportunities' line items.
5. Opportunities — Opportunities reference Accounts (`AccountId`), so Accounts must be loaded first. They're loaded before their line items.
6. Opportunity Line Items — These are children of both Opportunity and Product (via `PricebookEntry`). They require both Opportunities and Products to exist first — so they must be loaded last.
This order respects all parent-before-child dependencies, making it the correct optimized sequence.
Why Other Options Are Incorrect
B. Leads, Contacts, Accounts, Opportunities, Products, Opportunity Line Items — This loads Contacts before Accounts. Contacts have a lookup to Account (`AccountId`), so loading Contacts before Accounts would fail or leave the relationship unpopulated. Wrong order.
C. Leads, Accounts, Contacts, Products, Opportunities, Opportunity Line Items — This order is actually functionally valid (Leads first is fine since they're standalone). However, the question asks for the optimized order, and option A places the foundational Account object first, which is the standard recommended starting point. Option C starts with Leads, which is acceptable but less optimal as a convention — Accounts-first is the preferred, dependency-anchored sequence. (Note: If both A and C were presented, A is the better "optimized" answer because it anchors on the primary parent, Accounts.)
D. Accounts, Contacts, Opportunities, Products, Opportunity Line Items, Leads — This loads Opportunities before Products. Opportunity Line Items depend on Products (via PricebookEntry), and while Opportunities themselves don't directly require Products, the line items do. More importantly, this order is illogical — Leads (standalone) are placed last for no reason, and it disrupts the natural dependency flow. Not optimized.
References
Salesforce Data Loader Guide – Loading Data: Load order and object dependencies.
Question 18Choose 2
An architect has been working on a large project for the past 6 months. This project must be live by the end of
the current month.
Which two planning techniques should the architect use to ensure all metadata changes deploy smoothly and
on time? Choose 2 answers
Correct answer:
B. Ensure all code that is being deployed is checked into source control.
D. Validate the final deployment package against production prior to go-live
Explanation
The project is large, has been in progress for 6 months, and must go live by end of month. The architect must ensure all metadata changes deploy smoothly and on time — this calls for verification and traceability practices.
B is correct because checking all deployed code into source control is fundamental to a smooth deployment. It:
* Provides a single source of truth for exactly what's being deployed.
* Prevents missing or untracked components (a common cause of failed deployments).
* Enables traceability, rollback, and auditability.
* Ensures nothing is accidentally left out of the deployment package.
With a large, 6-month project involving many contributors, source control is essential to guarantee completeness and correctness.
D is correct because validating the final deployment package against production before go-live is the critical pre-flight check. A validate-only (dry run) deployment to production:
* Confirms the package will deploy successfully (no missing dependencies, no compile errors).
* Runs all Apex tests in the production context, verifying the org will pass the 75% coverage requirement.
* Catches problems before the real deployment, so they can be fixed while there's still time before the deadline.
This is the standard "validate before deploy" best practice — especially critical for a large, deadline-driven release.
Together, B and D ensure the deployment is complete (B) and verified (D) — the two keys to a smooth, on-time go-live.
Why Other Options Are Incorrect
A. Create a new sandbox and perform a test deployment to that environment — This is unnecessary and time-consuming, especially with a tight end-of-month deadline. Creating and populating a new sandbox (and then deploying to it) adds overhead without the benefit of validating against the actual production environment. The better approach is to validate directly against production (D) — a dry run that tests the real target. A new sandbox doesn't validate production-specific issues.
C. Upload a Change Set from sandbox to production as early as possible — Deploying (uploading) a Change Set to production as early as possible is risky and ill-advised. You don't want to push incomplete or unverified changes into production prematurely. The correct practice is to validate first (D) and deploy only when ready — not to push a Change Set early just to "get it in."
References
Salesforce Trailhead – Application Lifecycle Management: Source control and validate-before-deploy.
TopicOperating
Question 19Choose 1
Universal Containers (UC) has multiple teams with major projects working concurrently in their own
developer sandboxes. After deploying to production, a bug is discovered. Due to tight timelines, the
development team has suggested correcting the bug in the user acceptance testing (UAT) environment, which
is a full copy sandbox.
What should the architect recommend?
Correct answer:
A. UC should spin up a new sandbox to use as a hot fix environment. Once the bug is corrected, the
change should be applied to production and downstream environments.
Explanation
The correct answer is A. When a production bug must be fixed quickly and outside the normal release cycle, the recommended practice is to create a dedicated hot fix environment (a separate sandbox) rather than fixing directly in a shared environment like UAT. A hot fix sandbox keeps the urgent fix isolated from the ongoing project work happening in other sandboxes, prevents interference with UAT testing cycles, and allows the fix to be developed, tested, and validated properly. Once verified, the hot fix should be deployed to production and then propagated to downstream environments (such as UAT and other sandboxes) so those environments remain in sync with production and the fix is not accidentally overwritten by later deployments.
Why the Other Options Are Incorrect
B. The fix should be made in the developer environment where the project work was done. – Fixing directly in the original developer sandbox risks entangling the urgent bug fix with in-progress project changes that are not yet ready for production. Those incomplete changes could be pulled into the fix deployment, introducing new bugs or scope creep. It also breaks the isolation needed for a controlled hot fix and can disrupt the normal project cadence rather than protecting it.
C. Since the issue was found in production, it should be treated as a change request and go into the backlog as an enhancement. – A production bug that impacts live users is generally treated as a defect requiring prompt action, not deferred as an enhancement in the backlog. Unless it is purely cosmetic or truly non-critical, routing it through the normal backlog would delay the fix and contradict the tight timelines and production impact described. Treating it strictly as a backlog enhancement is not appropriate when production is actively affected.
D. Correcting the bug in UAT is ideal. Since UAT is a full copy, it will be the fastest location to fix and test the resolution. – Fixing directly in UAT is risky because UAT is typically a shared environment used for ongoing testing by multiple teams. Changes made there can interfere with other teams' testing, may not be properly version-controlled in source, and can be lost or overwritten during the next sandbox refresh or release cycle. It also violates separation of concerns between environments and undermines a controlled deployment process. Speed alone is not a sufficient reason to bypass proper environment discipline.
Reference
Salesforce Architect documentation on Application Lifecycle Management and Environment Strategy; Salesforce Sandbox documentation (types, refresh behavior, and isolation); Salesforce recommended practices for hot fixes and release management.
TopicSystem Design
Question 20Choose 1
Universal Containers (UC) is hiring offshore agile development teams to decrease costs and enhance UC ' s
capability of delivering new features to its customers. However, the CTO is not able to follow or measure the
work of those teams. What should an architect recommend to increase transparency?
Correct answer:
D. Request the offshore teams to share their work in progress in a virtual Kanban board tool.
Explanation
The correct answer is D. The CTO needs ongoing, real-time visibility into the work of multiple offshore agile teams. A virtual Kanban board tool (such as Jira, Trello, Azure DevOps Boards, or similar) provides a continuously updated, visual view of work items as they move through stages (backlog, in progress, review, done). This gives the CTO the ability to follow and measure progress at any time, without depending on scheduled communications. It also supports agile best practices, metrics (cycle time, throughput, WIP), and scaling across distributed teams. It is the most transparent, scalable, and low-friction solution for this scenario.
Why the Other Options Are Incorrect
A. Request the offshore teams to send daily emails to the CTO with the progress of the teams. – Daily emails are manual, unstructured, and hard to aggregate or compare across multiple teams. They create email overload for the CTO, provide only a snapshot at a point in time, and are not real-time or measurable. They also do not integrate with agile metrics or workflows, so they fail to deliver the level of transparency and measurement the CTO needs.
B. Schedule a daily stand-up meeting with representatives of all offshore teams to share the progress of the teams. – Daily stand-ups with representatives from all offshore teams would be time-consuming, difficult to coordinate across time zones, and would scale poorly as the number of teams grows. It also provides only verbal, ephemeral updates, not a persistent, measurable record of progress. While daily stand-ups are useful within a team, using them as the CTO's primary transparency mechanism is inefficient and not scalable.
C. Ask the offshore teams to add their progress and status in a shared spreadsheet. – A shared spreadsheet is a static, manually updated artifact that quickly becomes stale and error-prone. It lacks the visual workflow, real-time updates, and agile metrics that a Kanban tool provides, and it does not scale well for multiple teams. It offers only a weak approximation of transparency compared to a purpose-built Kanban board.
Reference
Salesforce Architect documentation on Agile Delivery and Distributed Team Governance; Salesforce recommended practices for scaling agile with virtual boards and work management tools; industry agile frameworks (Scrum, Kanban) guidance on transparency and visualization of work.
Experience the real exam before you take it
Our timed 2026 Salesforce Platform Development Lifecycle and Deployment Architect practice test mirrors the format, number of questions and time limit of the official exam.
The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.
Build exam stamina: stay focused and accurate for the entire duration.
Master time management: learn to pace yourself so you never have to rush.
A new test every time: a randomised set from the Salesforce Certified Platform Development Lifecycle and Deployment Architect question pool on every attempt.
Unlimited attempts: practice until you're 100% confident, not just once.