# LLM Fundamentals — Practice reading

Exam: CCDV-F — Claude Certified Developer - Foundations
Knowledge domain: Model Selection and Optimization
HTML: https://learningpathx.com/learning-path/CCDV-F/learn/415

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: multiple\_choice
Knowledge point: Tokens, context windows, and next-token generation

Which two statements correctly distinguish input tokens from output tokens in an API interaction? (Choose 2.)

### Options

**A**

Output tokens are generated by the model in its response.

**B**

Input tokens do not affect cost or capacity.

**C**

Output tokens are never reported in usage metrics.

**D**

Input tokens include the prompt and supplied request context.

Correct answer: A, D

### Explanation

Input tokens are supplied to the model, while output tokens are produced during generation. Both are represented in request usage and contribute to capacity and cost considerations. Cache creation and cache reads may be reported and billed separately from uncached input; those accounting details do not change the input-versus-generated-output distinction.

## Question 2

Type: single\_choice
Knowledge point: Tokens, context windows, and next-token generation

What does a model's context window limit?

### Options

**A**

The number of users who can open a session.

**B**

The number of HTTP status codes an API can return.

**C**

The number of tools an application may define.

**D**

The amount of input and prior context the model can consider in a request.

Correct answer: D

### Explanation

The context window is the model’s total token capacity for the request and generation under its documented rules. Input, prior history and applicable generated response/thinking consume capacity, so input budgeting must reserve space for output.

## Question 3

Type: single\_choice
Knowledge point: Tokens, context windows, and next-token generation

Why can a response stop with stop\_reason: max\_tokens?

### Options

**A**

The request\_id expired.

**B**

The input contained no tokens.

**C**

The model lost API authentication.

**D**

The configured output-token ceiling was reached before generation finished.

Correct answer: D

### Explanation

A max\_tokens stop indicates that generation reached its configured output ceiling, potentially before the answer finished. Depending on model limits and the application contract, increase the permitted output budget or use a supported continuation/recovery path; do not assume the limit can always be raised.

## Question 4

Type: single\_choice
Knowledge point: Tokens, context windows, and next-token generation

How does an autoregressive language model produce a response?

### Options

**A**

It emits all tokens independently at the same time.

**B**

It predicts the next token repeatedly from the available context.

**C**

It retrieves a fixed answer without processing context.

**D**

It can generate only tokens that appeared in the user prompt.

Correct answer: B

### Explanation

Next-token generation is iterative: each generated token becomes part of the context used to predict the following token.

## Question 5

Type: single\_choice
Knowledge point: Sampling and non-determinism

Why should a production team record the configuration used for an LLM evaluation?

### Options

**A**

It makes a single stored answer sufficient for all later evaluations.

**B**

It allows the team to omit the prompt and test inputs from comparison records.

**C**

It helps compare observed variation under the same conditions.

**D**

It replaces the need to record observed outputs and failures.

Correct answer: C

### Explanation

Recording the evaluation configuration provides context for comparing outcomes and investigating variation across runs. Record the actual model identifier/version, prompt and relevant generation settings alongside the test inputs and outputs; this supports interpretation rather than guaranteeing identical generations.

## Question 6

Type: multiple\_choice
Knowledge point: Sampling and non-determinism

A course exercise defines zero-shot as 0 complete input/output demonstrations, single-shot as 1, and multi-shot as at least 2\. The current query is not counted as a demonstration. This is a naming convention for this exercise, not a mandatory example quota.

All variants share this task: "Classify the review as positive or negative. Return JSON with only label and summary. For positive use summary Good or Favorable; for negative use Poor or Unfavorable." The current query in each variant is review="good".

```text
P0 demonstrations: none
P1 demonstrations: review="bad" -> {"label":"negative","summary":"Poor"}
P2 demonstrations: review="bad" -> {"label":"negative","summary":"Poor"}
                   review="love it" -> {"label":"positive","summary":"Good"}
```

For P1 only, a synthetic teaching sampler is defined over two whole JSON outputs:

```text
0 <= draw < 0.6  -> {"label":"positive","summary":"Good"}
0.6 <= draw < 1  -> {"label":"positive","summary":"Favorable"}
Run 1 draw=0.2; Run 2 draw=0.8
```

This table is not a real Claude probability record or API configuration. The two draw values and both returned outputs are supplied exercise observations. The exercise does not add temperature or top\_k parameters to any current model request.

Which two conclusions follow from the demonstration counts and supplied sampling trace? (Choose 2.)

### Options

**A**

P0 is zero-shot, P1 is single-shot and P2 is multi-shot under the stated convention.

**B**

P1 is multi-shot because its one demonstration and the current query together count as two demonstrations.

**C**

The two P1 runs select different permitted summary words; both still satisfy the declared task and output shape for the positive review.

**D**

The changed summary proves Run 2 violates the task, because single-shot prompting requires verbatim reproduction of Run 1.

**E**

