Free Salesforce Platform Developer I (PDI) Exam Flashcards

Memorize 50 essential terms and definitions for the Salesforce Certified Platform Developer (Platform Developer I). See the term, recall the definition, then flip to check yourself.

50 Flashcards
4 Topics
100% Free
TermClick to flip

Why does Salesforce impose governor limits?

Tap to reveal definition
Card 1 of 50Developer Fundamentals

Filter by Topic

Jump to Card

About These Salesforce Platform Developer I (PDI) Flashcards

These 50 flashcards are designed to help you memorize key terms and definitions for the Salesforce Certified Platform Developer (Platform Developer I). Each card shows a term on the front and its definition on the back—the classic flashcard format for vocabulary memorization. Use these alongside our practice questions to build both recall and comprehension.

Topics Covered

Developer Fundamentals14 cards
Process Automation and Logic14 cards
User Interface12 cards
Testing, Debugging, and Deployment10 cards

Complete Flashcard Reference

Review every term in this set. Open any term to reveal its definition.

Why does Salesforce impose governor limits?

Many customer orgs share platform infrastructure. Transaction limits on resources such as queries and CPU time prevent one workload from consuming an unfair share.

How does metadata differ from record data?

Metadata describes the application: its object definitions, fields, automation and code. Record data is the business information stored using those definitions. Deploying a field definition does not copy its existing values.

How do objects, fields and records relate?

An object defines a kind of business entity; fields describe its attributes; a record is one instance. For example, an Asset can have a serial-number field and many individual asset records.

How can you identify an ordinary custom object or custom field by API name?

Its API name normally ends in __c, such as Inspection__c. Apex and SOQL reference API names rather than the labels displayed to users.

When should a child record use a lookup relationship?

Use a lookup when the related records should retain more independence. Unlike master-detail, a lookup does not automatically make child ownership and sharing dependent on the parent; whether the lookup is required depends on its configuration.

What happens to detail records when their master record is deleted?

In a master-detail relationship, deleting the master cascades to its details. The detail depends on its master for access and ownership, so choose this relationship when that dependence is appropriate.

How can one model many students taking many workshops?

Create a junction object such as Enrollment with a master-detail relationship to Student and another to Workshop. Each enrollment links one pair and can store information about that pairing.

Why use an External ID field?

It stores an identifier from another system that can be used to match Salesforce records, including during upsert. An External ID is not automatically a guarantee of uniqueness; configure uniqueness if required.

When is a formula field preferable to Apex?

Use a formula for a derived value, such as a unit price multiplied by a quantity. The expression is stored as metadata and its result is calculated when evaluated rather than edited as a normal stored value.

Which field type can total child amounts on their parent?

A native roll-up summary on the master object aggregates related detail records. It supports COUNT, SUM, MIN and MAX, with field-type restrictions for each operation; ordinary custom lookup relationships do not support native roll-ups.

When does a Salesforce validation rule prevent a record from saving?

When the rule's error condition evaluates to true. Write the expression to identify invalid data, not valid data, and provide a meaningful error message.

When should developers favor Flow over a custom Apex trigger?

For straightforward automation with manageable complexity, Flow offers declarative maintenance. Use Apex when the solution needs more granular transaction control or sophisticated logic; invocable Apex can supplement a Flow.

What does MVC separate in a Visualforce application?

The model represents data, the view displays the interface, and the controller supplies behavior and coordinates access to data. This separation lets developers change presentation without rewriting all business logic.

How should developers treat code suggested by Agentforce development tools?

Use AI assistance for activities such as drafting Apex, documentation and test cases. Treat its output as a draft: inspect the logic, permissions and governor-limit behavior, then test before deployment.

Which type of record-triggered Flow should update fields on the record being saved?

Use Fast Field Updates (before save) for same-record field changes. Actions and Related Records (after save) supports actions such as creating a related record. Before-save field changes avoid an extra save of the triggering record.

How can a Flow call reusable Apex business logic?

Expose an eligible public or global static method using @InvocableMethod, then select the action in Flow Builder. Invocable actions also support Agentforce use cases; design inputs to handle multiple requests.

How do List, Set and Map serve different purposes in Apex?

A List preserves indexed order and may contain duplicates. A Set keeps distinct elements, useful for collecting record IDs. A Map associates each key with a value, useful for finding a record by its ID.

What does an Apex interface provide?

