How can you secure a RESTful API developed using Python?
- Allowing unrestricted access to the API
- Including sensitive data in API responses
- Storing API keys in public repositories
- Using HTTPS for data encryption
To secure a RESTful API, you should use HTTPS to encrypt data in transit, protecting it from eavesdropping and man-in-the-middle attacks. The other options are insecure practices that should be avoided.
Loading...
Related Quiz
- Which method would you use to get a list of all the keys in a dictionary?
- You need to implement a data structure that can quickly provide the smallest element. Which data structure will you use?
- To represent a constant property in a Python class, you would typically use _____.
- To execute a Python script, which of the following commands can be used?
- When using nested loops, the break statement will exit the _______ loop.