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

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

A Lightning Component functions in preview mode and needs to be used inside a Lightning App Builder page, but it is not available.
What change should be applied to the component?

  • A. Expose it in the markup using the implements and access attributes.
  • B. Delete the component, metadata, and Apex controller and recreate them.
  • C. Refresh the sandbox and upgrade it to the latest API version.
  • D. Look for errors in the logic in the JavaScript controller.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
shatrughna
Highly Voted 3 years ago
A is the correct
upvoted 6 times
...
vancika
Most Recent 1 month ago
Selected Answer: A
For a Lightning Component to be available in the Lightning App Builder, it must be marked as "exposed" by including the appropriate implements attribute (for example, implements="flexipage:availableForAllPageTypes") in its markup. Additionally, setting the access attribute to "global" may be necessary. This ensures that the component is visible and available for use in the builder.
upvoted 2 times
...
BrainMelt12
1 month, 3 weeks ago
Selected Answer: A
A. Ensures the component is exposed and available in the App Builder. If there were errors in the JavaScript controller, the component might fail at runtime but would still be available in the App Builder. The issue in the question is that the component does not appear in the Lightning App Builder, which is typically due to metadata exposure settings, not JavaScript errors. Even a completely empty component with no JavaScript controller should still be available in the Lightning App Builder as long as it is properly exposed.
upvoted 1 times
...
FriedConsole2000
8 months, 3 weeks ago
Selected Answer: A
It is A
upvoted 2 times
...
Sapphire808
12 months ago
Selected Answer: D
D appears to be the more reasonable answer and the go to. https://developer.salesforce.com/forums/?id=9060G000000I3dKQAS
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago