Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Answer AD0-E103 Adobe Experience Manager Sites Developer Certification

mauriziop158592
Level 1
Level 1

Hi guys,

I'm trying some dumps for practice in testing, I could bring the following question to your attention?

 

q1.png

From my experience I would have answered B, if I read the below documentation I understand that:

 

1)Customizing the Logic of a Core Component -> we need to use Sling delegation pattern, resourceSuperType: Answer B

2)Customizing the Markup-> we need to copy the HTL files that need to be modified from the Core Component into the proxy component:Answer D

 

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/developing/customiz...

but for certification purposes what will be the correct answer?

 

thanks in advance for your attention.

Regards,

Maurizio

 
1 Accepted Solution
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

When we were using foundation component then we used to overlay the component from libs to apps with that approach we used to copy the component from libs to /apps but

with the core component we used to create the proxy in our application folder inside apps and refer the proxy with slingResourceSuperType to the respective core component.

So as question is specific to Core component only so Answer should be B not D.

As per me option D is applicable to only foundation component.

 

Hope this will help.

Umesh Thakur

View solution in original post

3 Replies
Umesh_Thakur
Correct answer by
Community Advisor
Community Advisor

When we were using foundation component then we used to overlay the component from libs to apps with that approach we used to copy the component from libs to /apps but

with the core component we used to create the proxy in our application folder inside apps and refer the proxy with slingResourceSuperType to the respective core component.

So as question is specific to Core component only so Answer should be B not D.

As per me option D is applicable to only foundation component.

 

Hope this will help.

Umesh Thakur

View solution in original post

Anudeep_Garnepudi
Community Advisor
Community Advisor

Hi @mauriziop158592 

To be very simple, inheritance is only possible with sling:resourceSuperType it doesn't matter if it is core or custom component.

To answer your question, only option B is extending/inheriting a component rest others are not.

AG 

BrianKasingli
Community Advisor
Community Advisor

@mauriziop158592,
I would also agree that the answer is B.

To extend the AEM core components, you should create a new proxy component in /apps/my-site, and then use sling:resourceSuperType as the base, and overlay (extend) as required.