Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 46 discussion

Actual exam question from Salesforce's CRT-450
Question #: 46
Topic #: 1
[All CRT-450 Questions]

A developer executes the following query in Apex to retrieve a list of contacts for each account:
List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;
Which two exceptions may occur when it executes? (Choose two.)

  • A. CPU limit exception due to the complexity of the query.
  • B. SOQL query row limit exception due to the number of contacts.
  • C. SOQL query limit exception due to the number of contacts.
  • D. SOQL query row limit exception due to the number of accounts.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Infoash
Highly Voted 4 years, 1 month ago
Answers: B & D B. SOQL query row limit exception due to the number of contacts. D. SOQL query row limit exception due to the number of accounts.
upvoted 13 times
...
ABHI0O07
Most Recent 8 months ago
B AND D
upvoted 1 times
...
helper_raw
12 months ago
Selected Answer: BD
B & D are the correct answers.
upvoted 1 times
...
chucksback
1 year, 3 months ago
Selected Answer: BD
B&D. Why would you have two different errors?
upvoted 3 times
...
de2rick
1 year, 6 months ago
Selected Answer: BD
The total number of records retrieved by SOQL queries would be 50,000 System.LimitException: Too many query rows: 50001
upvoted 3 times
...
ApexMike
2 years, 1 month ago
Selected Answer: BD
B, D are correct. C isn't correct.
upvoted 3 times
...
Chera
2 years, 7 months ago
Selected Answer: BD
B. SOQL query row limit exception due to the number of contacts. D. SOQL query row limit exception due to the number of accounts.
upvoted 2 times
...
barabba_libero
4 years, 4 months ago
Ans should be: B & D - B. SOQL query limit exception due to the number of accounts - D. SOQL query limit exception due to the number of queries
upvoted 4 times
...
am1
4 years, 6 months ago
could anyone share the link that explains this answer? TIA
upvoted 4 times
Dean5555
2 years, 1 month ago
Best I could find is that for going over Total number of records retrieved by SOQL queries - 50,000 you get “System.LimitException: Too many query rows: 50001” Wording in C would correspond more to "System.LimitException: Too many SOQL queries 101" which isn't the case here Meaning B and D are correct
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...