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 350 discussion

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

Consider the following code snippet:



When the component is deployed, an error is reported.

Which two changes should the developer implement in the code to ensure the component deploys successfully? (Choose two.)

  • A. import getOrders from '@salesforce/apex/OrderController.getAvailableOrders';
  • B. import getOrders from '@salesforce/apex/c.OrderController.getAvailableOrders';
  • C. import { LightningElement, api ) from 'lwc';
  • D. import { LighningElement, wire } from 'lwc';
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
M4JK3LSON
11 months ago
Selected Answer: AD
"c." namespace is frequent used for importing customLabels but not for Apex methods, so A and D are correct answers.
upvoted 2 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 ...