


Salesforce Certified Platform Developer II Practice Tests
Advanced Apex Development | Salesforce Platform Developer II | Lightning Web Components | Apex Triggers | Asynchronous Apex | SOQL & SOSL | Salesforce Integration | Apex Testing & Debugging | Salesforce Security | Performance Optimization
Prepare for the Salesforce Certified Platform Developer II Exam
Get ready for the Salesforce Certified Platform Developer II certification exam with comprehensive, exam-focused practice tests designed to strengthen your knowledge of advanced Apex programming, Lightning Web Components, Salesforce integration, asynchronous processing, application security, testing, and performance optimization.
This course helps you prepare for the certification through scenario-based practice questions covering all five domains of the official Salesforce Platform Developer II exam outline.
Whether you're a Salesforce Developer, Apex Developer, Lightning Web Component Developer, Technical Consultant, Solution Architect, or experienced Salesforce Platform Developer, these practice exams help you evaluate your knowledge, identify areas requiring improvement, and strengthen your certification readiness.
Explore how to design, develop, test, debug, and deploy complex Salesforce applications using Apex, SOQL, Lightning Web Components (LWC), Aura Components, Visualforce, Platform Events, and Salesforce APIs.
The practice questions focus on real-world Salesforce development decisions, helping you understand how to select appropriate programmatic solutions, write scalable code, manage transactions, implement integrations, optimize performance, and troubleshoot complex applications.
Each practice question includes a detailed answer explanation, helping you understand why the correct technical solution meets the requirement and why alternative approaches are less appropriate.
What You'll Learn
Through these Salesforce Platform Developer II practice tests, you'll review and assess your knowledge of:
Advanced Apex Development: Design reusable, maintainable, and scalable Salesforce applications using object-oriented programming principles.
Apex Triggers: Understand trigger frameworks, bulkification, execution order, recursion prevention, and development best practices.
Asynchronous Apex: Evaluate Queueable Apex, Batch Apex, Scheduled Apex, and Future Methods.
Salesforce SOQL: Understand advanced query structures, query optimization, data retrieval, and large data volume considerations.
Dynamic Apex: Explore dynamic programming capabilities, schema information, and runtime metadata access.
Platform Events: Understand publish-subscribe architecture, event-driven communication, and asynchronous integration.
Salesforce Integration: Evaluate inbound and outbound integrations using Apex REST, SOAP, and HTTP callouts.
Apex Error Handling: Apply exception handling, transaction control, Savepoints, and rollback techniques.
Salesforce Security: Understand Apex Managed Sharing, record-level security, and secure application development.
Custom Metadata & Custom Settings: Select appropriate approaches for storing application configuration and reusable metadata.
Lightning Web Components: Develop responsive user interfaces, manage component communication, and integrate Apex controllers.
Aura Components & Visualforce: Understand advanced UI development, controller extensions, and asynchronous interactions.
Salesforce Testing: Apply Apex unit testing, mock objects, stubs, and test isolation techniques.
LWC Testing with Jest: Evaluate JavaScript component behavior, event handling, and test scenarios.
Salesforce Debugging: Identify problems in Apex classes, triggers, Lightning components, and Visualforce controllers.
Salesforce Deployment: Understand source-driven development, Salesforce DX, version control, and deployment tools.
Salesforce Performance Optimization: Identify inefficient queries, governor limit issues, UI bottlenecks, and large data volume challenges.
Salesforce Design Patterns: Apply reusable business logic, separation of concerns, and maintainable application architecture.
Complete Coverage of All Five Salesforce Platform Developer II Exam Domains
The Salesforce Certified Platform Developer II exam evaluates your ability to design, develop, test, deploy, and optimize advanced Salesforce applications.
These practice tests cover all five official certification domains, focusing on advanced developer fundamentals, process automation, integration, user interfaces, testing, debugging, deployment, and performance.
1. Advanced Developer Fundamentals — 15%
Build your understanding of advanced Salesforce development concepts, internationalization, Apex Managed Sharing, Custom Metadata Types, and Custom Settings.
Key topics include:
Advanced Salesforce Developer Fundamentals
Salesforce Platform architecture
Apex Programming Best Practices
Object-Oriented Programming
Reusable application design
Salesforce Localization
Internationalization
Locale-specific application behavior
Multi-Currency Configuration
Currency conversion considerations
Multi-currency effects on Apex code
Salesforce Sharing Architecture
Apex Managed Sharing
Programmatic record sharing
Salesforce Sharing Objects
Selecting appropriate sharing approaches
Record-Level Security
Custom Metadata Types
Hierarchical Custom Settings
List Custom Settings
Custom Metadata versus Custom Settings
Configuration data management
Salesforce Application Configuration
Selecting reusable configuration approaches
Maintainable Salesforce development
Developer best practices
Practice evaluating scenarios where developers must determine how localization affects application behavior, when to use Apex Managed Sharing, and which configuration mechanism best meets a business requirement.
Strengthen your understanding of how advanced Salesforce features support secure, configurable, and maintainable applications.
Salesforce Security and Apex Managed Sharing
Review how developers implement programmatic sharing when declarative configurations do not fully satisfy business requirements.
Key topics include:
Apex Managed Sharing
Salesforce Sharing Objects
Record access
Sharing-related Apex development
Security requirements
Declarative versus programmatic sharing
Managing complex record visibility
Practice selecting appropriate sharing mechanisms based on business requirements.
Custom Metadata Types and Custom Settings
Explore how Salesforce applications store and access configuration information.
Key topics include:
Custom Metadata Types
Custom Settings
Hierarchical Custom Settings
List Custom Settings
Configuration Data
Metadata-driven application design
Selecting appropriate storage mechanisms
Reusable configuration patterns
Practice evaluating when Custom Metadata Types or Custom Settings are appropriate for a development requirement.
2. Process Automation, Logic, and Integration — 27%
The largest domain of the Salesforce Certified Platform Developer II exam focuses on advanced Apex logic, process automation, asynchronous programming, integration, and transaction management.
This domain represents 27% of the official exam weighting, making it a major focus area for certification preparation.
Key topics include:
Salesforce Process Automation
Advanced Apex Programming
Salesforce Flow Builder
Declarative versus programmatic automation
Salesforce Order of Execution
Multiple automation interactions
Apex Trigger Development
Apex Trigger Best Practices
Trigger frameworks
Trigger bulkification
Trigger Recursion
Apex Transaction Management
Transaction integrity
Apex Exception Handling
Try-catch-finally blocks
Salesforce Savepoints
Database Rollbacks
DML operations
Partial-success considerations
Advanced SOQL Queries
SOQL query keywords
Query structure and optimization
Dynamic Apex
Runtime schema access
Asynchronous Apex
Queueable Apex
Batch Apex
Scheduled Apex
Future Methods
Asynchronous execution considerations
Salesforce Platform Events
Publish-Subscribe Architecture
Event-driven automation
Salesforce Integration
Inbound integration
Outbound Integration
Apex REST Web Services
Apex SOAP Web Services
HTTP Callouts
External system communication
Integration error handling
Platform limits and transaction boundaries
Practice evaluating complex requirements where developers must select the appropriate automation tool, Apex execution model, integration method, or transaction management approach.
Strengthen your ability to understand how Apex, Salesforce Flow, Platform Events, asynchronous processing, and external integrations interact.
Advanced Apex Triggers and Transaction Management
Explore how Salesforce executes business logic and maintains transactional consistency.
Key topics include:
Apex Trigger Frameworks
Salesforce Order of Execution
Trigger bulkification
Trigger Recursion Prevention
Transaction boundaries
Savepoints
Database Rollback
Exception handling
DML operations
Maintaining transaction integrity
Practice identifying suitable solutions when automation interactions, trigger recursion, or transaction failures affect business processes.
Asynchronous Apex Programming
Understand how Salesforce processes resource-intensive or delayed operations.
Key topics include:
Queueable Apex
Batch Apex
Scheduled Apex
Future Methods
Asynchronous processing
Execution limits
Large data processing
Job scheduling
Transaction behavior
Selecting appropriate asynchronous methods
Practice comparing asynchronous Apex approaches based on execution requirements, data volume, transaction limits, and processing dependencies.
SOQL, Dynamic Apex, and Platform Events
Review advanced Salesforce programming capabilities for accessing data and supporting event-driven architectures.
Key topics include:
Advanced SOQL
SOQL Query Optimization
Dynamic query requirements
Dynamic Apex
Schema information
Platform Events
Publish-subscribe messaging
Event-Driven Integration
Event processing
Integration patterns
Practice identifying appropriate query structures, runtime programming features, and event-based communication mechanisms.
Salesforce REST and SOAP Integration
Explore the Apex capabilities used to connect Salesforce applications with external systems.
Key topics include:
Salesforce REST API
Salesforce SOAP API
Apex REST Services
Apex SOAP Services
HTTP Callouts
Inbound communication
Outbound communication
Integration authentication concepts
API request and response handling
Error and exception management
Practice evaluating enterprise scenarios where Salesforce applications must exchange data or execute business processes across systems.
3. User Interface — 20%
Develop your understanding of advanced Salesforce user interface development using Lightning Web Components, Aura Components, Visualforce, Apex Controllers, JavaScript, and responsive design.
Key topics include:
Salesforce User Interface Development
Lightning Web Components (LWC)
Salesforce Aura Components
Advanced Visualforce
Apex Controllers
Controller classes
Apex Controller Extensions
Connecting Apex with UI components
Lightning Web Component Architecture
Component communication
LWC Custom Events
Aura Component Events
Event handling
Responsive UI Design
Device form factors
Conditional component rendering
Salesforce Mobile UI
Visualforce Actions
Partial page refreshes
Visualforce AJAX
Asynchronous Visualforce operations
Salesforce UI Error Handling
User-friendly error messages
JavaScript Error Handling
Salesforce Static Resources
CSS and JavaScript resources
Static resource loading
Lightning App Builder
Displaying Lightning components on pages
Salesforce Quick Actions
Lightning components in Visualforce
Apex and LWC Integration
Selecting appropriate UI technologies
Salesforce UI development best practices
Practice evaluating technical scenarios where developers must determine whether to use Lightning Web Components, Aura Components, or Visualforce, and how Apex controller changes affect user interface behavior.
Strengthen your ability to build responsive, secure, and maintainable interfaces that support complex business requirements.
Lightning Web Components and Aura Components
Explore component-based Salesforce application development.
Key topics include:
Lightning Web Components
Aura Components
Component Communication
LWC Custom Events
Aura events
Apex Controllers
Responsive components
Device form factors
Component rendering
Salesforce Static Resources
Practice choosing suitable component implementations based on business requirements, integration needs, and user interface behavior.
Visualforce and Advanced UI Operations
Review Visualforce functionality used in advanced Salesforce applications.
Key topics include:
Advanced Visualforce
Visualforce Controllers
Controller Extensions
Partial Page Refresh
AJAX Operations
Asynchronous processing
JavaScript Integration
Custom UI actions
Error handling
Performance considerations
Practice evaluating scenarios involving Visualforce interactions, controller behavior, and interface updates.
4. Testing, Debugging, and Deployment — 20%
Explore the tools and techniques required to test, debug, validate, and deploy advanced Salesforce applications.
Key topics include:
Salesforce Apex Testing
Apex Unit Tests
Test classes
Apex Trigger Testing
Test Data Management
Test Isolation
Test execution
Salesforce Code Coverage
Apex Mocking
Mock Objects
Apex Stubs
HTTPCalloutMock
Testing external callouts
Test.startTest
Test.stopTest
Testing asynchronous operations
Lightning Web Component Testing
Jest Testing
Aura Component Testing
Visualforce Controller Testing
JavaScript testing
Salesforce Debugging
Apex Debug Logs
Developer Console
Salesforce Exception Troubleshooting
Apex runtime errors
Trigger Debugging
SOQL Query Troubleshooting
Identifying root causes
Salesforce Deployment
Source-Driven Development
Salesforce DX
Salesforce CLI
Version Control
Git
Salesforce Metadata API
Deployment tools
Salesforce Sandboxes
Release management
Application lifecycle management
Deployment validation
Practice evaluating scenarios involving Apex testing, mocks, stubs, JavaScript testing, debug logs, deployment strategies, and source-driven development.
Strengthen your ability to identify why Salesforce code fails, select appropriate test techniques, and recommend reliable deployment approaches.
Advanced Apex Testing
Review the techniques used to validate complex Apex functionality.
Key topics include:
Apex Test Classes
Mock Objects
Apex Stubs
HTTPCalloutMock
Test.startTest and Test.stopTest
Testing asynchronous Apex
Test data preparation
Code Coverage
Transaction testing
Test isolation
Practice selecting suitable testing techniques for different Apex development requirements.
Lightning Web Component Testing and Debugging
Explore testing and troubleshooting approaches for Salesforce UI components.
Key topics include:
LWC Testing with Jest
JavaScript unit tests
Aura Component Debugging
Visualforce Controller Testing
UI behavior validation
Component event testing
Error messages
JavaScript debugging
Apex controller troubleshooting
Practice evaluating scenarios where UI components or their server-side controllers do not behave as expected.
Salesforce Deployment and Source-Driven Development
Understand how Salesforce developers move custom applications between environments.
Key topics include:
Salesforce DX
Salesforce CLI
Source-Driven Development
Version Control
Git
Metadata API
Salesforce Sandboxes
Deployment validation
Application release processes
Deployment troubleshooting
Practice identifying appropriate development and deployment mechanisms based on environment and project requirements.
5. Performance — 18%
Build your understanding of Salesforce application performance, efficient Apex execution, large data volume processing, SOQL optimization, and reusable code architecture.
Key topics include:
Salesforce Performance Optimization
Apex Performance
Salesforce Governor Limits
CPU execution limits
Heap size considerations
SOQL Governor Limits
SOQL Query Optimization
Query selectivity
Salesforce Indexing
Efficient data retrieval
Large Data Volumes (LDV)
Bulk data processing
Apex Bulkification
Efficient DML operations
Avoiding SOQL in Loops
Avoiding DML in Loops
Asynchronous Apex Performance
Asynchronous Callouts
Salesforce UI Performance
Lightning Web Component Performance
Efficient component rendering
Visualforce Performance
Controller design
Apex Code Reuse
Reusable business logic
Salesforce Design Patterns
Efficient application architecture
Apex Code Refactoring
Identifying inefficient code
Salesforce Caching
Reducing unnecessary server requests
Optimizing resource consumption
Scalable application design
Practice evaluating technical scenarios where developers must identify inefficient Apex code, expensive database queries, governor limit issues, user interface performance problems, and large data volume constraints.
Strengthen your ability to select development patterns and optimization techniques that improve Salesforce application scalability and reliability.
Apex and SOQL Performance Optimization
Review common application performance problems and how to address them.
Key topics include:
Apex Governor Limits
SOQL Query Optimization
SOQL Selectivity
Salesforce Indexes
Large Data Volume Processing
Apex Bulkification
Efficient DML operations
Governor limit prevention
Query structure optimization
Scalable Apex development
Practice identifying code and query changes that improve application performance.
User Interface and Asynchronous Performance
Explore how Salesforce developers improve interface responsiveness and manage long-running operations.
Key topics include:
Lightning Web Component Performance
Visualforce Controller Optimization
Asynchronous Callouts
Asynchronous Apex
UI rendering
Server Request Optimization
Salesforce Caching
Reusable application logic
Code refactoring
Efficient Salesforce design patterns
Practice evaluating scenarios where asynchronous processing, caching, or UI optimization can improve the user experience.
Practice Real-World Salesforce Platform Developer II Scenarios
These Salesforce Platform Developer II practice exams focus on technical development decisions and realistic Salesforce implementation requirements.
You'll review scenarios involving:
Advanced Apex Development: Select appropriate Apex classes, design patterns, and reusable business logic.
Apex Triggers: Evaluate trigger behavior, execution order, bulkification, and recursion.
Salesforce Automation: Determine when to use Flow, Apex, or a combination of declarative and programmatic functionality.
Asynchronous Apex: Compare Queueable, Batch, Scheduled, and Future execution.
SOQL Optimization: Select query approaches that support performance and large data volumes.
Transaction Management: Evaluate Savepoints, rollbacks, exception handling, and DML operations.
Platform Events: Determine suitable publish-subscribe communication approaches.
Salesforce Integration: Select REST, SOAP, or callout-based integration methods.
Lightning Web Components: Evaluate component communication, controller integration, and responsive behavior.
Aura and Visualforce: Select appropriate UI technologies for advanced application requirements.
Salesforce Security: Review Apex Managed Sharing and configurable application security.
Apex Testing: Evaluate mocks, stubs, code coverage, and asynchronous test scenarios.
Salesforce Debugging: Identify errors in classes, triggers, components, and controllers.
Deployment: Review source-driven development, Salesforce DX, and deployment strategies.
Performance Optimization: Identify governor limit problems, inefficient code, and query bottlenecks.
These scenarios help you understand how advanced Salesforce programming capabilities work together and when to select specific development techniques.
What's Included in These Salesforce Platform Developer II Practice Tests?
These Salesforce Certified Platform Developer II practice exams are designed to support certification preparation through technical questions, code-based scenarios, and detailed answer explanations.
The course includes:
Exam-Style Practice Questions: Review questions aligned with the five official certification domains.
Advanced Apex Scenarios: Practice complex business logic, trigger development, transaction management, and asynchronous execution.
Integration Questions: Evaluate Salesforce REST, SOAP, Platform Events, and inbound/outbound communication requirements.
UI Development Practice: Review Lightning Web Components, Aura, Visualforce, Apex controllers, and component interactions.
Testing and Debugging: Practice selecting mocks, stubs, testing methods, and troubleshooting techniques.
Performance Optimization: Evaluate inefficient queries, governor limits, large data volumes, and code reuse.
Detailed Answer Explanations: Understand why the correct solution fits the requirement and why the remaining options are less appropriate.
Domain-Focused Revision: Identify development concepts requiring additional study.
Certification Preparation: Reinforce the technical decision-making skills assessed in the Platform Developer II exam.
The questions focus on applying advanced Salesforce programming concepts rather than memorizing isolated definitions.
Salesforce Platform Developer II Exam Overview
The Salesforce Certified Platform Developer II certification validates advanced expertise in designing, developing, testing, deploying, and optimizing complex applications on the Salesforce Platform.
Official exam details:
Certification: Salesforce Certified Platform Developer II
Exam Format: Multiple-choice questions
Scored Questions: 60
Additional Questions: Up to 5 unscored questions
Exam Duration: 120 minutes
Passing Score: 70%
Registration Fee: $200 USD, plus applicable taxes
Retake Fee: $100 USD, plus applicable taxes
Delivery: Online proctored or authorized testing center
Reference Materials: Not permitted
Prerequisite: Salesforce Certified Platform Developer
Advanced Apex Specialist Superbadge: No longer required
Official exam domain weighting:
Advanced Developer Fundamentals — 15%
Process Automation, Logic, and Integration — 27%
User Interface — 20%
Testing, Debugging, and Deployment — 20%
Performance — 18%
The three highest-weighted domains, Process Automation, Logic, and Integration, User Interface, and Testing, Debugging, and Deployment, account for 67% of the official exam weighting.
Exam policies, pricing, and objectives may change. Review the latest Salesforce certification exam guide before registering.
Important Update on the Advanced Apex Specialist Superbadge
The Advanced Apex Specialist superbadge is no longer required to earn the Salesforce Certified Platform Developer II certification.
Salesforce retired this requirement, and candidates who satisfy the Salesforce Certified Platform Developer prerequisite can earn Platform Developer II by passing the certification exam.
The technical skills previously associated with the superbadge remain relevant to the Platform Developer II exam objectives.
Who Should Enroll in This Course?
These Salesforce Platform Developer II Practice Tests are suitable for:
Salesforce certification candidates preparing for Platform Developer II
Salesforce Apex Developers
Senior Salesforce Developers
Lightning Web Component Developers
Salesforce Technical Consultants
Salesforce Solution Architects
Salesforce Platform Developers
Salesforce Full-Stack Developers
Salesforce Integration Developers
Salesforce Technical Leads
CRM Application Developers
Salesforce Application Architects
Professionals interested in Advanced Apex, Salesforce APIs, Asynchronous Apex, SOQL, Lightning Web Components, Testing, and Performance Optimization
Recommended Knowledge and Prerequisites
The Salesforce Certified Platform Developer credential is a mandatory prerequisite for the Platform Developer II certification.
Salesforce describes typical candidates as having approximately:
2–4 years of software development experience
At least 1 year of Salesforce Platform design, implementation, and deployment experience
Recommended knowledge includes:
Advanced Apex Programming
Object-Oriented Programming
Salesforce Data Modeling
SOQL and SOSL
Salesforce Triggers
Salesforce Flow Builder
Asynchronous Apex
Dynamic Apex
Salesforce REST and SOAP APIs
Lightning Web Components
Aura Components
Visualforce
Apex Managed Sharing
Custom Metadata Types
Apex Testing
Jest Testing
Salesforce Debugging
Salesforce DX
Source-Driven Development
Governor Limits
Performance Optimization
Hands-on experience developing complex Salesforce applications and troubleshooting Apex, UI, integration, and performance problems is strongly recommended.
Why Earn the Salesforce Platform Developer II Certification?
The Salesforce Certified Platform Developer II credential demonstrates advanced knowledge of developing scalable, maintainable, and secure Salesforce applications.
Organizations use Salesforce development capabilities to implement custom business logic, enterprise integrations, advanced automation, reusable user interfaces, and high-performance applications.
Preparing for this certification helps reinforce important skills such as:
Advanced Apex Development
Salesforce Trigger Frameworks
Asynchronous Apex Programming
Advanced SOQL
Platform Events
Salesforce REST and SOAP Integration
Lightning Web Component Development
Apex Managed Sharing
Advanced Testing and Debugging
Salesforce Deployment
Performance Optimization
Salesforce Design Patterns
These skills are valuable for professionals developing and maintaining enterprise Salesforce applications.
The certification also supports career development in Salesforce software engineering, application architecture, technical consulting, and advanced Salesforce development.
Prepare for Your Salesforce Platform Developer II Certification
Success on the Salesforce Certified Platform Developer II exam requires more than memorizing Apex syntax or Salesforce development tools.
You need to understand how Salesforce processes execute, how different automation technologies interact, how asynchronous Apex affects transactions, how security influences code behavior, and how to design applications that perform reliably at scale.
These Salesforce Platform Developer II practice tests help you review the five official certification domains, evaluate your technical knowledge, and identify areas requiring additional study.
The course emphasizes Advanced Apex, Asynchronous Apex, Salesforce Triggers, SOQL Optimization, Platform Events, REST and SOAP APIs, Lightning Web Components, Aura, Visualforce, Apex Testing, Debugging, Deployment, and Performance Optimization.