Q1
Multiple choice
A developer is writing Java code using the Sling API that needs to work with the JCR directly. The code needs to obtain a Session object.
A service user named "reposervice" may be mapped outside the code.
Which two methods could a developer use to obtain a Session without using a deprecated API? (Choose two.)

Select all that apply.