A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk. What should be used?
A. Changelog
B. Component Event
C. Application Event
D. DML Operation
A developer receives a LimitException: Too many query rows: 50001 error when running code. What debugging approach using the Developer Console provides the fastest and most accurate mechanism to identify a specific component that may be returning an unexpected number of rows?
A. Count the number of Row Limit warning messages in the Debug Logs
B. Add System.debug(System.getQueryRows()) to the code to track SOQL usage
C. Filter the Debug Log on SOQL_EXECUTE_END statements to track the results of each SOQL Query
D. Use the Execution Overview to see the number of rows returned by each Executed Unit
A developer has written the following method:
static void processList(List
Which code block can be used to call the method?
A. processList (ace)
B. processList ([FIND 'Acme" 'RETURNING Account])
C. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])
D. for Account ace : [SELECT Id, Name FROM Account])
REST uses___________.
A. The HTTP class
B. The HTTPRequest class
C. The HTTPResponse class
D. All of the above
What is the transaction limit for SOQL queries?
A. 20 (synchronous), 200 (async)
B. 150 (synchronous), 20 (async)
C. 150 (synchronous), 200 (async)
D. 100 (synchronous), 200 (async)
E. 200 (synchronous), 100 (async)
Which two best practices should the developer Implement to optimize this code? Choose 2 answers
A. Use a collection for the DML statement.
B. Query the Pricing_structure__c records outside of the loop.
C. Change the trigger context to after update, after insert.
D. Remove the DML statement.
As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?
A. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld = :oppId];
B. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
C. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
D. ('StageName', Probability',Amount /CloseDate')];
E. [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];
A company decides that every time an Opportunity is created, they want to create a follow up Task and assign it to the Opportunity Owner. What should a developer use to implement the requirements?
A. A Process Builder on Opportunity
B. A trigger on Task
C. A trigger on Opportunity
D. A Process Builder on Task
A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity owned by the currently logged-in user.
When the component is rendered, the following message is displayed: `'Error retrieving data''
Which modification should be implemented to the Apex class to overcome the issue?
A. Edit the code to use the without sharing keyword in the Apex class.
B. Use the Cacheable=True attribute in the Apex method.
C. Ensure the OWD for the Opportunity object is public.
D. Use the Continuation=true attribute in the Apex method.
A developer writes a lightning web component that displays a dropdown list of all custom objects in the org from which a user will select Apex method prepares and returns data to the component. What should the developer do to determine which objects to include in the response?
A. Check the isCustom ( ) value on the sObject describe result.
B. Use the getCustomObject ( ) method from the Schema class.
C. Import the list of all custom objects from @salesforce/schema.
D. Check the getObjectType () value for Custom' or 'Standard' on the sObject describe result.