DTOs allow selective exposure of data. Frame the concept in practical terms so you can explain it during interview discussion.
DTOs help you control which data is sent to the client by only including relevant fields. For example, a UserDTO can exclude the password field, even if the User entity contains it. This prevents sensitive data exposure, enhancing security.
Additional Notes
How can using DTOs prevent exposing sensitive data?