It declares method signatures rather than their implementations. A class that implements the interface supplies the required method bodies, allowing multiple classes to offer the same callable contract.

When should Apex use SOQL rather than SOSL?

Use SOQL for structured filters on a known object and its relationships; ordinary record queries return records of the queried type. Use SOSL for text searches across object types; in Apex it returns a separate list of records for each requested object.

What is the effect of continue versus break in an Apex for loop?

continue skips the remainder of the current iteration and proceeds to the next one. break exits the loop altogether. In a SOQL for loop that iterates lists of records, continue advances to the next list.

How does upsert decide between inserting and updating?

It matches a specified key (such as an External ID), or the Salesforce Id when no field is specified. No match inserts a record; exactly one match updates it; multiple matches produce an error.

How can Apex insert a list while retaining successful rows when other rows fail validation?

Use Database.insert with allOrNone set to false and inspect the returned SaveResult for each row. Successful rows can persist if the enclosing transaction commits; an ordinary DML insert is all-or-none.

When should Apex trigger logic run before versus after a save?

Use a before trigger to modify or validate incoming records. Use an after trigger for logic needing system-assigned values such as the new Id or changes to related records. The triggering records are read-only in the after context.

How can an update trigger compare earlier and incoming field values?

Use Trigger.oldMap to find the prior record by Id and compare it with the corresponding record in Trigger.new. This detects changes of interest instead of running business logic on every edit.

How do you bulkify an Apex trigger's database operations?

Collect the needed IDs from the entire trigger batch, query matching records together, build a collection of changes, and submit list-based DML outside the record-processing loop. This avoids a query or DML call per record.

What are the usual per-transaction synchronous Apex query and DML statement limits?

100 SOQL queries and 150 DML statements for ordinary synchronous Apex. These count statements, not rows. Native automation shares the transaction limits; certified managed packages can have separate namespace allocations. Scheduled Apex also uses synchronous limits.

How can a record-triggered automation avoid unnecessary recursive saves?

Restrict execution to meaningful value transitions and avoid updating the triggering record a second time when before-save assignment would suffice. An additional DML update can run the save sequence and fire automation again.

How should Apex handle an expected business exception?

Catch an appropriately specific exception and respond intentionally, for example by reporting a useful error. Custom exception classes represent application-specific failures. A governor-limit exception such as System.LimitException cannot be handled by a catch block.

What does a Visualforce standard controller provide?

Built-in record retrieval and standard record actions for supported objects, without writing a controller from scratch. It uses the record context, commonly an Id parameter, to work with the selected record.

When would you use a Visualforce custom controller?

When the page needs developer-defined behavior or data access beyond standard controller features. The page references your Apex class with its controller attribute; a controller extension can instead augment an existing standard controller.

Which parts of a Lightning web component define presentation and behavior?

The HTML template describes the interface, the JavaScript class supplies behavior and state, and optional CSS provides styling. The component's .js-meta.xml configuration controls metadata such as its available targets.

What does the @api decorator expose in an LWC?

A property or method that is part of the component's public interface. For example, a parent can set a child's public input or call a public method.

How does an LWC child notify its parent about a user action?

Create and dispatch a CustomEvent from the child. The parent listens for that event; payload values can be supplied through its detail property.

What is the purpose of @wire in an LWC?

It connects a component property or function to a data provider. The framework provisions updated values as reactive parameters change, allowing the interface to respond without manually invoking each read.

Which Apex annotation is needed for an LWC to wire a server method?

Use @AuraEnabled(cacheable=true) on a public or global static Apex method. To be cacheable the method must read rather than mutate data; use an imperative call when mutations are required.

When should an LWC invoke Apex imperatively?

When the developer must control timing, such as a Save button, or the method writes data and cannot be cacheable. The invocation returns a promise for a single response, unlike a reactive wire.

Why prefer Lightning Data Service for ordinary record UI operations?

For supported record operations, Lightning Data Service handles record sharing, object permissions and field permissions. It manages a client-side record cache, reducing the need for custom Apex controllers.

What does the with sharing keyword protect in Apex?

It applies record-level sharing rules. It does not by itself establish whether the user may read or modify an object or individual fields; enforce those permissions separately.

How can an Apex SOQL query explicitly enforce the current user's access rights?

Use WITH USER_MODE for queries that should respect user access, including object permissions, field-level security and record sharing. Explicit access modes make security intent clear across API versions.

