Question 240
An application uses a model outside Bedrock but wants to evaluate text with an applicable Bedrock guardrail. What integration should be considered?
- Use a vector similarity score as the guardrail result
- Assume every external model automatically inherits Bedrock filtering
- Send the guardrail name only in a system prompt
- Invoke ApplyGuardrail but treat its assessment as advisory while always displaying the original
- Use ApplyGuardrail with the configured policy and supported content
Explanation
Correct Answer
E:The guardrail evaluation can be separate from generation. The application must still enforce the returned assessment before displaying content.
Incorrect Answers
A:Retrieval similarity is not an assessment against configured safety policies.
B:An external generation path needs an explicit safety integration.
C:Mentioning a policy identifier does not invoke the evaluation API.
D:The integration must enforce the returned action. Calling the assessment API does not protect users if the application ignores intervention results.
Question 241
A company prohibits individualized investment recommendations but permits factual descriptions of account features. What policy design fits?
- Define the prohibited topic precisely and test both blocked and allowed examples
- Block every mention of money
- Rely only on profanity filtering
- Assume the model's persona is sufficient enforcement
Explanation
Correct Answer
A:A scoped policy targets the intended boundary. Overbroad wording can suppress legitimate informational support.
Incorrect Answers
B:This would reject permitted account information as well as prohibited recommendations.
C:A politely phrased investment recommendation can still violate the policy.
D:Role instructions alone do not provide the requested tested topic control.
Question 242
A safety filter blocks educational descriptions of violence needed by an approved training app. What should the team do?
- Whitelist every request containing educational
- Evaluate labeled benign and harmful cases and adjust policy within approved risk limits
- Score only allowed examples
- Disable all moderation because one case was blocked
Explanation
Correct Answer
B:False positives affect utility, while false negatives affect safety. Tuning needs both classes and documented acceptance criteria.
Incorrect Answers
A:Attackers can use the same word, so it is not proof of legitimate purpose.
C:That cannot measure whether harmful requests now pass.
D:A single false positive does not justify removing every safety control.
Question 243
The required output-safety service is unavailable. The application serves high-risk content. What fallback fits a mandatory screening policy?
- Display every answer and screen it later
- Ask the generator to certify itself safe
- Withhold unscreened answers or route to an approved reviewed path
- Treat a timeout as a passing safety result
Explanation
Correct Answer
C:Availability cannot silently bypass a required safeguard. Return a clear temporary limitation instead of an unassessed answer.
Incorrect Answers
A:Users are exposed before the mandatory check completes.
B:Self-assessment does not replace the unavailable required control.
D:Unknown status is not evidence that content passed.
Question 244
A policy requires screening complete sensitive replies before users see any part. Which streaming design meets it?
- Buffer the response until the required safety assessment passes
- Display each token immediately and retract failures later
- Screen only the first token
- Call transport encryption the safety assessment
Explanation
Correct Answer
A:Incremental display would release content before the stipulated check. The latency tradeoff follows directly from the policy.
Incorrect Answers
B:Retraction cannot undo exposure and violates the stated pre-display requirement.
C:Later content can contain the sensitive material.
D:Encryption protects transit rather than evaluating response content.
Question 245
A grounded answer accurately repeats an outdated source. What does a grounding check alone fail to establish?
- Whether every factual claim is supported by the supplied passage
- Whether the answer stays on the same broad topic as the question
- Whether text was sent to the generator at all
- Assume a high grounding score verifies the source's effective date
- Whether the underlying source is current and authoritative
Explanation
Correct Answer
E:Faithfulness measures support by supplied evidence. Source validity requires separate provenance and freshness controls.
Incorrect Answers
A:Grounding checks directly concern support by the supplied evidence. The unresolved limitation in this scenario is whether that source is current and authoritative.
B:Topical relevance can be part of response assessment, but it does not determine which source revision governs the user's question.
C:Grounding analysis concerns the relationship between the answer and supplied content.
D:A support relationship between answer and passage does not independently establish whether that passage is the current governing source.
Question 246
A generated summary states a refund limit of 90 days, but approved evidence says 30 days. Which output check targets this risk?
- Validate material claims and numerical values against the supporting source
- Check only JSON syntax
- Increase model output length
- Check only toxicity
Explanation
Correct Answer
A:A specific factual mismatch can pass fluency and syntax checks. Evidence-based verification should catch the altered limit.
Incorrect Answers
B:The value can be syntactically valid while factually wrong.
C:More prose does not independently correct the unsupported number.
D:A harmless sentence can contain a serious numerical error.
Question 247
An FM generates SQL for a reporting assistant. What execution safeguard is most appropriate?
- Accept every syntactically valid SELECT without object or resource restrictions
- Trust the model's statement that a query is read-only
- Run all SQL using the database administrator
- Use read-only credentials, permitted objects, query validation, and resource limits
Explanation
Correct Answer
D:Generated SQL must remain within the reporting capability. Parsing alone does not prevent excessive or unauthorized queries.
Incorrect Answers
A:A SELECT can read unauthorized data or consume excessive resources. Syntax and read-only credentials need object scope and workload limits.
B:The database and executor must enforce the permission boundary.
C:This grants write and management powers unnecessary for reporting.
Question 248
A natural-language tool accepts a customer search term for a fixed SQL query. What prevents the term from becoming executable SQL?
- Use parameterized queries and validate the allowed search operation
- Ask the FM to sanitize the final query without backend checks
- Concatenate the term directly into SQL
- Remove only the word DROP
Explanation
Correct Answer
A:Bound values remain data rather than query syntax. Authorization must still constrain which rows can be returned.
Incorrect Answers
B:Generated text is not a reliable substitute for parameter binding.
C:Raw interpolation can let input alter query structure.
D:Attack syntax is not limited to one keyword, and legitimate values may contain it.
Question 249
An agent can fetch URLs supplied by users. What should its executor enforce?
- Expose cloud metadata endpoints to improve diagnostics
- Accept any URL starting with http
- Destination validation, restricted egress, and protection against internal-address access
- Rely on the model to recognize private addresses
Explanation
Correct Answer
C:URL tools can become server-side request forgery paths. Validate resolved destinations and redirects, not just visible text.
Incorrect Answers
A:Such endpoints can disclose sensitive runtime information and are outside the user's browsing need.
B:A valid scheme can still address internal or prohibited services.
D:Network policy must hold even when the model proposes an unsafe destination.
Question 250
A retrieval pipeline accepts uploaded archives. Which control addresses resource-exhaustion inputs?
- Ask the generator to summarize the archive before extraction
- Limit expanded size, file count, nesting, and processing resources
- Raise every extraction limit to avoid failures
- Check only the compressed filename extension
Explanation
Correct Answer
B:Small compressed files can expand dramatically. Bounds must apply during extraction rather than only to upload bytes.
Incorrect Answers
A:The processing boundary still needs protection before content is available to summarize.
C:Unbounded expansion increases denial-of-service exposure.
D:Names do not bound expansion or establish safe archive contents.