VMware vRealize Automation 8.x (2022) — Question 70
Which two statements are true about Spring AOP? (Choose two.)
Answer options
- A. The @After advice type is invoked regardless of whether a method successfully returned or an exception was thrown.
- B. In Spring AOP, a join point represents a method execution or property access.
- C. Spring AOP does not use AspectJ's pointcut expression language.
- D. Examples of cross-cutting concerns include security, caching, transaction.
- E. There are in total 4 types of advice, @Before, @After, @AfterReturning and @AfterThrowing.
Correct answer: A, D
Explanation
Statement A is correct because the @After advice is designed to run after a method execution, regardless of its outcome. Statement D is also accurate as it identifies examples of cross-cutting concerns that affect multiple parts of an application. The other options either misrepresent the functionality of Spring AOP or the types of advice available.