One demonstration guarantees deterministic real Claude output, so the synthetic variation proves the API is broken.

**F**

P0 cannot be zero-shot unless an unsupported temperature or top\_k override is added to the request.

Correct answer: A, C

### Explanation

Demonstration count determines the exercise's shot labels. Its supplied draws select two valid positive summaries; wording variation alone is not a task or schema violation.

## Question 7

Type: multiple\_choice
Knowledge point: Fast mode, extended thinking, adaptive thinking, and effort levels

On a supported Claude model exposing effort control, which two statements correctly contrast effort and max\_tokens? (Choose 2.)

### Options

**A**

Effort is an API error identifier.

**B**

max\_tokens guarantees a complete answer.

**C**

Effort is guidance that can change how much reasoning the model uses.

**D**

max\_tokens is a strict output ceiling.

Correct answer: C, D

### Explanation

Effort is a soft control over response work, while max\_tokens is a hard output limit. A hard limit can still truncate an unfinished answer. Where applicable, max\_tokens limits total generated output including thinking and the final response; effort is not an independently guaranteed token count.

## Question 8

Type: single\_choice
Knowledge point: Fast mode, extended thinking, adaptive thinking, and effort levels

A developer compares two runs on the same tested Claude deployment. That deployment accepts `max_tokens` values of 512 and 2048\. The task, model, thinking configuration and effort stay fixed:

| Run | Serving mode | max\_tokens | stop\_reason | Required final section |
| --- | --- | --- | --- | --- |
| R1 | Normal | 512 | max\_tokens | Missing |
| R2 | Fast | 512 | max\_tokens | Missing |

Which next comparison isolates the documented output-ceiling issue?

### Options

**A**

Use Fast mode again with max\_tokens=512, because serving speed guarantees a complete answer.

**B**

Mark both missing sections acceptable because max\_tokens is a successful-response stop reason.

**C**

Keep the other settings fixed and retest with max\_tokens=2048, checking completion and required sections.

**D**

Raise reasoning effort while keeping max\_tokens=512, because effort is the output ceiling.

Correct answer: C

### Explanation

The experiment already separated serving speed from the missing final section. The explicit stop reason points to the output ceiling; test that lever alone and evaluate actual task completion.

## Question 9

Type: multiple\_choice
Knowledge point: Fast mode, extended thinking, adaptive thinking, and effort levels

A developer is comparing two Claude API request profiles using the documentation snapshot of 2026-10-10\. The account has the required fast-mode access. Both profiles have a hard generated-output ceiling of 4096 tokens and use supported `medium` effort.

Profile M remains on `claude-sonnet-4-6`; it must retain its existing manual thinking allocation of 1024 tokens for this compatibility test. Profile F uses `claude-opus-5-5`; it should use the supported fast output-generation option and let the model allocate its thinking. No profile is promised a time-to-first-token improvement or a total task-spending limit.

The supplied compatibility snapshot records that Sonnet 4.6 accepts legacy manual `enabled` thinking with `budget_tokens` and also accepts adaptive thinking; Opus 5.5 accepts adaptive thinking but rejects manual `enabled` and `disabled` thinking. The fast-mode request controls are `speed: "fast"` and the `fast-mode-2026-02-01` beta header on the direct Claude API. Request bodies below share this `messages` field:

```json
{"messages":[{"role":"user","content":"Review the supplied design."}]}
```

Which TWO request profiles satisfy the stated goals? The beta header shown with a body is sent as an HTTP header. (Choose 2.)

### Options

**A**

Profile F: `{"model":"claude-opus-5-5","thinking":{"type":"enabled","budget_tokens":1024},"output_config":{"effort":"medium"},"max_tokens":4096,"speed":"fast"}` with `anthropic-beta: fast-mode-2026-02-01`.

**B**

Profile M: `{"model":"claude-sonnet-4-6","thinking":{"type":"enabled","budget_tokens":1024},"output_config":{"effort":"medium"},"max_tokens":4096}`.

**C**

Profile F: `{"model":"claude-opus-5-5","thinking":{"type":"adaptive"},"output_config":{"effort":"medium"},"speed":"fast"}` with `anthropic-beta: fast-mode-2026-02-01`; medium effort supplies the 4096-token hard ceiling.

**D**

Profile F: `{"model":"claude-opus-5-5","thinking":{"type":"adaptive"},"output_config":{"effort":"medium"},"max_tokens":4096,"speed":"fast"}` with `anthropic-beta: fast-mode-2026-02-01`.

**E**

Profile M: `{"model":"claude-sonnet-4-6","thinking":{"type":"adaptive"},"output_config":{"effort":"medium"},"max_tokens":4096}`.

Correct answer: B, D

### Explanation

The selected manual-thinking request retains the required manual thinking allocation. The selected adaptive-thinking request provides compatible adaptive thinking and the complete fast-mode controls while keeping effort and max\_tokens separate. Both are bounded compatibility selections, not latency or total-cost guarantees.

