All practice tests

Module 2 practice — Enterprise integration and production

15 questions · Integration · Evaluation, Testing, and Optimization

Practice questions written by Sanjay Shah. Not exam questions, not affiliated with or endorsed by Anthropic.

  1. Question 1

    A piloted HR assistant reads documents through one service account that can see the entire HR document store. It is about to go to all staff. What is the best fix?

    • A) Add a system prompt instruction telling Claude never to reveal manager-only or confidential documents.
    • B) Keep the service account but rotate its password monthly and store it in a vault.
    • C) Exchange each signed-in user's token for a short-lived, read-only token with that user's rights, and run retrieval with it.
    • D) Limit the assistant to HR staff only, for good.
    Show answer

    Answer: C

    • A: An instruction, not a control. A crafted question or a model error gets round it.
    • B: Keeps the over-broad access and only improves how the secret is stored.
    • C: Right: On-behalf-of tokens carry the user's own rights, so the assistant can never see more than the user can.
    • D: Throws away the value instead of fixing the access design.
  2. Question 2

    A document's access was removed in the source system three days ago, but the assistant still retrieves it from the vector index. What is the best design fix?

    • A) Sync access labels from the source into the index with a short, monitored lag, and add a revocation test to the permanent test suite.
    • B) Ask Claude to check whether the user is allowed to see each document before using it.
    • C) Rebuild the index once a year during the annual access review.
    • D) Add a disclaimer to answers saying some sources may be out of date.
    Show answer

    Answer: A

    • A: Right: Permissions must travel with the content and stay in sync, and revocation must be tested for good.
    • B: Asks the model to enforce security it has no reliable data for.
    • C: Leaves revoked access live for up to a year.
    • D: Admits the leak instead of preventing it.
  3. Question 3

    Your preferred cloud platform meets the company's residency and contract rules. A feature-by-feature check on the decision date shows one feature the design assumed is not offered there yet. What is the best next step?

    • A) Assume feature parity will arrive soon and continue the design as planned.
    • B) Switch to whichever platform has the feature, without re-checking residency or contracts.
    • C) Pause the project until the feature appears on the preferred platform.
    • D) Decide whether the feature is essential or has a workable alternative on that platform, and record the decision with its trade-off and a revisit trigger.
    Show answer

    Answer: D

    • A: Designs on a guess.
    • B: May break the residency and contract rules that drove the choice.
    • C: Waits on a vendor roadmap with no evidence the feature is essential.
    • D: Right: Treat it as a recorded trade-off: is the feature truly needed, is there an alternative, and what would make you revisit.
  4. Question 4

    At peak hours the service starts getting HTTP 429 responses from the model API. Which TWO responses are best? (Choose TWO.)

    • A) Retry each failed call immediately in a loop until it succeeds.
    • B) Respect the retry-after header and back off with jitter, within a retry budget.
    • C) Switch every request to the most capable model, which has more capacity.
    • D) Create several more API keys so the traffic is spread across them.
    • E) Estimate peak requests and tokens, queue work that isn't urgent, and request higher limits before the next peak.
    Show answer

    Answer: B, E

    • A: Makes the overload worse.
    • B: Right: honour the server's guidance and cap retries so you don't amplify the overload.
    • C: Unrelated to rate limits and raises cost.
    • D: Tries to get round limits that apply at organisation level, and makes cost and usage harder to see.
    • E: Right: capacity is planned, not discovered; queueing smooths the peak.
  5. Question 5

    A clinical message assistant drafts replies for nurses. The primary model is unavailable. The fallback model has not been evaluated on clinical drafts. What should the system do?

    • A) Send the messages down the human path (a normal nurse queue, with no draft) and record the outage.
    • B) Use the fallback model, because a draft is better than nothing.
    • C) Reuse cached drafts from similar earlier messages.
    • D) Show an error to the patient and drop the message.
    Show answer

    Answer: A

    • A: Right: For a high-risk step, an unevaluated model is not a fallback. The human path is.
    • B: Puts untested drafts in front of busy nurses.
    • C: Reuses answers written for different patients.
    • D: Drops a patient message, which is unsafe.
  6. Question 6

    On a multi-tenant SaaS platform, one tenant starts a bulk AI job that will use most of the month's AI spend. What is the best control?

    • A) A single global cap that stops AI for every tenant once total spend is reached.
    • B) Let it run and bill the tenant for the overage at month end.
    • C) Per-tenant budgets with alerts and a hard cap, where only that tenant's AI features degrade politely when it is reached.
    • D) Cut the maximum output length for every tenant to save tokens.
    Show answer

    Answer: C

    • A: Punishes every tenant for one tenant's job.
    • B: Finds out after the money is spent.
    • C: Right: Budgets per tenant contain the blast radius, and graceful degradation keeps the platform usable.
    • D: Makes everyone's quality worse and doesn't stop the runaway job.
  7. Question 7

    Internal audit asks: "Which documents informed the answer this employee got on 3 October?" Which design element lets you answer?

    • A) Asking the model today to explain how it would have answered that question.
    • B) Debug logs, which are kept for 7 days.
    • C) The user's thumbs-up or thumbs-down on the answer.
    • D) An audit record keyed by trace ID that stores the retrieved source IDs, prompt version and model ID for each answer.
    Show answer

    Answer: D

    • A: Gets a new answer from possibly different conditions. It is not evidence.
    • B: Has already deleted the data.
    • C: Records satisfaction, not provenance.
    • D: Right: Only a stored record of the sources, prompt version and model per answer can reconstruct what happened.
  8. Question 8

    The team redacts health details before sending prompts to the model. You then find that the tracing tool stores the raw incoming request. Which TWO actions are best? (Choose TWO.)

    • A) Purge or redact the raw traces already stored, and check who accessed them, under the incident process.
    • B) Encrypt the trace store at rest and leave the contents as they are.
    • C) Redact before anything is logged or traced, restrict access to traces, and set a short retention period.
    • D) Keep the raw traces, because they never leave the company.
    • E) Turn off all logging and tracing for the assistant.
    Show answer

    Answer: A, C

    • A: Right: the data already exposed must be dealt with, not just future data.
    • B: Protects against stolen disks, not against the many people who can read the traces.
    • C: Right: fixes the cause, because logs and traces are data too.
    • D: Ignores the fact that internal over-retention is still a privacy risk.
    • E: Removes the evidence you need to run and audit the system.
  9. Question 9

    The pilot went very well and the sponsor wants all 4,000 staff switched on next Monday. What is the best plan?

    • A) Shadow run, then a pilot, then a staged release, each with a pass gate, and a tested kill switch with a named owner.
    • B) Launch to everyone on Monday and watch the feedback closely.
    • C) Launch to everyone, but only during business hours for the first week.
    • D) Launch to everyone with a banner saying the feature is in beta.
    Show answer

    Answer: A

    • A: Right: Staged rollout with gates and a tested kill switch turns a pilot into a safe launch.
    • B: A big-bang launch with cosmetic softening.
    • C: A big-bang launch with cosmetic softening.
    • D: A big-bang launch with cosmetic softening.
  10. Question 10

    Which kill-switch design is best?

    • A) Rolling back the release through the normal deployment pipeline (about 40 minutes).
    • B) Revoking the model API key in an emergency.
    • C) Emailing users to ask them to stop using the feature.
    • D) A feature flag that switches to the fallback process in under a minute without a deployment, with a named owner and deputy, tested before launch.
    Show answer

    Answer: D

    • A: Too slow and depends on the pipeline working mid-incident.
    • B: A crude outage with no fallback, and may hit other workloads using the key.
    • C: Relies on users reading email.
    • D: Right: Fast, needs no deployment, owned, tested, and falls back to a working process.
  11. Question 11

    A nightly agent reconciles supplier invoices with no user present. It needs to read invoices and purchase orders. Which TWO identity choices are best? (Choose TWO.)

    • A) Use a finance administrator's token saved from an earlier session.
    • B) Keep the agent's credential short-lived and rotated automatically from a secrets manager.
    • C) Use the model API key to authenticate to the ERP as well.
    • D) Give the agent its own workload identity with read-only access to just those records, and log its actions against that identity.
    • E) Use the shared integration account that the other back-office jobs already use.
    Show answer

    Answer: B, D

    • A: Credential misuse and hides who acted.
    • B: Right: short-lived, rotated credentials limit the damage if one leaks.
    • C: Confuses the model credential with access to company data.
    • D: Right: its own least-privilege identity, with actions logged against it.
    • E: Grants broad, shared rights and blurs the audit trail.
  12. Question 12

    Model calls are scattered directly across 14 services, each with its own retry logic. Leadership wants the platform choice to stay reversible. What is the best step?

    • A) Leave the calls where they are and document each service's settings.
    • B) Route model calls through one internal client or gateway that owns credentials, retries, budgets and tracing, so changing platform is a configuration change plus an eval re-run.
    • C) Train an in-house model so no external platform is needed.
    • D) Run every request on two platforms at once, active-active, from day one.
    Show answer

    Answer: B

    • A: Keeps 14 different behaviours and a costly switch.
    • B: Right: One gateway centralises credentials, retries, budgets and tracing, and makes the platform swappable.
    • C: A huge, unrelated project.
    • D: Doubles cost and complexity before anyone has asked for it.
  13. Question 13

    The readiness review's four red items (identity, index filtering, log redaction, fallback path) are now closed. The kill switch, budget alerts and other countries' eval sets are still open. The sponsor asks for a launch in all three countries. What is the best call?

    • A) No-go for all three countries. Go for the staged path in one country, with the kill switch and budget alerts live before any employee sees an answer.
    • B) Go for all three countries, because no red items remain.
    • C) No-go on everything until every amber item for every country is closed.
    • D) Go for all three countries, with HR staff watching outputs manually.
    Show answer

    Answer: A

    • A: Right: The red items are closed, so a staged start in one country is reasonable, but users must not depend on it without a kill switch and budget alerts.
    • B: Ignores the open safeguards and the countries with no eval set.
    • C: Over-cautious: the remaining items aren't needed for a gated first stage.
    • D: A big-bang launch with manual watching in place of controls.
  14. Question 14

    Policy requires staff data from EU employees to be processed in the EU. Which approach is most defensible?

    • A) Use the global endpoint, because it is cheaper and more available.
    • B) Use whichever endpoint the pilot used, because it already works.
    • C) Pseudonymise employee names and send the data to any region.
    • D) Choose a platform and endpoint whose documented processing location meets the rule, confirm it on the decision date, record it, and accept any regional price premium.
    Show answer

    Answer: D

    • A: Breaks the rule.
    • B: Decides by habit.
    • C: Wrong because pseudonymised data is still personal data under GDPR, so the residency rule still applies.
    • D: Right: Meet the rule with a documented processing location, confirm it is current, and record the choice and its cost.
  15. Question 15

    What is the best eval set for a policy assistant used in three countries?

    • A) The 20 questions the builders tested most during the pilot.
    • B) Monthly satisfaction survey results from users.
    • C) Real questions from each country and user group, with expected answers and sources, a pass bar, and permission-leak tests run as a low-rights user.
    • D) Ask the model to grade its own answers to open-ended questions, with no reference answers.
    Show answer

    Answer: C

    • A: Only measures the happy path the builders already know.
    • B: Lagging and subjective.
    • C: Right: A representative, labelled set with a bar, plus leak tests, measures what matters.
    • D: Has no reference answers, so it can't detect confident errors.

↑ ↓ सार्नुहोस् · ↵ छान्नुहोस् · esc बन्द