Home / Salesforce Certified Application Architect / Mock exam
Salesforce Certified Application Architect Exam-style mock test

Salesforce Application Architect Practice Exams|Practice test

Full explanations Exam format Pass line 65%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Data Modeling & Management
A B2B SaaS company tracks License__c records that each belong to exactly one Account and must inherit the Account's sharing so that reps only see licenses for accounts they can access. The business also requires roll-up summary fields on Account to total active licenses. Which relationship should the architect configure between License__c and Account?
✓A master-detail relationship from License__c to Account so the license inherits ownership and sharing and supports roll-up summaries
Correct. Master-detail makes the license a detail of the account, inheriting ownership and sharing and natively enabling roll-up summary fields on the parent.
・A lookup relationship from License__c to Account with an Apex trigger that copies the account owner onto each license record
Incorrect. A lookup does not inherit sharing, and copying the owner via trigger still leaves independent sharing and cannot create roll-up summaries declaratively.
・A hierarchical relationship between License__c and Account defined through a self-referencing user lookup field
Incorrect. Hierarchical relationships are a special lookup only available on the User object, so they cannot relate License__c to Account.
・An external lookup relationship connecting License__c to an Account record stored in an external data source
Incorrect. External lookups point to rows in an external data source, not to a standard Account record stored in Salesforce.
Explanation
Inherited sharing plus declarative roll-up summaries are the signature capabilities of a master-detail relationship, which is the correct fit here.
Example2 · Sharing & Visibility
A B2B SaaS company stores Account records that must stay private so each sales rep sees only the accounts they own, while managers see their team's accounts through the role hierarchy. The architect is finalizing the baseline access model before layering any additional sharing. Which org-wide default configuration should be applied to Account to meet this requirement?
✓Set the Account OWD to Private so only owners and users above them in the role hierarchy have access by default
Correct. Private OWD limits default access to the record owner and users above them in the role hierarchy, which is exactly the baseline the scenario describes.
・Set the Account OWD to Public Read Only and rely on validation rules to block editing by non-owners of the record
Incorrect. Public Read Only grants every user read access to all accounts, so reps would see accounts they do not own, violating the privacy requirement.
・Set the Account OWD to Public Read/Write and restrict visibility afterward using restriction rules on the object
Incorrect. Public Read/Write is even more permissive, exposing and allowing edits to all records before any restriction is applied, which is the wrong baseline here.
・Set the Account OWD to Controlled by Parent so visibility follows the related master Opportunity record automatically
Incorrect. Controlled by Parent applies to detail objects in master-detail relationships and Account is not a detail of Opportunity, so this cannot be selected.
Explanation
A Private OWD establishes the most restrictive baseline, exposing records only to owners and the role hierarchy, and is the correct starting point when access must then be selectively widened.
Example3 · Lightning Platform Development
At a B2B SaaS company, an admin must update a Renewal Score field on an Opportunity whenever the related Account's Health Tier changes, with no complex loops or external callouts involved. The architect wants the lowest-maintenance solution that respects the platform's recommended order of tooling. Which approach should the architect recommend?
✓Build a record-triggered flow on the Account that recalculates and writes the Renewal Score to related Opportunities
Correct. A record-triggered flow handles this field update declaratively without code, matching Salesforce's guidance to prefer low-code tooling for straightforward automation.
・Write a before-update Apex trigger on Account that queries child Opportunities and sets the Renewal Score field
Incorrect. An Apex trigger introduces code maintenance that is unnecessary for a simple cross-object field update achievable declaratively.
・Create a scheduled batch Apex job that nightly scans every Account and refreshes the Renewal Score field
Incorrect. A nightly batch job adds latency and compute overhead and does not update the score when the tier actually changes.
・Add a Lightning web component to the Account page that users click to push the score down
Incorrect. Requiring a manual user click makes the update unreliable and defeats the goal of automatic, low-maintenance behavior.
Explanation
Salesforce's recommended order favors declarative automation; a record-triggered flow satisfies the simple, synchronous cross-object field update without code.
Example4 · Declarative vs Programmatic Design
A healthcare services firm needs that when a Patient Case is set to Closed, a follow-up Task is created and the related Care Plan's status field is updated, with no cross-object rollups or callouts involved. The architect wants the most maintainable approach that admins can extend later. Which option best fits this requirement?
✓Build a Record-Triggered Flow on Patient Case that creates the Task and updates the Care Plan when the status becomes Closed
Correct. A record-triggered Flow handles same-transaction record creation and related-record updates declaratively and remains admin-maintainable.
・Write an after-update Apex trigger with a handler class that queries and performs the related DML operations
Incorrect. Apex works but adds code maintenance overhead for logic that declarative automation covers natively here.
・Schedule a nightly Apex batch job that scans closed cases and performs the Task creation and Care Plan updates
Incorrect. A nightly batch introduces latency and complexity for a requirement that should execute in the triggering transaction.
・Create an outbound message plus an external middleware process to orchestrate the downstream updates
Incorrect. Outbound messaging and middleware are unnecessary external dependencies for in-org record updates.
Explanation
With no callouts, complex logic, or large bulk patterns, a record-triggered Flow is the most maintainable declarative fit.
Example5 · Application Design & Governance
A healthcare services firm needs patient referral records to auto-assign to the correct care coordinator when the referral's specialty and region fields change. The logic involves simple field matching and queue routing with no external callouts. The architect wants to minimize long-term maintenance and avoid custom code where possible. Which approach should the architect recommend?
・Build a Flow with an Apex invocable action that queries routing rules, so the assignment logic lives in a reusable class the developers can unit test and extend over time
Incorrect. Adding an invocable Apex action introduces custom code and unit-test burden that this simple field-matching logic does not require.
✓Use a record-triggered Flow with decision elements to evaluate specialty and region and assign the referral to the matching queue
Correct. A record-triggered Flow with decision elements handles simple field evaluation and queue assignment declaratively, minimizing maintenance and avoiding code.
・Write an Apex trigger that evaluates specialty and region and performs the queue assignment, keeping all routing logic centralized in one handler class
Incorrect. An Apex trigger is programmatic and increases maintenance overhead for logic that declarative tools fully support.
・Configure assignment rules combined with a scheduled batch Apex job that reassigns referrals each night based on specialty and region changes
Incorrect. Scheduled batch Apex delays assignment and adds code, which is unnecessary for real-time field-matching routing.
Explanation
For simple field matching and queue routing with no callouts, a record-triggered Flow is the lowest-maintenance, code-free choice aligned with the declarative-first principle.
Example6 · Data Modeling & Management
A healthcare services firm stores each Patient Visit as a child of a Patient record. The compliance team requires that when a Patient record is deleted, every related Patient Visit must be deleted automatically, and that each Visit must always be tied to exactly one Patient at all times. Which relationship design best satisfies these requirements?
・Configure a lookup relationship from Patient Visit to Patient and enforce the link through an Apex before-delete trigger that cascades the removal
Incorrect. A lookup does not enforce a required parent or native cascade delete, so custom trigger code would be needed to approximate behavior that master-detail provides declaratively.
✓Define a master-detail relationship from Patient Visit to Patient so ownership, sharing, and cascade delete follow the parent record
Correct. Master-detail makes the parent required, ties ownership and sharing to the parent, and natively cascades deletes from Patient to Patient Visit.
・Create an external lookup relationship from Patient Visit to Patient and schedule a nightly batch job to clean up orphaned visit rows
Incorrect. External lookups reference external objects and do not provide the required parent enforcement or native cascade delete on standard Salesforce records.
・Use a hierarchical relationship from Patient Visit to Patient and rely on validation rules to keep the parent reference populated
Incorrect. Hierarchical relationships apply only to the User object and cannot model a Patient-to-Visit parent-child structure.
Explanation
Master-detail is the correct choice when the child must always have a parent and must be deleted with it, because it provides required parent, cascade delete, and inherited sharing declaratively.
Example7 · Data Modeling & Management
UrbanThread, a retail apparel brand, stores Store Visit records that must inherit the sharing and ownership of their parent Loyalty Account, and a Loyalty Account must have at least one Store Visit before it can be saved. The architect needs each Store Visit to be tightly bound to a single Loyalty Account. Which relationship type should the architect implement between Store Visit and Loyalty Account?
・A lookup relationship, because lookup fields can be configured as required and will cascade the parent record's ownership down to the child automatically
Incorrect. A required lookup enforces a value but does not force the child to inherit the parent's sharing or ownership, and it still allows the child to exist as an independent record.
✓A master-detail relationship, so the Store Visit inherits sharing from the Loyalty Account and cannot exist independently of its parent record
Correct. A master-detail relationship makes the detail inherit sharing and ownership from the master and prevents it from existing without a parent, matching the tight binding required.
・A hierarchical relationship, which is the standard way to link transactional child records such as visits to an account-style parent object
Incorrect. Hierarchical relationships are a special self-relationship available only on the User object and cannot be used to link Store Visit to Loyalty Account.
・A many-to-many junction built with two master-detail fields, letting each visit roll its activity up to several Loyalty Accounts at once
Incorrect. A junction with two master-detail fields models a many-to-many pattern, but the requirement is for each visit to belong to exactly one Loyalty Account.
Explanation
Master-detail is the correct choice when the child must inherit sharing/ownership and cannot exist independently of a single parent.
Example8 · Data Modeling & Management
UrbanThread assigns every online order to a single integration user, resulting in more than 2 million Order records owned by that one user. Support agents now report slow record saves and lock errors during nightly updates. What is the most likely root cause the architect should address?
✓Ownership skew, where a single user owns a very large number of records, causing expensive sharing recalculations and record-level lock contention
Correct. Ownership skew occurs when one user owns a disproportionate number of records, driving costly sharing recalculations and lock contention on parent references during updates.
・Lookup skew, because the integration user is referenced as a lookup value on an excessively large number of child Order records in the system
Incorrect. Lookup skew involves many records pointing to the same lookup target record, not the ownership concentration described where one user owns the records.
・An overloaded sharing rule configuration that recalculates the entire role hierarchy each time any single Order record is inserted or updated
Incorrect. Sharing rules do not reprocess the full role hierarchy per individual record insert, and the symptom pattern points to concentrated ownership rather than rule volume.
・Field history tracking enabled on too many Order fields, which creates excess history rows that slow down the nightly batch update process
Incorrect. Field history tracking adds history rows but does not produce the record-locking and ownership recalculation symptoms tied to a single owner of millions of records.
Explanation
Concentrating millions of records under one owner creates ownership skew, the classic cause of lock contention and slow sharing recalculations.
Example9 · Data Modeling & Management
UrbanThread keeps its full inventory ledger (hundreds of millions of rows) in an external ERP and wants to display current stock levels on the Product page in Salesforce without copying the data into Salesforce objects or running nightly syncs. Which approach best meets this requirement?
・Build a scheduled Apex batch job that queries the ERP each night and upserts the stock figures into a custom Inventory object stored in Salesforce
Incorrect. A nightly batch upsert copies the data into Salesforce and runs a sync, which directly violates the no-copy, no-sync requirement.
✓Use Salesforce Connect with an external object mapped to the ERP via OData so stock levels are read on demand without storing the rows in Salesforce
Correct. Salesforce Connect with an OData-backed external object reads the ERP data on demand at query time, displaying live stock without storing or syncing the rows.
・Create a Platform Event that the ERP publishes to whenever stock changes, then subscribe and persist each change into a standard Salesforce inventory record
Incorrect. Platform Events plus persistence would store the data in Salesforce records, conflicting with the requirement to avoid copying the inventory into Salesforce.
・Replicate the inventory table into a Big Object and expose it through a Visualforce page that queries the Big Object using the asynchronous SOQL interface
Incorrect. Loading the rows into a Big Object still replicates the data into Salesforce storage rather than reading it live from the external ERP system.
Explanation
Salesforce Connect external objects surface external data on demand without persisting it, satisfying the no-copy and no-sync constraints.
Example10 · Data Modeling & Management
A financial services firm stores 120 million transaction records on a custom object, and advisors report that list views and reports filtering by account are timing out. The architect wants to restore query performance without changing the firm's reporting requirements. What is the most effective approach?
✓Add custom indexes on the frequently filtered account and date fields and ensure filters are selective enough to leverage them
Correct. Custom indexes on the selective filter fields let the query optimizer target a small subset of the 120M rows, restoring list view and report performance without altering requirements.
・Convert the custom object into a big object and rewrite all existing reports to query the big object through Async SOQL instead
Incorrect. Big objects suit archival and massive-scale storage but lack standard report support, and Async SOQL cannot back the firm's existing interactive reports.
・Enable field history tracking on the transaction object so that older records are offloaded automatically to the history table
Incorrect. Field history tracking records field-level changes for auditing and does not offload or archive transaction records to improve query selectivity.
・Increase the firm's data storage allocation by purchasing additional storage so that the platform allocates more query resources
Incorrect. Buying more data storage raises the capacity limit but does not improve query selectivity or make non-selective filters perform better.
Explanation
Performance problems on LDV objects are solved by improving query selectivity through custom indexes on filtered fields, not by changing storage capacity or audit features.
Example11 · Data Modeling & Management
A wealth management firm models Portfolio and Holding custom objects. A Holding must always belong to exactly one Portfolio, and when a Portfolio is deleted all its Holdings must be deleted, while each Portfolio must display a rolled-up total market value of its Holdings. Which relationship design meets these requirements?
・Create a lookup relationship from Holding to Portfolio and build an Apex trigger to cascade deletes and recalculate the market value total
Incorrect. A lookup does not enforce the required parent, and hand-coding cascade delete plus aggregation duplicates functionality the master-detail relationship provides natively.
✓Create a master-detail relationship from Holding to Portfolio and add a roll-up summary field on Portfolio for total market value
Correct. Master-detail enforces the required single parent, cascades deletes automatically, and uniquely enables declarative roll-up summary fields on the parent Portfolio.
・Create a hierarchical relationship between Portfolio and Holding and configure a roll-up summary on the parent for total value
Incorrect. Hierarchical relationships apply only to the User object and cannot link two distinct custom objects like Portfolio and Holding.
・Create a many-to-many junction object between Portfolio and Holding with roll-up summary fields on both related parent records
Incorrect. A junction object models many-to-many, but a Holding belongs to exactly one Portfolio, so this over-models the requirement and complicates roll-ups.
Explanation
Required parent, cascade delete, and declarative roll-up summaries are all hallmarks of a master-detail relationship, making it the correct fit over lookup, hierarchical, or junction designs.
Example12 · Data Modeling & Management
A manufacturing distributor tracks which Warehouse objects can stock each Product, and each Warehouse stocks many Products while each Product is stocked in many Warehouses. The architect needs reporting that rolls up on-hand quantity for each pairing. Which modeling approach should the architect choose?
✓Build a junction object with two master-detail relationships to Warehouse and Product, storing quantity on the junction records
Correct. A junction object with two master-detail relationships is the standard pattern for many-to-many, and it lets quantity live on the pairing for rollups.
・Add a long text area field on Product that lists each warehouse code and its on-hand quantity as delimited text
Incorrect. Storing pairings as delimited text in a long text area blocks native reporting, rollups, and referential integrity entirely.
・Create a lookup field on Product that points to the single primary Warehouse responsible for that product line
Incorrect. A single lookup models only one-to-many to a primary warehouse and cannot represent products stocked across many warehouses.
・Place a master-detail relationship from Product to Warehouse so each product belongs to exactly one warehouse
Incorrect. A single master-detail forces each product into exactly one warehouse, which contradicts the many-to-many requirement.
Explanation
Many-to-many relationships in Salesforce are modeled with a junction object joined by two master-detail relationships, which also enables attribute storage and rollups on the pairing.
Example13 · Data Modeling & Management
A distributor wants each Shipment line to be automatically deleted when its parent Order is deleted, and wants a roll-up summary of total shipped weight on the Order. The architect is deciding the relationship from Shipment to Order. Which relationship satisfies both requirements?
・A lookup relationship with an Apex trigger that deletes child Shipments and recalculates the total shipped weight on the parent Order
Incorrect. A lookup with custom Apex can approximate the behavior, but it adds maintenance and is not the declarative native solution for cascade delete and rollups.
・An external lookup relationship resolving the parent Order through its external ID from an integrated inventory system
Incorrect. An external lookup relates records to an external object and does not provide cascade delete or roll-up summary fields.
・A standard lookup relationship configured so the child record is cleared but retained when the parent Order is removed
Incorrect. A standard lookup retains children and clears the reference rather than cascade-deleting, and it cannot provide roll-up summaries.
✓A master-detail relationship from Shipment to Order
Correct. Master-detail provides cascade delete of children and enables declarative roll-up summary fields on the parent.
Explanation
Only master-detail relationships natively provide cascade delete and roll-up summary fields, which both requirements demand.
Example14 · Data Modeling & Management
A telecom operator stores each Subscriber Line as a child record that must roll up total monthly usage onto its parent Billing Account, and a line can never exist without a billing account. Which relationship type should the architect model between Billing Account and Subscriber Line?
・A lookup relationship, because it preserves the independent lifecycle of each subscriber line while optionally linking it back to the billing account for reporting
Incorrect. A lookup allows the child to exist without a parent and does not natively support roll-up summaries, which contradicts both stated requirements.
✓A master-detail relationship, so the line inherits the account's sharing and supports roll-up summary of usage
Correct. Master-detail enforces the required parent, lets the detail inherit sharing and ownership, and enables roll-up summary fields for total monthly usage.
・An external lookup relationship, because usage data physically resides outside the Salesforce platform in the billing warehouse
Incorrect. External lookups relate to external objects via an external ID; the usage records here are stored natively in Salesforce.
・A hierarchical relationship, which is the standard pattern for associating two custom objects that share ownership
Incorrect. Hierarchical relationships apply only to the User object for manager chains, not to custom objects like Subscriber Line.
Explanation
A mandatory parent plus roll-up summary of child usage are hallmarks of a master-detail relationship.
Example15 · Data Modeling & Management
A telecom operator's Customer Interaction object holds 120 million rows, and an agent console list view filtering on two frequently-queried custom fields now times out. The architect wants read performance without changing the object's data model. What should the architect pursue first with Salesforce?
・Archive the oldest interaction rows to Big Objects and completely remove them from the standard object to shrink the row count the query must scan
Incorrect. Archiving to Big Objects changes the data model and retention behavior and is a larger effort than the read-tuning requested here.
・Convert the Customer Interaction object into an external object backed by an on-premise database to offload all query execution away from the platform
Incorrect. Converting to an external object fundamentally changes the model and introduces callout latency and feature limitations.
✓Request a skinny table that copies the frequently-queried fields so the list view reads a narrower, pre-joined table
Correct. A skinny table maintained by Salesforce holds the frequently-queried fields without base/custom table joins, improving read performance without model changes.
・Split the Customer Interaction object into twelve monthly objects so each list view only scans one month of records
Incorrect. Splitting into monthly objects is a significant data-model change and breaks unified reporting, contrary to the stated constraint.
Explanation
Skinny tables are the Salesforce-maintained option to accelerate reads on large objects without altering the data model.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)