Docsity

PrepIQ CSC 210 Cyber Secure Coder Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ CSC 210 Cyber Secure Coder
Ultimate Exam
**Question 1.** Which component of the CIA triad ensures that data is only
accessible to authorized users?
A) Integrity  B) Availability  C) Confidentiality  D) Authentication
Answer: C
Explanation: Confidentiality protects information from unauthorized disclosure.
**Question 2.** In the AAA model, which function is responsible for recording
user activity?
A) Authentication  B) Authorization  C) Accounting  D) Auditing
Answer: C
Explanation: Accounting (or auditing) logs actions for later review.
**Question 3.** The principle of “least privilege” primarily mitigates which risk?
A) Data loss  B) Over-provisioned access  C) Denial-of-service  D) Code injection
Answer: B
Explanation: Giving users only the permissions they need reduces excess access.
**Question 4.** Which design strategy layers multiple security controls to protect
assets?
A) Defense in Depth  B) Fail-Open  C) Single-Point-of-Failure  D) Security Through
Obscurity
Answer: A
Explanation: Defense in depth uses redundant, complementary controls.
**Question 5.** A system that continues operating with reduced functionality
after a failure is said to be:
A) Fail-Safe  B) Fail-Open  C) Fail-Closed  D) Fail-Hard
Answer: A
Explanation: Fail-safe prioritizes safety, allowing limited operation.
**Question 6.** Which hacker type typically violates laws but discloses
vulnerabilities publicly?
A) Black Hat  B) White Hat  C) Gray  D) Red Team
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39

Partial preview of the text

Download PrepIQ CSC 210 Cyber Secure Coder Ultimate Exam and more Exams Technology in PDF only on Docsity!

Ultimate Exam

Question 1. Which component of the CIA triad ensures that data is only accessible to authorized users? A) Integrity B) Availability C) Confidentiality D) Authentication Answer: C Explanation: Confidentiality protects information from unauthorized disclosure. Question 2. In the AAA model, which function is responsible for recording user activity? A) Authentication B) Authorization C) Accounting D) Auditing Answer: C Explanation: Accounting (or auditing) logs actions for later review. Question 3. The principle of “least privilege” primarily mitigates which risk? A) Data loss B) Over-provisioned access C) Denial-of-service D) Code injection Answer: B Explanation: Giving users only the permissions they need reduces excess access. Question 4. Which design strategy layers multiple security controls to protect assets? A) Defense in Depth B) Fail-Open C) Single-Point-of-Failure D) Security Through Obscurity Answer: A Explanation: Defense in depth uses redundant, complementary controls. Question 5. A system that continues operating with reduced functionality after a failure is said to be: A) Fail-Safe B) Fail-Open C) Fail-Closed D) Fail-Hard Answer: A Explanation: Fail-safe prioritizes safety, allowing limited operation. Question 6. Which hacker type typically violates laws but discloses vulnerabilities publicly? A) Black Hat B) White Hat C) Gray D) Red Team

Ultimate Exam

Answer: C Explanation: Gray-hat hackers act without permission but often report findings. Question 7. The relationship “Vulnerability → Exploit → Attack” is best described as: A) Threat modeling B) Attack chain C) Risk matrix D) Security policy Answer: B Explanation: An exploit leverages a vulnerability to launch an attack. Question 8. Pretexting in social engineering primarily exploits: A) Technical flaws B) Human trust C) Network latency D) Cryptographic keys Answer: B Explanation: Pretexting creates a fabricated scenario to gain trust. Question 9. In the SDLC, security should first be introduced during which phase? A) Testing B) Deployment C) Requirements D) Maintenance Answer: C Explanation: Embedding security in requirements defines needed controls early. Question 10. Which role is primarily responsible for creating threat models? A) Developer B) Designer/Architect C) Tester D) Code Reviewer Answer: B Explanation: Architects map threats to design elements during modeling. Question 11. A developer using a vetted cryptographic library instead of rolling their own algorithm is practicing: A) Security through obscurity B) Defense in depth C) Secure by default D) Security by design Answer: D Explanation: Designing with proven components is a core of security-by-design.

