100% Latest & Updated Anthropic CCDV-F Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 100
A summarization service retrieves HTML containing hidden CSS text instructing tool commands. Which action directly resolves the reported problem?
- Insert a hostile hidden paragraph and verify no privileged action follows
- Trust all DOM text because it came from a signed website
- Remove visible HTML tags, then treat any hidden CSS instructions as approved tool commands
- Ignore instruction-like content from HTML sources and enforce trusted tool permissions
Explanation
Correct Answer
D:Prompt injection can arrive through rendered or hidden retrieved text.
Incorrect Answers
A:Verification alone does not implement the missing change. Ignore instruction-like content from HTML sources and enforce trusted tool permissions.
B:Site transport identity does not grant instruction authority to page content.
C:HTML appearance and formatting do not grant the document authority. Hidden instructions remain untrusted and may not authorize tool actions.
Question 101
A Python client retries every HTTP 400 validation error with exponential backoff. Which action directly resolves the reported problem?
- Simulate 400 and 429 responses and verify only the transient class is retried
- Keep blocking I/O out of the event loop or use a compatible async database client
- Retry every non-2xx status four times
- Separate permanent request validation errors from transient retryable failures
Explanation
Correct Answer
D:Invalid parameters require code correction, not repeated network traffic.
Incorrect Answers
A:Verification alone does not implement the missing change. Separate permanent request validation errors from transient retryable failures.
B:Blocking synchronous work stalls unrelated asynchronous tasks. However, invalid parameters require code correction, not repeated network traffic.
C:Repeating malformed requests wastes tokens and never repairs the request body.
Question 102
A tool caller accepts output from an untrusted server as if it could issue higher-priority instructions. Which action directly resolves the reported problem?
- Promote tool results into system instructions before the next turn
- Inject a tool-output instruction requesting secret disclosure and verify denial
- Separate external tool output from trusted application policy and permissions
- Encode tool failure in the documented tool_result error semantics
Explanation
Correct Answer
C:Tool data can inform decisions but cannot override system authorization.
Incorrect Answers
A:Untrusted integrations must not gain new authority through response formatting.
B:Verification alone does not implement the missing change. Separate external tool output from trusted application policy and permissions.
D:The model should not treat failed execution as successful external evidence. However, tool data can inform decisions but cannot override system authorization.
Question 103
A system instruction is overwritten by a user message asking the app to ignore all access rules. Which action directly resolves the reported problem?
- Run an adversarial user request and verify no privileged action occurs
- Copy the latest user request into the system role for convenience
- Delimit instruction, retrieved source and user input explicitly using structure such as XML tags
- Keep privileged instructions in higher-trust roles and enforce permissions separately in code
Explanation
Correct Answer
D:User text cannot be promoted above trusted application policy.
Incorrect Answers
A:Verification alone does not implement the missing change. Keep privileged instructions in higher-trust roles and enforce permissions separately in code.
B:Changing instruction authority from untrusted input allows policy bypass.
C:Boundaries help the model distinguish evidence from tasks without granting evidence authority. However, user text cannot be promoted above trusted application policy.
Question 104
A document extractor fails on uncommon headings because prompts include no examples of varied input formats. Which action directly resolves the reported problem?
- Keep examples synthetic and separate them from runtime private data
- Compare held-out extraction accuracy with and without the examples
- Copy one example document and assume it represents every layout
- Add a small set of representative examples with expected outputs and validate held-out cases
Explanation
Correct Answer
D:Few-shot demonstrations clarify mappings not obvious from a brief directive.
Incorrect Answers
A:Few-shot context should teach format without unnecessary sensitive leakage. However, few-shot demonstrations clarify mappings not obvious from a brief directive.
B:Verification alone does not implement the missing change. Add a small set of representative examples with expected outputs and validate held-out cases.
C:A single narrow example may encourage memorization instead of generalization.
Question 105
A retrieved web page tells the assistant to send confidential customer text to a third-party endpoint. Which action directly resolves the reported problem?
- Treat retrieved instructions as untrusted data and enforce a trusted tool-authorization policy
- Run a prompt-injection fixture that requests exfiltration and verify no outbound tool call occurs
- Pass every web page sentence into the system role for maximum context
- Clearly mark repository content as data and forbid privileged tool actions without separate authorization
Explanation
Correct Answer
A:Tool execution authority must not originate from attacker-controlled content.
Incorrect Answers
B:Verification alone does not implement the missing change. Treat retrieved instructions as untrusted data and enforce a trusted tool-authorization policy.
C:Content from a page can contain hostile instructions and must not gain higher authority.
D:Source documents can contain imperative text that is relevant as evidence but not policy. However, tool execution authority must not originate from attacker-controlled content.
Question 106
An application performs string concatenation to construct JSON requests and fails on escaped user input. Which action directly resolves the reported problem?
- Remove all quotation marks from user text before assembly
- Use a JSON serializer or SDK types and validate the schema before sending
- Test adversarial quotes and Unicode escapes through the same serializer
- Add schema migration/default handling and tests for historical payloads
Explanation
Correct Answer
B:Proper encoding prevents quotes and control characters from corrupting wire format.
Incorrect Answers
A:Destructive sanitization loses legitimate content while still failing proper serialization.
C:Verification alone does not implement the missing change. Use a JSON serializer or SDK types and validate the schema before sending.
D:Backward compatibility needs explicit behavior for older stored data. However, proper encoding prevents quotes and control characters from corrupting wire format.
Question 107
A customer-facing Claude workflow returns unsafe financial recommendations without deterministic eligibility checks. Which action directly resolves the reported problem?
- Rely on one broad safety sentence in the prompt instead of application checks
- Layer policy filters, domain validation and limited action permissions around generation
- Test disallowed edge cases and ensure actions are blocked before execution
- Add a reassuring disclaimer while permitting automated transactions without eligibility checks
Explanation
Correct Answer
B:Safety needs enforceable business constraints in addition to response guidance.
Incorrect Answers
A:An instruction alone cannot guarantee every generated financial recommendation complies.
C:Verification alone does not implement the missing change. Layer policy filters, domain validation and limited action permissions around generation.
D:A disclaimer cannot enforce financial eligibility rules or stop an unauthorized action. Deterministic validation and restricted tool permissions are required.
Question 108
A JSON field that was optional becomes required but the client does not validate old records. Which action directly resolves the reported problem?
- Use a JSON serializer or SDK types and validate the schema before sending
- Reprocess old fixtures and verify the new parser handles absent fields predictably
- Delete all historical records that lack the new field
- Add schema migration/default handling and tests for historical payloads
Explanation
Correct Answer
D:Backward compatibility needs explicit behavior for older stored data.
Incorrect Answers
A:Proper encoding prevents quotes and control characters from corrupting wire format. However, backward compatibility needs explicit behavior for older stored data.
B:Verification alone does not implement the missing change. Add schema migration/default handling and tests for historical payloads.
C:Data deletion is not a substitute for controlled migration.
Question 109
An integration needs distinct API credentials for staging and production but uses one environment variable in both. Which action directly resolves the reported problem?
- Launch both environments and verify the staging process cannot authenticate with production scope
- Store the same administrator token in every environment for consistency
- Version model IDs, prompts and tool definitions in reviewed deployment configuration
- Use separate environment-scoped credentials and enforce config validation before deployment
Explanation
Correct Answer
D:Environment isolation reduces cross-system privilege and accidental data writes.
Incorrect Answers
A:Verification alone does not implement the missing change. Use separate environment-scoped credentials and enforce config validation before deployment.
B:Shared credentials defeat the intended separation and raise breach impact.
C:Reproducible behavior requires the complete application configuration not just the source commit. However, environment isolation reduces cross-system privilege and accidental data writes.
Question 110
A chatbot's identical input produces variable answers and an engineer expects deterministic replay without controlling sampling. Which action directly resolves the reported problem?
- Run repeated fixed-input fixtures and measure expected behavior rather than string equality alone
- Distinguish stochastic generation from application state and test with controlled inputs/settings
- Separate reproducibility requirements from probabilistic generation and test supported settings
- Treat any wording difference as an application data-corruption event
Explanation
Correct Answer
C:Statistical consistency is not byte-for-byte deterministic behavior.
Incorrect Answers
A:Verification alone does not implement the missing change. Separate reproducibility requirements from probabilistic generation and test supported settings.
B:Non-deterministic sampling can change surface wording even when underlying facts remain constant. However, statistical consistency is not byte-for-byte deterministic behavior.
D:Stochastic output variation is normal and does not establish state corruption.
Claude Certified Developer - Foundations (CCDV-F) Practice Tests