Question 240

An application uses a model outside Bedrock but wants to evaluate text with an applicable Bedrock guardrail. What integration should be considered?

  1. Use a vector similarity score as the guardrail result
  2. Assume every external model automatically inherits Bedrock filtering
  3. Send the guardrail name only in a system prompt
  4. Invoke ApplyGuardrail but treat its assessment as advisory while always displaying the original
  5. 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?

  1. Define the prohibited topic precisely and test both blocked and allowed examples
  2. Block every mention of money
  3. Rely only on profanity filtering
  4. 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?

  1. Whitelist every request containing educational
  2. Evaluate labeled benign and harmful cases and adjust policy within approved risk limits
  3. Score only allowed examples
  4. 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?

  1. Display every answer and screen it later
  2. Ask the generator to certify itself safe
  3. Withhold unscreened answers or route to an approved reviewed path
  4. 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?

  1. Buffer the response until the required safety assessment passes
  2. Display each token immediately and retract failures later
  3. Screen only the first token
  4. 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?

  1. Whether every factual claim is supported by the supplied passage
  2. Whether the answer stays on the same broad topic as the question
  3. Whether text was sent to the generator at all
  4. Assume a high grounding score verifies the source's effective date
  5. 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?

  1. Validate material claims and numerical values against the supporting source
  2. Check only JSON syntax
  3. Increase model output length
  4. 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?

  1. Accept every syntactically valid SELECT without object or resource restrictions
  2. Trust the model's statement that a query is read-only
  3. Run all SQL using the database administrator
  4. 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?

  1. Use parameterized queries and validate the allowed search operation
  2. Ask the FM to sanitize the final query without backend checks
  3. Concatenate the term directly into SQL
  4. 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?

  1. Expose cloud metadata endpoints to improve diagnostics
  2. Accept any URL starting with http
  3. Destination validation, restricted egress, and protection against internal-address access
  4. 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?

  1. Ask the generator to summarize the archive before extraction
  2. Limit expanded size, file count, nesting, and processing resources
  3. Raise every extraction limit to avoid failures
  4. 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.

AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests