Docsity

DevSecOps Engineer Practice Exam: Questions and Answers, Exams of Technology

Toggle sidebar
bg1
[MCSI] MDSO Certified DevSecOps Engineer
Practice Exam
**Question 1. Which of the following best describes the primary goal of
DevSecOps?**
A) Accelerate code deployment without regard to security
B) Integrate security practices into every stage of the software delivery lifecycle
C) Replace development teams with security specialists
D) Outsource security testing to third‑party vendors
Answer: B
Explanation: DevSecOps aims to embed security continuously—from planning to
monitoring—ensuring that security is a shared responsibility, not a separate
phase.
**Question 2. In the CALMS model, which “M” stands for “Measurement”?**
A) Metrics and monitoring of performance and security
B) Manual testing procedures
C) Multi‑tenant architecture design
D) Migration strategies for legacy systems
Answer: A
Explanation: “Measurement” refers to collecting metrics to assess process
efficiency, quality, and security, enabling data‑driven improvement.
**Question 3. Which SDLC model is characterized by a linear, sequential flow
where each phase must be completed before the next begins?**
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
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download DevSecOps Engineer Practice Exam: Questions and Answers and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which of the following best describes the primary goal of DevSecOps? A) Accelerate code deployment without regard to security B) Integrate security practices into every stage of the software delivery lifecycle C) Replace development teams with security specialists D) Outsource security testing to third‑party vendors Answer: B Explanation: DevSecOps aims to embed security continuously—from planning to monitoring—ensuring that security is a shared responsibility, not a separate phase. Question 2. In the CALMS model, which “M” stands for “Measurement”? A) Metrics and monitoring of performance and security B) Manual testing procedures C) Multi‑tenant architecture design D) Migration strategies for legacy systems Answer: A Explanation: “Measurement” refers to collecting metrics to assess process efficiency, quality, and security, enabling data‑driven improvement. Question 3. Which SDLC model is characterized by a linear, sequential flow where each phase must be completed before the next begins?

Practice Exam

A) Agile B) Waterfall C) Spiral D) DevOps Answer: B Explanation: The Waterfall model follows a strict order—requirements, design, implementation, verification, maintenance—without iterative feedback loops. Question 4. Which of the following is a core principle of the “Shift‑Left” security approach? A) Perform security testing only after production release B) Conduct security activities as early as possible in the development lifecycle C) Shift security responsibilities to the operations team only D) Defer all threat modeling to the post‑deployment phase Answer: B Explanation: “Shift‑Left” emphasizes early integration of security—during design, coding, and testing—to catch defects sooner and reduce remediation cost. Question 5. Which threat‑modeling methodology uses the mnemonic STRIDE to identify threats? A) PASTA B) Attack Tree

Practice Exam

D) Document licensing costs for security tools Answer: B Explanation: Technical security debt captures known security weaknesses that need remediation, enabling prioritization based on risk. Question 8. Which pre‑commit hook would most likely catch a hard‑coded AWS secret key before code is pushed? A) A linting rule for code style B) A secret scanning script (e.g., git‑secret, truffleHog) C) A unit test runner D) A dependency version checker Answer: B Explanation: Secret scanning pre‑commit hooks examine diffs for patterns that resemble credentials, preventing accidental exposure. Question 9. Which practice best improves developer awareness of secure coding standards? A) Mandatory weekly security webinars only for senior staff B) Embedding interactive secure coding tutorials directly in the IDE C) Sending quarterly email newsletters with security news D) Providing a one‑time security policy document at onboarding Answer: B

Practice Exam

