Imagine you are tasked with securing an API that handles sensitive user data. What security measures would you implement to ensure data confidentiality and integrity?

  • Enable cross-site scripting (XSS) attacks, disable input validation, skip authentication, and allow anonymous access
  • Implement HTTPS, validate and sanitize user input, use authentication and authorization mechanisms, implement rate limiting
  • Implement strong encryption, use SQL injection, keep data unencrypted, and avoid access control
  • Use a simple HTTP connection, allow unvalidated input, skip authentication, and provide unlimited access
To ensure data confidentiality and integrity in an API handling sensitive user data, you should implement HTTPS to encrypt data in transit, validate and sanitize user input to prevent injection attacks, use authentication and authorization mechanisms to control access, and implement rate limiting to prevent abuse of the API. These measures collectively help secure sensitive data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *