Spring AOP
![]() |
![]() |
![]() |
Title of test:![]() Spring AOP Description: Spring AOP Practice Test |




New Comment |
---|
NO RECORDS |
Which of the following are cross cutting concerns where Spring AOP can be useful?. Security. File access. Parallelization. Logging. Which of the following operators can be used to combine multiple pointcut expressions?. and. or. &&. ||. __________ is an additional behavior, typically a cross cutting concern, that is to be executed at certain places (at join Points) in a program. Advice. Aspect. Weaving. Pointcut. The methods in which of the following classes are intercepted when using the following pointcut expression “within (com.xyz.example..*)”. com.xyz.example.rest.http.MyController. com.xyz.example.service.MyService. com.xyz.security.SecurityConfig. com.xyz.example.Application. Which of the following types of AOP advice will execute code after the advised method regardless if it co. @AfterReturning. @AfterThrowing. @Around. @After. “In Spring AOP, two dots (..) Instead of method arguments, like in the example below, matches __________. Example: execution(* transfer(..))”. No arguments. One or more arguments. Multiple arguments. Any number of arguments. Which of the following types of AOP advice can be used to execute code before the advised method?. @AfterThrowing. @AfterReturning. @Before. @Around. Which of the following pointcut expressions allow picking method access specifiers?. target. bean. execution. within. _____ complements Spring IoC by focusing on _________. Spring AOP, Inversion of Control. JPA, automated testing. Spring AOP, crosscutting concerns. Spring Actuator, Reactive Programming. Which of the following types of AOP advice may potentially be used to suppress an exception thrown in the advised method?. @Before. @Around. @AfterReturning. @AfterThrowing. Which of the following statements are true about Spring AOP?. Calls within the same object can be intercepted. When using CGLIB proxies, public method calls can be intercepted. When using JDK Proxies, only public and protected interface method calls can be intercepted. When using CGLIB proxies, private method calls can be intercepted. In Spring AOP, ________ can be of multiple types, such as “around”, “before” and “after”. Advice. Join point. Aspect. Pointcut. What does the abbreviation AOP stand for?. Access Operational Program. Aspect Oriented Programming. Application Oriented Programming. Approved Operating Program. The methods in which of the following classes are intercepted when using the following pointcut expression “within(com.xyz.example.service.*)”. com.xyz.example.rest.http.MyController. com.xyz.example.service.MyService. com.xyz.service.payment.PaymentService. com.xyz.example.Application. Which of the following types of AOP advice can be used to prevent execution of the advised method?. @Before. @AfterThrowing. @After. @Around. What is an aspect in Spring AOP?. An expression that selects on or more join point. Technique by which aspect are combined with main code. Code to be executed at each selected join poin. A module that encapsulate pointcuts and advice. |