Question 220
A Bedrock flow is edited frequently, but production must use an approved configuration. Which pattern fits?
- Invoke a controlled alias associated with the approved flow version
- Change the flow's description and assume behavior is frozen
- Invoke the test alias that follows the editable draft while recording only the flow name
- Invoke any editable draft without tracking revisions
Explanation
Correct Answer
A:Versions and aliases separate editing from stable consumption. Promotion should follow evaluation and approval.
Incorrect Answers
B:Descriptive metadata does not provide immutable execution configuration.
C:A draft-following reference can change outside promotion. A stable production alias should resolve to the approved immutable version.
D:Draft changes can alter production behavior before review.
Question 221
A prompt-flow node expects a document object but receives a plain string from its predecessor. What should development checks cover?
- Node input-output contracts and connection mappings
- Only total flow execution count
- Only the final output schema after every intermediate node has executed
- Only whether the diagram looks connected
Explanation
Correct Answer
A:A visual connection still needs compatible data shapes. Validate the actual fields delivered between nodes.
Incorrect Answers
B:Usage volume does not validate node contracts.
C:Final validation is useful but cannot prevent an incompatible intermediate connection from failing. Check node boundaries before relying on downstream output.
D:Visual connectivity does not establish schema compatibility.
Question 222
A document app accepts a job that may take minutes. Which UI contract best supports users?
- Keep a spinner forever with no job identifier
- Display accepted and processing states, then a correlated completion or failure
- Allow repeated submissions with no deduplication
- Display a sample summary as if it were the result
Explanation
Correct Answer
B:Users need truthful progress and a way to recover results. Acceptance should not be mislabeled as completion.
Incorrect Answers
A:Users cannot distinguish slow work from lost work or resume later.
C:Impatient retries can create duplicate expensive work.
D:Placeholder content must not impersonate the user's completed artifact.
Question 223
A chat UI updates token by token, overwhelming screen-reader announcements. What design fits?
- Buffer accessible announcements into meaningful chunks while preserving visual responsiveness
- Replace generated text with an unlabeled animation
- Read the entire conversation after each token
- Send each token through an assertive live region that interrupts the previous announcement
Explanation
Correct Answer
A:Assistive output needs usable pacing. Rendering every token as a separate live announcement can impede comprehension.
Incorrect Answers
B:An animation does not communicate the answer to assistive technology.
C:This amplifies repeated announcements and disrupts navigation.
D:This can overwhelm assistive output even while visual streaming looks responsive. Group announcements into meaningful units with usable pacing.
Question 224
External developers need a stable API for a model-backed application. What should its specification describe?
- Only one successful example sentence
- A guarantee of identical prose for every request
- Request schemas, authentication, errors, and synchronous or asynchronous response semantics
- The private system prompt as the entire API contract
Explanation
Correct Answer
C:An API contract must explain operational behavior, not just a sample answer. Version changes deliberately.
Incorrect Answers
A:Examples do not define validation, failure handling, or authentication.
B:Generative output can vary, so clients should depend on defined structure and semantics.
D:Internal instructions do not specify client transport and lifecycle behavior.
Question 225
Amazon Q Developer generates a handler that calls Bedrock. What should happen before merging it?
- Disable static analysis to avoid generated-code warnings
- Check only whether comments are readable
- Review permissions and data handling, then run relevant tests against the intended API
- Merge automatically because generated code is vendor-endorsed
Explanation
Correct Answer
C:Generated code remains code requiring validation. Plausible syntax does not establish secure or correct integration.
Incorrect Answers
A:Warnings still need assessment regardless of code origin.
B:Readable comments do not validate credentials, request schemas, or error paths.
D:Tool assistance does not independently approve the application's implementation.
Question 226
An AI coding assistant suggests an SDK method and a dependency package for a Bedrock integration. The code looks plausible, but neither has been verified. What should the developer do before installation and merge?
- Verify the method in the intended SDK version and validate the package's trusted origin
- Install the first package with a similar name and rely on compilation
- Accept the method because the generated comments describe it confidently
- Disable dependency scanning because the code came from an approved coding assistant
Explanation
Correct Answer
A:Generated code can invent API names or suggest an unintended package. Documentation checks, dependency review, and integration tests protect both correctness and software supply-chain trust.
Incorrect Answers
B:A similarly named package may be unrelated or malicious. Compilation alone does not establish trusted origin or correct service behavior.
C:Explanatory prose is not evidence that an API exists in the chosen SDK. Check the actual interface and version.
D:Approval to use an assistant does not approve every generated dependency. Normal software review controls still apply.
Question 227
An automated document extraction workflow produces a low-confidence account number. What downstream integration fits?
- Discard confidence and source references immediately
- Treat every extracted character as authoritative
- Route uncertain critical fields for validation before updating the business record
- Increase the summary's writing quality
Explanation
Correct Answer
C:Extraction uncertainty should affect control flow. A wrong account identifier can redirect an otherwise correct update.
Incorrect Answers
A:This removes evidence needed for review and correction.
B:Automation can misread scans, so critical fields need validation.
D:Fluent prose does not verify the extracted account number.
Question 228
A custom prompt workflow cannot begin: its extraction node requires the summary output, while the summary node requires the extraction output. Neither node has an initial value. What should the developer change?
- Remove the circular dependency and define an acyclic initial processing path
- Increase both node timeouts and retry the same dependency graph
- Run more workers against the unchanged graph
- Treat the absence of an error response as a completed workflow
Explanation
Correct Answer
A:No node can produce the prerequisite needed by the other. The workflow needs a valid starting input and explicit sequencing rather than longer waiting allowances.
Incorrect Answers
B:Time does not produce an initial value in a graph where each node waits for the other.
C:Additional executors do not remove the missing prerequisite cycle. They can multiply waiting work.
D:A stalled graph has not produced the requested artifact. Completion requires verified stage results.
Question 229
Developers need fast tests for API error handling without invoking a real FM every run. Which approach fits?
- Use contract-faithful test doubles for control paths and selected live integration tests
- Skip errors because model responses vary
- Invoke production write tools in every unit test
- Use only mocked perfect answers and claim model quality is tested
Explanation
Correct Answer
A:Mocks test deterministic handling efficiently. Live tests remain necessary for actual service compatibility and model behavior.
Incorrect Answers
B:Operational failure paths can be tested independently of prose variation.
C:That creates unnecessary side effects and does not isolate control logic.
D:A mock cannot establish real generation accuracy.
Question 230
A workflow has separate branches for complete documents and documents needing clarification. Tests exercise only the complete branch, and a missing-field request fails at runtime. What development change best addresses this gap?
- Replace the branch with an unconditional success response
- Test branch predicates and both reachable branch contracts using explicit fixtures
- Measure only the total execution time of successful complete-document runs
- Increase the number of complete-document tests without exercising the alternate branch
Explanation
Correct Answer
B:A successful default path does not validate alternate control flow. Fixtures should assert which branch runs and the required output or clarification behavior.
Incorrect Answers
A:This hides validation failures and removes the required clarification behavior.
C:Timing on an unrelated path does not establish correctness of the failing branch.
D:More coverage of the same path cannot reveal a mapping defect confined to the missing-field branch.