exam questions

Exam AD0-E103 All Questions

View all questions & answers for the AD0-E103 exam

Exam AD0-E103 topic 1 question 69 discussion

Actual exam question from Adobe's AD0-E103
Question #: 69
Topic #: 1
[All AD0-E103 Questions]

A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method uses
ResourceResolverFactory.getServiceResourceResolver("¦) without specifying a sub service name.
What should a developer do to make sure the user service mapping for the service component is available?

  • A. Create a field of type ServiceUserMapped and annotate it with @Reference.
  • B. Wait for the service ServiceUserMapper via BundleContext.getServiceReference("¦).
  • C. Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC.
  • D. Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chunpin
4 years, 2 months ago
Answer: A Reference: https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/javadoc/org/apache/sling/serviceusermapping/ServiceUserMapped.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago