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 one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
B: It allows retrieving field metadata, enabling users to choose which fields they want to filter on. Users can select fields via a Visualforce dropdown, and Apex can construct a dynamic SOQL query based on the selected fields. Why C is not correct: While dynamic schema binding allows referring to fields dynamically, it does not help retrieve available fields for selection. It only allows accessing field values dynamically after retrieval and user can't select fields. Users won’t know which fields exist unless they are hardcoded (bad practice).
But they talking about getting the list of fields to display a multi select list for them to select so B would be right
C is the correct answer. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf.htm