Salesforce Certified Platform Developer I Exam — Questions and Answers
Question 1: What does the `c` namespace represent in a Lightning component reference like `<c-my-component>`?
- A component from a managed package
- A community component
- A Salesforce core component
- A custom (org-defined) component (Correct answer)
Correct answer: A custom (org-defined) component
The `c` namespace is the default namespace for custom components built within a Salesforce org.
Question 2: In LWC, how do you reference a static resource named 'myResource' in JavaScript?
- import myResource from '@salesforce/staticResource/myResource';
- const myResource = StaticResource.load('myResource');
- import myResource from '@salesforce/resourceUrl/myResource'; (Correct answer)
- import { myResource } from 'resource';
Correct answer: import myResource from '@salesforce/resourceUrl/myResource';
The @salesforce/resourceUrl scoped module import is used to reference static resources in LWC JavaScript files.
Question 3: In an LWC template, what syntax correctly renders a list of items from a 'contacts' property?
- <template for:each={contacts} for:item='contact'> (Correct answer)
- <template aura:iteration='contacts'>
- <template lwc:for={contacts} lwc:item='contact'>
- <ul lwc:repeat={contacts}>
Correct answer: <template for:each={contacts} for:item='contact'>
LWC uses for:each and for:item directives on a <template> tag; each child element must also carry a unique key attribute.
Question 4: What is the primary benefit of version control in apex programming for PD1?
- It tracks changes and enables collaboration (Correct answer)
- It makes files larger
- It replaces testing
- It eliminates the need for documentation
Correct answer: It tracks changes and enables collaboration
Version control systems track all changes to code and configurations, enabling collaboration, rollback, and audit trails.
Question 5: What is the key limitation of a Roll-Up Summary field using SUM?
- It cannot be used in reports
- It can only aggregate Number, Currency, or Percent fields (Correct answer)
- It only works on the child side of the relationship
- It refreshes only once per day
Correct answer: It can only aggregate Number, Currency, or Percent fields
Roll-Up Summary SUM (and MIN/MAX) operations can only be performed on numeric field types: Number, Currency, and Percent.
Question 6: Which Salesforce feature enables teams to track which user story or work item a set of metadata changes belongs to?
- Salesforce DevOps Center Work Items (Correct answer)
- Metadata Coverage Report
- Change Sets with descriptions
- Git commit messages
Correct answer: Salesforce DevOps Center Work Items
Salesforce DevOps Center Work Items link specific metadata changes to user stories or tasks, providing full traceability throughout the pipeline.
Question 7: What is the minimum access level that Apex Managed Sharing can grant on a custom object record?
- Read Only (Correct answer)
- Read/Write
- None
- Full Access
Correct answer: Read Only
Apex Managed Sharing can grant Read Only, Read/Write, or Full Access, but the minimum non-trivial access level is Read Only.
Question 8: Which approach should a developer use to test an Apex trigger that processes 200 records to verify bulkification?
- Use Test.setMock() to simulate 200 records without actual DML
- Insert 200 records in a list within a single DML call and assert results for all records (Correct answer)
- Use @isTest(SeeAllData=true) to pull production records
- Insert one record in the test method and assert the result
Correct answer: Insert 200 records in a list within a single DML call and assert results for all records
Inserting 200 records in a single DML statement simulates a bulk trigger invocation and validates that the trigger handles a full batch without hitting limits.
Question 9: What role does continuous feedback play in PD1 quality improvement processes?
- It should only be collected from management
- It provides ongoing data for identifying trends, successes, and areas needing improvement (Correct answer)
- It is unnecessary if initial standards are properly set
- It is primarily used for employee evaluations
Correct answer: It provides ongoing data for identifying trends, successes, and areas needing improvement
Continuous feedback from multiple sources provides real-time data about performance, helps identify emerging trends, celebrates successes, and highlights areas that need improvement. This ongoing input is essential for a dynamic quality improvement process.
Question 10: How should Salesforce Certified Platform Developer 1 professionals incorporate feedback into the design iteration process?
- Ignore feedback that requires significant changes
- Systematically evaluate feedback, prioritize changes based on impact, and document rationale for decisions (Correct answer)
- Only accept feedback from senior stakeholders
- Accept all feedback without evaluation
Correct answer: Systematically evaluate feedback, prioritize changes based on impact, and document rationale for decisions
Feedback should be systematically evaluated for relevance and impact, with changes prioritized based on their effect on design quality, safety, and compliance. Documenting the rationale for accepting or declining feedback ensures transparency.
Question 11: Which of the following is true about Lightning Aura Components and Lightning Web Components running on the same page?
- LWC components can contain Aura components using the <c-aura> tag
- Aura components can contain LWC components but not vice versa
- Both can coexist; Aura can wrap LWC and LWC can wrap Aura using interop adapters (Correct answer)
- LWC and Aura components cannot exist on the same Lightning page
Correct answer: Both can coexist; Aura can wrap LWC and LWC can wrap Aura using interop adapters
Salesforce supports interoperability: Aura components can include LWC components, and LWC can include Aura components via an interop layer.
Question 12: Which sharing mechanism should a developer use when business logic requires sharing records with users dynamically at runtime based on complex conditions?
- Apex Managed Sharing (Correct answer)
- Criteria-based sharing rules
- Owner-based sharing rules
- Manual sharing
Correct answer: Apex Managed Sharing
Apex Managed Sharing allows developers to programmatically share records at runtime based on any custom business logic that cannot be expressed in declarative sharing rules.
Question 13: What is the recommended way to expose a custom Apex class as a REST web service?
- Use the @AuraEnabled annotation on the class
- Use the @RestResource annotation with a urlMapping parameter on the class (Correct answer)
- Register the class as a Remote Action
- Extend the webService keyword in the class declaration
Correct answer: Use the @RestResource annotation with a urlMapping parameter on the class
@RestResource(urlMapping='/myservice/*') on the class and @HttpGet/@HttpPost on methods expose Apex as a REST endpoint.
Question 14: How should Salesforce Certified Platform Developer 1 professionals handle technical procedures that have been updated or revised?
- Only apply updates to new cases or projects
- Wait for mandatory enforcement before changing
- Review the updates, complete any required training, and implement the revised procedures (Correct answer)
- Continue using the original method if it still works
Correct answer: Review the updates, complete any required training, and implement the revised procedures
When procedures are updated, professionals must review the changes, complete any required training to understand the rationale and new requirements, and implement the revised procedures in their practice. Continuing outdated methods risks non-compliance and suboptimal outcomes.
Question 15: What is the recommended approach for handling errors in deployment strategies?
- Implement structured error handling with meaningful messages (Correct answer)
- Log errors but never handle them
- Suppress all error messages
- Let errors crash the application
Correct answer: Implement structured error handling with meaningful messages
Structured error handling with meaningful messages helps diagnose problems quickly while maintaining application stability and user experience.
Question 16: Which metadata file controls where a Lightning Web Component can be used (e.g., App Page, Record Page)?
- package.xml
- componentName.js-meta.xml (Correct answer)
- componentName.html
- componentName.json
Correct answer: componentName.js-meta.xml
The .js-meta.xml configuration file defines the component's targets (page types), isExposed setting, and properties visible in Lightning App Builder.
Question 17: What role does continuous feedback play in PD1 quality improvement processes?
- It is unnecessary if initial standards are properly set
- It should only be collected from management
- It provides ongoing data for identifying trends, successes, and areas needing improvement (Correct answer)
- It is primarily used for employee evaluations
Correct answer: It provides ongoing data for identifying trends, successes, and areas needing improvement
Continuous feedback from multiple sources provides real-time data about performance, helps identify emerging trends, celebrates successes, and highlights areas that need improvement. This ongoing input is essential for a dynamic quality improvement process.
Question 18: What is the maximum size of a single debug log file in Salesforce?
- 5 MB
- 50 MB
- 20 MB (Correct answer)
- 2 MB
Correct answer: 20 MB
A single Apex debug log can be up to 20 MB; logs exceeding this size are truncated and older entries are removed from the beginning.
Question 19: In Aura components, what is the equivalent of LWC's @wire decorator for reading Salesforce data?
- <aura:handler> with event='force:recordData'
- apex:action tag in the component markup
- force:recordData component with recordId attribute (Correct answer)
- <aura:attribute> with type='Apex'
Correct answer: force:recordData component with recordId attribute
The force:recordData component in Aura wires record data directly to the component, similar to how @wire works in LWC.
Question 20: What is the effect of setting 'standardStylesheets="false"' on the <apex:page> component?
- Switches the page to a lightweight mobile stylesheet
- Prevents the page from loading third-party CSS files
- Removes Salesforce-specific CSS, allowing fully custom styling (Correct answer)
- Disables inline styles on all child components
Correct answer: Removes Salesforce-specific CSS, allowing fully custom styling
Setting standardStylesheets='false' removes the default Salesforce CSS files from the page, giving developers full control over styling.
Question 21: Which Visualforce global variable provides access to the currently logged-in user's information?
- {!$Organization}
- {!$User} (Correct answer)
- {!$Profile}
- {!$CurrentUser}
Correct answer: {!$User}
$User is the Visualforce global variable that exposes fields of the running user, such as $User.FirstName and $User.Id.
Question 22: What is the value of continuing education in lightning components for PD1 professionals?
- It replaces workplace experience
- It is primarily a social activity
- It keeps professionals current with evolving standards and practices (Correct answer)
- It is only needed for recertification
Correct answer: It keeps professionals current with evolving standards and practices
Continuing education ensures professionals stay current with the latest developments, standards, and best practices in their field.
Question 23: Which Salesforce object stores the reason (row cause) for a programmatically created sharing record?
- The RowCause field on the __Share object (Correct answer)
- The Cause field on RecordShare
- The ShareReason__c custom field
- The AccessReason field on SharingRule
Correct answer: The RowCause field on the __Share object
The RowCause field on the __Share object stores the reason for the share, and Apex Managed Sharing uses a custom RowCause value defined in Setup.
Question 24: What is the purpose of a page layout in Salesforce?
- To manage security settings.
- To track user activity.
- To customize the layout and display of record pages (Correct answer)
- To control user access permissions.
Correct answer: To customize the layout and display of record pages
A page layout in Salesforce controls the organization and display of fields, custom links, and related lists on an object's record detail and edit pages. Administrators use page layouts to customize the user interface for different profiles or record types, ensuring users see the most relevant information. This enhances user experience and streamlines data entry by presenting information logically.
Question 25: Which Apex class is used to invoke a named credential-based callout?
- System.Callout
- WebServiceCallout
- Http
- HttpRequest (Correct answer)
Correct answer: HttpRequest
HttpRequest is configured with the endpoint (including the callout:namedCredential syntax) and sent via the Http class.
Question 26: What does the SeeAllData=true annotation in @isTest do?
- Forces the test to create its own data
- Allows the test to access all records in the org (Correct answer)
- Enables access to setup objects only
- Grants read-only access to custom objects
Correct answer: Allows the test to access all records in the org
@isTest(SeeAllData=true) bypasses test data isolation so the test can query existing records in the org, which is generally discouraged.
Question 27: What happens when you set 'readOnly="true"' on an <apex:page>?
- The page can query up to 1 million rows but cannot perform DML (Correct answer)
- The page is cached and not re-rendered on each request
- The page cannot call any Apex methods
- All input fields become disabled
Correct answer: The page can query up to 1 million rows but cannot perform DML
readOnly='true' increases the SOQL row limit to 1 million but prevents any DML operations on the page.
Question 28: When converting a Lookup relationship to a Master-Detail relationship, which prerequisite must be met?
- The parent object must have fewer than 10,000 records
- The lookup field must be unique
- The child object must have no triggers
- All child records must already have a value in the lookup field (Correct answer)
Correct answer: All child records must already have a value in the lookup field
Because Master-Detail relationships require a parent value, all existing child records must have a non-null lookup value before the conversion can proceed.
Question 29: Which Apex collection type enforces uniqueness of its elements and does not maintain insertion order?
- Map
- Queue
- Set (Correct answer)
- List
Correct answer: Set
An Apex Set stores unique values only and does not guarantee any particular ordering of its elements.
Question 30: Which Lightning Web Component lifecycle hook fires after every render of the component, including the initial render?
- connectedCallback()
- renderedCallback() (Correct answer)
- constructor()
- disconnectedCallback()
Correct answer: renderedCallback()
renderedCallback() is called after every render cycle, both the initial render and subsequent re-renders due to property changes.
Question 31: A developer queries Accounts using SOQL in a class declared 'with sharing'. The running user is a standard user with OWD set to Private. What records are returned?
- No records — a sharing exception is thrown
- Only Accounts the user created
- Only Accounts the user owns or has been explicitly shared with (Correct answer)
- All Account records in the org
Correct answer: Only Accounts the user owns or has been explicitly shared with
In a 'with sharing' class, SOQL respects the running user's record visibility, so only records the user owns or that are shared with them via any sharing mechanism are returned.
Question 32: Which Salesforce feature allows declarative integration with external REST APIs without writing Apex code?
- Connected Apps
- External Services (Correct answer)
- Named Credentials
- Remote Site Settings
Correct answer: External Services
External Services lets admins register external REST APIs and invoke them via Flow or Process Builder without writing Apex.
Question 33: What is the primary advantage of using scratch orgs over developer sandboxes for development?
- Scratch orgs persist indefinitely without expiry
- Scratch orgs include a copy of production data
- Scratch orgs can be scripted, versioned, and created on-demand for CI/CD (Correct answer)
- Scratch orgs have no governor limits
Correct answer: Scratch orgs can be scripted, versioned, and created on-demand for CI/CD
Scratch orgs are disposable, source-driven environments that can be created via CLI scripts, making them ideal for automated CI/CD pipelines.
Question 34: Which debug log category specifically captures information about SOQL queries and DML operations during Apex execution?
- Callout
- Workflow
- Database (Correct answer)
- Apex Code
Correct answer: Database
The Database log category logs SOQL queries, DML operations, and database-level events like row counts.
Question 35: What is a Process Builder in Salesforce?
- A tool for creating custom reports.
- A tool for managing Salesforce users.
- A tool for customizing user interfaces.
- A tool for automating business processes (Correct answer)
Correct answer: A tool for automating business processes
Process Builder is a powerful declarative automation tool in Salesforce that allows administrators to automate complex business processes without writing code. It enables the creation of multi-step workflows, including updating records, sending emails, creating tasks, and invoking Apex code, based on specific criteria. It's a key tool for streamlining operations.
Question 36: A developer adds `try-catch` around a DML statement in a trigger to handle exceptions gracefully. What should they be aware of?
- The catch block has no access to which specific records failed
- Catching the exception prevents any rollback and allows the transaction to continue successfully
- The catch block can use addError() to surface a user-friendly message while still rolling back if needed (Correct answer)
- Catching a DMLException automatically commits the successful records
Correct answer: The catch block can use addError() to surface a user-friendly message while still rolling back if needed
Using addError() in the catch block surfaces a meaningful message to the user while allowing the developer to control rollback behavior.
Question 37: What role does calibration play in maintaining technical accuracy for Salesforce Certified Platform Developer 1 professionals?
- It ensures instruments and methods produce accurate, consistent results over time (Correct answer)
- It is only necessary for new equipment
- It is an optional best practice for advanced professionals
- It only matters during formal inspections
Correct answer: It ensures instruments and methods produce accurate, consistent results over time
Regular calibration ensures that instruments, tools, and methods continue to produce accurate and consistent results over time. Without calibration, measurement drift and equipment wear can lead to unreliable outcomes.
Question 38: What is the maximum number of SOQL queries allowed in a Visualforce page request (non-readOnly)?
- 100 (Correct answer)
- 50
- 150
- 200
Correct answer: 100
Standard Visualforce page requests follow the same governor limits as Apex: 100 SOQL queries per transaction.
Question 39: When a PD1 professional encounters an unexpected result during a technical procedure, the FIRST action should be to:
- Report the issue without any preliminary assessment
- Continue the procedure and address it later
- Stop, assess the situation, and determine whether to proceed or seek guidance (Correct answer)
- Repeat the procedure from the beginning immediately
Correct answer: Stop, assess the situation, and determine whether to proceed or seek guidance
Stopping to assess the situation when unexpected results occur is critical. This allows the professional to evaluate whether it is safe and appropriate to continue, and to determine if additional guidance or resources are needed.
Question 40: Which Salesforce CLI command validates a deployment against a production org without committing any changes?
- sf project deploy validate (Correct answer)
- sf project deploy start --dry-run
- sf project deploy preview --production
- sf org validate --metadata
Correct answer: sf project deploy validate
'sf project deploy validate' performs a full validation including Apex test execution against the org without saving any components.
Question 41: Which field type in Salesforce is most appropriate for storing a value that must not be visible to most users and needs to be masked?
- Formula
- Text (Masked)
- Text (Encrypted) (Correct answer)
- Long Text Area
Correct answer: Text (Encrypted)
The Encrypted Text field type stores data in encrypted form and can be masked to restrict visibility based on permissions.
Question 42: In which scenario is SOSL preferred over SOQL?
- When searching for a text string across multiple objects and fields simultaneously (Correct answer)
- When performing aggregate calculations on numeric fields
- When querying a single object using a known record ID
- When you need to return more than 50,000 records in one call
Correct answer: When searching for a text string across multiple objects and fields simultaneously
SOSL is the better choice when you need to find a text value across multiple objects and fields at once, since SOQL can only query one object per statement.
Question 43: What is the purpose of a scratch org in Salesforce DX?
- A temporary, configurable org spun up for development and testing (Correct answer)
- A read-only org for reporting
- A sandboxed copy of the production org
- A persistent production-like org for UAT testing
Correct answer: A temporary, configurable org spun up for development and testing
Scratch orgs are temporary, source-driven environments used during development that expire after a set number of days.
Question 44: A company wants Salesforce to receive data from an external IoT device in real time using a lightweight publish/subscribe model. Which Salesforce feature is MOST appropriate?
- Platform Events (Correct answer)
- Bulk API 2.0
- SOAP Inbound Message
- Streaming API with PushTopic
Correct answer: Platform Events
Platform Events support a lightweight publish/subscribe model ideal for IoT device data ingestion in near real time.
Question 45: A developer wants a scheduled Apex job to run every day at midnight. Which interface must the Apex class implement?
- Queueable
- Batchable
- Schedulable (Correct answer)
- Callable
Correct answer: Schedulable
The `Schedulable` interface allows an Apex class to be scheduled via the UI or System.schedule() to run at specified times.
Question 46: What is the role of the @isTest annotation in Apex?
- It enables debug logging for the class
- It publishes the class to the AppExchange
- It marks a class or method as a test that does not count toward org code limits (Correct answer)
- It prevents the class from being deployed to production
Correct answer: It marks a class or method as a test that does not count toward org code limits
@isTest designates Apex code as test-only, excluding it from production code limits and preventing it from being called in non-test contexts.
Question 47: Which foundational principle is MOST important for success in the Salesforce Certified Platform Developer 1 profession?
- Specializing in only one narrow area of practice
- Maintaining the minimum requirements for certification
- Maximizing financial returns on every engagement
- Commitment to continuous learning, ethical practice, and quality outcomes (Correct answer)
Correct answer: Commitment to continuous learning, ethical practice, and quality outcomes
Success in any professional field requires a commitment to continuous learning to stay current, ethical practice to maintain trust and integrity, and a focus on quality outcomes that serve stakeholders and the public interest.
Question 48: Which attribute on <apex:page> disables the standard Salesforce page header?
- header='false'
- showHeader='false' (Correct answer)
- pageHeader='false'
- standardHeader='false'
Correct answer: showHeader='false'
Setting showHeader='false' on <apex:page> removes the standard Salesforce header from the rendered page.
Question 49: In Visualforce, which expression syntax is used to escape potentially unsafe user input for XSS prevention?
- {!HTMLENCODE(value)} (Correct answer)
- {!URLENCODE(value)}
- {!ENCODE(value)}
- {!JSENCODE(value)}
Correct answer: {!HTMLENCODE(value)}
HTMLENCODE() encodes special HTML characters to prevent cross-site scripting when outputting user data in HTML context.
Question 50: A Visualforce page uses a custom controller. The developer wants to access the record ID of the current page. Which approach is correct?
- Use {!$CurrentPage.recordId} in the page markup
- Use Schema.SObjectType to retrieve the current record ID
- Pass the ID through a hidden <apex:inputHidden> tag
- Use ApexPages.currentPage().getParameters().get('id') in the controller (Correct answer)
Correct answer: Use ApexPages.currentPage().getParameters().get('id') in the controller
ApexPages.currentPage().getParameters().get('id') retrieves the 'id' URL parameter, which Salesforce automatically appends when navigating to a standard record page.
Question 51: In a multi-layered security model, which layer is evaluated LAST when determining if a user can access a record's field?
- Field-Level Security (FLS) (Correct answer)
- Object-level permissions (CRUD)
- IP restrictions
- Record-level sharing
Correct answer: Field-Level Security (FLS)
Salesforce evaluates object permissions first, then record-level sharing, and finally field-level security — FLS is the most granular and last layer checked.
Question 52: In Apex, which method is used to register a mock implementation for a Callable interface during testing?
- Callable stubs must be set via dependency injection, not Test.setMock (Correct answer)
- Test.stubCallable(mockInstance)
- Test.setMock(HttpCalloutMock.class, mockInstance)
- Test.setMock(Callable.class, mockInstance)
Correct answer: Callable stubs must be set via dependency injection, not Test.setMock
Callable mocks cannot be registered via Test.setMock(); they must be injected by passing the mock object directly to the class under test.
Question 53: Which Apex data type is used to store a reference to a field on an sObject dynamically?
- String
- Schema.SObjectType
- Schema.SObjectField (Correct answer)
- Object
Correct answer: Schema.SObjectField
Schema.SObjectField is a token that represents a field reference and is used in dynamic Apex and field-level security checks.
Question 54: What is defense in depth in the context of PD1 security?
- Using one strong security control
- Focusing only on perimeter security
- Relying solely on encryption
- Implementing multiple layers of security controls (Correct answer)
Correct answer: Implementing multiple layers of security controls
Defense in depth uses multiple layers of security controls so that if one layer fails, additional layers continue to provide protection.
Question 55: Which SOQL clause should a developer use to prevent row-lock contention during record updates in a high-volume trigger?
- FOR REFERENCE
- FOR VIEW
- FOR UPDATE (Correct answer)
- LIMIT 1
Correct answer: FOR UPDATE
`FOR UPDATE` locks the queried rows to prevent other transactions from modifying them concurrently, reducing deadlock risk.
Question 56: What role does peer review play in the PD1 design process?
- It provides independent verification, catches errors, and enhances overall quality (Correct answer)
- It slows down the design process unnecessarily
- It is only required for regulatory submissions
- It is unnecessary for experienced professionals
Correct answer: It provides independent verification, catches errors, and enhances overall quality
Peer review is a valuable quality control mechanism that provides independent verification of design work, catches errors that the original designer might overlook, and enhances overall quality through diverse perspectives and expertise.
Question 57: In the Salesforce sharing model, what does the 'Grant Access Using Hierarchies' setting control?
- Whether sharing rules apply to the entire hierarchy
- Whether role hierarchy grants record access above the owner's role (Correct answer)
- Whether OWD can be overridden by role hierarchy
- Whether users can share records with subordinates
Correct answer: Whether role hierarchy grants record access above the owner's role
When enabled, 'Grant Access Using Hierarchies' allows users above a record owner in the role hierarchy to automatically gain access to that record.
Question 58: A developer is building a real-time data sync integration where Salesforce must push updates to an external system immediately after a record is saved. Which approach is BEST?
- Scheduled Apex batch
- Platform Event published in a trigger (Correct answer)
- Polling with REST API
- Outbound Message via Workflow
Correct answer: Platform Event published in a trigger
Platform Events published in an Apex trigger provide near-real-time, event-driven push integration with external systems.
Question 59: What is the purpose of the `renderedCallback()` lifecycle hook in LWC?
- It runs when the component is removed from the DOM
- It runs once after the component is first inserted into the DOM
- It runs before the component renders for the first time
- It runs after every render, useful for post-render DOM manipulation (Correct answer)
Correct answer: It runs after every render, useful for post-render DOM manipulation
renderedCallback() fires after every render cycle, making it appropriate for DOM operations that must happen after the template has been updated.
Question 60: Which principle states that users should only have access necessary for their role?
- Need to share
- Defense in depth
- Principle of least privilege (Correct answer)
- Separation of duties
Correct answer: Principle of least privilege
The principle of least privilege ensures users only have the minimum access rights needed to perform their job functions, limiting potential damage.
Question 61: Which type of assessment provides a snapshot of current status at a single point in time?
- Summative assessment
- Baseline assessment (Correct answer)
- Continuous assessment
- Formative assessment
Correct answer: Baseline assessment
A baseline assessment captures the current status at a specific point in time, establishing a reference point for measuring future changes.
Question 62: What happens when an unhandled exception occurs in an Apex after-insert trigger?
- The trigger silently fails and logs an error to the debug log only
- Salesforce retries the trigger up to three times automatically
- The entire transaction, including the original DML that fired the trigger, is rolled back (Correct answer)
- Only the trigger's DML changes are rolled back, preserving the original insert
Correct answer: The entire transaction, including the original DML that fired the trigger, is rolled back
An unhandled exception rolls back the entire transaction, including the original record insert that fired the trigger.
Question 63: Which Visualforce component enables partial page updates (AJAX) without a full page refresh?
- <apex:actionSupport> (Correct answer)
- <apex:actionRegion>
- <apex:outputPanel>
- <apex:actionFunction>
Correct answer: <apex:actionSupport>
<apex:actionSupport> adds AJAX behavior to a parent component, calling a controller action and re-rendering specified targets on an event.
Question 64: Which deployment method is BEST suited for complex environments requiring approval gates between Dev, QA, and Production?
- Ant Migration Tool
- Change Sets
- Manual metadata drag-and-drop
- Salesforce CLI with a CI/CD pipeline (Correct answer)
Correct answer: Salesforce CLI with a CI/CD pipeline
Salesforce CLI integrated with a CI/CD pipeline supports automated testing, approval gates, and controlled progression across environments.
Question 65: Which type of Salesforce sharing rule grants access based on the values of fields on the record?
- Profile-based sharing rule
- Territory-based sharing rule
- Criteria-based sharing rule (Correct answer)
- Owner-based sharing rule
Correct answer: Criteria-based sharing rule
Criteria-based sharing rules grant access to records that meet specific field value criteria, regardless of who owns the record.
Salesforce Certified Platform Developer I Exam
The Salesforce Certified Platform Developer I exam validates a developer's ability to build custom applications on the Salesforce Platform using Apex, Visualforce, Lightning Components, and SOQL.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds