Amazon AWS Certified AI Practitioner AIF-C01 Practice Test 28
Question 270
A sentiment task works poorly with bare instructions, so the prompt includes three labeled example reviews. A colleague suggests: Describe labeled examples in the prompt as changing the FM's weights. Which finding BEST explains why the suggestion should be rejected?
- Open-ended formatting is unsuitable for a strict machine-readable contract
- In-context examples condition inference without training parameter updates
- Unmanaged variations make behavior and rollback hard to reproduce
- The shortcut is safe because its terminology is familiar to the team
Explanation
Correct Answer
B:In-context examples condition inference without training parameter updates. This is the direct defect in the proposed action: Describe labeled examples in the prompt as changing the FM's weights.
Incorrect Answers
A:This concern belongs to another situation: An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing.
C:This finding is associated with a different problem: Several teams reuse an approved summary instruction but change the customer name and input document for each invocation.
D:Familiar wording is not proof that an action is appropriate. The actual defect is: In-context examples condition inference without training parameter updates.
Question 271
A sentiment task works poorly with bare instructions, so the prompt includes three labeled example reviews. After implementing Describe this as few-shot prompting with representative demonstrations, which observation BEST verifies the intended result?
- Run logs identify the template version and substituted parameters
- New reviews match the demonstrated response convention on test cases
- The team approves Describe this as few-shot prompting with representative demonstrations but does not run an operational test
- The team schedules a future test of whether new reviews match the demonstrated response convention on test cases, but has no result
Explanation
Correct Answer
B:The observed result, New reviews match the demonstrated response convention on test cases, provides direct evidence. Few-shot prompts provide examples of inputs and desired outputs.
Incorrect Answers
A:This observation would be evidence for another case: Several teams reuse an approved summary instruction but change the customer name and input document for each invocation, not the current scenario.
C:The required observable condition is: New reviews match the demonstrated response convention on test cases.
D:An unperformed future check is not evidence. Verify the actual outcome: New reviews match the demonstrated response convention on test cases.
Question 272
The initial scenario was: A sentiment task works poorly with bare instructions, so the prompt includes three labeled example reviews. The original control is already in place. Now the team later removes all examples to save tokens. Which ADDITIONAL action BEST addresses the new condition?
- New reviews match the demonstrated response convention on test cases
- Describe this as few-shot prompting with representative demonstrations
- Evaluate zero-shot instruction quality for the leaner prompt
- Describe labeled examples in the prompt as changing the FM's weights
Explanation
Correct Answer
C:The team later removes all examples to save tokens. The appropriate added action is: Evaluate zero-shot instruction quality for the leaner prompt.
Incorrect Answers
A:This describes evidence for the original approach, not a new action: New reviews match the demonstrated response convention on test cases.
B:This was the original control and is already implemented. Few-shot prompts provide examples of inputs and desired outputs.
D:This original shortcut remains unsuitable: In-context examples condition inference without training parameter updates.
Question 273
Several teams reuse an approved summary instruction but change the customer name and input document for each invocation. Which option BEST meets the stated AI/ML or AWS requirement?
- Specify an unambiguous output schema and validate structured results
- Let each team copy a different undocumented free-form prompt
- Publish a reviewed new template version with regression tests
- Use a versioned prompt template with clearly named variables
Explanation
Correct Answer
D:Templates standardize fixed instructions while substituting run-specific values. In this situation, choose: Use a versioned prompt template with clearly named variables.
Incorrect Answers
A:This can be valid for a different task: An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing. The current request is different and needs the selected approach.
B:Unmanaged variations make behavior and rollback hard to reproduce. The proposal, Let each team copy a different undocumented free-form prompt, does not satisfy this need.
C:This is appropriate only after a distinct change: Compliance later changes the required output fields. It is not the best initial response to several teams reuse an approved summary instruction but change the customer name and input document for each invocation.
Question 274
Several teams reuse an approved summary instruction but change the customer name and input document for each invocation. A colleague suggests: Let each team copy a different undocumented free-form prompt. Which finding BEST explains why the suggestion should be rejected?
- Open-ended formatting is unsuitable for a strict machine-readable contract
- Conflicting directions increase rather than resolve prompt uncertainty
- Unmanaged variations make behavior and rollback hard to reproduce
- The shortcut is safe because its terminology is familiar to the team
Explanation
Correct Answer
C:Unmanaged variations make behavior and rollback hard to reproduce. This is the direct defect in the proposed action: Let each team copy a different undocumented free-form prompt.
Incorrect Answers
A:This finding is associated with a different problem: An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing.
B:This concern belongs to another situation: A marketing prompt gives contradictory instructions in one paragraph and produces inconsistent responses.
D:Familiar wording is not proof that an action is appropriate. The actual defect is: Unmanaged variations make behavior and rollback hard to reproduce.
Question 275
Several teams reuse an approved summary instruction but change the customer name and input document for each invocation. After implementing Use a versioned prompt template with clearly named variables, which observation BEST verifies the intended result?
- Run logs identify the template version and substituted parameters
- A test parser accepts conforming outputs and rejects malformed examples
- The team approves Use a versioned prompt template with clearly named variables but does not run an operational test
- The team schedules a future test of whether run logs identify the template version and substituted parameters, but has no result
Explanation
Correct Answer
A:The observed result, Run logs identify the template version and substituted parameters, provides direct evidence. Templates standardize fixed instructions while substituting run-specific values.
Incorrect Answers
B:This observation would be evidence for another case: An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing, not the current scenario.
C:The required observable condition is: Run logs identify the template version and substituted parameters.
D:An unperformed future check is not evidence. Verify the actual outcome: Run logs identify the template version and substituted parameters.
Question 276
The initial scenario was: Several teams reuse an approved summary instruction but change the customer name and input document for each invocation. The original control is already in place. Now compliance later changes the required output fields. Which ADDITIONAL action BEST addresses the new condition?
- Let each team copy a different undocumented free-form prompt
- Publish a reviewed new template version with regression tests
- Use a versioned prompt template with clearly named variables
- Run logs identify the template version and substituted parameters
Explanation
Correct Answer
B:Compliance later changes the required output fields. The appropriate added action is: Publish a reviewed new template version with regression tests.
Incorrect Answers
A:This original shortcut remains unsuitable: Unmanaged variations make behavior and rollback hard to reproduce.
C:This was the original control and is already implemented. Templates standardize fixed instructions while substituting run-specific values.
D:This describes evidence for the original approach, not a new action: Run logs identify the template version and substituted parameters.
Question 277
An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing. Which option BEST meets the stated AI/ML or AWS requirement?
- Tell the model to answer 'however it likes' and skip parser checks
- Specify an unambiguous output schema and validate structured results
- Rewrite the prompt with clear task, constraints and prioritized context
- Update the schema and verify numerical constraints in the parser
Explanation
Correct Answer
B:Explicit format constraints reduce downstream parsing errors but do not eliminate them. In this situation, choose: Specify an unambiguous output schema and validate structured results.
Incorrect Answers
A:Open-ended formatting is unsuitable for a strict machine-readable contract. The proposal, Tell the model to answer 'however it likes' and skip parser checks, does not satisfy this need.
C:This can be valid for a different task: A marketing prompt gives contradictory instructions in one paragraph and produces inconsistent responses. The current request is different and needs the selected approach.
D:This is appropriate only after a distinct change: A later API requires a numeric risk field rather than free text. It is not the best initial response to an assistant must answer in valid json with keys title, risk and owner for downstream parsing.
Question 278
An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing. A colleague suggests: Tell the model to answer 'however it likes' and skip parser checks. Which finding BEST explains why the suggestion should be rejected?
- Open-ended formatting is unsuitable for a strict machine-readable contract
- Conflicting directions increase rather than resolve prompt uncertainty
- The shortcut is safe because its terminology is familiar to the team
- Prompt controls alone do not guarantee every output meets constraints
Explanation
Correct Answer
A:Open-ended formatting is unsuitable for a strict machine-readable contract. This is the direct defect in the proposed action: Tell the model to answer 'however it likes' and skip parser checks.
Incorrect Answers
B:This finding is associated with a different problem: A marketing prompt gives contradictory instructions in one paragraph and produces inconsistent responses.
C:Familiar wording is not proof that an action is appropriate. The actual defect is: Open-ended formatting is unsuitable for a strict machine-readable contract.
D:This concern belongs to another situation: A publisher wants its image-generation prompt to avoid visible watermarks and brand logos.
Question 279
An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing. After implementing Specify an unambiguous output schema and validate structured results, which observation BEST verifies the intended result?
- The team schedules a future test of whether a test parser accepts conforming outputs and rejects malformed examples, but has no result
- The team approves Specify an unambiguous output schema and validate structured results but does not run an operational test
- A test parser accepts conforming outputs and rejects malformed examples
- Repeated samples follow the revised unambiguous instructions more consistently
Explanation
Correct Answer
C:The observed result, A test parser accepts conforming outputs and rejects malformed examples, provides direct evidence. Explicit format constraints reduce downstream parsing errors but do not eliminate them.
Incorrect Answers
A:An unperformed future check is not evidence. Verify the actual outcome: A test parser accepts conforming outputs and rejects malformed examples.
B:The required observable condition is: A test parser accepts conforming outputs and rejects malformed examples.
D:This observation would be evidence for another case: A marketing prompt gives contradictory instructions in one paragraph and produces inconsistent responses, not the current scenario.
Question 280
The initial scenario was: An assistant must answer in valid JSON with keys title, risk and owner for downstream parsing. The original control is already in place. Now a later api requires a numeric risk field rather than free text. Which ADDITIONAL action BEST addresses the new condition?
- Specify an unambiguous output schema and validate structured results
- Update the schema and verify numerical constraints in the parser
- A test parser accepts conforming outputs and rejects malformed examples
- Tell the model to answer 'however it likes' and skip parser checks
Explanation
Correct Answer
B:A later API requires a numeric risk field rather than free text. The appropriate added action is: Update the schema and verify numerical constraints in the parser.
Incorrect Answers
A:This was the original control and is already implemented. Explicit format constraints reduce downstream parsing errors but do not eliminate them.
C:This describes evidence for the original approach, not a new action: A test parser accepts conforming outputs and rejects malformed examples.
D:This original shortcut remains unsuitable: Open-ended formatting is unsuitable for a strict machine-readable contract.