Platform developer 1 Dumps

Salesforce Platform Developer 1 certification questions.

1. What is a good practice for a developer to follow when writing a trigger? Choose 2 answers.
A. Using the Map data structure to hold query results by ID.
B. Using @future methods to perform DML operations.
C. Using the set data structure to ensure distinct records.
D. Using asynchronous callouts to call external systems.

2. Which code block returns the ListView of an Account object using the following debug statement?
A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController([ SELECT Id from Account LIMIT 1]);
B. ApexPages.StandardController controller = new ApexPages.StandardController(Database.queryLocator(‘SELECT Id from Account LIMIT 1’));
C. ApexPages.StandardController controller = new ApexPages.StandardController([ SELECT Id from Account LIMIT 1]);
D. ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.queryLocator(‘SELECT Id from Account LIMIT 1’));

3. Which data type of collection of data types can SOQL statements populate or evaluate to? Choose 3 answers.
A. A Boolean
B. An Integer
C. A list of sObjects
D. A single sObject
E. A String