1Z0-1072-25 Question 146
Select 2Your company hosts a web application on OCI that serves both dynamic pages and large volumes of static images and videos to a global user base. To reduce end-user latency, you plan to enable the Web Application Firewall (WAF) caching feature. Which two configurations would effectively accelerate the web application while preventing stale data in dynamic transactions?
- A
Configure the WAF to cache static content and respect origin Cache-Control headers for cache validation.
- B
Apply a high Time-To-Live (TTL) for all dynamic responses and ignore Cache-Control headers.
- C
Enable built-in compression on the WAF to reduce response sizes for text-based assets.
- D
Disable WAF revalidation checks (such as If-Modified-Since) to eliminate all validation overhead.
Show answer and explanation
Correct answers: A, C
Explanation
In Oracle Cloud Infrastructure, leveraging the WAF� caching and compression features is a practical way to accelerate web applications, especially for globally distributed traffic. Caching static objects while honoring origin headers prevents stale dynamic content. Compression reduces the size of responses, improving load times. Refer to Oracle Cloud Infrastructure documentation on WAF caching best practices and HTTP header configurations to ensure dynamic and static content are handled correctly.
- A. Correct.
Correct: Allowing the WAF to cache static objects (e.g., images, CSS, JavaScript) while respecting Cache-Control headers ensures that dynamic content is not inadvertently cached. This setup helps maintain accuracy for real-time data and accelerates delivery of static assets.
- B. Incorrect.
Incorrect: Ignoring Cache-Control for dynamic content and forcing a high TTL often leads to serving stale data to users. Dynamic data (like shopping cart details or user-specific dashboards) should not be cached aggressively without proper revalidation.
- C. Correct.
Correct: Compression noticeably improves performance for text-based responses (HTML, JSON, CSS, JavaScript). By reducing payload size, global users experience faster downloads, especially in regions with limited bandwidth.
- D. Incorrect.
Incorrect: Turning off validation checks may reduce overhead slightly but risks serving outdated content. Proper validation ensures that updates to dynamic resources are consistently reflected in user responses.