




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































1. An organization is beginning development of a new customer-facing application that will process sensitive personal information. The security team wants to ensure security
requirements are considered before architecture and coding decisions are finalized. What should the security manager recommend FIRST? A. Perform penetration testing after development B. Define security requirements during requirements analysis C. Deploy a web application firewall D. Conduct source-code review after the first release Answer: B Security is most effective when incorporated during requirements analysis rather than added after implementation. Early security requirements influence architecture, design, coding standards, authentication, authorization, logging, privacy, and data-protection decisions.
2. Which software development approach provides the greatest opportunity for security personnel to influence application architecture before significant implementation costs are incurred?
Finding vulnerabilities late in the SDLC can require architectural changes, redesign, retesting, and deployment delays. Integrating security activities throughout development reduces remediation cost and risk.
4. A development team is defining requirements for an application that will allow users to transfer funds. Which security requirement is MOST important to establish early? A. Screen color consistency B. Transaction authorization and integrity C. Browser compatibility D. Database indexing Answer: B Financial transactions require strong authorization and integrity controls. These requirements influence authentication, transaction validation, authorization logic, logging, and architecture.
5. Which activity BEST represents threat modeling? A. Counting lines of source code B. Identifying potential threats against system components and determining appropriate mitigations C. Measuring application response time D. Reviewing employee performance Answer: B Threat modeling systematically identifies assets, trust boundaries, attack surfaces, threats, vulnerabilities, and mitigations during design and development. 6. A team uses STRIDE to evaluate a new web application. What is the primary purpose of STRIDE? A. Measuring software performance B. Categorizing common threat types C. Calculating project cost D. Managing software licenses Answer: B
8. A development team wants to minimize the impact of a compromised application component. Which architectural principle is MOST appropriate? A. Maximum privilege B. Least privilege and segmentation C. Shared administrative credentials D. Centralized unrestricted access Answer: B Least privilege and segmentation limit what a compromised component can access, reducing the potential blast radius. 9. Which principle requires that security controls be designed into an application rather than relying on developers to remember them during coding? A. Secure by design B. Open architecture C. Separation of duties D. Job rotation
Answer: A Secure-by-design principles make security an inherent property of the system rather than an optional activity performed late in development.
10. A company discovers that developers frequently implement authentication differently across applications. Which action would BEST address the underlying problem? A. Increase penetration testing frequency B. Establish secure coding standards and reusable security components C. Disable external access D. Require developers to work overtime Answer: B Standardized secure coding practices and vetted reusable security components reduce inconsistent implementations and common security defects.
Answer: A Attack-surface analysis identifies exposed interfaces, services, entry points, and components that could potentially be targeted.
13. A developer receives a username from an HTTP request and inserts it directly into a database query. Which vulnerability is MOST likely? A. SQL injection B. Cross-site request forgery C. Buffer overflow D. Race condition Answer: A Untrusted input incorporated directly into SQL can allow an attacker to manipulate the intended query. Parameterized queries are a primary mitigation. 14. Which technique BEST prevents SQL injection?
A. Parameterized queries B. Longer passwords C. Network segmentation alone D. Disabling application logging Answer: A Parameterized queries separate SQL instructions from user- supplied data, preventing input from being interpreted as executable SQL syntax.
15. A web application displays user-supplied content without proper output encoding. An attacker inserts script code that executes in another user's browser. What vulnerability has occurred? A. Cross-site scripting B. SQL injection C. Insecure deserialization D. Directory traversal Answer: A
parameter to access files outside the intended directory. What vulnerability is present? A. Directory traversal B. Cross-site request forgery C. Session fixation D. Race condition Answer: A Directory traversal occurs when an application permits manipulation of file paths so an attacker can access resources outside the intended directory.
18. Which control is MOST effective against directory traversal? A. Validate and canonicalize file paths while restricting access to approved locations B. Increase password complexity C. Disable TLS D. Increase database storage Answer: A
Applications should avoid trusting user-controlled paths, canonicalize paths, restrict file access to approved directories, and preferably use controlled identifiers instead of raw paths.
19. A developer stores passwords using an unsalted fast hash algorithm. What is the PRIMARY security concern? A. Passwords are vulnerable to efficient offline cracking B. Passwords cannot be transmitted over TLS C. Users cannot change passwords D. The database cannot be backed up Answer: A Fast unsalted hashes allow attackers to efficiently test large numbers of password guesses and enable identical passwords to produce identical hash values. 20. Which approach is MOST appropriate for storing user passwords?
Cryptographic keys should be protected separately from application source code and managed through appropriate key- management controls.
22. Why is hard-coding cryptographic keys in source code particularly dangerous? A. Source code may be distributed, copied, logged, or exposed through repositories B. It makes encryption mathematically impossible C. It prevents applications from compiling D. It automatically disables authentication Answer: A Source code frequently exists in repositories, backups, developer environments, build systems, and artifacts. Exposing a key can compromise protected information. 23. Which activity provides the BEST opportunity to identify insecure coding practices automatically during development?
A. Static application security testing B. Disaster recovery testing C. Physical security testing D. Capacity planning Answer: A Static application security testing, or SAST, analyzes source code or compiled representations to identify potential security defects without executing the application.
24. What is the PRIMARY difference between SAST and DAST? A. SAST evaluates an application from the code or implementation perspective, while DAST tests the running application B. SAST requires production deployment, while DAST does not C. SAST is only for network devices D. DAST cannot identify security vulnerabilities Answer: A
A. Dynamic analysis B. Static analysis C. Penetration testing D. Fuzz testing Answer: B Static analysis examines source code, bytecode, or another nonexecuting representation to identify potential weaknesses.
27. A development team wants to discover unexpected application behavior by providing malformed, random, and unexpected inputs. Which technique should it use? A. Fuzz testing B. Regression testing C. Acceptance testing D. Configuration management Answer: A
Fuzz testing intentionally supplies unexpected or malformed input to expose crashes, memory problems, validation weaknesses, and other defects.
28. What is the PRIMARY security advantage of integrating automated security tests into a CI/CD pipeline? A. Security issues can be identified earlier and repeatedly B. Developers no longer need security knowledge C. Manual testing becomes illegal D. Production monitoring becomes unnecessary Answer: A Automated pipeline testing provides repeatable security checks throughout development and can identify defects before deployment. 29. A CI/CD pipeline automatically deploys every successful build to production without security gates. What is the primary concern?