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?

  1. Use a suitable visibility timeout or controlled extensions, while retaining business-level idempotency
  2. Keep the short visibility timeout and assume worker execution automatically locks the message forever
  3. Use a longer message retention period as the only change
  4. 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?

  1. A system prompt asking traffic to remain private
  2. A public runtime endpoint accessed over TLS through an internet egress path
  3. An interface VPC endpoint with correct DNS, network, and IAM policies
  4. 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?

  1. Use the account number as a secret password
  2. A scoped cross-account role with an explicit trust policy and least-privilege permissions
  3. Trust all accounts because the model is shared
  4. 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?

  1. The previous token indefinitely after authentication failures
  2. A managed secret reference retrieved through authorized runtime code with rotation handling
  3. A token embedded in the public client bundle
  4. 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?

  1. Let the model infer which orders need events
  2. Disable retries to avoid duplicate events
  3. Publish the event and assume the database write will succeed
  4. 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?

  1. Report completed immediately for every accepted request
  2. Increase client retries whenever backlog grows
  3. Accept unlimited work into memory
  4. 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?

  1. Update only the application commit tag without reconciling infrastructure state
  2. Detect drift, assess the change, and reconcile the declared configuration through review
  3. Ignore it because the application still starts
  4. 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?

  1. Use version checks and preserve explicit human edits unless a reviewed update is requested
  2. Allow a retry to overwrite any existing summary whenever its own generation timestamp is newer
  3. Disable all user edits permanently
  4. 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?

  1. Encrypt the connection but continue forwarding every field
  2. Project only the authorized fields required for the summary
  3. Ask the model to forget irrelevant fields after reading them
  4. 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?

  1. Persist validated intermediate artifacts with input and component versions
  2. Keep intermediates only in volatile process memory
  3. Repeat every prior operation without inspecting state
  4. 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?

  1. Use HTTP success rate as the only compatibility check
  2. Let every consumer guess new fields from prose
  3. Remove schema validation from every consumer
  4. 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.

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