In a scenario where a filter chain is used for both compression and encryption, which process should ideally occur first?
- Compression, Encryption, Other Filters, Process Request
- Compression, Other Filters, Encryption, Process Request
- Encryption, Compression, Other Filters, Process Request
- Other Filters, Compression, Encryption, Process Request
In this scenario, it is generally recommended to perform encryption before compression. This ensures that the data is first secured through encryption and then compressed. Therefore, the correct order is to place the encryption filter before the compression filter in the filter chain.
Loading...
Related Quiz
- The filter's __________ method is invoked for every request/response pair processed by the filter.
- In JDBC, the __________ exception is thrown when there is a problem with the SQL syntax.
- What method is used to execute a stored procedure using a CallableStatement?
- When a request is processed through multiple filters, how is the order of execution determined in a servlet application?
- When optimizing an MVC application for performance, where should caching strategies be implemented in relation to servlets?