Question 540
A Linux administrator evaluates: An engineer receives a plausible infrastructure diff and must confirm its actual target resources before applying it. Select TWO complementary answers: the most suitable corrective action AND the evidence proving it worked.
Explanation
Correct Answers
For the specific observation (An engineer receives a plausible infrastructure diff and must confirm its actual target resources before applying it), the acceptance evidence is: The proposed automation passes source review and bounded tests without touching unauthorized paths or credentials. This verifies the action (Treat AI-generated shell or infrastructure code as untrusted draft; perform manual review, static checks, tests and least-privilege dry runs before deployment.) rather than merely proving that an unrelated Linux tool works. It also addresses the known risk: Executing unreviewed generated commands can delete unintended data, weaken security or modify the wrong infrastructure.
The observed Linux condition is: An engineer receives a plausible infrastructure diff and must confirm its actual target resources before applying it. The recommended direct administrative response is: Treat AI-generated shell or infrastructure code as untrusted draft; perform manual review, static checks, tests and least-privilege dry runs before deployment. The relevant failure or security risk is: Executing unreviewed generated commands can delete unintended data, weaken security or modify the wrong infrastructure. Validate success with: The proposed automation passes source review and bounded tests without touching unauthorized paths or credentials.
Incorrect Answers
Safe loops and file names in Bash (4.2) would demonstrate or implement: A naïve for loop over command-substitution output can mis-handle filenames with spaces or newlines. The case states: the most suitable corrective action AND the evidence proving it worked. The most direct paired action and test is: The proposed automation passes source review and bounded tests without touching unauthorized paths or credentials.
Shell exit status and fail-fast pipelines (4.2) addresses another technical failure: A pipeline that returns the last successful command status can hide an earlier failed backup or data transfer. This case instead tests AI-generated administration code review and execution safety; the choice measures or changes another part of the system.
Python JSON data extraction and structured error handling (4.3) would demonstrate or implement: The script returns correct values for normal, missing-key and invalid-JSON fixtures while logging actionable errors. The required paired action and test concerns AI-generated administration code review and execution safety; a passing result for this alternative could leave that requirement unresolved.