Caching Senior

1 / 3

How would you handle cache synchronization in a distributed environment?

Select the correct answer

1

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

2

Synchronize caches by increasing cache size.

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

Use different strategies based on access patterns and data size.

2

Change the strategy based on server load only.

3

Always use the same replacement strategy regardless of the situation.

4

Use the replacement strategy with the longest name.

What is cache replacement?

Select the correct answer

1

Replacing old data in the cache with new data.

2

Backing up cache data to a secure location.

3

Compressing cache data to save space.

4

Encrypting cache data for security purposes.