Explanation: In‑IDE training delivers just‑in‑time learning, reinforcing secure coding habits as developers write code. Question 10. Which OWASP Top 10 vulnerability category is directly mitigated by using prepared statements or parameterized queries? A) Broken Authentication B) Sensitive Data Exposure C) Injection D) Security Misconfiguration Answer: C Explanation: Parameterized queries prevent SQL injection by separating code from data. Question 11. Which IDE plugin can automatically flag insecure use of cryptographic APIs in Java code? A) Checkstyle B) FindBugs (now SpotBugs) with the Find Security Bugs plugin C) ESLint D) Prettier Answer: B Explanation: Find Security Bugs extends SpotBugs to detect insecure cryptographic usage, among other security issues.

Practice Exam

Question 14. Which secret‑management tool provides dynamic, short‑lived credentials for AWS IAM roles? A) HashiCorp Vault B) Azure Key Vault C) GitLab CI variables D) Docker Secrets Answer: A Explanation: Vault can generate temporary AWS IAM credentials, reducing the risk of long‑lived static secrets. Question 15. In Software Composition Analysis (SCA), what does the term “Bill‑of‑Materials (BOM)” refer to? A) A list of hardware components used in the data center B) A manifest of all third‑party libraries and their versions in an application C) A schedule of release dates for upcoming features D) A document describing the architecture diagram Answer: B Explanation: The BOM enumerates every open‑source component, enabling vulnerability detection and license compliance. Question 16. Which SCA tool integrates directly into Maven builds to fail the build on high‑severity CVEs?

Practice Exam

A) SonarQube B) OWASP Dependency‑Check C) JUnit D) Selenium Answer: B Explanation: OWASP Dependency‑Check scans Maven dependencies and can be configured to break the build when critical vulnerabilities are found. Question 17. Which of the following best describes Static Application Security Testing (SAST)? A) Analyzing running applications for runtime vulnerabilities B) Scanning source code or binaries without executing them C) Performing network‑level penetration testing D) Monitoring logs for suspicious activity in production Answer: B Explanation: SAST examines code artifacts statically to find insecure coding patterns before execution. Question 18. Which CI/CD platform feature allows you to run SAST analysis automatically on each pull request? A) GitHub Pages B) GitLab CI pipelines

Practice Exam

Answer: A Explanation: IAST runs inside the application, providing detailed insight into code paths while the app processes real inputs. Question 21. Which OWASP Top 10 category is primarily addressed by implementing proper session timeout and regeneration mechanisms? A) Broken Access Control B) Security Misconfiguration C) Broken Authentication D) Insufficient Logging & Monitoring Answer: C Explanation: Session management controls—like timeout and regeneration— prevent attackers from hijacking authenticated sessions. Question 22. Which tool is commonly used for Dynamic Application Security Testing (DAST) against web applications? A) SonarQube B) OWASP ZAP C) Checkmarx D) JFrog Artifactory Answer: B

Practice Exam

Explanation: OWASP ZAP actively crawls and attacks web applications to discover runtime vulnerabilities. Question 23. When integrating DAST into a CI pipeline, which stage is the most appropriate for its execution? A) Source code checkout B) Unit testing C) After the application is deployed to a test environment D) During artifact publishing Answer: C Explanation: DAST requires a running instance of the application, so it should run against a deployed test environment. Question 24. Which of the following is a typical challenge when using DAST tools? A) Inability to detect hard‑coded secrets in source code B) High false‑positive rate for authentication bypass due to lack of session handling C) Requirement for source code access D) Incompatibility with containerized applications Answer: B

Practice Exam

Question 27. Which IaC security scanning tool can detect insecure security group rules in AWS CloudFormation templates? A) kube‑audit B) tfsec C) cfn‑nag D) Brakeman Answer: C Explanation: cfn‑nag analyzes CloudFormation templates for security best‑practice violations, including open security groups. Question 28. In Terraform, which attribute is used to enforce encryption at rest for an AWS S3 bucket? A) versioning = true B) acl = "private" C) server_side_encryption_configuration D) lifecycle_rule Answer: C Explanation: The server_side_encryption_configuration block enables SSE‑S3 or SSE‑KMS for data at rest.

Practice Exam

