Flashcard 1:
Q: What should a developer do if CommissionAmount__c is calculated incorrectly when both
Opportunity stage and amount change simultaneously?
A: Replace the process with a Fast Field Update record-triggered flow.
Flashcard 2:
Q: Which SOQL query retrieves all fields for the Acme account?
A: SELECT FIELDS(ALL) FROM Account WHERE Name = 'Acme' LIMIT 1
Flashcard 3:
Q: How can a Visualforce page be optimized for performance with large data?
A: Use lazy loading to load the data on demand, instead of in the controller's constructor.
Flashcard 4:
Q: In Aura, how should locale-specific formatting be implemented?
A: Use the $Locale value provider to retrieve user preferences.
Flashcard 5:
Q: Best method to auto-update Account table on industry change in VF page?
A: Add an <apex:actionSupport> within the <apex:selectList>.
Flashcard 6:
Q: Best method to handle two long REST callouts sequentially?
A: Use a Continuation for both the billing callout and the tax callout.
Flashcard 7:
Q: Why might a trigger test fail on [Link]?
A: The test class has not re-queried the Account record after updating the Opportunity.
Flashcard 8:
Q: How to retrieve hierarchical custom setting values for the current user?
A: User_Prefs__c.getValues([Link]()).show_help__c
Flashcard 9:
Q: What ensures LWC error messages are displayed correctly when a button fails?
A: Add a try-catch block surrounding the DML statement.
Flashcard 10:
Q: Why might Aura not get any data back from an Apex controller?
A: The fields in the return class need to be annotated with @AuraEnabled.
Flashcard 11:
Q: Best integration method to fetch Account info from JavaScript using known ID?
A: Use REST API.
Flashcard 12:
Q: When should a Visualforce component be preferred over a Lightning component?
A: If the screen must be rendered as a PDF.
Flashcard 13:
Q: How to update lightning-datatable after saving a new record in LWC?
A: Create a variable to store the result and call refreshApex().
Flashcard 14:
Q: How to prevent a trigger from running during Opportunity data import?
A: Use a hierarchy custom setting to skip logic for the data loader user.
Flashcard 15:
Q: Why would a test class fail on production but not sandbox?
A: It lacks [Link]() to execute with appropriate permissions.
Flashcard 16:
Q: How to notify an external system of an unhandled exception in Apex batch job?
A: Use a custom Platform Event and publish it with [Link]().
Flashcard 17:
Q: How to fix 'uncommitted work pending' in tests with callouts?
A: Use [Link]() to skip callout logic during test execution.
Flashcard 18:
Q: How to fix test failures due to a newly required Account field?
A: Use a TestDataFactory class and include the required field there.
Flashcard 19:
Q: What solution offers flexible logic for expense approval?
A: Use a custom Apex class to determine the appropriate approver.
Flashcard 20:
Q: Best way to notify external system on error without using finish() of batch?
A: Use BatchApexErrorEvent.