AD0-E136 · Question #64
How is the effective configuration determined when multiple configurations for the same PID are applicable based on runmodes?
The correct answer is D. Configuration with the highest number of matching runmodes. When multiple OSGi configurations match the current runmodes in AEM, the system uses specificity to resolve the conflict - the configuration with the highest number of matching runmodes wins because it is the most precisely targeted to the current environment. For example, a…
Question
How is the effective configuration determined when multiple configurations for the same PID are applicable based on runmodes?
Options
- ARandom selection
- BConfiguration with the lowest number of matching runmodes
- CAlphabetical order
- DConfiguration with the highest number of matching runmodes
How the community answered
(53 responses)- A8% (4)
- B2% (1)
- C2% (1)
- D89% (47)
Explanation
When multiple OSGi configurations match the current runmodes in AEM, the system uses specificity to resolve the conflict - the configuration with the highest number of matching runmodes wins because it is the most precisely targeted to the current environment. For example, a config scoped to author.dev (2 runmodes) overrides one scoped to just author (1 runmode) when both runmodes are active.
Why the distractors fail:
- A (Random) - AEM's config resolution is fully deterministic, never random.
- B (Lowest matching runmodes) - This is the opposite of the rule; fewest matches = least specific = lowest priority.
- C (Alphabetical) - Alphabetical ordering plays no role in runmode-based config resolution.
Memory tip: Think of it like CSS specificity - the more specific selector (more runmode conditions) wins, just as a more specific CSS rule overrides a general one.
Topics
Community Discussion
No community discussion yet for this question.