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

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

A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:

How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

  • A. Use the getSObjectType() method in an Apex class
  • B. Create a design attribute and configure via App builder
  • C. Set the sObject type as a component attribute
  • D. Add force:hasSobjectName to the implements
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
AppleDash
6 months, 4 weeks ago
https://developer.salesforce.com/docs/component-library/bundle/force:hasSObjectName/documentation
upvoted 1 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 ...