DATA-ARCHITECT practice question 34 of 35

Universal Containers has millions of rows of data in Salesforce that are being used in reports to evaluate historical trends. Performance has become an issue, as well as data storage limits. Which two strategies should be recommended when talking with stakeholders?

Full set: 257 questions
Answer options
A: Use scheduled batch Apex to copy aggregate information into a custom object and delete the original records. Correct answer
B: Combine Analytics Snapshots with a purging plan by reporting on the snapshot data and deleting the original records. Correct answer
C: Use Data Loader to extract data, aggregate it, and write it back to a custom object, then delete the original records.
D: Configure the Salesforce Archiving feature to archive older records and remove them from the data storage limits.
Correct Answer:
A. Use scheduled batch Apex to copy aggregate information into a custom object and delete the original records.; B. Combine Analytics Snapshots with a purging plan by reporting on the snapshot data and deleting the original records.
Explanation

Both options address the core issues of performance and storage by summarizing data and removing obsolete details.
Option A suggests a custom aggregation solution using Batch Apex, which is highly scalable and ideal for processing millions of records to create summary objects. This directly improves report performance and reduces storage upon deleting originals.
Option B leverages a standard, declarative feature, Analytics Snapshots, designed for this exact use case: capturing historical trends. A source report can aggregate millions of records into a summary, which is then saved to a custom object. Combining this with a purging plan also solves both performance and storage issues.

Why Incorrect

C. Use Data Loader to extract data, aggregate it, and write it back to a custom object, then delete the original records. This is a manual, off-platform process. An automated, on-platform solution like Batch Apex or Analytics Snapshots is a more robust and sustainable architectural recommendation.
D. Configure the Salesforce Archiving feature to archive older records and remove them from the data storage limits. While archiving (e.g., using Big Objects) solves storage issues and can improve primary object performance, it does not inherently create the trend data needed for evaluation. Reporting on archived data is also more complex.

References

1. Salesforce Help. (2023). Track Historical Data with Reporting Snapshots. This document describes the feature's purpose for reporting on trends over time by capturing point-in-time data in a custom object.

2. Salesforce Developer Documentation. (2023). Batch Apex. "Using Batch Apex" section. Describes Batch Apex as the standard solution for programmatically processing large numbers of records.

3. Salesforce Architects. (2022). Salesforce Well-Architected - Data at Scale. "Data Lifecycle Management" section. Discusses strategies including summarization and purging to manage data volume and improve performance.

Scroll to Top