Exam Information
Free practice questions with explanations
Eccouncil 312-97 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 14
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice DevSecOps Pipeline-Build and Test Stage
A fintech team runs a Jenkins pipeline that builds a Java service and deploys to AWS. Their SAST tool is configured to fail the build on any High or Critical finding. After a recent merge, the pipeline fails on a finding that exists in a third-party library's test utilities, which are excluded from the production artifact. The security team wants to keep the gate strict for production code but must not disable the SAST stage. Which action is the BEST next step?
Correct Answer: BExplanationScoping the scan to production source and recording a documented suppression keeps the gate strict where it matters while leaving an audit trail. Removing the stage breaks the requirement that SAST runs on every build. Lowering the threshold to Medium adds noise and blocks more builds without improving production security. Marking the whole repository as trusted silences all future findings, which defeats the purpose of the gate and is an unjustified exemption.
-
2 Question 2 Single choice DevSecOps Pipeline-Code Stage
A development team enables GitHub code scanning with CodeQL on a private repository. Developers complain that alerts appear only after a pull request is merged into the main branch, so vulnerabilities reach the default branch before anyone reviews them. The security lead wants findings to block merges before code reaches main, without writing custom workflow logic. Which configuration meets the requirement?
Correct Answer: DExplanationRunning the CodeQL workflow on pull_request events and making it a required status check in branch protection prevents merges until the analysis passes. A scheduled run on main still lets vulnerable code land first. Dependabot addresses dependency upgrades, not code-level findings from CodeQL. Secret scanning push protection targets credentials rather than the static analysis results the security lead wants gated.
-
3 Question 3 Single choice DevSecOps Pipeline-Operate and Monitor Stage
A retail company runs a Kubernetes cluster and wants to block container images that contain known critical CVEs from being deployed. The platform team already scans images in CI with Trivy. An auditor notes that images pushed directly to the registry by an out-of-band process bypass CI and can still be deployed. The team needs enforcement at admission time with minimal operational change. Which approach is MOST appropriate?
Correct Answer: DExplanationAdmission controllers evaluate every pod creation request regardless of how the image got into the registry, so they close the bypass path. Verifying signatures and scan attestations enforces the policy at deployment time. A nightly scan is detective, not preventive. A read-only root filesystem hardens runtime but does not check image vulnerabilities. A NetworkPolicy on egress does not affect which images are admitted.
-
4 Question 4 Single choice DevSecOps Pipeline-Plan Stage
A healthcare SaaS team is starting a new patient-portal feature. The architect runs a threat modeling workshop during sprint planning and identifies spoofing and information disclosure risks on the new file upload flow. The team wants the threat model to stay current as the design evolves through the pipeline without rewriting a large document each sprint. Which practice BEST satisfies this requirement?
Correct Answer: DExplanationKeeping the threat model as versioned artifacts alongside code means changes to data flows are reviewed in the same pull request as the design change, which is the essence of continuous threat modeling. A one-time design exercise goes stale as features change. An annual penetration test is a testing activity, not a design-stage control. Training helps people but does not keep a model of the system current.
-
5 Question 5 Single choice DevSecOps PipelineRelease and Deploy Stage
A team deploys a Terraform-managed AWS environment for a payments service. The security policy requires that every S3 bucket is encrypted with a customer-managed KMS key and that public access is blocked. A review finds that a new bucket was created by a manual console action that bypassed the pipeline. The team wants to detect and correct such drift continuously with the least custom code. Which action is the BEST choice?
Correct Answer: DExplanationAWS Config managed rules evaluate resource compliance continuously and can trigger remediation, while terraform plan in the pipeline reveals drift between declared and actual state. Weekly manual applies leave gaps and are not continuous. Removing console permissions alone does not detect existing drift, and the state file does not reflect changes made outside Terraform. The prevent_destroy lifecycle argument blocks deletion; it does not enforce encryption or public access settings.
-
6 Question 6 Single choice Introduction to DevSecOps
A logistics company is moving from quarterly releases to daily deployments. Security reviews are performed by a separate team after development completes, and the release manager has been approving exceptions to avoid delays. Leadership asks for a strategy that keeps security controls effective at higher deployment frequency without adding a manual gate for each release. Which strategy is MOST aligned with DevSecOps principles?
Correct Answer: DExplanationDevSecOps shifts security left and makes it continuous by building automated checks into every pipeline stage, with shared responsibility across teams. Expanding a manual review team does not scale with daily deployments. Capping release frequency contradicts the business goal. Outsourcing per-release review recreates the same bottleneck and removes ownership from development.
-
7 Question 7 Single choice DevSecOps Pipeline-Build and Test Stage
A team runs OWASP ZAP in its pipeline against a staging web application deployed to Azure. The scan reports missing security headers and a reflected XSS finding, but the team also needs to test authenticated areas behind a login flow with MFA. Scans currently only cover the public login page. Which change MOST directly enables authenticated dynamic testing?
Correct Answer: DExplanationAuthenticated DAST requires the scanner to hold a valid session, which ZAP supports through authentication contexts and session handling. A longer spider still cannot pass a login gate. Passive mode only inspects traffic and does not explore or attack authenticated functionality. Scanning production adds risk and does not solve the authentication problem by itself.
-
8 Question 8 Multiple choice DevSecOps Pipeline-Code Stage
A company wants to stop developers from committing hard-coded credentials and to detect any that reach the repository. The DevOps lead asks which TWO controls address both prevention and detection. (Choose two.)
Correct Answer: B, DExplanationPush protection blocks secrets at the server before they enter history, and a pre-commit hook prevents them from leaving the workstation. Password rotation limits the impact of leaked credentials but neither prevents nor detects their commit. Disk encryption protects data at rest from physical theft, not from credentials in code. Restricting read access does not stop a committed secret from being exposed to anyone with access, nor detect it.
-
9 Question 9 Multiple choice DevSecOps Pipeline-Operate and Monitor Stage
A bank runs its Azure workloads in a landing zone and must detect suspicious sign-in and privileged activity while retaining logs for audit. The security architect asks which TWO configurations satisfy these requirements. (Choose two.)
Correct Answer: B, CExplanationDefender for Cloud produces security alerts that can feed Sentinel for correlation, and Entra ID diagnostic settings export sign-in and audit logs needed for detection and audit. The Cool tier lowers cost but does not provide detection. A CPU metric alert is operational rather than security-focused. A read-only lock prevents changes to resources but does not monitor for suspicious activity.
-
10 Question 10 Order list DevSecOps PipelineRelease and Deploy Stage
A platform team must add a binary authorization control so that only images attested by its approved build pipeline can run on a GKE cluster in Google Cloud. The following steps are listed out of order: Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Enable the Binary Authorization API and configure the cluster to enforce the policy.
- Have the pipeline sign the image digest and create an attestation after the security scans pass.
- Define a policy that requires attestations from the attestor for the target project.
- Create an attestor and associated Container Analysis note for the build pipeline.
Correct Answer:- Create an attestor and associated Container Analysis note for the build pipeline.
- Define a policy that requires attestations from the attestor for the target project.
- Enable the Binary Authorization API and configure the cluster to enforce the policy.
- Have the pipeline sign the image digest and create an attestation after the security scans pass.
ExplanationThe attestor and its note must exist before a policy can reference them, so step 2 comes first. The policy requiring that attestor is defined next. Enabling enforcement on the cluster follows once the policy is in place. Attestations are created by the pipeline and are only consumed by the enforcing policy, so signing happens after the policy and attestor exist. Enabling the API first and signing images last in option B would leave a policy referencing a nonexistent attestor.
-
11 Question 11 Order list DevSecOps Pipeline-Plan Stage
A product team wants to add security requirements to a new feature for account recovery before development begins. The following steps are listed out of order: Drag the steps into the correct order.
Drag the steps into the correct order, or use the arrows.
- Review the threat model with the product owner and architect.
- Translate each high-risk threat into a testable security user story with acceptance criteria.
- Identify threats using data flow diagrams and assign risk ratings.
- Create a data flow diagram of the account recovery process including trust boundaries.
Correct Answer:- Create a data flow diagram of the account recovery process including trust boundaries.
- Identify threats using data flow diagrams and assign risk ratings.
- Review the threat model with the product owner and architect.
- Translate each high-risk threat into a testable security user story with acceptance criteria.
ExplanationThreat identification depends on a data flow diagram with trust boundaries, so the diagram comes first. Threats are then enumerated and rated, reviewed with stakeholders, and only then converted into testable requirements. Placing the requirements before the threat identification in option C would mean the stories are not grounded in identified risk. Option D reviews the threats before they are rated, and option B identifies threats before any diagram exists.
-
12 Question 12 Single choice DevSecOps Pipeline-Operate and Monitor Stage
A team is hardening its Jenkins controller and agents. Match each item to the hardening control it represents.
1. Agents that build untrusted pull requests
2. Plugin updates that include security advisories
3. Administrator access to the controller UI
Targets:
A. Run builds on ephemeral agents with no access to controller credentials
B. Enforce role-based access with least privilege and require SSO
C. Track the Jenkins security advisories and update affected plugins promptlyCorrect Answer: AExplanationUntrusted pull request builds should run on isolated ephemeral agents without controller credentials, so an attacker cannot reach secrets. Advisory-driven plugin updates address the vulnerability in plugins themselves. Restricting controller administration through least-privilege roles and SSO addresses who can change configuration. Option D pairs the advisory tracking with access control and the agent isolation with plugin updates, mismatching the controls.
-
13 Question 13 Dropdown DevSecOps Pipeline-Build and Test Stage
A team runs an IAST agent inside its staging application and wants the pipeline to fail if the agent reports a confirmed injection flaw during the functional test run. The job runs the test suite against the instrumented build and then queries the results. The configuration line in the pipeline script is: Choose the correct value for each blank.
Choose the correct value for each blank.
if [ $(count_findings --severity --status confirmed) -gt 0 ]; then exit ; fiCorrect Answer:if [ $(count_findings --severity High --status confirmed) -gt 0 ]; then exit 1; fi
ExplanationAn exit code of 1 makes the pipeline stage fail, which is the intended gate, and High severity matches the stated requirement for injection flaws confirmed by the agent. Exiting with 0 would signal success and let the build pass. Setting the severity to Low would ignore the stated risk threshold. An exit code of 255 also fails the stage, but it is a nonstandard choice with no advantage here, and it is less conventional for this kind of gate than 1.
-
14 Question 14 Dropdown Understanding DevOps Culture
A regulated enterprise on AWS wants its deployment pipeline to start a new environment in a second Region if the primary Region becomes unavailable, with a recovery time objective of 30 minutes. The Route 53 health check configuration is set up for the primary endpoint and the team must specify the record behaviour. Choose the correct value for each blank.
Choose the correct value for each blank.
Policy setting: failover routing with a health check attached to the record, and the secondary record uses the routing type.Correct Answer:Policy setting: failover routing with a health check attached to the PRIMARY record, and the secondary record uses the SECONDARY routing type.
ExplanationRoute 53 failover routing uses PRIMARY and SECONDARY record types, with the health check attached to the primary record so traffic shifts when it fails. Weighted and latency routing distribute traffic by weight or latency rather than failing over. Geolocation routes by user location and does not implement failover. The label ACTIVE is not a Route 53 failover record type.
These are 14 of the 100 questions in the full 312-97 pack.
Get All 100 QuestionsGet all 100 questions & answers
Full access options for Eccouncil 312-97
Self-study
PDF Version
- 100 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 100 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 100 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the 312-97 Exam (EC-Council Certified DevSecOps Engineer) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.