Caching Senior

1 / 3

What is cache replacement?

Select the correct answer

1

Compressing cache data to save space.

2

Backing up cache data to a secure location.

3

Replacing old data in the cache with new data.

4

Encrypting cache data for security purposes.

How would you handle cache synchronization in a distributed environment?

Select the correct answer

1

Use distributed locks and consensus protocols to ensure data consistency.

2

Synchronize caches by increasing cache size.

3

Synchronize caches by using different keys for each cache.

4

Use caching only for read-heavy workloads to avoid synchronization issues.

Name situations when to use different replacement strategies?

Select the correct answer

1

Always use the same replacement strategy regardless of the situation.

2

Use different strategies based on access patterns and data size.

3

Use the replacement strategy with the longest name.

4

Change the strategy based on server load only.