Integrate Caching and Content Delivery within Solutions Flashcards
If using a LRU cache, and the LRU keys have expiry set.
What eviction policy should you use for the maxmemory-policy directive?
Volatile-lru
Which Eviction policies behave like noeviction if there are no keys to evict matching their prerequisites?
volatile-lru, volatile-random and volatile-ttl
Which policy is more memory efficient?
allkeys-lru or volatile-lru?
Allkeys-lru is more memory efficient since there is no need to set an expire for the key to be evicted under memory pressure.
What’s the difference between allkeys-lru and volatile-lru?
Volatile will remove the less recently used keys, but only among the ones that have an expire set, allkeys-lru will not worry about expiry
What’s the difference between volatile-lru and volatile-ttl?
Both will evict keys with their expire set, but volatile-ttl will try to evict keys with a shorter time to live first.
What’s the powershell cmdlet to set the redis cache?
Set-AzRedisCache
Which caching provides better scalability? Private or shared?
Shared provides better scalability. Caching is provided by a dedicated service that runs on a cluster of servers.
Adjusting the number of clusters provides better scalability than scaling the scaling caching store on the machine of each application instance
Whats the difference between shared and private caching?
Shared caching uses distributed caching that is held in a seperate caching location vs private caching is held locally to each application instance.
Which is faster Shared or Private caching?
Private caching is faster due to be held closer to the application instance
What sort of cache would you use for a database cache?
Data Cache
If you were to replace the shopping cart that was previously stored in a cookie what sort of cache would you replace it with?
And what would use as the key?
Session store, and pass the cookie as key to query the cache
What cache should be used to small static assets in a website?
Content Cache
Which service Tiers of Redis Cache would you use for dev/test?
- Basic
- Standard
- Premium
- Enterprise
Basic
Which Redis service tier would you use if you wanted to use RedisTimeSeries?
- Basic
- Standard
- Premium
- Enterprise
Enterprise