Integrate Caching and Content Delivery within Solutions Flashcards

1
Q

If using a LRU cache, and the LRU keys have expiry set.

What eviction policy should you use for the maxmemory-policy directive?

A

Volatile-lru

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which Eviction policies behave like noeviction if there are no keys to evict matching their prerequisites?

A

volatile-lru, volatile-random and volatile-ttl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which policy is more memory efficient?

allkeys-lru or volatile-lru?

A

Allkeys-lru is more memory efficient since there is no need to set an expire for the key to be evicted under memory pressure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s the difference between allkeys-lru and volatile-lru?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s the difference between volatile-lru and volatile-ttl?

A

Both will evict keys with their expire set, but volatile-ttl will try to evict keys with a shorter time to live first.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What’s the powershell cmdlet to set the redis cache?

A

Set-AzRedisCache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which caching provides better scalability? Private or shared?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Whats the difference between shared and private caching?

A

Shared caching uses distributed caching that is held in a seperate caching location vs private caching is held locally to each application instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which is faster Shared or Private caching?

A

Private caching is faster due to be held closer to the application instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What sort of cache would you use for a database cache?

A

Data Cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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?

A

Session store, and pass the cookie as key to query the cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What cache should be used to small static assets in a website?

A

Content Cache

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which service Tiers of Redis Cache would you use for dev/test?

  • Basic
  • Standard
  • Premium
  • Enterprise
A

Basic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which Redis service tier would you use if you wanted to use RedisTimeSeries?

  • Basic
  • Standard
  • Premium
  • Enterprise
A

Enterprise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly