Question 590A web service accepts user-controlled file names that resolve outside the intended upload directory. Which governance safeguard would best address recurrence? Apply secure response-header templates and regular verified patch maintenance. Maintain server cryptographic baselines and retest them during upgrades. Enforce deployment asset allowlists and web-root content scans. Include path normalization and storage isolation tests in secure code review. ExplanationCorrect Answer D:Include path normalization and storage isolation tests in secure code review. This addresses the recurring failure mode because Path interpretation can differ from a visible input string, so server-side containment is needed before file access. The immediate action remains: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. Other Answers A:Verbose headers reveal configuration clues but removing them alone does not remedy vulnerable code. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review. B:Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review. C:Web serving defaults can reveal files when directory indexes or routing constraints permit unintended access. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review.
Question 591A document portal's server file handler retrieves local paths without first constraining them to an approved storage location. What is the most appropriate authorized remediation? Remove unused endpoints and configuration modules and validate the remaining application contract. Disable deprecated protocol suites and use currently supported secure transport configurations with compatibility testing. Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. Disable unintended directory listing and move sensitive configuration artifacts outside public document roots. ExplanationCorrect Answer C:Path interpretation can differ from a visible input string, so server-side containment is needed before file access. To validate the correction: Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. Other Answers A:Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. It does not resolve the specific failure; the targeted correction is: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. B:Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. It does not resolve the specific failure; the targeted correction is: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. D:Web serving defaults can reveal files when directory indexes or routing constraints permit unintended access. It does not resolve the specific failure; the targeted correction is: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions.
Question 592A document portal's server file handler retrieves local paths without first constraining them to an approved storage location. Why can this issue occur despite the existing safeguards? Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. Path interpretation can differ from a visible input string, so server-side containment is needed before file access. Verbose headers reveal configuration clues but removing them alone does not remedy vulnerable code. Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. ExplanationCorrect Answer B:Path interpretation can differ from a visible input string, so server-side containment is needed before file access. The matching corrective action is: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. The expected confirmation is: Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. Other Answers A:Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. The cause in the stated scenario is different: Path interpretation can differ from a visible input string, so server-side containment is needed before file access. C:Verbose headers reveal configuration clues but removing them alone does not remedy vulnerable code. The cause in the stated scenario is different: Path interpretation can differ from a visible input string, so server-side containment is needed before file access. D:Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. The cause in the stated scenario is different: Path interpretation can differ from a visible input string, so server-side containment is needed before file access.
Question 593A document portal's server file handler retrieves local paths without first constraining them to an approved storage location. Which low-impact test would validate the correction? Request the directory using an unauthenticated test and verify files are inaccessible while approved resources work. Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. Verify untrusted network access is denied and approved administrators can still connect over the protected path. Inspect a representative external response and cross-check patch state against authoritative server inventory. ExplanationCorrect Answer B:Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. This directly validates the response: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. It tests the principle that Path interpretation can differ from a visible input string, so server-side containment is needed before file access. Other Answers A:Request the directory using an unauthenticated test and verify files are inaccessible while approved resources work. That evidence is relevant when A public web server exposes a directory listing containing archived configuration files. For the current issue, the targeted verification is: Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. C:Verify untrusted network access is denied and approved administrators can still connect over the protected path. That evidence is relevant when A support endpoint for server configuration remains broadly accessible after a maintenance project. For the current issue, the targeted verification is: Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. D:Inspect a representative external response and cross-check patch state against authoritative server inventory. That evidence is relevant when A web server displays the exact operating system release and framework version in every public response. For the current issue, the targeted verification is: Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary.
Question 594A document portal's server file handler retrieves local paths without first constraining them to an approved storage location. Which governance safeguard would best address recurrence? Include path normalization and storage isolation tests in secure code review. Apply secure response-header templates and regular verified patch maintenance. Maintain server cryptographic baselines and retest them during upgrades. Include route inventory and unused module removal in deployment hardening. ExplanationCorrect Answer A:Include path normalization and storage isolation tests in secure code review. This addresses the recurring failure mode because Path interpretation can differ from a visible input string, so server-side containment is needed before file access. The immediate action remains: Canonicalize and restrict file paths to an allowlisted storage root with least-privilege service permissions. Other Answers B:Verbose headers reveal configuration clues but removing them alone does not remedy vulnerable code. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review. C:Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review. D:Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. The continuing safeguard required here is: Include path normalization and storage isolation tests in secure code review.
Question 595A production web server continues serving a deprecated API endpoint that no active client uses. Which protective design adjustment fits the evidence? Restrict administrative interfaces to approved management paths and require multifactor authorization. Remove unused endpoints and configuration modules and validate the remaining application contract. Disable deprecated protocol suites and use currently supported secure transport configurations with compatibility testing. Suppress unnecessary version banners and manage the underlying patch baseline through authenticated inventory. ExplanationCorrect Answer B:Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. To validate the correction: Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. Other Answers A:A strong password does not eliminate risk from unnecessary exposure of a privileged management surface. It does not resolve the specific failure; the targeted correction is: Remove unused endpoints and configuration modules and validate the remaining application contract. C:Transport security is reduced when clients may negotiate obsolete protection despite a valid certificate. It does not resolve the specific failure; the targeted correction is: Remove unused endpoints and configuration modules and validate the remaining application contract. D:Verbose headers reveal configuration clues but removing them alone does not remedy vulnerable code. It does not resolve the specific failure; the targeted correction is: Remove unused endpoints and configuration modules and validate the remaining application contract.
Question 596A production web server continues serving a deprecated API endpoint that no active client uses. Which underlying mechanism is responsible for this condition? Path interpretation can differ from a visible input string, so server-side containment is needed before file access. Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. A strong password does not eliminate risk from unnecessary exposure of a privileged management surface. Web serving defaults can reveal files when directory indexes or routing constraints permit unintended access. ExplanationCorrect Answer B:Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. The matching corrective action is: Remove unused endpoints and configuration modules and validate the remaining application contract. The expected confirmation is: Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. Other Answers A:Path interpretation can differ from a visible input string, so server-side containment is needed before file access. The cause in the stated scenario is different: Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. C:A strong password does not eliminate risk from unnecessary exposure of a privileged management surface. The cause in the stated scenario is different: Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. D:Web serving defaults can reveal files when directory indexes or routing constraints permit unintended access. The cause in the stated scenario is different: Unmaintained routes expand reachable code surface regardless of whether their features are commonly used.
Question 597A production web server continues serving a deprecated API endpoint that no active client uses. What measurement would demonstrate the intended result? Verify untrusted network access is denied and approved administrators can still connect over the protected path. Run a controlled TLS configuration inspection and confirm only the approved protocol and cipher policy remains available. Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. ExplanationCorrect Answer D:Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. This directly validates the response: Remove unused endpoints and configuration modules and validate the remaining application contract. It tests the principle that Unmaintained routes expand reachable code surface regardless of whether their features are commonly used. Other Answers A:Verify untrusted network access is denied and approved administrators can still connect over the protected path. That evidence is relevant when A support endpoint for server configuration remains broadly accessible after a maintenance project. For the current issue, the targeted verification is: Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. B:Run a controlled TLS configuration inspection and confirm only the approved protocol and cipher policy remains available. That evidence is relevant when A customer-facing website retains weak cryptographic configuration for legacy clients that the organization no longer supports. For the current issue, the targeted verification is: Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response. C:Exercise safe negative path cases in a test environment and confirm the handler cannot reach files outside its storage boundary. That evidence is relevant when A web service accepts user-controlled file names that resolve outside the intended upload directory. For the current issue, the targeted verification is: Compare the deployed route inventory to approved APIs and confirm retired handlers return a safe unavailable response.
Question 598An app hides an administrator menu item but ordinary users can still call the underlying protected endpoint directly. What is the most appropriate authorized remediation? Validate authorization for each object and action at the API boundary using trusted caller and resource context. Return explicit authorized response fields rather than raw internal objects or oversized datasets. Apply authoritative server-side validation and business rules for every untrusted input channel. Contextually encode untrusted output and apply appropriate input handling and content security policy. ExplanationCorrect Answer A:Hiding interface elements is not an access-control mechanism; a client can construct independent requests. To validate the correction: Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. Other Answers B:Excessive data exposure occurs when serialization ignores the caller's legitimate data scope. It does not resolve the specific failure; the targeted correction is: Validate authorization for each object and action at the API boundary using trusted caller and resource context. C:Browser-side restrictions improve usability but are bypassable and cannot preserve data integrity across alternate clients. It does not resolve the specific failure; the targeted correction is: Validate authorization for each object and action at the API boundary using trusted caller and resource context. D:Cross-site scripting arises when untrusted text is interpreted in executable browser contexts. It does not resolve the specific failure; the targeted correction is: Validate authorization for each object and action at the API boundary using trusted caller and resource context.
Question 599An app hides an administrator menu item but ordinary users can still call the underlying protected endpoint directly. What makes the current approach insufficient? Excessive data exposure occurs when serialization ignores the caller's legitimate data scope. Cross-site scripting arises when untrusted text is interpreted in executable browser contexts. Hiding interface elements is not an access-control mechanism; a client can construct independent requests. Automatic credential attachment by browsers can allow unintended cross-origin actions without request-origin validation. ExplanationCorrect Answer C:Hiding interface elements is not an access-control mechanism; a client can construct independent requests. The matching corrective action is: Validate authorization for each object and action at the API boundary using trusted caller and resource context. The expected confirmation is: Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. Other Answers A:Excessive data exposure occurs when serialization ignores the caller's legitimate data scope. The cause in the stated scenario is different: Hiding interface elements is not an access-control mechanism; a client can construct independent requests. B:Cross-site scripting arises when untrusted text is interpreted in executable browser contexts. The cause in the stated scenario is different: Hiding interface elements is not an access-control mechanism; a client can construct independent requests. D:Automatic credential attachment by browsers can allow unintended cross-origin actions without request-origin validation. The cause in the stated scenario is different: Hiding interface elements is not an access-control mechanism; a client can construct independent requests.
Question 600An app hides an administrator menu item but ordinary users can still call the underlying protected endpoint directly. Which observation would most directly verify the safeguard? Send safe boundary test values via both browser and API and confirm identical rejection behavior. Submit a controlled request without the required anti-CSRF context and confirm the server rejects it. Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. Compare API responses for least-privilege and privileged test accounts and confirm protected fields are absent. ExplanationCorrect Answer C:Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. This directly validates the response: Validate authorization for each object and action at the API boundary using trusted caller and resource context. It tests the principle that Hiding interface elements is not an access-control mechanism; a client can construct independent requests. Other Answers A:Send safe boundary test values via both browser and API and confirm identical rejection behavior. That evidence is relevant when A web form enforces a price limit only through JavaScript while direct API requests accept larger values. For the current issue, the targeted verification is: Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. B:Submit a controlled request without the required anti-CSRF context and confirm the server rejects it. That evidence is relevant when A cross-site request attempts a profile change while the victim remains authenticated to the application. For the current issue, the targeted verification is: Submit permitted and denied object requests with separate test identities and confirm consistent server decisions. D:Compare API responses for least-privilege and privileged test accounts and confirm protected fields are absent. That evidence is relevant when A REST API returns all fields of a customer object including confidential properties the caller did not request. For the current issue, the targeted verification is: Submit permitted and denied object requests with separate test identities and confirm consistent server decisions.