Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Salesforce Certified Platform Developer II (PDII) · Salesforce
Select 2 answers.
This question asks for 2 answers, but our data marks only 1. Compare with the community discussion below for the full answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dynamic_soql.htm Bind variable used in database.query makes use of :variablename format Needs to be local as seen in the example given.
A and D is correct: "You can use simple bind variables in dynamic SOQL query strings when using Database.query" https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dynamic_soql.htm
A and D is correct. 1. You can use simple bind variables in dynamic SOQL query strings when using Database.query' 2. However, unlike inline SOQL, you can’t use bind variable fields in the query string with Database.quer https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dynamic_soql.htm