↓ Try a sample question (with explanation)

Salesforce · Practice questions

CRT-450 Salesforce Certified Platform Developer I

Study 291 CRT-450 Salesforce Certified Platform Developer I practice questions with explanations. 30 of them are free to try, no sign-up needed.

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);
    }
}
  1. AAnnotate the class with @isTest(SeeAllData=true) to test against real org data
  2. BMove the account creation into a @testSetup method
  3. CWrap the recalcAsync() call in a System.runAs() block
  4. 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).

Try 30 questions like this for free

Most frequent topics

  1. Implementing Apex classes and triggers77 questions
  2. Salesforce platform fundamentals28 questions
  3. Declarative process automation28 questions
  4. Developing Visualforce pages26 questions
  5. Writing Apex tests22 questions
  6. Designing the data model17 questions

Number of questions per topic among the 291 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. Salesforce Fundamentals41 questions
  2. Data Modeling and Management29 questions
  3. Logic and Process Automation140 questions
  4. User Interface45 questions
  5. Performance and Security36 questions

Other Salesforce exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Salesforce or any exam provider.