13.07.2015 Views

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

Spring Core Certification 3 Mock Exam - Java & Moi

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What is the easiest method to write a unit test?1. void displayAccount(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException2. void displayAccount(HttpServletRequest req, HttpSession Session)throws ServletException, IOException3. @RequestMapping("/displayAccount")String displayAccount(@RequestParam("accountId") int id, Model model)4. @RequestMapping("/displayAccount")String displayAccount(@PathVariable("accountId") int id, Model model)<strong>Spring</strong> SecurityQuestion 42How could you secure MVC controller with <strong>Spring</strong> Security? Select a unique answer.1. With the @Secured annotation2. With the @RolesAllowed annotation3. In a XML security configuration file4. All of the above5. None of the aboveQuestion 43What are the possible mechanisms provided by <strong>Spring</strong> Security to store user details? Select one ormore correct answers.1. Database2. JAAS3. LDAP4. Properties fileQuestion 44What is true about <strong>Spring</strong> security configuration and the security namespace? Select one or morecorrect answers.1. The access attribute of the intercept-url tag support both EL and constants together.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!