Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 30 Topic 4 Discussion

Salesforce Certified Platform Developer II ( Plat-Dev-301 ) PDII Question # 30 Topic 4 Discussion

PDII Exam Topic 4 Question 30 Discussion:
Question #: 30
Topic #: 4

A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:

HTML

<aura:component implements="force:hasRecordId,flexipage:availableForAllPageTypes">

Hello!

</aura:component>

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


A.

Create a design attribute and configure via App Builder.


B.

Set the sObject type as a component attribute.


C.

Use the getSObjectType() method in an Apex class.


D.

Add force:hasSObjectName to the implements attribute.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.