WGU D385: FINAL QUESTIONS AND
ANSWERS VERIFIED 100% CORRECT!!
What is Defensive Programming? Answer- - assume mistakes will happen and guard against them
- assertions are the most common way of doing this
- code checks itself as it runs
- always check, validate, and sanitize data
- maintains a (file, line) tuple of breakpoints
- returns a string with all set breakpoints
- POST data payloads
- URL parameters
- requires the tester to posses both testing and software development skills
- tools would have to be language specific
- especially when tools are used
- finds runtime vulnerabilities
- requires only a running system; conducted on any application
- dependent on the correctness of the rules
- false sense of security
- difficult to trace back to exact location
- SQLi
Which attribute provides a dictionary of breakpoint instances? Answer- - bplist
Which function can be used to return all set breakpoints? Answer- - get_all_breaks( )
Which 3 data types are considered user-provided? Answer- - cookies
What are limitations of Static Code Analysis Answer- - does not account for runtime vulnerabilities
Advantage of Static Code Analysis? Answer- - fast turnaround time
Advantage of Dynamic Code Analysis? Answer- - no need to understand how to write software
Limitations of Dynamic Code Analysis? Answer- - false positives and false negatives
What kind of attacks does Client-side Testing look to prevent? Answer- - XSS
- CORS
- Clickjacking
- HTML injection
- / 1
Secure Unit Testing Answer- - check for bad input