Design Patterns · Senior · Question 11 of 75
What is an Anti-Corruption Layer?
- ✓Correct answer: A translation layer that keeps a foreign model out of yours
- 2A database-level layer protecting against SQL injection
- 3An antivirus check for files uploaded by users
Explanation
Integration with a legacy API or a third-party SDK through adapters and mapping: odd field names, error codes and formats stay at the boundary. This reduces vendor lock-in: changing the provider affects only that layer.