← All SAA Flashcard Decks

Application Performance & Scalability Flashcards

7 cards from real SAA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Application Performance & Scalability flashcards as text
  1. Which Salesforce mechanism should an architect recommend to handle high-volume record inserts that trigger complex automation without hitting governor limits?

    Answer: Use Bulk API with appropriate batch sizes and async triggers

    Bulk API processes records in batches of up to 10,000 asynchronously, and combined with well-designed bulkified triggers, avoids per-transaction governor limit breaches during high-volume loads.

  2. What does the 'Defer Sharing Calculation' option do in Salesforce, and when is it relevant?

    Answer: It delays sharing rule recalculation during large data imports to prevent system slowdowns

    Defer Sharing Calculation temporarily postpones the recalculation of sharing rules during large data operations, preventing system performance degradation, with recalculation triggered manually afterward.

  3. An architect needs to make a long-running callout from Salesforce without blocking the user. Which Apex feature supports this?

    Answer: Continuation (Asynchronous Callout)

    The Continuation class enables long-running asynchronous callouts from Visualforce and Aura/LWC, freeing the UI thread while waiting for the external response without consuming transaction CPU time.

  4. What is the maximum number of DML statements allowed per Apex transaction?

    Answer: 150

    Salesforce allows up to 150 DML statements per synchronous Apex transaction, making it essential to bulkify DML operations to stay within this limit.

  5. Which design pattern helps prevent recursive trigger execution in a high-volume data environment?

    Answer: Static Boolean flag pattern

    A static Boolean flag in a handler class is set to true after the first trigger execution, preventing subsequent recursive calls within the same transaction context.

  6. An architect is designing a solution where millions of records need to be archived from Salesforce to an external data warehouse. Which approach best minimizes impact on org performance?

    Answer: Use Bulk API 2.0 during off-peak hours with data archival flows

    Bulk API 2.0 is purpose-built for large-scale data extraction and, when scheduled during off-peak hours, minimizes resource contention on the production org while efficiently transferring data.

  7. What is the maximum heap size allowed per synchronous Apex transaction?

    Answer: 6 MB

    Synchronous Apex transactions are limited to 6 MB of heap memory; exceeding this causes a 'System.LimitException: Apex heap size too large' error.