Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E134 Exam - Topic 7 Question 62 Discussion

An AEM application wants to set up multi-tenancy using Adobe-recommended best practices and bind multiple configurations to it. Which of the following options is recommended?
D) @Component(service = ConfigurationFactory.class) @Designate(ocd = ConfigurationFactorylmpl.Config.class, factory=true)
A) import org.apache.felix.scr.annotations.Component; @Component(label = 'My configuration', metatype = true, factory= true)
B) import org.osgi.service.component.annotations.Component; @Component(service = ConfigurationFactory.class)
C) import org.osgi.service.metatype.annotations.AttributeDefinition; import org.osgi.service.metatype.annotations.ObjectClassDefinition; @ObjectClassDefinition(name = 'My configuration')

Adobe AD0-E134 Exam - Topic 7 Question 62 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 62
Topic #: 7
[All AD0-E134 Questions]

An AEM application wants to set up multi-tenancy using Adobe-recommended best practices and bind multiple configurations to it. Which of the following options is recommended?

Show Suggested Answer Hide Answer
Suggested Answer: D

The @Component(service = ConfigurationFactory.class) @Designate(ocd = ConfigurationFactorylmpl.Config.class,factory=true) option is recommended for creating a multi-tenancy configuration and binding multiple configurations to it. This option uses the OSGi R6 annotations to define a component that provides a service of type ConfigurationFactory and designates a class that contains the configuration properties. The factory=true attribute indicates that multiple configurations can be created for this component. Reference: https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/osgi-configuration-settings.html?lang=en#creating-factory-configurations


Contribute your Thoughts:

0/2000 characters
Hector
1 month ago
I think option D sounds familiar, especially with the use of @Designate. I remember it being mentioned in a practice question about configuration management.
upvoted 0 times
...

Save Cancel