Salesforce Certified Omnistudio Consultant free question 8 / 10 · Domain 5: Data Mappers
A Data Mapper Extract returns Contact fields and the Account name by using two extract steps, and the debug log shows two SOQL queries. How can the consultant improve the performance?
- Change the Contact extract into a Data Mapper Load
- Keep the two steps and add a Session Cache to the Data Mapper
- Reverse the order of the two extract steps in the Data Mapper
- Use Account.Name relationship notation in the Contact step
Show the answer and explanation
Answer: D
Why this is correct
When the extra object is a parent of the primary object, relationship notation retrieves its fields in the same query. The Account name is then read with the extract path Account.Name, and the debug log shows one SOQL query instead of two. Each query adds processing steps in the Data Mapper plus Salesforce overhead, which is why the page recommends this notation for parent data.
Why the other options are wrong
"Keep the two steps and add a Session Cache to the Data Mapper" … A cache helps repeated requests. It does not remove the second SOQL query that the extra step runs on each fresh call.
"Reverse the order of the two extract steps in the Data Mapper" … The order of steps decides which data a later step can filter on. It does not remove the second query.
"Change the Contact extract into a Data Mapper Load" … A Load writes data to Salesforce. The scenario reads Contact and Account data.
Key points
Read parent fields with relationship notation. A second extract step adds a second SOQL query.