Salesforce Certified Omnistudio Consultant free question 3 / 10 · Domain 2: Flexcards
A security reviewer asks that the query behind a Flexcard listing Contact records is not exposed in the browser. The records come straight from Salesforce objects. Which data source setup should the consultant propose?
- An Apex REST data source that calls a class with the GET method
- An Omnistudio Data Mapper data source that extracts the Contact fields
- A SOQL query data source that keeps the query text encrypted on the card
- A REST data source that calls a public API for the Contact data
Show the answer and explanation
Answer: C
Why this is correct
The Set Up a SOQL Query Data Source section says SOQL queries are encrypted so that Flexcards do not display query information on the client side. The data lives in Salesforce objects, and a SOQL data source is the one that searches the org's data for specific information. That meets the reviewer's concern.
Why the other options are wrong
"A REST data source that calls a public API for the Contact data" … A REST data source retrieves or sends data through a public API, such as weather data. It does not query Salesforce objects, so it is the wrong choice for Contact records.
"An Omnistudio Data Mapper data source that extracts the Contact fields" … A Data Mapper data source fetches data from a Data Mapper Extract and supports field-level security. The page states the encryption of query text for SOQL and SOSL sources.
"An Apex REST data source that calls a class with the GET method" … An Apex REST data source uses a REST call to an endpoint URL and needs an Apex class. The page describes encrypted query text for SOQL and SOSL sources.
Key points
SOQL and SOSL data sources encrypt the query so it is not visible on the client side. Choose them for Salesforce object data when query text must stay hidden.