โ† All SAA Flashcard Decks

Development & Deployment 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 Development & Deployment flashcards as text
  1. A managed package installed in a subscriber org throws an exception. The ISV wants to log errors without exposing internal logic. Which feature supports this?

    Answer: Platform Events published from within the managed package

    Platform Events can be published from within managed package Apex to surface error information to subscribers without exposing internal implementation details.

  2. Which Salesforce feature allows an architect to deploy metadata changes to production without executing tests, provided the components are not Apex classes or triggers?

    Answer: Change Set with test level NoTestRun

    Change Sets and Metadata API deployments with test level NoTestRun skip test execution when no Apex components are included in the deployment.

  3. An architect wants to separate configuration data (like feature flags) from code so non-developers can modify it without a deployment. What is the BEST approach?

    Answer: Use Custom Metadata Types to store configuration records

    Custom Metadata Types are deployable, versionable configuration records that can be modified by admins without requiring a code deployment.

  4. A release manager notices that a destructive change (deleting a custom field) was included in a change set. What must accompany this change set for the deletion to succeed?

    Answer: A separate destructiveChanges.xml file deployed before the main package

    Deleting metadata components requires a destructiveChanges.xml file, which must be deployed separately before the main deployment package.

  5. Which sandbox type refreshes the fastest and is MOST appropriate for rapid iterative development with small teams?

    Answer: Developer Sandbox

    Developer Sandboxes refresh the fastest (within minutes) because they copy only metadata with no production data, making them ideal for rapid development iterations.

  6. An architect needs Apex code to execute asynchronously after a callout completes, even if the initial transaction fails. Which pattern achieves this?

    Answer: Publishing a Platform Event from the callout and subscribing with an Apex trigger

    Publishing a Platform Event from a callout and subscribing with an Apex trigger decouples the processing from the original transaction, ensuring execution even if the initial transaction rolls back.

  7. A developer wants to test a class that makes HTTP callouts in an Apex unit test. What is the REQUIRED approach?

    Answer: Use Test.setMock() with an HttpCalloutMock implementation

    Salesforce requires using Test.setMock() with an HttpCalloutMock implementation to simulate HTTP responses in Apex unit tests, as real callouts are not allowed.