Salesforce Platform Developer I (legacy) — Question 17
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
Answer options
- A. ENUM
- B. sObject
- C. External ID
- D. String
Correct answer: B, D
Explanation
The correct answers are B and D because 'sObject' is specifically designed to hold Salesforce records, allowing for dynamic referencing of their IDs, while 'String' can also store the ID as a text value. 'ENUM' and 'External ID' do not serve the purpose of dynamically referencing Salesforce record IDs.