Ultimate Exam

Explanation: HIPAA governs protected health information (PHI). Question 18. “Use case” versus “abuse case” in design helps to: A) Optimize performance B) Identify security requirements C) Reduce code size D) Increase UI complexity Answer: B Explanation: Abuse cases describe how an attacker might misuse functionality. Question 19. Which software design pattern encourages separation of authentication logic from business logic? A) Singleton B) Factory C) Decorator D) MVC Answer: D Explanation: Model-View-Controller isolates concerns, allowing independent auth handling. Question 20. Strong password policies typically enforce which of the following? A) Minimum length B) Password reuse across sites C) Simple dictionary words D) Storing passwords in plain text Answer: A Explanation: Longer passwords increase entropy and resist guessing. Question 21. The GDPR principle of “right to be forgotten” primarily impacts which data lifecycle stage? A) Collection B) Processing C) Storage D) Deletion Answer: D Explanation: Individuals can request erasure of their personal data. Question 22. Which of the following is a “fail-open” behavior? A) Blocking all traffic after intrusion B) Allowing read-only access after error C) Shutting down services D) Encrypting all outbound data Answer: B Explanation: Fail-open permits limited functionality rather than total denial.

Ultimate Exam

Question 23. A “role-based access control” (RBAC) system assigns permissions based on: A) User identity B) Job function C) IP address D) Time of day Answer: B Explanation: RBAC maps roles (e.g., admin, user) to permissions. Question 24. Which of the following is an example of a “session hijacking” technique? A) Brute-forcing passwords B) Cross-site scripting C) Session fixation D) SQL injection Answer: C Explanation: Session fixation forces a known session ID on a victim. Question 25. In secure logging, “non-repudiation” is achieved by: A) Using verbose messages B) Encrypting logs with a private key C) Storing logs in plaintext D) Rotating logs daily Answer: B Explanation: Digital signatures ensure logs cannot be denied or altered. Question 26. Which cryptographic mode provides confidentiality and integrity together? A) ECB B) CBC C) GCM D) OFB Answer: C Explanation: Galois/Counter Mode (GCM) offers authenticated encryption. Question 27. When transmitting data over the internet, which protocol provides transport-layer encryption? A) HTTP B) FTP C) TLS D) SMTP Answer: C Explanation: TLS (or SSL) encrypts data between client and server. Question 28. A “white-list” input validation approach: A) Blocks known bad patterns B) Allows only known good patterns C) Uses regex denial D) Relies on user reports

Ultimate Exam

Question 34. Which testing technique simulates real-world attacks by an external adversary? A) Unit testing B) Penetration testing C) Regression testing D) Smoke testing Answer: B Explanation: Pen-tests emulate attacker behavior to find exploitable gaps. Question 35. In the context of patch management, “zero-day” refers to: A) A patch released on the same day as the vulnerability disclosure B) A vulnerability with no available fix C) A patch that requires no reboot D) A scheduled maintenance window Answer: B Explanation: Zero-day vulnerabilities are unknown or unpatched at the time of discovery. Question 36. Which of the following best describes “separation of duties”? A) Using two-factor authentication B) Assigning distinct responsibilities to different individuals C) Encrypting data at rest D) Deploying redundant servers Answer: B Explanation: Dividing tasks reduces risk of insider abuse. Question 37. The term “fail-closed” is most appropriate for which security scenario? A) Allowing read-only access after a breach B) Shutting down a compromised service C) Continuing operation with reduced privileges D) Logging errors silently Answer: B Explanation: Fail-closed denies access to prevent further damage. Question 38. Which OWASP Top 10 category deals with broken authentication? A) A1 B) A2 C) A3 D) A Answer: A

