Salesforce certification · Exam Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect

Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect Mock Exam Page 2

Salesforce Platform Development Lifecycle and Deployment Architect

Free Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect mock exam questions 11–20, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect questions

11–20 of 32 free
Question 11 Choose 1
At Universal Containers, Salesforce administrators are making changes to the permission sets under instruction from the business. Randomly, various SOQL statements are failing. What strategy could be advised to bring this issue to the developer ' s attention earlier?
Show answerHide answer

Correct answer: A Extract each permission set, commit and merge to source control, and run through CI checks.

Explanation

Explanation

The problem: administrators make permission set changes directly (likely in production or without tracking), and these changes cause SOQL statements to fail — almost certainly because permission sets control object and field-level access (CRUD/FLS). If a permission set removes access to an object or field that a SOQL query references, the query fails at runtime with an access-related error.

The root cause is that permission set changes are not tracked, reviewed, or tested before they affect code. The fix is to bring these changes into the source-driven, CI-monitored pipeline:

* Extract each permission set to source control so changes are versioned and visible.
* Commit and merge them through the normal branching process.
* Run CI checks — including Apex tests and static analysis — which will fail early if a permission change breaks a SOQL query or removes required field access.

This surfaces the problem earlier in the lifecycle (in CI, not production), which is exactly what the question asks for.

Why Other Options Are Incorrect

B. Ask administrators to only make changes to profiles instead
— Profiles have the same access-control impact as permission sets (they also grant/revoke object and field access). Switching to profiles doesn't solve the problem and actually goes against Salesforce's strategic direction (permission sets are preferred over profiles). It's a lateral move that doesn't improve early detection.

C. Create a sandbox refresh strategy to refresh every sandbox daily
— Daily sandbox refreshes are impractical, expensive, and slow, and they don't address the root cause. Refreshing a sandbox doesn't track permission changes or run CI checks — it just resets data. It won't bring the issue to the developer's attention earlier in a controlled way.

D. Advise developers to switch to SOSL queries
— SOSL doesn't bypass FLS/CRUD any more than SOQL does. Switching query languages doesn't fix permission-related failures and is a misguided workaround. The issue is access control, not query type.

References

Salesforce Trailhead – Application Lifecycle Management: Source-driven development and CI for metadata (including permission sets).

Salesforce Well-Architected Framework – Security & Operational Excellence: Tracking and reviewing access-control changes.
Question 12 Choose 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
Show answerHide answer

Correct answer: B, C Consult the metadata coverage report to identify features supported by packages.Test developed packages in test environments before installing to production.

Explanation

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 13 Choose 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?
Show answerHide answer

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

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.

References

Salesforce Developer Docs – Second-Generation Managed Packages: Creating and versioning 2GP packages.

Salesforce Developer Docs – `@namespaceAccessible` Annotation: Sharing Apex classes/methods between packages in the same namespace.
Question 14 Choose 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?
Show answerHide answer

Correct answer: B CRUD/FLS (field level security)

Explanation

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:

* `Schema.sObjectType.Account.isAccessible()`
* `Schema.sObjectType.Account.fields.Name.isUpdateable()`
* `WITH SECURITY_ENFORCED` in SOQL
* `Security.stripInaccessible()`

...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.
Question 15 Choose 1
Universal Containers (UC) has multiple teams working on different projects. Multiple projects will be deployed to many production orgs. During code reviews, the architect finds inconsistently named variables and lack of best practices. What should an architect recommend to improve consistency?
Show answerHide answer

Correct answer: D Use static code analysis to enforce coding standards.

Explanation

Explanation

UC has multiple teams producing code with inconsistent naming and a lack of best practices. The architect needs a solution that enforces coding standards consistently across all teams — not one that relies on subjective, manual review.

Static code analysis tools (e.g., Salesforce Code Analyzer, PMD, Checkmarx) automatically scan source code against a defined ruleset for:

* Naming conventions (variables, classes, methods).
* Best-practice violations (e.g., SOQL/DML in loops, missing sharing declarations).
* Security issues (CRUD/FLS, injection risks).
* Code complexity and maintainability.

Because the rules are configurable and enforced automatically in CI, static analysis guarantees that every team follows the same standards — catching violations before code is merged. This provides objective, consistent, and scalable enforcement across all projects and orgs.

Why Other Options Are Incorrect

A. Execute regression testing before code can be committed
— Regression testing verifies existing functionality still works; it does not check naming conventions or coding standards. It's unrelated to the consistency problem.

B. Require pull requests to be reviewed by two developers before merging
— Peer review is subjective and inconsistent. Different reviewers apply different standards, so naming/best-practice issues slip through. It also doesn't scale across multiple teams and projects, and there's no guarantee the same rules are applied everywhere.

C. Create a Center of Excellence for release management
— A CoE for release management focuses on deployment governance, not code quality or naming standards enforcement. It doesn't automatically detect or prevent inconsistent code — it's an organizational structure, not a technical control.

References

Salesforce Code Analyzer (formerly PMD / Salesforce CLI Scanner): Static analysis for Apex, LWC, and metadata; configurable rulesets.

Salesforce Secure Coding Guidelines: Naming, best practices, and security rules.
Question 16 Choose 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?
Show answerHide answer

Correct answer: B Authorize to the Full sandbox org; Validate with sfdx:mdapi:deploy On successful validation, deploy with sfdx:mdapi:deploy

Explanation

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.

References

* Salesforce CLI Command Reference – `sfdx force:mdapi:deploy`: Deploy/validate metadata-format (zip) artifacts; `--checkOnly` for validation-only.
* Salesforce CLI Command Reference – `sfdx force:source:deploy`: Deploy source-format files/directories.
Question 17 Choose 2
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
Show answerHide answer

Correct answer: A, B CustomMetadataType CustomMetadata

Explanation

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 18 Choose 3
What are the three considerations that the architect should recommend for Change Set deployment? Choose 3 answers
Show answerHide answer

Correct answer: A, D, E Change Sets cannot be automated. Change Sets cannot be rolled back. Change Sets cannot be reused between Production Salesforce orgs.

Explanation

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 19 Choose 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?
Show answerHide answer

Correct answer: D Accounts, Contacts, Opportunities, Products, Opportunity Line Items, Leads

Explanation

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 20 Choose 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
Show answerHide answer

Correct answer: B, D Ensure all code that is being deployed is checked into source control. Validate the final deployment package against production prior to go-live

Explanation

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.
Full mock exam

Sit the Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Platform-Development-Lifecycle-and-Deployment-Architect mock exam
  • 65questions per mock
  • 105 mintime limit
  • 118questions in the bank
  • Newmock on every attempt