Salesforce Certified Platform Developer I Exam — Questions and Answers
Question 1: Which tag is used to define a reusable section of markup that can be included in multiple Visualforce pages?
- <apex:component> (Correct answer)
- <apex:fragment>
- <apex:template>
- <apex:include>
Correct answer: <apex:component>
<apex:component> defines a custom reusable component that can be referenced by multiple Visualforce pages.
Question 2: Which metric is MOST valuable for measuring quality outcomes in PD1 certified practice?
- Volume of work completed regardless of results
- Cost savings achieved through shortcuts
- Measurable outcomes compared against established benchmarks and standards (Correct answer)
- Number of hours worked per week
Correct answer: Measurable outcomes compared against established benchmarks and standards
Measuring outcomes against established benchmarks and standards provides objective evidence of quality. This approach allows for comparison across time periods, identification of trends, and meaningful evaluation of improvement efforts.
Question 3: Which Salesforce feature allows declarative integration with external REST APIs without writing Apex code?
- Remote Site Settings
- Connected Apps
- Named Credentials
- External Services (Correct answer)
Correct answer: External Services
External Services lets admins register external REST APIs and invoke them via Flow or Process Builder without writing Apex.
Question 4: What is the purpose of SOQL's FOR UPDATE clause?
- It restricts the query to updatable fields only
- It automatically commits changes after the query
- It locks the queried records to prevent concurrent modification (Correct answer)
- It filters records modified in the last update cycle
Correct answer: It locks the queried records to prevent concurrent modification
FOR UPDATE places row-level locks on queried records, preventing other transactions from modifying them until the current transaction completes.
Question 5: What is the maximum length of a standard Text field in Salesforce?
- 1,000 characters
- 255 characters (Correct answer)
- 32,768 characters
- 131,072 characters
Correct answer: 255 characters
Standard Text fields in Salesforce support a maximum of 255 characters; use Text Area or Long Text Area for longer content.
Question 6: In PD1 practice, what is the primary purpose of strategic planning?
- To align resources with goals and anticipate challenges (Correct answer)
- To reduce workforce
- To create paperwork
- To satisfy external auditors
Correct answer: To align resources with goals and anticipate challenges
Strategic planning aligns organizational resources with goals and helps anticipate challenges before they become critical issues.
Question 7: A developer uses `System.enqueueJob()` to add a Queueable Apex job. What is the maximum number of Queueable jobs that can be chained in a single transaction in production?
- 5
- 50
- Unlimited
- 1 (Correct answer)
Correct answer: 1
Only one Queueable job can be enqueued per transaction in production; chaining allows each job to enqueue exactly one more.
Question 8: A developer defines 'public virtual class Animal' and 'public class Dog extends Animal'. What is required for Dog to override a method from Animal?
- No special keywords are needed; all methods are overridable by default
- The method in Animal must be marked 'virtual' or 'abstract', and Dog must use 'override' keyword (Correct answer)
- The method in Animal must be marked 'static'
- Dog must use the 'implements' keyword instead of 'extends'
Correct answer: The method in Animal must be marked 'virtual' or 'abstract', and Dog must use 'override' keyword
In Apex, methods can only be overridden if declared virtual or abstract in the parent class, and the subclass must use the override keyword.
Question 9: What is the primary functional difference between SOQL and SOSL?
- SOQL searches text fields only, while SOSL queries all field types
- SOQL is used in Apex while SOSL is used only in Visualforce
- SOSL supports aggregate functions while SOQL does not
- SOSL can search across multiple objects simultaneously, while SOQL queries one object at a time (Correct answer)
Correct answer: SOSL can search across multiple objects simultaneously, while SOQL queries one object at a time
SOSL performs text searches across multiple Salesforce objects simultaneously, whereas SOQL queries a single object (with optional subqueries for related objects).
Question 10: What is the benefit of continuous integration in PD1 workflows?
- It removes the need for code review
- It automatically fixes all bugs
- It detects integration issues early through frequent builds and tests (Correct answer)
- It eliminates the need for development environments
Correct answer: It detects integration issues early through frequent builds and tests
Continuous integration detects integration issues early by automatically building and testing code whenever changes are committed.
Question 11: In a before-insert trigger, a developer sets a field value on Trigger.new records. What additional DML operation is required?
- A Database.update() call with allOrNothing set to false
- An explicit update DML call
- No additional DML; changes to Trigger.new are saved automatically (Correct answer)
- An explicit insert DML call
Correct answer: No additional DML; changes to Trigger.new are saved automatically
In before triggers, modifications to Trigger.new records are saved automatically without requiring a separate DML statement.
Question 12: What is Visualforce in Salesforce?
- A tool for integrating with external systems.
- A tool for managing user profiles.
- A tool for reporting.
- A custom user interface framework (Correct answer)
Correct answer: A custom user interface framework
Visualforce is a framework within Salesforce that allows developers to build custom user interfaces and pages using a tag-based markup language similar to HTML. It enables the creation of highly customized and dynamic web pages that integrate seamlessly with Salesforce data and functionality. While still supported, it's an older technology often used for specific custom UI requirements.
Question 13: A developer wants a Flow to pause and resume execution after an external approval is received. Which Flow element supports this?
- Assignment Element
- Wait Element (Pause) (Correct answer)
- Loop Element
- Decision Element
Correct answer: Wait Element (Pause)
The Wait (Pause) element suspends Flow execution until a defined resume event, such as a time-based condition or platform event, occurs.
Question 14: Which type of assessment provides a snapshot of current status at a single point in time?
- Baseline assessment (Correct answer)
- Formative assessment
- Continuous assessment
- Summative 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 15: When using the Developer Console's Checkpoint feature, what type of information can a developer inspect at a checkpoint line?
- HTTP request/response pairs triggered before that line
- Only the call stack at that line
- Variable values, heap contents, and iteration counts at that execution point (Correct answer)
- CPU time consumed up to that line only
Correct answer: Variable values, heap contents, and iteration counts at that execution point
Checkpoints in the Developer Console capture a snapshot of heap contents, variable values, and execution counts at that specific line during a transaction.
Question 16: Which Apex class allows a developer to write a test that verifies an entire batch Apex job runs to completion?
- Database.BatchableContext
- Test.runAllTests()
- Test.stopTest() (Correct answer)
- AsyncOptions
Correct answer: Test.stopTest()
Calling Test.stopTest() forces all asynchronous operations—including batch jobs—queued between startTest/stopTest to execute synchronously before the method continues.
Question 17: What is the purpose of the 'rendered' attribute in Visualforce components?
- It controls whether the component is editable
- It sets the CSS display property to none
- It determines if the component fires AJAX requests
- It conditionally includes or excludes the component from the HTML output (Correct answer)
Correct answer: It conditionally includes or excludes the component from the HTML output
The 'rendered' attribute accepts a Boolean expression; when false, the component is not emitted in the HTML response at all.
Question 18: When a PD1 professional encounters an unexpected result during a technical procedure, the FIRST action should be to:
- Repeat the procedure from the beginning immediately
- Report the issue without any preliminary assessment
- Stop, assess the situation, and determine whether to proceed or seek guidance (Correct answer)
- Continue the procedure and address it later
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 19: How should Salesforce Certified Platform Developer 1 professionals respond to quality audit findings that identify areas for improvement?
- Develop and implement an action plan with measurable goals and timelines (Correct answer)
- Wait for the next audit to see if the issues persist
- Acknowledge the findings but take no formal action
- Dispute the findings to protect professional reputation
Correct answer: Develop and implement an action plan with measurable goals and timelines
A structured action plan with measurable goals and defined timelines demonstrates commitment to quality improvement. This systematic response ensures that identified issues are addressed effectively and progress can be tracked.
Question 20: Which keyword in an Apex class declaration causes all DML operations inside it to run with the sharing rules of the calling user?
- with sharing (Correct answer)
- global
- without sharing
- inherited sharing
Correct answer: with sharing
Declaring a class 'with sharing' enforces the current user's record-level sharing rules during DML and SOQL operations within that class.
Question 21: Which statement correctly describes Apex's handling of unhandled exceptions in a trigger?
- The trigger retries automatically up to 3 times
- The entire transaction rolls back and the user sees an error message (Correct answer)
- The exception is logged silently and the trigger completes partially
- The record is saved, but post-processing is skipped
Correct answer: The entire transaction rolls back and the user sees an error message
An unhandled exception in an Apex trigger causes the entire DML transaction to roll back, and Salesforce displays an error to the user.
Question 22: What is the purpose of the @api decorator in a Lightning Web Component?
- It exposes a property or method as public, allowing parent components to set it (Correct answer)
- It registers the component in the Lightning App Builder
- It connects the component to an Apex method
- It marks a property as reactive and tracks changes internally
Correct answer: It exposes a property or method as public, allowing parent components to set it
The @api decorator makes a property or method publicly accessible, allowing parent components or App Builder admins to pass values in.
Question 23: Which metadata file controls where a Lightning Web Component can be used (e.g., App Page, Record Page)?
- componentName.js-meta.xml (Correct answer)
- componentName.json
- package.xml
- componentName.html
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 24: Which Salesforce feature allows a developer to enforce that a record cannot be saved unless a related record exists?
- Required Field Setting
- External ID field
- Master-Detail with required lookup
- Validation Rule (Correct answer)
Correct answer: Validation Rule
A Validation Rule can check for the presence of a related record and block saves when the condition is not met.
Question 25: What happens if a test method contains a DML statement outside of Test.startTest()/Test.stopTest() and the DML count has already reached the limit?
- The DML is queued for execution after the test completes
- Salesforce automatically wraps excess DML in a savepoint
- Salesforce raises the DML limit silently for test context
- A LimitException is thrown, failing the test (Correct answer)
Correct answer: A LimitException is thrown, failing the test
Exceeding any governor limit, including DML statements, causes a LimitException that halts and fails the test method.
Question 26: What is a Process Builder in Salesforce?
- A tool for managing Salesforce users.
- A tool for automating business processes (Correct answer)
- A tool for customizing user interfaces.
- A tool for creating custom reports.
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 27: What is a 'formula field' in Salesforce?
- A field for performing calculations and displaying results (Correct answer)
- A field for storing text values.
- A field for managing security settings.
- A field for tracking user activity.
Correct answer: A field for performing calculations and displaying results
A formula field in Salesforce is a read-only field that automatically calculates and displays a value based on an expression or formula defined by the user. It can reference other fields, standard functions, or conditional logic to derive its value. This is highly useful for displaying aggregated data, conditional text, or calculated metrics directly on a record without manual input.
Question 28: When deploying metadata using the Salesforce CLI (sf or sfdx), which command deploys source-tracked changes to a scratch org?
- sf project deploy start
- sf deploy org push
- sf source push (Correct answer)
- sf org deploy changes
Correct answer: sf source push
sf source push (or sfdx force:source:push) tracks local changes and pushes only modified metadata to a scratch org.
Question 29: Which Lightning Web Component lifecycle hook is called after every render of the component?
- disconnectedCallback()
- constructor()
- connectedCallback()
- renderedCallback() (Correct answer)
Correct answer: renderedCallback()
renderedCallback() fires after each render cycle, making it suitable for DOM manipulation after rendering.
Question 30: Which statement BEST describes the relationship between Salesforce Certified Platform Developer 1 certification requirements and industry evolution?
- Changes only occur when government mandates new requirements
- Requirements become less stringent over time
- Certification requirements never change once established
- Requirements evolve periodically to reflect advances in knowledge, technology, and practice standards (Correct answer)
Correct answer: Requirements evolve periodically to reflect advances in knowledge, technology, and practice standards
Certification requirements evolve to keep pace with advances in professional knowledge, technological developments, and changes in practice standards. This ensures that certified professionals remain current and competent in a changing professional landscape.
Question 31: What is the primary benefit of using version control with Salesforce DX source format over traditional metadata API format?
- Source format automatically resolves merge conflicts
- Source format compresses files for faster deployment
- Source format splits large files (like profiles) into granular, diffable components (Correct answer)
- Source format eliminates the need for sandbox environments
Correct answer: Source format splits large files (like profiles) into granular, diffable components
Source format decomposes monolithic metadata files like profiles into smaller per-object files, making them easier to diff and merge.
Question 32: 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)
- Accept all feedback without evaluation
- Only accept feedback from senior stakeholders
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 33: In Visualforce, which tag renders a standard Salesforce page layout for a specific object record?
- <apex:detail> (Correct answer)
- <apex:form>
- <apex:relatedList>
- <apex:pageBlock>
Correct answer: <apex:detail>
<apex:detail> renders the standard detail view page layout for the record associated with the page's controller.
Question 34: In a CI/CD pipeline for Salesforce, what is the purpose of the 'sf project generate manifest' command?
- Produces a deployment report for auditing
- Generates an unlocked package version
- Creates a package.xml based on local source files (Correct answer)
- Generates a scratch org definition file
Correct answer: Creates a package.xml based on local source files
'sf project generate manifest' introspects the local source directory and creates a package.xml that lists all metadata components found.
Question 35: How should Salesforce Certified Platform Developer 1 professionals handle technical procedures that have been updated or revised?
- Continue using the original method if it still works
- Wait for mandatory enforcement before changing
- Only apply updates to new cases or projects
- Review the updates, complete any required training, and implement the revised procedures (Correct answer)
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 36: What is the purpose of the 'sf project deploy preview' command?
- Validates metadata without running tests
- Deploys metadata and returns a preview report
- Generates a package.xml from local source
- Shows what would be deployed without actually deploying (Correct answer)
Correct answer: Shows what would be deployed without actually deploying
'sf project deploy preview' performs a dry run showing which components would be deployed without making any changes to the org.
Question 37: In which scenario is SOSL preferred over SOQL?
- When searching for a text string across multiple objects and fields simultaneously (Correct answer)
- When you need to return more than 50,000 records in one call
- When performing aggregate calculations on numeric fields
- When querying a single object using a known record ID
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 38: Which keyword is used in Apex to prevent a class from being instantiated directly?
- protected
- abstract (Correct answer)
- static
- virtual
Correct answer: abstract
The `abstract` keyword marks a class that cannot be instantiated and must be extended by a concrete subclass.
Question 39: What is a key risk of deploying Profiles via Change Sets between orgs with different installed packages?
- Change Sets strip field-level security from Profiles
- Profiles always overwrite all settings in the target org
- Profile XML may reference fields or objects that do not exist in the target org (Correct answer)
- Profiles cannot be included in Change Sets
Correct answer: Profile XML may reference fields or objects that do not exist in the target org
If the target org lacks certain managed package fields or objects referenced in the Profile XML, the deployment will fail with missing component errors.
Question 40: A developer implements a callout in a Queueable class. How many callouts can a single Queueable job make?
- Unlimited within the HTTP callout governor limits
- 10
- 100 (Correct answer)
- 1
Correct answer: 100
A Queueable job can make up to 100 HTTP callouts, respecting the standard callout limits per transaction.
Question 41: Which Salesforce deployment tool is best suited for automating CI/CD pipelines for metadata deployments?
- Salesforce CLI (sf/sfdx) (Correct answer)
- Change Sets
- Setup Menu
- Developer Console
Correct answer: Salesforce CLI (sf/sfdx)
Salesforce CLI supports scripted, automated deployments and integrates with CI/CD tools like GitHub Actions and Jenkins.
Question 42: Which professional attribute is most valued in visualforce pages within the PD1 field?
- Prioritizing personal convenience
- Working in isolation
- Accountability and commitment to standards (Correct answer)
- Avoiding challenging situations
Correct answer: Accountability and commitment to standards
Accountability and commitment to professional standards build trust and ensure consistent, high-quality practice.
Question 43: What is the MOST important deliverable at the completion of a PD1 design phase?
- Meeting minutes from design discussions
- Comprehensive documentation including specifications, drawings, calculations, and compliance evidence (Correct answer)
- A verbal summary of the design concept
- A brief email summarizing key decisions
Correct answer: Comprehensive documentation including specifications, drawings, calculations, and compliance evidence
Comprehensive design documentation serves as the authoritative reference for implementation, provides evidence of compliance, supports future maintenance and modifications, and creates a professional record of the design process.
Question 44: What is the result of calling String.valueOf(null) in Apex?
- Returns the string 'null' (Correct answer)
- Throws a NullPointerException
- Returns the integer 0
- Returns an empty string ''
Correct answer: Returns the string 'null'
String.valueOf(null) returns the literal string 'null' rather than throwing an exception.
Question 45: Which order of execution step occurs BEFORE Apex triggers fire on a record update?
- Assignment rules
- System validation rules (Correct answer)
- Process Builder flows
- Workflow rules
Correct answer: System validation rules
Salesforce runs system validation rules before before-triggers in the order of execution.
Question 46: In Visualforce, which global variable gives access to the current page URL and its parameters?
- $URL
- $Page
- $CurrentPage (Correct answer)
- $Request
Correct answer: $CurrentPage
$CurrentPage provides access to the current page's URL, name, and query string parameters via properties like $CurrentPage.parameters.
Question 47: A developer wants to navigate to a record's detail page from an LWC. Which module must be imported?
- lightning/pageReference
- lightning/router
- c/navigationService
- lightning/navigation (Correct answer)
Correct answer: lightning/navigation
The lightning/navigation module provides the NavigationMixin, which is mixed into the component class to enable programmatic navigation.
Question 48: A developer creates a trigger on a custom object that performs a SOQL query. What sharing context does the SOQL use by default?
- System mode — ignores sharing rules and returns all records (Correct answer)
- User mode — enforces sharing of the running user
- Guest user mode
- Admin mode — uses system admin's sharing
Correct answer: System mode — ignores sharing rules and returns all records
Apex triggers run in system mode by default, meaning SOQL queries ignore sharing rules and return all records the code has access to.
Question 49: In Visualforce, which expression syntax is used to escape potentially unsafe user input for XSS prevention?
- {!URLENCODE(value)}
- {!HTMLENCODE(value)} (Correct answer)
- {!JSENCODE(value)}
- {!ENCODE(value)}
Correct answer: {!HTMLENCODE(value)}
HTMLENCODE() encodes special HTML characters to prevent cross-site scripting when outputting user data in HTML context.
Question 50: 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 51: Which foundational principle is MOST important for success in the Salesforce Certified Platform Developer 1 profession?
- Specializing in only one narrow area of practice
- Maximizing financial returns on every engagement
- Commitment to continuous learning, ethical practice, and quality outcomes (Correct answer)
- Maintaining the minimum requirements for certification
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 52: Which LWC module provides the NavigationMixin used for programmatic navigation?
- lightning/navigation (Correct answer)
- force/navigation
- c/navigation
- lightning/pageReferenceUtils
Correct answer: lightning/navigation
NavigationMixin is imported from the 'lightning/navigation' module and mixed into a component class to enable programmatic page navigation.
Question 53: In Visualforce, how do you invoke a JavaScript remoting call to an Apex method?
- Annotate the Apex method with @RemoteAction and call it via JavaScript using Visualforce.remoting (Correct answer)
- Use <apex:callout> tag with the method name
- Use Visualforce.remoting.Manager.invokeAction() with the fully qualified method name
- Call the Apex method directly using apex.executeAction() in JS
Correct answer: Annotate the Apex method with @RemoteAction and call it via JavaScript using Visualforce.remoting
JavaScript Remoting requires the @RemoteAction annotation on the Apex method, then call it from JS using the Visualforce.remoting.Manager.invokeAction or namespace syntax.
Question 54: Which method should a developer call to check if the running user has read access to a specific field before rendering it in Apex?
- Schema.DescribeSObjectResult.isQueryable()
- UserInfo.isFieldAccessible()
- FieldPermission.canRead()
- Schema.SObjectField.getDescribe().isAccessible() (Correct answer)
Correct answer: Schema.SObjectField.getDescribe().isAccessible()
Schema.SObjectField.getDescribe().isAccessible() returns true if the current user has read (FLS) access to that field.
Question 55: In a Lightning Web Component, where must you define a public property that a parent component can set?
- In the component's meta XML file
- Using @api in the JS file (Correct answer)
- Using @track in the JS file
- In the component's .html template
Correct answer: Using @api in the JS file
@api exposes a property or method as part of the component's public API, allowing parent components to pass values in.
Question 56: Which authentication factor is classified as "something you are"?
- Smart card
- Security token
- Password
- Biometric data (Correct answer)
Correct answer: Biometric data
Biometric data such as fingerprints, facial recognition, or retinal scans represents the "something you are" authentication factor.
Question 57: What is the purpose of the Salesforce Schema Builder?
- To automate business processes.
- To visualize and manage the Salesforce data model (Correct answer)
- To create custom user interfaces.
- To configure security settings.
Correct answer: To visualize and manage the Salesforce data model
The Salesforce Schema Builder is a graphical tool that allows administrators and developers to visualize, create, and modify custom objects, fields, and relationships within the Salesforce data model. It provides an intuitive drag-and-drop interface, simplifying the process of understanding and extending the database schema without writing code. It's essential for data model management.
Question 58: What is the governor limit for total SOQL queries in a single synchronous Apex transaction?
- 100 (Correct answer)
- 50
- 200
- 500
Correct answer: 100
Salesforce enforces a limit of 100 SOQL queries per synchronous Apex transaction to prevent excessive resource consumption.
Question 59: A developer needs to allow a community (Experience Cloud) guest user to read certain records. Which sharing mechanism supports this?
- Guest user sharing rules (Correct answer)
- Role hierarchy
- Profile-based permission sets
- Apex managed sharing with Full Access
Correct answer: Guest user sharing rules
Guest user sharing rules allow unauthenticated Experience Cloud users to access records that meet specific criteria.
Question 60: 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 61: In LWC, which event option must be set to `true` for a custom event to cross shadow DOM boundaries to an ancestor component?
- Both bubbles: true and composed: true (Correct answer)
- bubbles: true only
- propagate: true
- composed: true only
Correct answer: Both bubbles: true and composed: true
For a custom event to traverse both the shadow DOM boundary and bubble up the DOM tree, both bubbles and composed must be set to true.
Question 62: Which Apex annotation allows a method to run in system mode, ignoring the current user's sharing rules?
- @AuraEnabled
- @TestSetup
- @InvocableMethod
- There is no annotation; use `without sharing` on the class instead (Correct answer)
Correct answer: There is no annotation; use `without sharing` on the class instead
System-mode execution is declared at the class level using the `without sharing` keyword, not through a method-level annotation.
Question 63: Which factor should PD1 professionals consider first when choosing an assessment method?
- Cost of the instrument
- Appropriateness for the target population (Correct answer)
- Ease of scoring
- Availability of the tool
Correct answer: Appropriateness for the target population
The most important consideration is whether the assessment method is appropriate and validated for the specific population being assessed.
Question 64: What is defense in depth in the context of PD1 security?
- Implementing multiple layers of security controls (Correct answer)
- Using one strong security control
- Focusing only on perimeter security
- Relying solely on encryption
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 65: How do you invoke a JavaScript function from a Visualforce controller action callback?
- Use <apex:commandButton> with an oncomplete attribute
- Use <apex:actionStatus> with an oncomplete attribute
- Use <apex:actionFunction> with an oncomplete attribute
- All of the above (Correct answer)
Correct answer: All of the above
<apex:actionStatus>, <apex:actionFunction>, and <apex:commandButton> all support an oncomplete attribute that executes JavaScript after the AJAX action completes.
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