SALESFORCE-PD1 User Interface Practice Question
Which TWO ways can a developer trigger a server-side Apex method imperatively from a Lightning Web Component? Choose 2 answers.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Import the Apex method as a JavaScript function from '@salesforce/apex/ClassName.methodName'.
Imperative Apex calls return a Promise and are imported directly from the Apex class method.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Import the Apex method as a JavaScript function from '@salesforce/apex/ClassName.methodName'.
Why this is correct
Standard import syntax for Apex in LWC.
- ✗
Decorate the call with @wire in the JavaScript controller.
Why it's wrong here
Wire is declarative, not imperative.
- ✗
Call the method synchronously on the main thread.
Why it's wrong here
Apex callouts and controller calls are asynchronous in LWC.
- ✗
Use standard form submission tags in HTML.
Why it's wrong here
LWC uses JS functions for imperative calls.
- ✓
Invoke the imported function and handle the result using .then() and .catch() promise syntax.
Why this is correct
Imperative calls return promises.
About these practice questions
This SALESFORCE-PD1 question is part of Courseiva's 493-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Salesforce exam blueprint
This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SALESFORCE-PD1 exam.