Question 580
At Timberline Foods, the supply-chain assurance team is conducting a coordinated processing-plant assessment under requirements for food safety and secure logistics. An independent validation is requested for the original problem: An application runs every reporting query with a database administrator identity even though users only need read access. Which result BEST demonstrates successful remediation?
Explanation
Correct Answer
A test account can read intended report records but cannot modify schema or privileged tables. The observable result demonstrates that the documented condition, An application runs every reporting query with a database administrator identity even though users only need read access. has been addressed. The planned remediation is: Use a dedicated least-privilege database account scoped to required tables and operations. This is a stronger validation than a saved ticket or unverified claim by Timberline Foods.
Incorrect Answers
Equivalent benign input is handled safely across supported drivers without SQL syntax reinterpretation. That observation would verify another scenario: A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. The corrective step for that other scenario is: Use driver-supported prepared statements or bound parameters rather than custom escaping rules. But Timberline Foods is evaluating: An application runs every reporting query with a database administrator identity even though users only need read access. The necessary outcome is: A test account can read intended report records but cannot modify schema or privileged tables.
Authentication succeeds only for the correct password and the database query contains no interpolated credential data. That observation would verify another scenario: A legacy login service compares a raw password to a string assembled inside an SQL WHERE clause. The corrective step for that other scenario is: Query for the named account using parameters and validate the supplied password with a salted password hash verifier. But Timberline Foods is evaluating: An application runs every reporting query with a database administrator identity even though users only need read access. The necessary outcome is: A test account can read intended report records but cannot modify schema or privileged tables.
Approved filters produce accurate reports and malformed filter expressions cannot alter the query grammar. That observation would verify another scenario: A data export permits arbitrary filter expressions that are appended to SQL despite a published fixed set of report filters. The corrective step for that other scenario is: Replace free-form SQL fragments with a structured allowlisted filter model and bound query values. But Timberline Foods is evaluating: An application runs every reporting query with a database administrator identity even though users only need read access. The necessary outcome is: A test account can read intended report records but cannot modify schema or privileged tables.