Caching Senior

1 / 3

How would you handle cache synchronization in a distributed environment?

Select the correct answer

1

Synchronize caches by increasing cache size.

2

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

3

Use distributed locks and consensus protocols to ensure data consistency.

4

Synchronize caches by using different keys for each cache.

Name situations when to use different replacement strategies?

Select the correct answer

1

Change the strategy based on server load only.

2

Use the replacement strategy with the longest name.

3

Always use the same replacement strategy regardless of the situation.

4

Use different strategies based on access patterns and data size.

What is cache replacement?

Select the correct answer

1

Compressing cache data to save space.

2

Encrypting cache data for security purposes.

3

Backing up cache data to a secure location.

4

Replacing old data in the cache with new data.