Question 140

A booking tool requires an ISO date and a positive passenger count. Where should generated arguments be checked?

  1. By comparing the answer's fluency with earlier responses
  2. Validate types, formats, and business rules in the executor before booking
  3. After issuing the booking request
  4. Parse the arguments as JSON but skip date-format and quantity business checks
  5. Only in the tool's natural-language description

Explanation

Correct Answer

B:

A schema catches structural errors; business checks catch inadmissible values. Neither should depend solely on the model following instructions.

Incorrect Answers

A:

Linguistic quality does not establish date validity or passenger-count constraints.

C:

Validation after execution cannot prevent an invalid reservation from being created.

D:

A syntactically valid JSON object can contain an impossible date or negative passenger count. The executor must validate semantics before it books.

E:

Descriptions guide selection but do not enforce valid runtime arguments.

Question 141

A long approval workflow may pause for hours and resume after a worker restart. What state design fits?

  1. Recover only the most recent generated plan without recording which operations actually committed
  2. Keep all state only in the worker's local variables
  3. Persist only approval receipts without recording which execution steps committed
  4. Persist workflow state and approval correlation in durable storage

Explanation

Correct Answer

D:

Recovery requires an authoritative record outside process memory. Resume only the intended operation with its recorded status.

Incorrect Answers

A:

A plan describes intended work and can diverge from execution. Durable workflow transitions and approval correlations are needed to resume without skipping or duplicating actions.

B:

A restart loses the information needed to resume safely.

C:

Approval shows permission for a proposed operation but does not establish its actual completion. Recovery also needs durable step outcomes to avoid skipping or repeating side effects.

Question 142

An assistant should remember dietary preferences across a user's sessions. What should govern long-term memory retrieval?

  1. Treat an entered email address as proof of ownership
  2. Key persistent memory only by a browser-supplied display name
  3. Store every user's preferences in one unpartitioned prompt
  4. Make memory permanent because it improves personalization
  5. Bind stored preferences to verified user identity with consent and deletion controls

Explanation

Correct Answer

E:

Cross-session memory is useful only when scoped and governed. Session identifiers alone may not represent a stable authorized user.

Incorrect Answers

A:

User-supplied identifiers do not authenticate the person requesting stored data.

B:

Display names can collide or be forged. Persistent user memory requires a verified identity and an authorization policy.

C:

Shared memory can reveal personal preferences and contaminate recommendations.

D:

Persistence needs retention and deletion behavior; usefulness does not authorize indefinite storage.

Question 143

A stock-check tool fails with a transient upstream error. How should the agent receive this result?

  1. Return a structured error distinct from inventory data and apply a bounded recovery policy
  2. Return an empty inventory list with no error status
  3. Hide the error and generate an estimated stock count
  4. Retry inside the model prompt without any execution limit
  5. Return a quantity of zero for every tool failure

Explanation

Correct Answer

A:

The agent must distinguish unavailable evidence from zero inventory. Explicit status supports retry or a transparent incomplete answer.

Incorrect Answers

B:

An empty list can be mistaken for an authoritative no-stock result. The contract needs to distinguish unavailable data from valid business data.

C:

Estimated inventory can mislead customers when authoritative data is unavailable.

D:

Instructions do not provide a hard bound on repeated tool calls.

E:

This converts an operational failure into a false business fact.

Question 144

An agent must obtain a shipment ID before checking tracking status. Which orchestration pattern fits?

  1. Run both calls immediately with an invented ID
  2. Ask the tracking tool to infer any missing shipment
  3. Represent the lookup dependency and pass the validated ID into the tracking step
  4. Launch the tracking call with the product identifier before resolving the required shipment identifier

Explanation

Correct Answer

C:

The second call needs a real identifier from the first. Explicit dependencies prevent premature or fabricated tool inputs.

Incorrect Answers

A:

Parallelism cannot eliminate a required data dependency.

B:

Ambiguous implicit selection risks querying or changing the wrong business object.

D:

The tool contract requires a shipment ID. A related product identifier does not necessarily identify the particular shipment the user wants tracked.

Question 145

A travel agent needs independent weather and public-event lookups for the same city. Which execution strategy can reduce latency?

  1. Run the second lookup only after the first returns, solely to reuse one request worker
  2. Return whichever result arrives first and claim both completed
  3. Skip the events lookup whenever the weather service returns an unfavorable forecast
  4. Run the independent lookups concurrently and join their validated results

