A banking AEM application contains functionality to calculate a mortgage rate based on user input. A servlet in place calculates the result in the backend. A call to an internal third-party REST service is required to retrieve the average object value based on a given zip code. The following three service interfaces are used: MortgageCalculationServlet, MortgageCalculationService and ObjectValueLookupRestService, where MortgageCalculationServlet has a dependency to MortgageCalculationService and MortgageCalculationService has a dependency to ObjectValueLookupRestService. The calculation has many combinations of input parameters and edge cases, so the JUnit coverage must be as high as possible. Which two strategies should the developer use to ensure testability of the application code? (Choose two)
A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below. What should the developer do to make the servlet access controlled using the default ACLs?@Component( immediate=true, service = {Servlet.class}) @SlingServletPaths(value = {"/service/sling/sample"})
The SAML 2.0 Authentication Handler is disabled by default. You must set at least one of the following properties in order to enable the handler? (Choose two)