Ultimate Exam

Explanation: In OWASP 2021, A01:2021 is “Broken Access Control,” but historically “Broken Authentication” was A2. For exam purposes, answer A (Broken Authentication). Question 39. An “account lockout” mechanism primarily defends against: A) Session fixation B) Credential stuffing C) XSS D) CSRF Answer: B Explanation: Lockouts limit repeated login attempts, mitigating brute-force attacks. Question 40. Which of the following is a secure way to store passwords? A) MD5 hash B) SHA-1 hash C) BCrypt hash D) Plain text Answer: C Explanation: BCrypt incorporates salt and work factor, resisting rainbow-table attacks. Question 41. The “principle of complete mediation” requires that: A) Every access request be checked against policy B) All data be encrypted at rest C) Users change passwords monthly D) Logs be archived for 90 days Answer: A Explanation: Each request must be re-authorized, preventing cached permissions. Question 42. Which of the following best describes a “sandbox” in application security? A) A network DMZ B) An isolated execution environment C) A password manager D) A logging framework Answer: B Explanation: Sandboxes restrict code to a controlled environment. Question 43. Which HTTP header helps mitigate click-jacking attacks? A) X-Content-Type-Options B) X-Frame-Options C) Content-Security-Policy D) Strict-Transport-Security Answer: B

Ultimate Exam

Question 49. “Security through obscurity” is considered a: A) Primary defense strategy B) Secondary control C) Weak security practice D) Regulatory requirement Answer: C Explanation: Relying on hidden details without robust controls is ineffective. Question 50. Which of the following is the most appropriate response when a third-party library is found to have a critical CVE? A) Ignore it if the application works B) Patch or upgrade the library immediately C) Disable logging D) Increase password length Answer: B Explanation: Timely patching removes the known vulnerability. Question 51. Which type of testing focuses on the security of APIs rather than UI? A) SAST B) API fuzzing C) Unit testing D) Smoke testing Answer: B Explanation: API fuzzing sends malformed data to endpoints to discover flaws. Question 52. A “secure coding standard” such as CERT C++ primarily provides: A) Encryption algorithms B) Guidelines to avoid common bugs C) Network topology diagrams D) License compliance checks Answer: B Explanation: Standards list best practices for safe code construction. Question 53. Which of the following best represents “defense in depth” at the network layer? A) Input validation B) Application firewalls C) Host-based IDS D) Network segmentation and firewalls Answer: D Explanation: Multiple network controls (segmentation, firewalls) create layered defense.

Ultimate Exam

Question 54. Which of these is a typical sign of a successful CSRF attack? A) Unexpected password change B) Application crash C) Slow page load D) Duplicate log entries Answer: A Explanation: CSRF forces the victim’s browser to submit authenticated requests, such as password changes. Question 55. Which of the following is an example of “privilege escalation”? A) A user reads their own profile B) An attacker gains admin rights from a normal account C) A service restarts automatically D) A password expires after 90 days Answer: B Explanation: Escalation moves a subject to a higher privilege level. Question 56. In a microservices architecture, the “zero-trust” model implies that each service should: A) Trust internal traffic automatically B) Authenticate and authorize every request C) Use the same database credentials D) Disable TLS for performance Answer: B Explanation: Zero-trust requires verification for every interaction. Question 57. Which cryptographic primitive provides data integrity without confidentiality? A) Encryption B) Hashing C) Digital signature D) HMAC Answer: D Explanation: HMAC combines a hash with a secret key to verify integrity. Question 58. Which of the following is the most secure way to generate a random token for password reset? A) Using Math.random() B) Using a cryptographically secure PRNG C) Using the current timestamp D) Using the user’s email address Answer: B Explanation: A CSPRNG produces unpredictable values suitable for security tokens.

Ultimate Exam

