Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Element used to specify access attributes for bean's methods.
  1.    security:protect
  2.    security:intercept
  3.    security:intercept-security
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> security:protect


In a bean's security:intercept-methods, you can specify multiple security:protect elements to specify access attributes for this bean's methods.


Question 2. Stated related to Spring Web flows
  1.    view
  2.    action
  3.    decision
  4.    all of the mentioned
 Discuss Question
Answer: Option D. -> all of the mentioned


Spring Web Flow builds in several state types, including view state, action state, decision state, subflow state, and end state.


Question 3. Which attribute is used to access security element od web flow.
  1.    attribute
  2.    attributes-security
  3.    attributes
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> attributes


You can specify multiple access attributes required for accessing this web flow in the attributes attribute, separated by commas.


Question 4. Class used to have full access to the Spring context's life cycle machinery and dependency injection.
  1.    DelegatingFilterProxy
  2.    WebApplicationContextUtils.getRequiredWeb()
  3.    WebApplicationUtils.getRequiredWebApplicationContext()
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> DelegatingFilterProxy


If you want to implement filter-like functionality but want to have full access to the Spring context's life cycle machinery and dependency injection, use the DelegatingFilterProxy class.


Question 5. To enable Spring security for web flows.
  1.    SecurityFlowExecutionListener
  2.    SecurityFlowExecution
  3.    FlowSecurity
  4.    SecurityFlowListener
 Discuss Question
Answer: Option A. -> SecurityFlowExecutionListener


You have to register the flow execution listener SecurityFlowExecutionListener in the flow executor to enable Spring Security for web flow.


Question 6. To load root application context at the start up.
  1.    ContextListener
  2.    ContextLoader
  3.    ContextLoaderListener
  4.    ContextEventListener
 Discuss Question
Answer: Option C. -> ContextLoaderListener


In the web deployment descriptor (i.e., web.xml), you register ContextLoaderListener to load the root application context at startup.


Question 7. Connection of database with Apache derby server requires.
  1.    Derby client.jar
  2.    Spring JDBC support
  3.    None of the mentioned
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


To connect to a database in the Apache Derby server, you need the Derby client .jars, as well as the Spring JDBC support.


Question 8. ActionSupport class provides a method to access spring's application context.
  1.    getWebApplicationContext()
  2.    getWebApplication()
  3.    getApplicationContext()
  4.    contextEventListener()
 Discuss Question
Answer: Option A. -> getWebApplicationContext()


Spring provides the ActionSupport class, a subclass of the Action base class that has a convenient getWebApplicationContext() method for you to access Spring's application context.


Question 9. Attribute used to specify custom access decision manager.
  1.    access-decision-manager-ref
  2.    access-decision-ref
  3.    access-decision
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> access-decision-manager-ref


If you would like to use a custom access decision manager, you can specify it in the access-decision-manager-ref.


Question 10. Remember-me support can be configured by:-
  1.    remember-me
  2.    remember-me
  3.    remember-basic
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> remember-me


Remember-me support can be configured via the remember-me element.


Latest Videos

Latest Test Papers