Buy to unlock all questions, full reading mode and PDFs.
About this question bank
Questions
291 in total
Free to try
30 questions (no sign-up)
Exam domains
5 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-12
About this exam
The foundational certification for developers who build custom solutions on the Salesforce Platform with Apex, LWC and related tools; its official name is Salesforce Certified Platform Developer (Platform Developer I before the 2025 renaming). CRT-450 is a common nickname taken from the code of Salesforce's official exam-prep course. It covers platform fundamentals and the data model, when to use declarative automation, Apex and triggers, user interfaces, and testing, debugging and deployment.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
In the test class shown, AccountScoreService.recalcAsync() calculates and updates Score__c on the given accounts in an @future method. In a production-like org the value is correctly set to 80, but in this test the assertion fails because Score__c is still null. Which change makes the test pass correctly?
Exhibit
@isTest
private class AccountScoreTest {
@isTest
static void scoreIsCalculated() {
Account a = new Account(Name = 'Test Co');
insert a;
AccountScoreService.recalcAsync(new Set<Id>{ a.Id }); // calls an @future method
Account result = [SELECT Score__c FROM Account WHERE Id = :a.Id];
System.assertEquals(80, result.Score__c);
}
}
AAnnotate the class with @isTest(SeeAllData=true) to test against real org data
BMove the account creation into a @testSetup method
CWrap the recalcAsync() call in a System.runAs() block
DWrap the recalcAsync() call in Test.startTest() and Test.stopTest(), and query and assert after stopTest()
Show answer and explanation
Answer:D Enqueue the @future call between Test.startTest() and Test.stopTest(), and query and assert after stopTest() returns.
Why it is correct
In the code shown, the query runs before the @future update has completed, so Score__c is still null. If the @future call is enqueued between Test.startTest() and Test.stopTest(), the async work queued in that block completes inside stopTest(). A query placed after stopTest() returns can therefore assert the updated value.
The other options
✗ A SeeAllData=true only exposes existing org data to the test; it does not change when @future runs. Use it only when you must read setup-like data that test data cannot reproduce.
✗ B @testSetup creates shared test records once for the class and makes them available to each test method; it does not wait for async work. Use it when several test methods share the same data.
✗ C System.runAs() switches the user context in a test to check how record sharing affects the result; it has nothing to do with when async work runs. Use it to verify that different users can see different records.
Key takeaway
Roles in a test: startTest() gives the enclosed code a fresh set of governor limits, and stopTest() restores the original limits and completes the async work (@future, Queueable and so on) queued in between. Shared data → @testSetup. User context and sharing → System.runAs(). Real org data → SeeAllData (avoid in principle).