Explanation: WAFs operate at the application layer, not at packet routing. Question 64. When performing threat modeling, the “STRIDE” acronym stands for: A) Spoofing, Tampering, Repudiation, Information Disclosure, Denial-of-Service, Elevation of Privilege B) Secure, Test, Review, Identify, Deploy, Evaluate C) Scan, Trace, Respond, Isolate, Detect, Enforce D) None of the above Answer: A Explanation: STRIDE categorizes common threat types. Question 65. Which of the following best describes “taint analysis” in static testing? A) Checking for memory leaks B) Tracking flow of untrusted data C) Measuring code coverage D) Verifying UI consistency Answer: B Explanation: Taint analysis follows untrusted input through the code to find injection points. Question 66. Which of the following is a recommended practice for handling cryptographic keys? A) Hard-coding them in source code B) Storing them in environment variables only C) Using a dedicated key management service D) Transmitting them in clear text over HTTP Answer: C Explanation: Centralized KMS provides secure storage, rotation, and access control. Question 67. In the context of CI/CD, “shift-left” testing means: A) Testing after deployment B) Performing security tests early in the development cycle C) Running tests only on production D) Delaying testing until after code freeze Answer: B Explanation: Shifting left moves testing toward earlier phases. Question 68. Which of the following is a primary purpose of “security baselines” in an organization?

Ultimate Exam

A) Define UI color schemes B) Establish minimum security configurations C) Set performance benchmarks D) Choose programming languages Answer: B Explanation: Baselines ensure systems start with known secure settings. Question 69. Which of the following best describes “certificate pinning” in mobile apps? A) Storing passwords in the app bundle B) Hard-coding a server’s public key or certificate C) Disabling SSL verification D) Using self-signed certificates only Answer: B Explanation: Pinning binds the app to a specific certificate, preventing MITM attacks. Question 70. Which of the following is an example of “environment hardening”? A) Installing the latest IDE B) Disabling unnecessary services on a server C) Adding more UI widgets D) Increasing font size in logs Answer: B Explanation: Hardening removes or disables services that could be exploited. Question 71. Which of the following is the most appropriate way to protect sensitive configuration files in a containerized environment? A) Include them in the Docker image B) Mount them as read-only secrets from the orchestrator C) Store them on a shared network drive D) Write them in plain text inside the container Answer: B Explanation: Secrets management ensures configs are not baked into images. Question 72. Which of the following is a typical indicator of a “memory leak” that could affect security? A) Increased CPU usage B) Growing heap size over time C) Faster response times D) Decreased network latency Answer: B Explanation: Unreleased memory can be exploited for DoS or data leakage.

Ultimate Exam

Question 78. Which of the following is a common mitigation for “cross-site request forgery” (CSRF)? A) Using HTTP B) Embedding anti-CSRF tokens in forms C) Disabling JavaScript D) Enforcing password complexity Answer: B Explanation: Tokens verify that requests originate from the legitimate site. Question 79. Which of the following best describes “immutable logging”? A) Logs that cannot be altered after creation B) Logs stored in RAM only C) Logs that auto-delete after 24 hours D) Logs written in plain text Answer: A Explanation: Immutable logs provide tamper-evidence for forensic analysis. Question 80. Which of the following is the most appropriate response when a security audit reveals outdated TLS versions in use? A) Ignore the finding B) Upgrade to TLS 1.2 or higher C) Switch to HTTP D) Disable encryption altogether Answer: B Explanation: Modern TLS versions address known protocol weaknesses. Question 81. Which of the following is a primary benefit of using “feature flags” for security controls? A) Faster UI rendering B) Ability to enable/disable security features without redeploying C) Reducing code size D) Simplifying database schema Answer: B Explanation: Feature flags allow rapid toggling of controls in production. Question 82. Which of the following is a recommended approach for handling “error codes” in an API? A) Returning stack traces to callers B) Using generic HTTP status codes and detailed logs internally C) Embedding SQL queries in error messages D) Sending raw exception objects in JSON Answer: B

Ultimate Exam

