















































































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!
















































































Question 1. Which CALMS principle emphasizes the importance of sharing knowledge and best-practice across teams? A) Culture B) Automation C) Lean D) Sharing Answer: D Explanation: The “Sharing” component of CALMS focuses on transparent communication, documentation, and the dissemination of lessons learned to improve collaboration. Question 2. In the Shift-Left security model, which activity is performed earliest in the software lifecycle? A) Penetration testing in production B) Threat modeling during requirements gathering C) Dynamic testing after deployment D) Incident response planning Answer: B Explanation: Shift-Left moves security activities such as threat modeling to the earliest phases (requirements and design) to catch issues before code is written. Question 3. Which of the following OWASP Top 10 categories is most directly mitigated by input validation and output encoding? A) Broken Authentication B) Injection C) Security Misconfiguration D) Insufficient Logging & Monitoring Answer: B Explanation: Proper input validation and output encoding prevent malicious data from being interpreted as code, directly addressing injection flaws.
Question 4. Which tool is primarily used for Software Composition Analysis (SCA) to identify vulnerable open-source components? A) SonarQube B) Snyk C) JUnit D) Terraform Answer: B Explanation: Snyk specializes in scanning dependency trees and identifying known vulnerabilities in third-party libraries. Question 5. When integrating secret management into CI pipelines, which practice prevents accidental exposure of credentials in logs? A) Storing secrets in environment variables without masking B) Using a vault with token-based access and masking output C) Hard-coding secrets in source code D) Publishing secrets to a public S3 bucket Answer: B Explanation: Vaults provide dynamic, short-lived tokens and CI tools can mask secret values in logs, reducing leakage risk. Question 6. Which of the following is a characteristic of a “Blue/Green” deployment model? A) Rolling updates across all instances simultaneously B) Maintaining two identical production environments and switching traffic C) Deploying a canary version to a small subset of users only D) Using feature flags to hide incomplete features Answer: B Explanation: Blue/Green deployments keep two parallel environments; traffic is switched from the old (blue) to the new (green) after validation.
Question 10. What is the primary advantage of Interactive Application Security Testing (IAST) over pure SAST or DAST? A) It requires no instrumentation of the application B) It provides real-time feedback during functional testing C. It only scans compiled binaries D) It runs exclusively in production environments Answer: B Explanation: IAST instruments the application during functional tests, delivering precise vulnerability data that combines static and dynamic analysis. Question 11. Which of the following statements about Runtime Application Self-Protection (RASP) is correct? A) RASP replaces the need for any upstream security testing B) RASP operates inside the application runtime to block attacks in real time C) RASP can only protect web applications written in Java D) RASP is a manual code-review technique Answer: B Explanation: RASP agents run within the application process, monitoring behavior and blocking malicious inputs as they occur. Question 12. In a CI/CD pipeline, which stage is most appropriate for executing a SAST scan? A) Planning B) Build C) Deploy D) Operate Answer: B Explanation: SAST analyzes source code without executing it, making the build stage ideal for early detection before artifacts are packaged.
Question 13. Which of the following is a common misconfiguration that IaC security scanners look for in Terraform scripts? A) Missing unit tests for modules B) Open security groups allowing 0.0.0.0/0 inbound SSH C) Use of deprecated AWS CLI commands D) Lack of comments in .tf files Answer: B Explanation: IaC scanners evaluate resource definitions; an open SSH security group is a high-risk misconfiguration frequently flagged. Question 14. Which AI/ML technique can be leveraged to prioritize security findings based on historical remediation data? A) K-nearest neighbors clustering B) Linear regression for code compilation time C) Decision-tree based risk scoring D) Convolutional neural networks for image recognition Answer: C Explanation: Decision-tree models can learn from past incident data to assign risk scores and prioritize alerts for faster remediation. Question 15. Which of the following is a primary benefit of adopting a DevSecOps culture? A) Isolating security teams from developers B) Delaying security testing until after release C) Embedding security responsibilities across all roles D) Reducing automation to increase manual oversight Answer: C Explanation: DevSecOps encourages shared responsibility, integrating security into every step of development and operations. Question 16. Which threat-modeling methodology uses the mnemonic STRIDE?
Question 19. Which of the following metrics is most indicative of the effectiveness of a DevSecOps pipeline? A) Number of lines of code per developer per day B) Mean Time to Detect (MTTD) security vulnerabilities C) Total storage used by Docker images D) Frequency of UI design changes Answer: B Explanation: MTTD measures how quickly the pipeline identifies security issues, reflecting its detection capability. Question 20. Which cloud-native service provides automated container image scanning for vulnerabilities on AWS? A) Amazon GuardDuty B) Amazon Inspector C) Amazon ECR image scan D) AWS Config Answer: C Explanation: Amazon Elastic Container Registry (ECR) includes an image scanning feature that identifies known CVEs in container layers. Question 21. Which of the following is a key difference between “Canary” and “Rolling” deployments? A) Canary releases traffic to a small subset before full rollout, while rolling updates replace instances gradually without traffic segmentation. B) Rolling deployments require two parallel environments, Canary does not. C) Canary deployments are only used for database changes. D) Rolling deployments always involve manual approval steps. Answer: A Explanation: Canary testing sends a fraction of traffic to the new version to validate behavior, whereas rolling updates replace instances sequentially without explicit traffic segregation.
Question 22. When performing manual secure code review, which of the following should be prioritized? A) Code formatting style guidelines B) Business logic correctness C) Presence of known vulnerable functions (e.g., strcpy) D) Number of unit tests written Answer: C Explanation: Manual review focuses on security-relevant patterns such as unsafe function usage that automated tools might miss. Question 23. Which of the following is a typical outcome of a successful VAPT (Vulnerability Assessment & Penetration Testing) engagement? A) Generation of a CI pipeline YAML file B) A prioritized list of exploitable findings with remediation guidance C) Automatic patching of all discovered vulnerabilities D) Removal of all third-party dependencies Answer: B Explanation: VAPT provides a report detailing discovered vulnerabilities, their risk levels, and recommended remediation steps. Question 24. Which of the following is the most appropriate place to store Terraform state files for a team working across multiple regions? A) Local filesystem on each developer’s laptop B) An encrypted S3 bucket with DynamoDB locking C) Public GitHub repository D) Plain text file attached to a Slack channel Answer: B Explanation: Storing state in an encrypted S3 bucket with DynamoDB for state locking ensures consistency, security, and concurrency control. Question 25. Which security principle is best illustrated by “defense in depth”?
B) Monitoring system calls at runtime to detect anomalous behavior C) Managing container orchestration scheduling decisions D) Providing a UI for writing Docker Compose files Answer: B Explanation: Falco watches kernel events (system calls) from containers to detect suspicious activity in real time. Question 29. Which of the following best describes “immutable infrastructure”? A) Servers are patched in place without redeployment B) Infrastructure components are never changed; new versions are deployed as fresh instances C) Configuration files are stored in a mutable database D) Developers can SSH into production servers to fix bugs Answer: B Explanation: Immutable infrastructure replaces entire instances rather than modifying them, ensuring consistency and simplifying rollback. Question 30. Which compliance framework specifically requires “Secure Software Development Lifecycle” (SSDLC) practices? A) PCI DSS B) ISO 9001 C) ITIL D) COBIT Answer: A Explanation: PCI DSS mandates that organizations implement a secure SDLC to protect payment card data throughout development. Question 31. Which of the following is an advantage of using “GitOps” for managing Kubernetes deployments? A) Directly editing live cluster resources without version control
B) Storing declarative configuration in Git and using automated agents to reconcile state C) Avoiding any automation to reduce complexity D) Requiring manual approval for every pod creation Answer: B Explanation: GitOps treats Git as the source of truth; agents continuously apply the desired state defined in the repository to the cluster. Question 32. Which of the following is a typical sign that a secret has been inadvertently committed to a public repository? A) A new branch appears in the repository B) A “secret scanning” alert from GitHub or GitLab detects high-entropy strings C) The repository size decreases suddenly D) Build times increase dramatically Answer: B Explanation: Platforms provide secret-scanning alerts when they detect patterns resembling API keys, passwords, or tokens in commits. Question 33. Which of the following is the most appropriate way to enforce “least privilege” for a CI runner on Azure DevOps? A) Grant the runner Owner rights on the subscription B) Assign a custom role that only allows read access to the artifact feed and write access to the target resource group C) Use the default “Project Collection Build Service” with full permissions D) Provide the runner with a personal access token (PAT) that has “All Scopes” Answer: B Explanation: Crafting a scoped custom role limits the runner to only the permissions required for its tasks, embodying least privilege. Question 34. Which of the following describes the primary purpose of “feature flags” in a DevSecOps pipeline? A) Encrypting source code during transport
C) Requirement for a monolithic UI D) Lack of authentication handling Answer: B Explanation: DAST tools that ingest OpenAPI specs can efficiently explore API endpoints, authenticate, and test each microservice. Question 38. Which of the following is the most effective method to reduce “attack surface” of a container image? A) Using the latest Ubuntu base image B) Adding unnecessary debugging tools to the image C) Building the image with a minimal base like Alpine and removing unused packages D) Including all development dependencies in the final image Answer: C Explanation: Minimal base images reduce the number of packages and libraries, limiting potential vulnerabilities. Question 39. Which of the following best describes “policy as code” in a DevSecOps context? A) Writing security policies in natural language only B) Encoding compliance rules in a programmable language that can be version-controlled and automatically enforced C) Storing policies in a PDF document attached to the repository D) Using manual checklists during post-deployment audits Answer: B Explanation: Policy as code treats security/compliance rules as code, allowing automated validation during CI/CD. Question 40. Which of the following cloud services can automatically enforce encryption at rest for all newly created storage buckets? A) AWS S3 default encryption setting B) Azure DevOps Boards
C) Google Cloud Pub/Sub D) AWS CloudWatch Logs Answer: A Explanation: S3 bucket default encryption can be configured to apply SSE-S3 or SSE-KMS to every object uploaded to the bucket. Question 41. Which of the following is a primary benefit of integrating AI-driven security triage into a CI pipeline? A) Eliminating the need for any human security analysts B) Reducing the time to prioritize high-severity findings by learning from past remediation patterns C) Automatically writing secure code for developers D) Generating random security alerts to test the system Answer: B Explanation: AI can analyze historical data to rank alerts, helping teams focus on the most critical issues faster. Question 42. Which of the following statements about “container image provenance” is true? A) It refers to the runtime memory usage of a container B) It tracks the origin, build steps, and signatures of an image to verify authenticity C) It is only relevant for Windows containers D) It is automatically handled by Docker without configuration Answer: B Explanation: Provenance provides a cryptographic chain of custody showing how an image was built and signed. Question 43. Which of the following is the most appropriate way to manage “technical security debt” in a backlog? A) Treat it as a separate, non-prioritized list
A) Amazon GuardDuty B) AWS Config Rules with AWS CloudFormation Guard C) Amazon S D) AWS Lambda@Edge Answer: B Explanation: Config Rules combined with CloudFormation Guard can evaluate templates against policy rules before deployment. Question 47. Which of the following is the most suitable method to test the effectiveness of an organization’s incident response plan? A) Conducting a tabletop exercise simulating a breach scenario B. Deploying a new feature without testing C. Removing all monitoring tools D. Ignoring security alerts for a week Answer: A Explanation: Tabletop exercises allow teams to walk through response steps in a controlled environment, assessing readiness. Question 48. Which of the following describes “blue-team” responsibilities in a DevSecOps environment? A) Actively attempting to exploit system vulnerabilities B) Designing, implementing, and monitoring security controls C) Writing user interface mockups D. Managing feature rollout schedules Answer: B Explanation: Blue-team roles focus on defensive security—building and operating protective measures. Question 49. Which of the following is a key security advantage of using “service mesh” technologies like Istio? A) Automatic code generation for microservices
B) Centralized mTLS encryption and fine-grained traffic policies without modifying application code C) Replacing all existing CI pipelines D) Providing a UI for writing Dockerfiles Answer: B Explanation: Service meshes can enforce mutual TLS and traffic controls at the network layer, enhancing security transparently. Question 50. In the context of CI/CD, what does “drift detection” refer to? A) Detecting changes in source code formatting style B) Identifying differences between declared IaC configurations and the actual state of deployed resources C. Measuring latency variations in API responses D. Tracking developer attendance in daily stand-ups Answer: B Explanation: Drift detection ensures that infrastructure matches the intended declarative definitions, preventing configuration drift. Question 51. Which of the following is a recommended practice when storing Docker registry credentials in a CI pipeline? A) Hard-code them in the pipeline YAML file B) Use encrypted CI variables and restrict their exposure to jobs that need them C) Publish them as public environment variables D) Store them in a plain-text file in the repository root Answer: B Explanation: Encrypted CI variables keep secrets hidden from logs and limit their scope to necessary jobs. Question 52. Which of the following best explains the “principle of fail-closed” in security controls? A) Systems remain operational even if security checks fail
A) Trusting all traffic within the same VPC automatically B) Verifying every request, regardless of origin, before granting access to resources C. Disabling all firewalls to simplify network design D. Relying solely on VPNs for security Answer: B Explanation: Zero-trust assumes no implicit trust; each request is authenticated and authorized before access is allowed. Question 56. Which of the following is a common indicator that a container image contains unnecessary privileged access? A) The Dockerfile includes USER root without a later USER change B) The image size is less than 10 MB C) The image uses Alpine as base D) The container runs with read-only filesystem Answer: A Explanation: Running as root inside a container increases the risk of privilege escalation if the container is compromised. Question 57. Which of the following is the most appropriate way to enforce “secure defaults” in a newly provisioned Kubernetes cluster? A) Disable all network policies and let traffic flow freely B) Enable RBAC, use PodSecurityPolicies (or PSP replacements), and enable audit logging from the start C) Allow anonymous access to the API server D) Turn off TLS for the API server Answer: B Explanation: Enabling RBAC, pod security policies, and audit logging establishes a secure baseline for the cluster. Question 58. Which of the following is a primary advantage of using “policy-driven CI pipelines” with tools like OPA (Open Policy Agent)?
A) Eliminating the need for any testing B) Enforcing compliance checks as code during build, preventing non-compliant artifacts from progressing C) Providing a graphical UI for developers to design pipelines D) Automatically writing documentation for code Answer: B Explanation: OPA can evaluate policies during CI, blocking builds that violate security or compliance rules. Question 59. Which of the following best describes the concept of “security debt” in agile development? A) The total number of user stories in the backlog B) The accumulation of postponed security work that must be addressed later, similar to technical debt C) The financial cost of buying security tools D) The amount of time developers spend on training Answer: B Explanation: Security debt reflects shortcuts taken for speed that create future security remediation tasks. Question 60. Which of the following is the most effective method for detecting hard-coded credentials in a large codebase? A) Manual code review of every file B) Using a secret-scanning tool that searches for high-entropy strings and patterns across the repository C) Relying on developers to remember not to hard-code secrets D) Disabling all CI pipelines to avoid exposure Answer: B Explanation: Automated secret-scanners can quickly locate potential credentials across many files, reducing reliance on manual effort.