Caching Senior

1 / 3

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 using different keys for each cache.

3

Synchronize caches by increasing cache size.

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

Change the strategy based on server load only.

3

Use different strategies based on access patterns and data size.

4

Use the replacement strategy with the longest name.

What is cache replacement?

Select the correct answer

1

Encrypting cache data for security purposes.

2

Compressing cache data to save space.

3

Backing up cache data to a secure location.

4

Replacing old data in the cache with new data.