What are three considerations when using the @lnvocableMethod annotation in Apex?
Choose 3 answers
Option A: Only one method annotated with@InvocableMethodcan exist per class.
Option C: The method must bestatic.
Option E: The method can be declared asPublicorGlobalfor broader accessibility.
:Invocable Methods Documentation
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
The@AuraEnabled(cacheable=true)annotation makes an Apex method available to Lightning Web Components and allows it to be wired to a property while enabling client-side caching for improved performance.
Incorrect Options:
B, C:@RemoteActionis not used for Lightning Web Components.
D:@AuraEnabledwithoutcacheable=truecannot be wired.
How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?
To check test coverage for autolaunched flows before deployment, developers need to use SOQL queries with the Tooling API. This provides detailed information about which flows are covered and their test results.
Which Lightning Web Component custom event property settings enable the event to bubble up the containment hierarchy and cross
the Shadow DOM boundary?
Why These Settings?
bubbles: true: Enables the event to propagate up the containment hierarchy.
composed: true: Allows the event to cross the Shadow DOM boundary.
Why Not Other Options?
Other combinations (e.g.,bubbles: false) prevent the event from propagating or crossing the Shadow DOM boundary.
A developer creates a custom exception as shown below:
public class ParityException extends Exception { }
What are two ways the developer can fire the exception in Apex?
Throwing Exceptions in Apex:
throw new ExceptionType();creates a new instance and throws it.
A: No argument constructor.
B: Constructor with a custom error message.
Why Not Other Options?
C and D: These create exception instances but do not throw them, which is not valid syntax for firing an exception.
Nancy Allen
25 days agoAnthony Martin
1 month agoRachel Lewis
2 months agoKaren Ramirez
2 months agoCrystal Adams
3 months agoAdam Martin
3 months agoAmy Lee
4 months agoJeffrey Cooper
4 months agoSharon Martin
5 months agoStephanie Morgan
5 months agoNathan Perez
6 months agoLinda Carter
6 months agoStephen Edwards
6 months agoThomas Morgan
6 months agoDonald Rivera
6 months agoMichelle Martin
5 months agoSkye
7 months agoLilli
7 months agoDelpha
7 months agoGracie
7 months agoCecilia
8 months agoSabine
8 months ago