Managing and Configuring OracleAS Web Cache
Questions derived from the 1Z0-311 – Oracle Application Server 10g: Administration I Oracle Self-Test Software Practice Test.
Objective: Managing and Configuring OracleAS Web Cache
SubObjective: Set up basic invalidation mechanism
Item Number: 1Z0-3184.108.40.206
Single Answer, Multiple Choice
You are the Application Server administrator for an online trading company. The Web site is updated several times a day. Users accessing the online Web portal should see the latest changes made to the Web pages. For this, you create a caching rule that invalidates the cached Web pages every 30 minutes.
Which method will be most effective to support the invalidation of cached Web pages every 30 minutes?
- Manually invalidate the cached Web pages by using Application Server Control console.
- Manually invalidate the cached Web pages by using Telnet.
- Automatically invalidate the cached Web pages by creating database triggers.
- Automatically invalidate the cached Web pages by creating scripts.
D. Automatically invalidate the cached Web pages by creating scripts.
The most effective method that should be used in this scenario is to automatically invalidate the cached Web pages by creating scripts. In the script, you can specify that the cached Web pages for the specific Web portal should be invalidated every 30 minutes. Once the cached Web pages are invalidated, these pages will be deleted from the cache and will be reloaded into the Web Cache whenever the next request is placed. This will enable you to ensure that users can view the latest changes made to the Web pages. Creating a script will ensure that invalidation of cached Web pages automatically occurs every 30 minutes.
Manually invalidating the cached Web pages by using the Application Server Control console or by using Telnet will not prove effective in this scenario. Because invalidation of cached Web pages is required every 30 minutes and performing this task manually is not a practical and effective solution. Manual invalidation of cached objects is suggested when you have to invalidate objects as needed. Manual invalidation can be done for specific objects or a group of objects.
Automatically invalidating the cached Web pages by creating database triggers is not possible in this scenario because database triggers cannot be used to invalidate objects on a recurring basis. In this scenario, the requirement is that the cached Web pages have to be invalidated every 30 minutes. Database triggers are coupled with actions performed in the database such as INSERT, UPDATE or DELETE performed on a table. Database triggers should be used in invalidation mechanism when you want to invalidate objects in the cache based on specific actions performed in the database.
Oracle Application Server Web Cache Administrator’s Guide
Part Number B10401-01
1 Introduction to OracleAS Web Cache
Cache Invalidation and Expiration
Oracle Application Server 10g R2: Administration 1
Chapter 8: Configuring and Managing OracleAS Web Cache