0% found this document useful (0 votes)
3K views2 pages

Caching Techniques

Application cache can be used to cache contest registration pages to reduce load times. Cache-aside caching involves the application directly interacting with the database for non-cached data. A well-designed cache has a hit rate higher than the miss rate. Pagination for a page displaying 10 items should use spatial caching to enable efficient paging.

Uploaded by

Se Sathya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views2 pages

Caching Techniques

Application cache can be used to cache contest registration pages to reduce load times. Cache-aside caching involves the application directly interacting with the database for non-cached data. A well-designed cache has a hit rate higher than the miss rate. Pagination for a page displaying 10 items should use spatial caching to enable efficient paging.

Uploaded by

Se Sathya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Which type of caching can be used to cache the contest registration page in a

website, to reduce the time taken to serve the page for the users?
Application Cache

A cache is a .
Small and Fast memory

In which type of cache, application directly interacts with database for data that
is not available in the cache?
Cache-aside

In which type of cache, application treats cache as the main data store and reads
data from it and writes data to it? (I) Read Through/Write Through Cache (II)
Cache-aside
I

Which of the following is true about a well designed cache?


Hit Rate > Miss Rate

A web page displays 10 items per page and has pagination enabled. What would be the
recommended way to enable efficient paging?
Use Spatial Cache

Line size in a cache is recommended to be a power of 2.


True

Which type of cache reference locality aims at designing cache to store the entire
block near the Recently Referenced Data? (I) Temporal Locality (II) Spatial
Locality
II

Which of the following types of data exhibits Spatial Locality?


Array

Which type of cache reference locality aims at designing cache to store "Recently
Referenced Data" assuming that the same data will be requested frequently?
Only Temporal Locality

Which of the following Cache Eviction techniques consider Locality?


Least Recently Used

Which of the following is true about the cache?


Line size == Block size

When a computer processor does not gets a data item that it requires in cache, then
the problem is known as _________.
Cache Hit

Which type of cache is recommended to store user preferences for an application


with several 100's of concurrent users?
On Demand Cache

While using a Write Back cache, which of the following policies needs to be abided?
Write Allocate

Caching Technique where cache is populated the first time a certain piece of data
is requested is called _________.
Lazy Loading

Primary objective of Cache Coherence is to ensure __________.


Data Consistency across all local caches

Cache Performance or Average Memory Access time (AMAT) depends on which of the
following?
All options mentioned

Which Cache would be the best place to cache DNS data?


Proxy

Which of the following topologies implement a "front cache" and a "back cache" that
automatically and transparently communicate with each other by using a read-
through/write-through approach?
Near Cache

For a cache look up to be a Hit, which of the following must be true?


Tag==Block Number and Valid Bit = 1

Which of the following is used to determine, if a piece of data in cache needs to


be written back to cache?
dirty bit = 1

A byte addressable direct-mapped cache with 1024 blocks/lines, and with each block
are having 8 32-bit words. How many bits are required for block offset, assuming a
32-bit address
5

***********

Which of the following in a cache address, specifies the exact location in the
cache line where the requested data exists?
Block Index (WRONG ANSWER)

A cache has 1024 blocks and each block can contain 1024 bits of data. What is the
size of the cache
1 MB / 0.25MB(WRONG ANSWER)

Which Caching Topology is recommended for a read intensive distributed application?


Near Cache (WRONG ANSWER)

You might also like