Web Traffic Technology & Digital Applications 2 — Questions and Answers
Question 1: Which HTTP status code indicates that a requested page has been permanently moved to a new URL, preserving SEO equity?
- 301 Moved Permanently (Correct answer)
- 302 Found
- 404 Not Found
- 200 OK
Correct answer: 301 Moved Permanently
A 301 redirect signals to search engines that the page has permanently moved, passing link equity to the new URL.
Question 2: What does the term 'bounce rate' measure in web analytics?
- The percentage of sessions where users leave after viewing only one page (Correct answer)
- The rate at which users return to a website
- The number of times a page fails to load
- The frequency of server errors per session
Correct answer: The percentage of sessions where users leave after viewing only one page
Bounce rate is the percentage of single-page sessions where users left without interacting further with the site.
Question 3: In Google Analytics 4 (GA4), what replaces the traditional 'sessions and pageviews' model as the primary tracking unit?
- Events and parameters (Correct answer)
- Cookies and fingerprints
- Impressions and clicks
- Visits and actions
Correct answer: Events and parameters
GA4 is built on an event-based model where every interaction (pageviews, clicks, scrolls) is captured as an event with associated parameters.
Question 4: Which technology allows websites to cache resources in the browser so they work offline and load faster on repeat visits?
- Service Workers (Correct answer)
- WebSockets
- HTTP/2 Push
- CDN edge caching
Correct answer: Service Workers
Service Workers are scripts that run in the background, enabling offline caching and background sync for Progressive Web Apps.
Question 5: What is the primary purpose of a Content Delivery Network (CDN) in relation to web traffic?
- To serve content from servers geographically closer to users, reducing latency (Correct answer)
- To block malicious traffic before it reaches the origin server
- To compress HTML files before transmission
- To track visitor behavior across multiple websites
Correct answer: To serve content from servers geographically closer to users, reducing latency
CDNs distribute content across edge servers worldwide so users receive data from the nearest node, reducing load times.
Question 6: Which browser API enables developers to observe when elements enter or exit the viewport, useful for lazy loading images?
- Intersection Observer API (Correct answer)
- MutationObserver API
- ResizeObserver API
- PerformanceObserver API
Correct answer: Intersection Observer API
The Intersection Observer API efficiently detects when elements become visible in the viewport, enabling lazy loading without scroll event listeners.
Question 7: What does 'Time to First Byte' (TTFB) measure in web performance?
- The time from a browser request until the first byte of the server response is received (Correct answer)
- The time it takes for the first image on a page to fully render
- The delay before a user can interact with a page element
- The duration of the initial DNS lookup process
Correct answer: The time from a browser request until the first byte of the server response is received
TTFB measures server responsiveness by timing the gap between a client's request and the arrival of the first byte of the response.
Which HTTP status code indicates that a requested page has been permanently moved to a new URL, preserving SEO equity?