nerdexam
Salesforce

CRT-450 · Question #184

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?

The correct answer is B. Write the query in a custom Lightning web component wrapper ana invoke from the Lightning. See the full explanation below for the reasoning.

Question

A developer must perform a complex SOQL query that joins two objects in a Lightning component. How can the Lightning component execute the query?

Options

  • ACreate a flow to execjte the query and invoke from the Lightning component
  • BWrite the query in a custom Lightning web component wrapper ana invoke from the Lightning
  • CInvoke an Apex class with the method annotated as &AuraEnabled to perform the query.
  • DUse the Salesforce Streaming API to perform the SOQL query.

How the community answered

(33 responses)
  • A
    12% (4)
  • B
    79% (26)
  • C
    3% (1)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice