Question 190
A document-summary worker receives an SQS message. Processing legitimately takes longer than the queue's visibility timeout, and a second worker starts the same job before the first finishes. What should the design change?
- Use a suitable visibility timeout or controlled extensions, while retaining business-level idempotency
- Keep the short visibility timeout and assume worker execution automatically locks the message forever
- Use a longer message retention period as the only change
- Delete the message immediately on receipt before preserving recoverable job state
Explanation
Correct Answer
A:A processing lease should cover expected work so normal execution is not prematurely redelivered. Lease management reduces overlap but does not provide an absolute exactly-once guarantee.
Incorrect Answers
B:The visibility lease expires independently of whether the worker is still running. An active process does not indefinitely reserve the message.
C:Retention controls how long messages may remain in the queue. It does not extend the invisibility interval after receipt.
D:Early deletion prevents retry if the worker subsequently crashes. It replaces duplicate work with a risk of silently lost work.
Question 191
An enterprise application must call a supported Bedrock runtime API without using a public internet route. What should be evaluated?
- A system prompt asking traffic to remain private
- A public runtime endpoint accessed over TLS through an internet egress path
- An interface VPC endpoint with correct DNS, network, and IAM policies
- An S3 bucket policy alone
Explanation
Correct Answer
C:Private connectivity changes the network path. It does not eliminate the need for authorization or compatible endpoint configuration.
Incorrect Answers
A:Model instructions cannot control network routing.
B:TLS protects transport, but the requirement excludes public internet routing. Evaluate a correctly configured interface endpoint for the supported API.
D:Object permissions do not create a private path to the Bedrock runtime.
Question 192
A central inference service must be callable from approved workload accounts. Which identity pattern fits?
- Use the account number as a secret password
- A scoped cross-account role with an explicit trust policy and least-privilege permissions
- Trust all accounts because the model is shared
- Distribute one long-lived administrator key to every account
Explanation
Correct Answer
B:Trust controls who can assume the role; permissions control what it can do. Both sides need correct configuration.
Incorrect Answers
A:Account identifiers are not authenticators or access grants.
C:Shared infrastructure does not justify unrestricted cross-account access.
D:Shared broad credentials increase exposure and weaken attribution.
Question 193
An external business API rotates its token regularly. What should the tool executor use?
- The previous token indefinitely after authentication failures
- A managed secret reference retrieved through authorized runtime code with rotation handling
- A token embedded in the public client bundle
- A token hard-coded in every prompt template
Explanation
Correct Answer
B:Credential lifecycle stays outside prompts and source code. Cached credentials need a refresh strategy when rotation occurs.
Incorrect Answers
A:Expired credentials require refresh or remediation rather than endless reuse.
C:Clients can inspect bundled values, so the credential is not protected.
D:This exposes the token and makes rotation require widespread prompt edits.
Question 194
A system writes an order update and publishes a summary-generation event separately; crashes can leave only one completed. What pattern addresses this gap?
- Let the model infer which orders need events
- Disable retries to avoid duplicate events
- Publish the event and assume the database write will succeed
- A transactional outbox with a reliable publisher and idempotent consumer
Explanation
Correct Answer
D:Recording the event intent with the business transaction avoids the dual-write gap. Delivery can still repeat, requiring deduplication.
Incorrect Answers
A:Probabilistic inference does not guarantee complete transaction-event correspondence.
B:This trades duplicates for lost work without addressing atomic intent recording.
C:The two operations can still diverge on failure.
Question 195
A model-backed API receives work faster than workers can complete it. What should the integration expose?
- Report completed immediately for every accepted request
- Increase client retries whenever backlog grows
- Accept unlimited work into memory
- Bounded admission or queueing with explicit busy or pending responses
Explanation
Correct Answer
D:Backpressure prevents unbounded resource growth. Callers need truthful status and retry guidance.
Incorrect Answers
A:Acceptance does not mean processing finished.
B:More arrivals amplify overload rather than controlling demand.
C:Finite memory cannot support unbounded backlog and process failure can lose jobs.
Question 196
An operator manually changes a production knowledge-base configuration outside the deployment pipeline. What should the team do?
- Update only the application commit tag without reconciling infrastructure state
- Detect drift, assess the change, and reconcile the declared configuration through review
- Ignore it because the application still starts
- Delete deployment history
Explanation
Correct Answer
B:Infrastructure and configuration should remain reproducible. Reconciliation must consider whether the manual change fixed or introduced a problem.
Incorrect Answers
A:A commit label does not change the live configuration or establish which declared settings should govern the resource.
C:Startup success does not establish that retrieval behavior matches the tested release.
D:Removing evidence makes the discrepancy harder to investigate.
Question 197
A CRM user edits an AI-generated summary to correct an error. A background retry later overwrites the correction. What write policy fits?
- Use version checks and preserve explicit human edits unless a reviewed update is requested
- Allow a retry to overwrite any existing summary whenever its own generation timestamp is newer
- Disable all user edits permanently
- Always let AI results overwrite human text
Explanation
Correct Answer
A:A delayed generated result should not blindly replace newer authoritative work. Concurrency metadata distinguishes versions.
Incorrect Answers
B:Generation time does not make a delayed AI result more authoritative than an intervening human correction. Use record versions and the ownership policy for writes.
C:That removes a useful correction mechanism rather than solving concurrency.
D:This destroys valid corrections and ignores write ordering.
Question 198
A summarization gateway forwards entire CRM records, including fields irrelevant to the task. What improvement fits?
- Encrypt the connection but continue forwarding every field
- Project only the authorized fields required for the summary
- Ask the model to forget irrelevant fields after reading them
- Keep all fields but reduce the completion allowance
Explanation
Correct Answer
B:Data minimization reduces exposure and token cost. Required facts must still be preserved for useful output.
Incorrect Answers
A:Transport protection is useful but does not reduce unnecessary processing of sensitive fields.
C:Post-input instructions do not undo disclosure to the inference path.
D:An output ceiling can limit generated text, but it does not reduce the sensitive fields submitted for inference.
Question 199
A document workflow exceeds its deadline after extraction succeeds. What checkpoint design supports efficient recovery?
- Persist validated intermediate artifacts with input and component versions
- Keep intermediates only in volatile process memory
- Repeat every prior operation without inspecting state
- Reuse an intermediate whenever the source filename matches, even if bytes or parser version changed
Explanation
Correct Answer
A:A resumed run can safely reuse compatible extraction output. Version checks prevent reusing stale or incompatible data.
Incorrect Answers
B:Timeouts or restarts can destroy the information needed for recovery.
C:This wastes work and can duplicate side effects.
D:The same name can represent different input revisions. Recovery checkpoints need compatibility and content identity to avoid propagating obsolete extraction results.
Question 200
An event producer changes its summary-request field names without notifying consumers. What integration practice reduces breakage?
- Use HTTP success rate as the only compatibility check
- Let every consumer guess new fields from prose
- Remove schema validation from every consumer
- Version event schemas and validate compatibility in producer-consumer tests
Explanation
Correct Answer
D:Explicit contracts make incompatible changes visible before release. Consumers need a planned migration path.
Incorrect Answers
A:A message can be accepted while its required fields are misunderstood.
B:Guessing is unreliable for operational contracts and can silently misroute work.
C:Unchecked payloads move failures deeper into processing rather than fixing compatibility.