exam questions

Exam AD0-E103 All Questions

View all questions & answers for the AD0-E103 exam

Exam AD0-E103 topic 1 question 55 discussion

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

A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.

Bundle ID = com.adobe.aem.samples-bundle
Which set of steps should the developer take to make sure that the code works?

  • A. 1. Create an AEM User called serviceUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service Amendment. 3. Set user.mapping to com.adobe.aem.samples-bundle:sample-service=serviceUser.
  • B. .1. Create an AEM User called serviceUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service. 3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
  • C. 1. Create a System User called systemUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service. 3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser.
  • D. 1. Create a System User called systemUser with appropriate ACLs. 2. Modify the Apache Sling Service User Mapper Service Amendment. 3. Set user.mapping to com.adobe.aem.samples-bundle:sample-service=systemUser.
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
heenamadan
Highly Voted 4 years, 8 months ago
Ans is D
upvoted 5 times
...
chunpin
Most Recent 4 years, 2 months ago
Answer: D Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
upvoted 1 times
...
chat_c
4 years, 2 months ago
C seems to be wrong because it says set user.default, but should be user.mapping, which is for ...Amended, So D should be correct
upvoted 1 times
chat_c
4 years, 2 months ago
Sorry I think A is correct, as A uses service user, whereas C uses user.default and D uses system user, so C & D would be wrong.
upvoted 1 times
chat_c
4 years, 2 months ago
Apologies for confusions, D is correct as it has to be system user.
upvoted 1 times
...
...
...
chat_c
4 years, 2 months ago
C is correct. here ref: https://stackoverflow.com/questions/31350548/resourceresolverfactory-getserviceresourceresolver-throws-exception-in-aem-6-1/31394583#31394583
upvoted 1 times
chat_c
4 years, 2 months ago
Sorry I think A is correct, as A uses service user, whereas C uses user.default and D uses system user, so C & D would be wrong.
upvoted 1 times
chat_c
4 years, 2 months ago
Apologies for confusions, D is correct as it has to be system user.
upvoted 1 times
...
...
...
Rafael1016
4 years, 4 months ago
D this is the prove https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/apache-sling-service-user-mapper-service-amendment-configuring/qaq-p/232419
upvoted 1 times
...
kasyap1125
4 years, 4 months ago
Correct answer is D
upvoted 1 times
...
gkay2
4 years, 7 months ago
Correct answer is C
upvoted 1 times
...
niiraley
4 years, 8 months ago
Correct -C Catch is here "Modify"- In case of Amendment , need to create new mapper hence removes option D. A and B is wrong.
upvoted 1 times
...
pkg82
4 years, 8 months ago
A is not correct. You must create system user. C should be the correct answer.
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