Explanation: Generic responses protect internal details while logs capture specifics. Question 83. Which of the following best describes “rate limiting” as a security control? A) Limiting number of developers on a project B) Restricting the number of requests a client can make in a time window C) Reducing file size uploads D) Limiting memory usage of a process Answer: B Explanation: Rate limiting mitigates brute-force and DoS attempts. Question 84. Which of the following is an example of a “security anti-pattern”? A) Using parameterized queries B) Logging user passwords C) Encrypting data at rest D) Implementing MFA Answer: B Explanation: Storing or logging passwords violates basic security principles. Question 85. Which of the following best defines “security champion” within a development team? A) The person who writes all unit tests B) A developer who advocates for security best practices C) The manager of the network team D) The person responsible for UI design Answer: B Explanation: Champions promote security awareness and practices among peers. Question 86. Which of the following is a key advantage of “container image scanning” before deployment? A) Improves UI responsiveness B) Detects known vulnerable packages C) Increases CPU clock speed D) Reduces bandwidth usage Answer: B Explanation: Scanning reveals outdated or vulnerable dependencies in the image. Question 87. Which of the following is the most effective way to protect against “replay attacks” in token-based authentication?

Ultimate Exam

Question 92. Which of the following is a typical sign of a “memory corruption” vulnerability? A) Consistent login success B) Application crashes or unexpected behavior C) Faster page rendering D) Stable network latency Answer: B Explanation: Corruption often leads to crashes or erratic operation. Question 93. Which of the following best describes “mutual TLS” (mTLS)? A) Both client and server present certificates for authentication B) Only the server presents a certificate C) Only the client presents a certificate D) No certificates are used, only passwords Answer: A Explanation: mTLS authenticates both ends of the connection. Question 94. Which of the following is a recommended practice for “API versioning” to improve security? A) Never change the API B) Deprecate old versions promptly after fixing vulnerabilities C) Keep all versions active indefinitely D) Use the same endpoint for all versions Answer: B Explanation: Removing outdated versions reduces attack surface. Question 95. Which of the following best defines “sandbox escape” in the context of application security? A) Moving data to a backup server B) Exploiting a vulnerability to break out of an isolated environment C) Deleting temporary files D) Updating the operating system Answer: B Explanation: Escape allows malicious code to leave its restricted container. Question 96. Which of the following is a primary benefit of “continuous integration” (CI) for security? A) Eliminates need for testing B) Detects security issues early with automated scans C) Guarantees zero bugs D) Removes the need for code reviews Answer: B

Ultimate Exam

Explanation: CI pipelines can run static analysis on each commit. Question 97. Which of the following best describes “principle of fail-secure” in authentication systems? A) Denying access when a component fails B) Allowing access when a component fails C) Ignoring authentication failures D) Logging failures without response Answer: A Explanation: Fail-secure prioritizes security by blocking access on failure. Question 98. Which of the following is a typical mitigation for “open redirect” vulnerabilities? A) Allowing any URL as a redirect target B) Validating redirect URLs against a whitelist C) Disabling HTTPS D) Using HTTP GET parameters only Answer: B Explanation: Whitelisting ensures redirects only go to approved domains. Question 99. Which of the following best describes “data-in-transit” encryption? A) Encrypting files stored on disk B) Encrypting data while it moves between systems C) Hashing passwords D) Obfuscating source code Answer: B Explanation: Transit encryption protects data during network transmission. Question 100. Which of the following is an effective way to mitigate “password spraying” attacks? A) Enforcing very short passwords B) Implementing account lockout after multiple failed attempts C) Allowing unlimited login attempts D) Disabling MFA Answer: B Explanation: Lockouts limit repeated attempts across many accounts. Question 101. Which of the following best defines “security orchestration, automation, and response” (SOAR)? A) Manual incident handling B) Automated coordination of security tools and workflows C) Writing security policies only D) Deploying hardware firewalls