Exam Plat-Dev-301 Topic 1 Question 1 Discussion
Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 1
Topic #: 1
Question #: 1
Topic #: 1
Given the following code:

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
Suggested Answer: B Vote an answer
The loop contains a SOQL query inside, causing it to run multiple times. This will throw a QueryException because the Account query returns more than one row.
by Caroline at Jul 22, 2026, 08:18 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).