Salesforce Platform Developer I (legacy) Free Practice Exam Questions

259 real Salesforce Platform Developer I (legacy) exam questions with answers and AI explanations. Salesforce certification prep — page 19 of 26.

  1. Question 209: A developer is debugging the following code to determine why Accounts are not being created. Account a = new Account(Name = 'A'); Database.insert(a, false); Ho…
  2. Question 210: When an Account's custom picklist field called Customer Sentiment is changed to a value of `Confused`, a new related Case should automatically be created. Whic…
  3. Question 211: What is the debug output of the following Apex code? Decimal theValue; System.debug(theValue);
  4. Question 212: Requirements state that a child record is deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of rela…
  5. Question 213: What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)
  6. Question 214: Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightn…
  7. Question 215: Which set of roll-up types are available when creating a roll-up summary field?
  8. Question 216: Which three data types can be returned from an SOQL statement? (Choose three.)
  9. Question 217: An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements: update allContacts; update allC…
  10. Question 218: A developer is creating a Lightning web component to show a list of sales records. The Sales Representative user should be able to see the commission field on…