Question 410 An online enrollment site has fragile legacy input forms. The team wants to evaluate a new WAF managed ruleset without accidentally blocking customers during the baseline period. How should rollout start? Run the WAF in detection mode, review matched requests, then enable prevention with tested exclusions Start in prevention mode with every rule disabled and infer readiness from the absence of alerts Remove input validation in the app because the WAF will validate all business rules Whitelist all internet users for one month so the WAF can learn traffic patterns Explanation Correct Answer A:Detection mode gathers request matches without enforced blocks, supporting evidence-based tuning before prevention. Incorrect Answers B:A fully disabled rule set provides little useful detection evidence for potential false positives. C:A WAF does not replace application-level validation of legitimate inputs and business constraints. D:Whitelisting everyone defeats the purpose of evaluating the attack protection policy.
Question 411 A web app lets customers upload evidence directly to a storage container. It should avoid exposing the storage account key to browsers and constrain each upload. What approach is preferable? Distribute the storage account key in JavaScript and rotate it once a year Issue a short-lived, scoped user delegation SAS after authorizing the upload request Make the container public-write and rely on object names to separate users Give each browser permanent Storage Blob Data Owner rights at subscription scope Explanation Correct Answer B:A short-lived user delegation SAS constrains the permitted blob operation and avoids account-key disclosure. Incorrect Answers A:Account keys give broad powers and cannot be kept secret in publicly delivered JavaScript. C:Public anonymous write exposes the service to unauthorized uploads and resource abuse. D:Subscription-wide owner rights are far broader than a single authorized upload.
Question 412 An engineering team publishes container images built with floating base-image tags. A new base image unexpectedly introduces a vulnerable dependency between tests and release. Which control best improves reproducibility? Use the same floating tag but rebuild images twice before deployment Silence vulnerability alerts for third-party layers because they are not application code Pin approved image digests and verify provenance and vulnerability findings at promotion Give developers rights to edit production container images after deployment Explanation Correct Answer C:Digest pinning and provenance checks preserve tested artifact identity across deployment stages. Incorrect Answers A:Rebuilding a mutable tag does not guarantee the same base-image bytes were used. B:Third-party layers remain in the runtime attack surface and require patch and exception assessment. D:Editing live production images breaks traceability and can bypass tested release controls.
Question 413 A private package feed is used by CI. An attacker pushes a higher-version package with a familiar name that the build resolves instead of the internally reviewed library. Which control best closes the dependency-confusion route? Make the CI agent run as Global Administrator to access every feed Download packages over HTTPS without controlling resolution order Disable version locking so the newest dependency always wins Pin internal package sources and versions and restrict trusted feed precedence in CI Explanation Correct Answer D:Trusted source mapping and locked versions prevent unintended public packages from replacing internal dependencies. Incorrect Answers A:Privilege escalation does not establish package integrity and magnifies compromise impact. B:TLS secures delivery from the chosen source but not whether the source or package is the intended one. C:Floating versions increase the chance of resolving an unexpected malicious package.
Question 414 An organization finds production API keys committed into development branches months after deployment. What control is the earliest useful automated prevention point? Run secret detection at commit and pull-request time and revoke any credential that escaped Depend on monthly production penetration tests to find leaked repository tokens Encrypt application logs but continue storing credentials in source code Require a signed and passing application build before merge, then inspect committed secrets only in quarterly repository security reviews Explanation Correct Answer A:Pre-merge scanning catches exposed values early, and any already leaked token must be rotated or revoked. Incorrect Answers B:Periodic production tests are too late to stop repository credential exposure. C:Log encryption does not protect secrets embedded in version-control history. D:A successful build does not detect a newly committed API key at the earliest prevention point or revoke exposed credentials.
Question 415 A software bill of materials lists two vulnerabilities: a critical vulnerable library not loaded anywhere, and a high-severity library reachable through an unauthenticated internet API. Which risk decision is defensible? Fix the inactive library first solely because its CVSS number is higher Prioritize the externally reachable exploit path while documenting and tracking both findings Dismiss both issues because components with open-source licenses are not under the organization's control Assess risk only by comparing the age of the vulnerable package versions Explanation Correct Answer B:Exposure, exploitability and business impact together guide the remediation order. Incorrect Answers A:Severity matters, but exploit reachability can make the internet-exposed pathway the more immediate risk. C:Using open-source software does not eliminate operational responsibility to mitigate known vulnerabilities. D:Package age is not a sufficient measure of exploit reachability or consequence.
Question 416 Build runners are rebuilt frequently, but release signing keys are stored on the same agents. A compromised runner could sign an attacker-controlled artifact. Which design separates that trust boundary? Store encrypted signing keys in every build image so signing requires no external dependency Rely on private network placement of the runner alone for signer integrity Use a dedicated signing service or HSM-backed key with short-lived authorized release approval Reuse the same administrator password for build workers and release signatures Explanation Correct Answer C:Separating signing permissions and key custody reduces the attacker's ability to promote arbitrary builds. Incorrect Answers A:Encrypted keys still become accessible to a compromised runner that can invoke the decryption process. B:Network isolation alone does not prevent code running on a compromised builder from using local keys. D:Shared administrator credentials collapse the distinction between build and release authorities.
Question 417 A developer can push source changes, approve them, and deploy directly to a regulated production app. Which CI/CD architecture most directly reduces insider-release risk? Let the developer use a second account with the same privileges for approval Require only a signed commit but no independent review of the change Move deployment credentials into a public repository to improve auditing Enforce protected branches, independent approval and environment-scoped deployment authorization Explanation Correct Answer D:Independent approvals and protected deployment gates limit one actor's unilateral production authority. Incorrect Answers A:A second identity controlled by the same person is not independent approval. B:A signature establishes provenance but does not prove that the business or security change was approved. C:Publishing credentials creates a direct takeover path rather than an audit safeguard.
Question 418 A profile-update API accepts a JSON object and deserializes all properties into a user database model. Attackers discover they can set isAdmin=true. Which change addresses the root design flaw? Allowlist permitted input properties and enforce authorization on sensitive state changes Block requests containing the literal phrase isAdmin but allow unknown JSON fields Encrypt the database volume without changing field-binding logic Require a longer access token even though the API already authenticates users Explanation Correct Answer A:Explicit input models prevent untrusted clients from setting privileged fields outside the approved contract. Incorrect Answers B:Blocking one property name is brittle because alternate fields or serialization paths can reappear. C:Encryption at rest does not constrain updates performed by the authorized application process. D:Token length does not decide which fields a user is permitted to modify.
Question 419 A legitimate signed webhook is captured and resubmitted repeatedly, causing duplicate financial refunds despite correct signature checks. Which defense specifically addresses replay? Change the webhook transport from HTTPS to TCP without TLS Check a bounded timestamp and unique event identifier and process each event idempotently Rotate the WAF managed rule set whenever a duplicate arrives Treat the repeated callback as valid because the signature still verifies Explanation Correct Answer B:Timestamp windows, unique IDs and idempotent processing prevent valid old messages from repeating business actions. Incorrect Answers A:Changing transport does not distinguish new events from replayed signed requests. C:A generic WAF signature rule cannot reliably enforce payment-event idempotency. D:A valid signature confirms origin but does not establish that an event has not already been processed.
Question 420 A cluster hosts public web pods and sensitive payment pods. A web pod is compromised and can reach every payment pod over unrestricted internal networking. What control addresses the observed lateral path? Enable image scanning and signed artifacts for public web pods while leaving runtime network communication to payment namespaces unrestricted Turn on container image vulnerability scanning but leave unrestricted runtime traffic Enforce Kubernetes network policies between service namespaces and verify supported enforcement Require service-to-service TLS on all pod connections without restricting which web workloads may initiate communication to payments Explanation Correct Answer C:Supported network policies constrain pod-to-pod traffic independently of a compromised web process. Incorrect Answers A:Supply-chain controls reduce malicious images but do not block the lateral network path after a web pod is already compromised. B:Scanning images helps before deployment but does not restrict current east-west connections. D:Encryption protects traffic in transit but does not provide the network segmentation needed to deny unauthorized reachability.