350-501 · Question #612
When implementing a REST API, how does an engineer mitigate security risks?
The correct answer is D. by configuring rate limiting to reduce the risk of DOS and DDOS attacks against the system. To mitigate security risks when implementing a REST API, engineers should configure rate limiting, a crucial defense against Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks.
Question
When implementing a REST API, how does an engineer mitigate security risks?
Options
- Aby configuring the system to authenticate the client's identity and avoid broken authentication
- Bby configuring object properties to protect data
- Cby configuring separate authorization schemes to securely compartmentalize different areas of the
- Dby configuring rate limiting to reduce the risk of DOS and DDOS attacks against the system
How the community answered
(41 responses)- A10% (4)
- B17% (7)
- C2% (1)
- D71% (29)
Why each option
To mitigate security risks when implementing a REST API, engineers should configure rate limiting, a crucial defense against Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks.
Authenticating the client's identity is vital for preventing broken authentication vulnerabilities but does not directly mitigate DoS or DDoS attacks, which target API availability rather than unauthorized access.
Configuring object properties to protect data typically refers to data validation, serialization, and integrity, which safeguards data but does not prevent the API service from being overwhelmed by traffic.
Configuring separate authorization schemes is essential for controlling access to different API resources and preventing broken access control, but it does not protect against the volume-based attacks like DoS or DDoS.
Configuring rate limiting on a REST API restricts the number of requests a client can make within a specified time frame. This directly reduces the risk of DoS and DDoS attacks by preventing malicious actors from overwhelming the API server with an excessive volume of requests, thus ensuring the API remains available and responsive for legitimate users.
Concept tested: REST API security- DoS/DDoS mitigation
Source: https://owasp.org/www-project-api-security/
Topics
Community Discussion
No community discussion yet for this question.