Expand my Community achievements bar.

SOLVED

Answer AD0-E103 Adobe Experience Manager Sites Developer Certification

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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

Avatar

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 

Avatar

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.