DATA-ARCHITECT practice question 35 of 35

NTO has outgrown its current salesforce org and will be migrating to new org shortly. As part of this process NTO will be migrating all of its…

Full set: 257 questions
NTO has outgrown its current salesforce org and will be migrating to new org shortly. As part of this process NTO will be migrating all of its metadata and dat a. NTO’s data model in the source org has a complex relationship hierarchy with several master detail and lookup relationships across objects, which should be maintained in target org. What 3 things should a data architect do to maintain the relationship hierarchy during migration? Choose 3 answers:
Answer options
A: Use data loader to export the data from source org and then import or Upsert into the target org in sequential order. Correct answer
B: Create a external id field for each object in the target org and map source record ID’s to this field. Correct answer
C: Redefine the master detail relationship fields to lookup relationship fields in the target org.
D: Replace source record ID’s with new record ID’s from the target org in the import file. Correct answer
E: Keep the relationship fields populated with the source record ID’s in the import file.
Correct Answer:
A. Use data loader to export the data from source org and then import or Upsert into the target org in sequential order.; B. Create a external id field for each object in the target org and map source record ID’s to this field.; D. Replace source record ID’s with new record ID’s from the target org in the import file.
Explanation

To successfully migrate data while preserving complex relationships, a multi-step process is required. First, create an External ID field on each object in the target org to store the original record ID from the source org (B). This provides a reliable key for matching records. Second, use a tool like Data Loader to export data and then import it in a specific sequence, starting with parent objects and moving to children (A). After importing parent records, you must replace the old source parent IDs in the child import files with the new parent record IDs generated in the target org before importing the child records (D).

Why Incorrect

C. Changing master-detail to lookup relationships alters the fundamental data model and its sharing/deletion behavior. It's a temporary workaround, not a best practice for maintaining the hierarchy.
E. Relationship fields in the target org must be populated with the new record IDs from the target org. Using source record IDs will result in data load failures.

References

1. Salesforce Help. (2023). Data Loader Guide, Insert, Update, or Delete Data Using Data Loader. "When importing data, the order is important if the objects have relationships... For example, import accounts before you import contacts." (Supports A).

2. Salesforce Help. (2023). Considerations for Relationships. "To preserve record relationships, make sure that parent records are imported before child records... Use the record IDs from the source org to create an external ID in the target org." (Supports B).

3. Salesforce Developer Documentation. Working with External IDs and Upsert. "An external ID field is a custom field that has the External ID attribute, meaning that it contains unique record identifiers from a system outside of Salesforce... you can use the external ID to refer to the record in your upsert." (Supports B and D implicitly, as this is the mechanism for relating records).

Scroll to Top