Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 236 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 236
Topic #: 1
[All Certified Platform Developer II Questions]

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

  • A. Invoke an Apex class with the method annotated as @AuraEnabled to perform the query
  • B. Use the Salesforce Streaming API to perform the SOQL query
  • C. Create a Process Builder to execute the query and invoke from the Lightning component
  • D. Write the query in a custom Lightning web component wrapper and invoke from the Lightning component
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
1 month ago
Selected Answer: A
Answer is A,
upvoted 1 times
...
BrucePark
1 year, 2 months ago
Selected Answer: D
D is correct. A doesn't have any strategy to do for join query. Wrapper can be technique to transfer joined data. A is just about AuraEnabled method.
upvoted 2 times
aregas
5 months, 2 weeks ago
https://www.sfdcpoint.com/salesforce/wrapper-class-in-lwc/
upvoted 1 times
...
...
Ike300
1 year, 7 months ago
Selected Answer: A
D makes no senses indeed. We do @AuraEnabled(cacheable=true) in Apex Still surprised only 3 fellow saw this
upvoted 2 times
...
Segre
1 year, 7 months ago
Selected Answer: A
D doesn't make any sense
upvoted 1 times
...
OmShantiVeg
2 years, 3 months ago
Ans is A you can not perform SOQL query directly from lwc
upvoted 3 times
...
hujiafan
2 years, 12 months ago
Why not A
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...