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 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

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

Backing up cache data to a secure location.

2

Replacing old data in the cache with new data.

3

Encrypting cache data for security purposes.

4

Compressing cache data to save space.