Question 29. Which deployment strategy minimizes downtime by routing traffic to a new version while keeping the old version running? A) Rolling deployment B) Blue/Green deployment C) Canary deployment D) Recreate deployment Answer: B Explanation: Blue/Green deploys a parallel environment (green) and switches traffic from the current (blue) once validation passes. Question 30. Which of the following is a primary benefit of a Canary deployment from a security perspective? A) Immediate full‑scale exposure of new code to all users B) Ability to monitor security metrics on a small subset before full rollout C) Eliminates the need for automated testing D) Guarantees zero vulnerabilities in production Answer: B Explanation: Canary releases expose a limited user base, allowing detection of security issues before widespread impact. Question 31. Which configuration‑orchestration tool uses “cookbooks” and “recipes” to define system state?

Practice Exam

C) Unsupervised clustering of repository commit messages D) Reinforcement learning for automated code formatting Answer: B Explanation: Supervised models trained on past vulnerable/non‑vulnerable changes can predict risk for new commits. Question 34. Which metric is most useful for measuring the effectiveness of a DevSecOps program? A Question 34. Which metric is most useful for measuring the effectiveness of a DevSecOps program? A) Number of lines of code written per sprint B) Mean Time to Detect (MTTD) and Mean Time to Remediate (MTTR) security incidents C) Total number of commits per day D) Percentage of UI mockups approved by design Answer: B Explanation: MTTD and MTTR directly reflect how quickly security issues are identified and fixed, indicating program efficiency.

Practice Exam

Question 35. Which security concept encourages building security checks into every pipeline stage rather than as a separate “security gate”? A) Security as a Service (SECaaS) B) Security Automation C) Continuous Security D) Security Isolation Answer: C Explanation: Continuous Security embeds automated security validation throughout the pipeline, avoiding single-point gates. Question 36. In a CI/CD pipeline, which stage is the most appropriate for running a Software Composition Analysis (SCA) scan? A) Pre‑commit hook B) Build stage, after dependency resolution but before packaging C) Post‑deployment monitoring D) Release notes generation Answer: B Explanation: Running SCA after dependencies are resolved ensures the full bill‑of‑materials is available for scanning. Question 37. Which of the following is a key advantage of Runtime Application Self‑Protection (RASP) over traditional WAFs?

Practice Exam

B) Implementing multiple, overlapping security controls at network, host, application, and data layers C) Using a single encryption algorithm for all data D) Disabling logging to reduce noise Answer: B Explanation: Defense in depth layers security mechanisms so that if one control fails, others still protect the asset. Question 40. Which of the following is an effective way to reduce the attack surface of container images? A) Using the latest base image without reviewing its contents B) Running containers as the root user C) Employing minimal “distroless” base images and removing unnecessary packages D) Disabling Docker Content Trust (DCT) Answer: C Explanation: Minimal images limit the number of binaries and libraries that could contain vulnerabilities. Question 41. Which of the following is a primary function of a “secret scanning” feature in a code repository platform? A) Detecting outdated dependencies

Practice Exam

B) Identifying hard‑coded credentials, tokens, or API keys in code commits C) Measuring code coverage percentages D) Enforcing code style guidelines Answer: B Explanation: Secret scanning automatically flags accidental inclusion of secrets, preventing credential leakage. Question 42. Which of the following is NOT a recommended practice when performing manual secure code reviews? A) Reviewing code in isolation without reference to design documents B) Using a checklist aligned with OWASP Top 10 C) Pairing reviewers with complementary expertise (e.g., backend and security) D) Documenting findings and remediation steps in a tracking system Answer: A Explanation: Contextual understanding from design docs is essential; reviewing code blind can miss architectural risks. Question 43. Which CI/CD tool offers a “Security” section that can automatically import findings from SAST, DAST, and SCA tools into a unified dashboard? A) Jenkins B) GitHub Actions C) GitLab