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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Certified Platform Developer II topic 1 question 304 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 304
Topic #: 1
[All Certified Platform Developer II Questions]

Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number_c, that is then used in a query to find matching Accounts.



A developer receives the exception 'SOQL query not selective enough'.

Which step should be taken to resolve the issue?

  • A. Mark the ERP_Number_c field as an external ID.
  • B. Perform the SOQL query as part of a for loop.
  • C. Move the SOQL query to within an asynchronous process.
  • D. Mark the ERP_Number_c field as required.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
dasabhisek404
18 hours, 42 minutes ago
Selected Answer: A
Option A is correct. https://help.salesforce.com/s/articleView?id=000384950&type=1 https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL_VLSQ.htm
upvoted 1 times
...
FriedConsole2000
4 months, 2 weeks ago
Selected Answer: B
It is actually "B". https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL_VLSQ.htm
upvoted 2 times
...
Yas010101
5 months, 4 weeks ago
Selected Answer: C
Move the SOQL query to within an asynchronous process
upvoted 1 times
...
stan_malta
7 months, 4 weeks ago
Selected Answer: A
Other options won't index the field
upvoted 2 times
...
Udayudyvk1818
11 months, 1 week ago
A https://help.salesforce.com/s/articleView?id=000386864&type=1
upvoted 2 times
...
AppleDash
1 year, 4 months ago
Should be A, ERP number should be set as an External ID.
upvoted 2 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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in