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 Secure Software Design (D487) Exam - Topic 1 Question 14 Discussion

Posted by Deane on Jul 01, 2026 at 04:51 PM

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?

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.

Get Premium Secure Software Design (D487) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
21 comments · newest first
AN
Antonio 2 days ago
Right, we need to stop the issue first.
JU
Judy 7 days ago
D is important for tracking, but not a fix.
KI
Kiley 12 days ago
C is good too. API keys can prevent misuse.
PE
Peggie 18 days ago
True, but A is more direct for this issue.
EL
Elliot 23 days ago
B could also work. Role-based controls add security.
EL
Eloisa 28 days ago
I agree, A makes sense. Clear rules help.
AN
Antonio 1 month ago
I think A is the best choice. We need to limit requests.
BU
Buddy 1 month ago
Wait, how did a PATCH request even get through? That's surprising!
AR
Arlette 1 month ago
C) API keys are essential, but they can be bypassed too.
AU
Audra 2 months ago
B) sounds good, but isn't it overkill for this?
DA
Daniela 2 months ago
Totally agree with A), PATCH shouldn't even be an option.
AL
Albert 2 months ago
A) is a must! Need to limit those requests.
WI
William 2 months ago
D) is crucial for tracking any suspicious activity!
SH
Shayne 2 months ago
Wait, PATCH requests shouldn't even be allowed, right?
HE
Heike 2 months ago
C) sounds good, but isn't it a bit overkill?
VA
Vanesa 3 months ago
Totally agree with B) for better security.
MA
Maia 3 months ago
A) is a must! We need to limit requests.
AN
Anjelica 3 months ago
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.
MA
Marjory 3 months 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.
DO
Dorthy 3 months ago
I'm not entirely sure, but I think enforcing role-based authorization (B) might help limit who can make certain requests.
GL
Glenn 4 months ago
I remember we discussed the importance of configuring acceptable API requests in class. It seems like A could be a solid choice here.
0/2000 characters

Save Cancel