Salesforce Platform Developer II (PD2) Training
A hands-on program by Alerainfotech to help you master advanced Apex, LWC, integrations, and patterns—so you can confidently clear PD2.
View Pricing
Contact Us
Who is this for?
- Salesforce developers aiming for PD2
- PD1-certified devs leveling up to advanced scenarios
- Engineers moving from admin/low-code to pro-code
- Teams seeking structured PD2 readiness
Outcomes
- Confidently tackle PD2 scenario questions
- Write robust, testable Apex & asynchronous logic
- Build production-grade LWCs with patterns
- Design resilient integrations & apply security best practices
Why train with Alerainfotech?
- Full coverage of PD2 exam objectives with hands-on labs
- Real code reviews and mock exams
- Office hours for doubt clearing
- Reusable project templates & cheatsheets
Curriculum (PD2-Aligned)
Module 1: Advanced Apex & OOP Patterns
- Design patterns (Strategy, Factory, Unit of Work) in Apex
- Bulkification, limits, and governor-friendly design
- Error handling and custom exception strategy
- Security review considerations (CRUD/FLS/Sharing)
Lab: Refactor legacy trigger logic using Service + Selector + UOW pattern.
Module 2: Asynchronous Apex & Transactions
- Queueable, Future, Batch, Schedulable—when & why
- Chaining, partial failures, retry & idempotency
- Platform Events & Change Data Capture
- Transaction boundaries & savepoints
Lab: Build a batch process with robust error and retry handling.
Module 3: Lightning Web Components (LWC) at Scale
- State management, composition, and pub/sub
- Wire adapters vs imperative Apex, caching, offline
- Testing LWCs (Jest) & performance tuning
- UX patterns and accessibility
Lab: Build a multi-step wizard with Apex back-end and Jest tests.
Module 4: Integrations & APIs
- REST/SOAP callouts, named credentials, OAuth
- External Services, Platform Events, Event-driven patterns
- Callout testing with HTTP mock & retries
- Security: encryption, secrets, compliance
Lab: Build a resilient integration with circuit-breaker style retries.
Module 5: Testing, Debugging & Deployment
- Test strategy: unit, integration, data factories
- CI/CD pipelines (SFDX), static analysis, code coverage
- Performance profiling & log analysis
- Packaging & security review readiness
Lab: Set up SFDX project with tests, PMD checks, and GitHub Actions.
PD2-Style Sample Questions
Q1: Handling Mixed DML in a Transaction
You need to create a User and update related Account records in the same flow. How do you avoid Mixed DML errors?
- A) Use
Database.setSavepoint
and rollback
- B) Wrap User DML in async (Queueable) and Account DML in sync context ✅
- C) Disable triggers on User temporarily
- D) Use
without sharing
in the class
Answer: B — Perform setup object DML (User) in a separate transaction via async process.
Q2: Designing a Retryable Callout
An external API intermittently fails. You must ensure eventual success without duplicating side effects.
- A) Retry in a loop inside the same transaction
- B) Use Queueable with exponential backoff & idempotency keys ✅
- C) Use
Test.startTest
and Test.stopTest
around callout
- D) Switch to SOAP
Answer: B — Queueable chain with backoff and idempotent design avoids duplicates.
Pricing & Contact
We offer flexible options for individuals and teams. Reach out and we’ll send the current brochure with batch dates and discounts.
- Individual: Live cohort or self-paced + mentor support
- Team: Private cohort, custom schedule, code reviews
- Add-ons: Mock exam pack, 1:1 interview prep, project review
Email Us for Pricing
Ask About Registration
Prefer chat? Email support@alerainfotech.com and we’ll reply within one business day.