Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 11 Question 36 Discussion

Given the following code:Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
A) System. QueryException: List has more than one row after Assignment on Account.
B) System. LimitException: To many SOQL Queries on Account.
C) System. QueryException: To many DML Statement errors on Contact
D) System. LimitException: Too many SOQL Queries on Contract

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 11 Question 36 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 36
Topic #: 11
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

Given the following code:

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Celestine
7 months ago
Definitely not C, that doesn't make sense with the given data.
upvoted 0 times
...
Lonny
7 months ago
Wait, are we really expecting a QueryException? Sounds odd.
upvoted 0 times
...
Barbra
7 months ago
Nah, I think it's B. SOQL query limit issues are common.
upvoted 0 times
...
Ligia
8 months ago
I'm pretty sure it's A. Too many rows after assignment.
upvoted 0 times
...
Jeniffer
8 months ago
There are 10 Contacts and 5 Accounts created today.
upvoted 0 times
...
Theron
8 months ago
I'm confused about the limits on SOQL queries. I thought there were different limits for different objects, but I can't remember the specifics.
upvoted 0 times
...
Marica
8 months ago
I vaguely recall that if a query returns multiple rows when only one is expected, it leads to a QueryException. So, A could be the right answer.
upvoted 0 times
...
Kiera
8 months ago
I remember something about SOQL limits, but I'm not sure if it's related to the number of Accounts or Contacts created.
upvoted 0 times
...
Han
8 months ago
This question feels similar to one we practiced where we had to consider the number of rows returned in a query. I think it might be A.
upvoted 0 times
...
Cherry
8 months ago
Okay, let me see. Periodic rekeying of micro-partitions is a feature, so I'll need to check which Snowflake edition includes that functionality.
upvoted 0 times
...
Rosita
8 months ago
I'm pretty confident that Microsoft Azure supports this, but I'll double-check the other options just to be sure.
upvoted 0 times
...

Save Cancel