exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

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: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
beardAnt
2 months, 1 week ago
Selected Answer: A
https://help.salesforce.com/s/articleView?id=000385218&type=1
upvoted 1 times
...
dasabhisek404
5 months, 2 weeks 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
10 months 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
11 months, 2 weeks ago
Selected Answer: C
Move the SOQL query to within an asynchronous process
upvoted 1 times
...
stan_malta
1 year, 1 month ago
Selected Answer: A
Other options won't index the field
upvoted 2 times
...
Udayudyvk1818
1 year, 4 months ago
A https://help.salesforce.com/s/articleView?id=000386864&type=1
upvoted 2 times
...
AppleDash
1 year, 9 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago