Docsity

PrepIQ MDSO Certified DevSecOps Engineer Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ MDSO Certified DevSecOps
Engineer Ultimate Exam
**Question 1. Which of the three ways of DevOps focuses on optimizing the
flow of work from development to operations?**
A) The First Way – Flow
B) The Second Way – Feedback
C) The Third Way – Continual Learning
D) The Fourth Way – Automation
Answer: A
Explanation: The First Way emphasizes reducing handoffs, batch sizes, and
delays to improve the smooth flow of value through the pipeline.
**Question 2. In a DevSecOps culture, the primary purpose of “shift-left” is
to:**
A) Move security testing to production environments
B) Perform security activities earlier in the software lifecycle
C) Defer compliance checks until after release
D) Centralize security responsibilities in a single team
Answer: B
Explanation: Shift-left means integrating security controls and testing as
early as possible (e.g., during coding and CI) to catch defects sooner.
**Question 3. Which maturity model is specifically designed for assessing
DevSecOps capabilities?**
A) CMMI
B) OWASP SAMM
C) ITIL
D) COBIT
Answer: B
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

Partial preview of the text

Download PrepIQ MDSO Certified DevSecOps Engineer Ultimate Exam and more Exams Technology in PDF only on Docsity!

Engineer Ultimate Exam

Question 1. Which of the three ways of DevOps focuses on optimizing the flow of work from development to operations? A) The First Way – Flow B) The Second Way – Feedback C) The Third Way – Continual Learning D) The Fourth Way – Automation Answer: A Explanation: The First Way emphasizes reducing handoffs, batch sizes, and delays to improve the smooth flow of value through the pipeline. Question 2. In a DevSecOps culture, the primary purpose of “shift-left” is to: A) Move security testing to production environments B) Perform security activities earlier in the software lifecycle C) Defer compliance checks until after release D) Centralize security responsibilities in a single team Answer: B Explanation: Shift-left means integrating security controls and testing as early as possible (e.g., during coding and CI) to catch defects sooner. Question 3. Which maturity model is specifically designed for assessing DevSecOps capabilities? A) CMMI B) OWASP SAMM C) ITIL D) COBIT Answer: B

Engineer Ultimate Exam

Explanation: OWASP Software Assurance Maturity Model (SAMM) provides a framework for evaluating and improving security practices in software development. Question 4. When hardening a Jenkins build server, which of the following is the most effective “least privilege” measure? A) Running the Jenkins master as root B) Granting the Jenkins service account admin rights on the host OS C) Using a dedicated service account with only the required plugin permissions D) Disabling all credential bindings Answer: C Explanation: A dedicated service account limited to the exact permissions needed minimizes the blast radius if the server is compromised. Question 5. Which GitHub Action token scope is sufficient for reading repository secrets and publishing artifact packages? A) repo, workflow, and packages B) admin:org C) read:org only D) delete_repo Answer: A Explanation: The combination of repo, workflow, and packages scopes gives the action permission to access code, run workflows, and push packages while avoiding unnecessary elevated rights. Question 6. In a CI pipeline, which stage should run static application security testing (SAST) to achieve true shift-left? A) After the deployment to production

Engineer Ultimate Exam

Question 9. Which OWASP ZAP mode is best suited for automated CI scans that require no manual interaction? A) Manual Explore B) Spider + Active Scan in “daemon” mode C) Traditional UI mode D) Forced Browse only Answer: B Explanation: Running ZAP in daemon mode with scripted spider and active scans enables fully automated, headless security testing in CI pipelines. Question 10. In a Kubernetes environment, Binary Authorization primarily enforces which security control? A) Network policy compliance B) Image provenance and signature verification before pod creation C) Runtime memory protection D) Secret encryption at rest Answer: B Explanation: Binary Authorization checks that container images are signed by trusted authorities before they are allowed to run in the cluster. Question 11. Which IaC scanning tool is native to AWS and can evaluate CloudFormation templates for security best practices? A) Checkov B) CloudFormation Guard (cfn-guard) C) tfsec D) KICS Answer: B

Engineer Ultimate Exam

Explanation: AWS CloudFormation Guard provides a policy-as-code language to validate CloudFormation templates against custom security rules. Question 12. When scanning Terraform code with Checkov, which severity level is assigned to a rule that disallows public S3 bucket access? A) INFO B) LOW C) MEDIUM D) HIGH Answer: D Explanation: Public read/write access to S3 buckets is considered a high-severity misconfiguration because it can expose data to the internet. Question 13. Which of the following is the most appropriate way to prevent accidental secret leakage in Git history? A) Rely on .gitignore to exclude secret files B) Use pre-commit hooks that run Gitleaks on staged changes C) Store secrets in plain text in the repository for auditability D) Encrypt the entire repository with a passphrase Answer: B Explanation: Pre-commit hooks that invoke Gitleaks scan staged files and reject commits containing secrets, providing proactive protection. Question 14. Which secret management solution offers dynamic, short-lived credentials for AWS services? A) HashiCorp Vault AWS secrets engine B) Kubernetes ConfigMaps C) Docker secrets stored in plain text

Engineer Ultimate Exam

Question 17. Which of the following is a primary advantage of using the “Infrastructure as Code” approach for security? A) It eliminates the need for any runtime security controls B) Security policies can be version-controlled and reviewed like code C) It makes manual configuration faster D) It guarantees zero-day vulnerability protection Answer: B Explanation: IaC enables security policies to be codified, stored in version control, and reviewed via pull requests, improving auditability and consistency. Question 18. Which of the following Kubernetes admission controllers can enforce that only images signed with a trusted key are allowed to run? A) PodSecurityPolicy B) ImagePolicyWebhook (part of Binary Authorization) C) ResourceQuota D) HorizontalPodAutoscaler Answer: B Explanation: An admission webhook like ImagePolicyWebhook validates image signatures before the pod is admitted, enforcing trusted image policies. Question 19. In the context of Runtime Application Self-Protection (RASP), which capability is unique compared to a traditional WAF? A) Blocking traffic based on IP reputation B) Inspecting and modifying application-level calls in memory at runtime C) Performing SSL termination at the edge D) Logging HTTP request headers only

Engineer Ultimate Exam

Answer: B Explanation: RASP agents run inside the application process, allowing them to monitor and intervene on internal calls, something a network-based WAF cannot do. Question 20. Which Prometheus metric type is most appropriate for tracking the number of failed authentication attempts per minute? A) Gauge B) Counter C) Histogram D) Summary Answer: B Explanation: Counters monotonically increase; they are ideal for counting discrete events such as authentication failures over time. Question 21. Which compliance-as-code tool uses the “profiles” concept to define reusable audit checks? A) InSpec B) OpenSCAP c) Chef Compliance D) Terraform Sentinel Answer: A Explanation: InSpec profiles contain a collection of controls that can be applied across environments, enabling reusable compliance testing. Question 22. When integrating SonarQube for SAST, which quality gate condition typically fails the build? A) New bugs > 0

Engineer Ultimate Exam

Question 25. Which of these container image scanning tools can be run as a GitHub Action to fail a PR if high-severity CVEs are found? A) Trivy B) Docker Compose C) Helm D) kube-val Answer: A Explanation: Trivy has an official GitHub Action that scans images and can set the job status to failure based on severity thresholds. Question 26. In a CI pipeline, what is the primary purpose of a “pipeline artifact” that contains the SBOM? A) To serve as the container runtime image B) To provide downstream jobs with a list of components for licensing and vulnerability checks C) To replace the compiled binary D) To store secret keys for deployment Answer: B Explanation: An SBOM artifact supplies downstream stages (e.g., release, compliance) with a detailed inventory of all software components. Question 27. Which of the following is a recommended way to mitigate “dependency confusion” attacks in a private package registry? A) Disable all external package sources B) Use unique namespace prefixes for internal packages and enforce strict name-resolution policies C) Store all packages in a public Docker Hub repository

Engineer Ultimate Exam

D) Allow any user to publish to the internal registry without authentication Answer: B Explanation: Namespacing and strict resolution prevent attackers from publishing malicious packages with the same name as internal ones. **Question 28. Which of the following describes the “Third Way” of DevOps? ** A) Optimize flow of work from development to operations B) Create fast feedback loops C) Foster a culture of continual experimentation and learning D) Automate all manual processes Answer: C Explanation: The Third Way emphasizes a culture of learning, experimentation, and a willingness to take calculated risks. Question 29. Which of the following is a common misconfiguration that Checkov flags in an AWS security group? A) Allowing inbound traffic on port 22 from 0.0.0.0/ B) Using HTTPS for outbound traffic C) Enabling VPC flow logs D) Tagging resources with Owner Answer: A Explanation: Open SSH (port 22) to the internet is a high-risk configuration that Checkov identifies as a security issue. Question 30. Which of the following best explains the concept of “immutable infrastructure”? A) Updating running VMs in place with patches

Engineer Ultimate Exam

Explanation: Sentinel evaluates policies during pipeline execution, preventing non-compliant resources from being created. Question 33. Which of these is a recommended practice for managing secrets in a Kubernetes cluster? A) Storing them as plain-text ConfigMaps B) Using HashiCorp Vault Agent Injector to inject secrets as temporary files C) Committing them into Helm chart values.yaml D) Exposing them via environment variables in the pod spec without encryption Answer: B Explanation: Vault Agent Injector securely retrieves secrets at pod start and writes them to memory-only files, reducing exposure. Question 34. Which of the following tools is specifically designed to test for insecure default credentials in container images? A) Anchore Engine B) Trivy C) Docker Bench for Security D) Snyk Container Answer: C Explanation: Docker Bench runs CIS Docker Benchmark checks, including detection of default or weak credentials. **Question 35. In the context of CI/CD, what does “pipeline as code” refer to? ** A) Writing the entire application in a single script file B) Defining the CI/CD workflow in a version-controlled declarative file (e.g., Jenkinsfile, .gitlab-ci.yml)

Engineer Ultimate Exam

C) Storing binaries in source control D) Using a drag-and-drop UI to create pipelines Answer: B Explanation: Pipeline as code stores the pipeline definition alongside application code, enabling review, versioning, and reuse. Question 36. Which of the following is the most effective way to prevent “dependency confusion” in a Python project that uses both internal and public PyPI packages? A) Use the --extra-index-url flag pointing only to the internal repository B) Disable pip’s cache C) Publish all internal packages to the public PyPI with a unique prefix D) Turn off pip install entirely Answer: A Explanation: By specifying only the internal index (or using --trusted-host), pip will not fall back to the public PyPI, mitigating name-collision attacks. Question 37. Which of the following scanning tools can be used to detect hard-coded secrets in compiled binaries? A) Gitleaks B) TruffleHog C) Binwalk D) Semgrep Answer: C Explanation: Binwalk can analyze binary files for embedded strings, which can include secret values that were compiled into the artifact.

Engineer Ultimate Exam

Explanation: Defense-in-depth advocates overlapping security measures across layers to mitigate the impact of a breach. Question 41. Which of the following is the primary purpose of a “service mesh” like Istio in a DevSecOps context? A) To replace Kubernetes itself B) To provide mutual TLS, traffic encryption, and fine-grained access control between services C) To store container images D) To manage CI pipeline schedules Answer: B Explanation: Service meshes enforce security policies (e.g., mTLS) at the network layer between microservices, enhancing runtime security. Question 42. Which of the following is the correct order of steps for a typical “scan-build-deploy” CI workflow? A) Deploy → Scan → Build B) Build → Scan → Deploy C) Scan → Deploy → Build D) Deploy → Build → Scan Answer: B Explanation: The code is built first, then scanned for vulnerabilities, and only if the scan passes does deployment occur. Question 43. Which of these tools can enforce “policy as code” for Terraform plans before they are applied? A) Terraform Cloud Sentinel B) Ansible Lint

Engineer Ultimate Exam

C) Chef InSpec D) Pylint Answer: A Explanation: Sentinel policies can be attached to Terraform Cloud workspaces to evaluate plans and reject non-compliant changes. Question 44. Which of the following is a key advantage of using “GitOps” for continuous delivery? A) It eliminates the need for version control B) All environment state is stored declaratively in Git, enabling automated reconciliation and auditability C) It requires no automation tooling D) It only works with on-premise servers Answer: B Explanation: GitOps treats Git as the source of truth for infrastructure and application state, allowing automated agents to sync live environments. Question 45. When configuring a Jenkins pipeline to use a secret from HashiCorp Vault, which plugin is most appropriate? A) Credentials Binding Plugin B) Vault Plugin C) Git Plugin D) Docker Plugin Answer: B Explanation: The Vault Plugin fetches secrets at runtime and injects them into the build environment securely.

Engineer Ultimate Exam

Explanation: TLS secrets of type kubernetes.io/tls are designed for storing certificates and keys securely and can be mounted into pods. Question 49. Which of the following is a primary reason to use “canary deployments” in a DevSecOps pipeline? A) To replace all testing with production traffic B) To expose a small percentage of users to a new version, allowing early detection of security regressions C) To eliminate the need for rollback mechanisms D) To automatically delete old versions after deployment Answer: B Explanation: Canary releases limit exposure, enabling monitoring for unexpected behavior (including security issues) before full rollout. Question 50. Which of the following tools can be used to enforce compliance checks for Kubernetes resources using Rego policies? A) OPA (Open Policy Agent) Gatekeeper B) SonarQube C) Trivy D) Jenkinsfile Runner Answer: A Explanation: OPA Gatekeeper evaluates Rego policies against Kubernetes admission requests, providing compliance-as-code enforcement. Question 51. In the context of CI/CD, what does “artifact promotion” refer to? A) Deleting old artifacts automatically B) Moving a verified build artifact from a lower environment (e.g., dev) to a higher one (e.g., prod) without rebuilding

Engineer Ultimate Exam

C) Changing the artifact’s file extension D) Randomly selecting an artifact for deployment Answer: B Explanation: Promotion re-uses the same artifact that passed earlier tests, guaranteeing consistency across environments. Question 52. Which of the following is the most appropriate way to ensure that a Terraform module does not contain hard-coded AWS secret keys? A) Use terraform fmt to format the code B) Run a static analysis tool like tfsec that flags hard-coded secrets C) Rely on manual code review only D) Store keys in a .tfvars file committed to Git Answer: B Explanation: tfsec scans Terraform code for patterns such as plaintext credentials and raises a finding. Question 53. Which of the following best describes the role of “runtime vulnerability scanning” in containers? A) Scanning the image before it is built B) Continuously monitoring the container’s process memory and file system for known exploits while it runs C) Only checking the Dockerfile syntax D) Disabling all network ports in the container Answer: B Explanation: Runtime scanners (e.g., Falco, Aqua Trivy Runtime) watch running containers for suspicious activity indicative of exploitation.