Which LWC configuration target makes a custom component available in Flow screens?

Add lightning__FlowScreen to the component's XML metadata. Configure target properties for the component's inputs and outputs so a screen flow can exchange values with it.

Why should an Apex unit test create its own business records?

Tests normally cannot see existing business data, although certain setup and metadata records remain accessible. Test-created data is rolled back, making tests more repeatable across orgs and protecting live records.

What is the purpose of @TestSetup in an Apex test class?

It creates common test records before the individual tests. Each test can use the original setup records, and changes made in one test do not carry over to the next.

Why surround the tested operation with Test.startTest() and Test.stopTest()?

The pair isolates the tested operation in a fresh governor-limit context; the original limits resume afterward. Asynchronous jobs directly enqueued within the block run at stopTest so their outcomes can be asserted.

Why are assertions important even when a test increases code coverage?

Coverage shows which lines executed, not whether they produced the intended result. Assert the actual business outcome, and in a negative test check that the expected error occurs rather than any unrelated exception.

What is the standard Apex code coverage requirement for production deployment?

Normally at least 75% overall Apex coverage, some coverage for every trigger, and passing required tests. With RunSpecifiedTests, the requirement instead applies at 75% to each deployed class and trigger individually.

Why test triggers with multiple records in one DML operation?

A trigger that works for one record may fail on a batch because of repeated queries, statement limits or incorrect assumptions about context. Verify the expected outcome for every record in a bulk test as well as single-record cases.

How do debug logs help diagnose an unexpected Apex result?

They show execution events such as called code, exceptions and debug messages. Set an appropriate trace and log level for the relevant execution, then inspect the sequence and limit use in Developer Console or other developer tools.

Where can a developer check whether a background Apex job succeeded?

Use the Apex Jobs page in Setup for job status and errors. For a queued or batch job, AsyncApexJob can also be queried for its status; use the returned job identifier when available.

What is Salesforce CLI useful for in a source-driven development workflow?

It automates operations such as retrieving and deploying metadata, running tests and working with orgs. Keep changes in version control and test in a development or sandbox org before release.

What do Salesforce change sets move between environments?

They transfer supported configuration metadata between connected orgs affiliated with the same production org, such as a sandbox and its production org. Validate the inbound change set and dependencies before deployment; it does not transfer business records.

Frequently Asked Questions

Is Salesforce Certified Platform Developer the same exam as Platform Developer I?

Yes. Salesforce now lists the foundational programmatic-development credential as Salesforce Certified Platform Developer; Platform Developer I (PDI) is its familiar name. It precedes the separate Platform Developer II credential.

What is the current Salesforce Platform Developer exam format and passing score?

Salesforce lists 60 scored multiple-choice items, up to 5 unscored items, a 105-minute limit and a passing score of 68%. The exam is closed-book and proctored. Salesforce does not publish a public exam pass rate.

What are the major topics on the Platform Developer exam?

The Salesforce guide assigns 27% to developer fundamentals, 28% to process automation and logic, 25% to user interface, and 20% to testing, debugging and deployment. The 50-card set uses 14, 14, 12 and 10 cards respectively, rounding the published weights to whole cards.

Do I need another certification or an employer sponsor before taking the exam?

No. You may register without a previous certification or employer sponsor. Salesforce describes its typical candidate as having 1–2 years of development experience, including at least six months on the Lightning Platform. This experience is guidance, not an admission prerequisite.

How are Salesforce Platform Developer exam retakes scheduled?

Within one release cycle, candidates can make three attempts. Following failure number one, registration opens after 24 hours; following failure number two, it opens after 14 days. After the third failure, wait for the next release cycle. Check the official retake policy for the cycle schedule.

How do I maintain my Platform Developer certification?

Earn the credential-specific Trailhead maintenance badge once each year and meet Salesforce's assigned completion deadline. Missing that requirement can expire the credential; check the official maintenance schedule.

Are flashcards sufficient preparation for Platform Developer I?

Use the cards to recall distinctions and platform rules, then apply them in a Salesforce practice org. Build a data model, automate a record change, write bulk-safe Apex, create a component and test the expected outcomes. These are independent study aids, not actual certification exam questions.

Same family resources

Explore More Salesforce Certifications

Continue into nearby exams from the same family. Each card keeps practice questions, study guides, flashcards, videos, and articles in one place.