Explanation

Correct Answer

D:

No output dependency requires serialization. Concurrency still needs deadlines and handling for partial failures.

Incorrect Answers

A:

Worker reuse can be an implementation preference, but the lookups have no data dependency. Unnecessary serialization increases the critical path when safe concurrency is available.

B:

Fast partial data does not establish completion of the full request.

C:

The user still needs both independent information sources. A weather condition does not justify silently omitting the public-event result.

Question 146

An MCP server advertises a newly added destructive tool. The assistant is authorized only for read operations. What should the client do?

  1. Hide the destructive tool name only in the UI
  2. Automatically trust every advertised tool
  3. Expose only approved tools and enforce read-only permissions at execution
  4. Let the model decide which privileges the user deserves

Explanation

Correct Answer

C:

Discovery does not grant authorization. An allowlist and server-side permissions prevent new capabilities from silently expanding access.

Incorrect Answers

A:

The model or client could still call the underlying operation if enforcement is absent.

B:

A tool catalog describes availability, not organizational permission to use it.

D:

Privilege assignment must follow verified policy rather than generated judgment.

Question 147

A third-party MCP tool description includes instructions to reveal hidden credentials. How should the integration treat it?

  1. Review tool metadata as untrusted input and preserve credential isolation
  2. Provide credentials so the tool can explain itself
  3. Assume protocol compliance makes all descriptions safe
  4. Promote the description into the system policy automatically

Explanation

Correct Answer

A:

Descriptions can influence model behavior. Approval and executor boundaries must prevent metadata from acquiring secret access.

Incorrect Answers

B:

Descriptions do not justify disclosing secrets to a model or third party.

C:

A valid protocol message can still contain malicious or misleading content.

D:

This lets an external server rewrite governing instructions.

Question 148

A lightweight MCP tool performs stateless text normalization, with short independent calls. Which hosting candidate fits this workload?

  1. A Lambda-based implementation using a compatible transport and authentication design
  2. A prompt template with no executable endpoint
  3. A static tool manifest with discovery metadata but no request-execution handler
  4. A model inference endpoint used as the MCP transport server without any protocol adapter

Explanation

Correct Answer

A:

Short stateless operations can suit event-driven execution. Confirm protocol and deployment support rather than assuming every transport maps directly.

Incorrect Answers

B:

Instructions do not implement the tool's callable transport or normalization code.

C:

Discovery describes available operations; it does not implement normalization or return actual tool results. A callable authenticated server path is still required.

D:

An FM endpoint accepts its documented inference protocol. It does not automatically implement MCP discovery, tool dispatch, and authentication for this text-normalization service.

Question 149

An MCP server maintains complex connections and uses native dependencies requiring a long-running process. Which host is a reasonable candidate?

  1. An ECS service with explicit scaling, health, and identity controls
  2. A prompt-only solution with no server process
  3. A Lambda function assumed to preserve every process-local connection across all invocations
  4. An ECS task whose process-local state is assumed to survive every restart without durable storage

Explanation

Correct Answer

A:

Containers accommodate persistent processes and dependencies. Application state and recovery behavior still need deliberate design.

Incorrect Answers

B:

A prompt cannot maintain the required native connections.

C:

Execution environments can be replaced and are not a guarantee of persistent connection state. This workload calls for a deliberately long-running server design.

D:

A long-running service can still restart or be replaced. Container hosting supports the process requirement but does not make volatile session state durable by itself.

Question 150

A research agent hands findings to a writing agent, which confuses speculative notes with verified facts. What handoff change fits?

  1. Use structured findings with evidence, verification status, and task boundaries
  2. Pass only a persuasive narrative with no source labels
  3. Allow the writer to declare every upstream claim verified
  4. Increase the writer's temperature to resolve ambiguity

Explanation

Correct Answer

A:

The receiving agent can distinguish supported claims from hypotheses. Unstructured fluency should not imply verification.

Incorrect Answers

B:

This removes the distinctions needed to avoid unsupported claims.

C:

A downstream assertion does not replace evidence checking.

D:

Sampling variation does not recover missing provenance or status fields.

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