Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU (D487, KEO1) Secure Software Design Exam - Topic 1 Question 14 Discussion

A potential threat was discovered during automated system testing when a PATCH request sent to the API caused an unhandled server exception. The API only supports GET. POST. PUT, and DELETE requests.How should existing security controls be adjusted to prevent this in the future?
A) Property configure acceptable API requests
B) Enforce role-based authorization
C) Use API keys to enforce authorization of every request
D) Ensure audit logs are in place for sensitive transactions

WGU (D487, KEO1) Secure Software Design Exam - Topic 1 Question 14 Discussion

Actual exam question for WGU's WGU (D487, KEO1) Secure Software Design exam
Question #: 14
Topic #: 1
[All WGU (D487, KEO1) Secure Software Design Questions]

A potential threat was discovered during automated system testing when a PATCH request sent to the API caused an unhandled server exception. The API only supports GET. POST. PUT, and DELETE requests.

How should existing security controls be adjusted to prevent this in the future?

Show Suggested Answer Hide Answer
Suggested Answer: A

The issue described involves a PATCH request causing an unhandled server exception because the API does not support this method. The most direct and effective way to prevent such exceptions is to ensure that the API is configured to accept only the supported request methods: GET, POST, PUT, and DELETE. This can be achieved by implementing strict input validation to reject any requests that do not conform to the defined API specifications, including the request method. By doing so, any requests using unsupported methods like PATCH will be immediately rejected, thus preventing the server from reaching an exception state.


OWASP's guidance on error and exception handling emphasizes the importance of managing exceptions in a centralized manner and ensuring that all unexpected behavior is correctly handled within the application1.

Additional best practices for error handling in software development suggest the significance of input validation and the implementation of defensive programming techniques to prevent errors2.

The OWASP Foundation also highlights the principle that all security mechanisms should deny access until specifically granted, which supports the approach of configuring acceptable API requests3.

Contribute your Thoughts:

0/2000 characters
I recall that audit logs (D) are crucial for tracking sensitive transactions, but I wonder if they would actually prevent the unhandled exception from happening in the first place.
upvoted 0 times
...
Marjory
5 days ago
I feel like we had a practice question about API keys before. Using them for authorization (C) sounds familiar, but I'm not convinced it's the best answer for this specific issue.
upvoted 0 times
...
Dorthy
10 days ago
I'm not entirely sure, but I think enforcing role-based authorization (B) might help limit who can make certain requests.
upvoted 0 times
...
Glenn
15 days ago
I remember we discussed the importance of configuring acceptable API requests in class. It seems like A could be a solid choice here.
upvoted 0 times
...

Save Cancel