Skip to content
codinganthem

AI and LLMs skill check

Check practical LLM work: prompting, structured output, retrieval and embeddings, tool use, evaluation, and cost, latency, and safety, with short Python you reason about.

15

Questions

14 min

Timer can't pause

Multiple choice

One answer out of four

Choose a level

Question type

About 40% code reading

Topics

  • Prompting
  • Structured output
  • RAG and embeddings
  • Tool use and agents
  • Evaluation
  • Cost and latency
  • Safety
  • Failure modes

Do

Use scratch paper or a notepad to work things out. Skip a question and come back to it later.

Don't

Run the code or look up answers during the check. Open the check in more than one tab or window.

Easy · Mixed · 15 questions · 14 min

By starting, you agree to the Terms and Privacy Policy.

Start practice

Practice checks each answer as you go, with an explanation. The exam is checked when you submit; 9 of 15 passes and earns a certificate.

Checking your levels…

Certificates come from the certified exam: pass with 9 of 15 while signed in. View a sample certificate.

Sample AI and LLMs questions with answers

These are never used in a check, so seeing their answers here won't give anything away.

  1. Question 1 · Easy · Prompting

    Which prompting technique involves providing an LLM with one or more input-output demonstrations inside the prompt before asking it to solve the target task?
    1. A.Few-shot prompting
    2. B.Zero-shot prompting
    3. C.Retrieval-augmented prompting
    4. D.Instruction fine-tuning
    Show answer

    A. Few-shot prompting

    Few-shot prompting provides the model with target task demonstrations inside the prompt context to guide its formatting and reasoning. Zero-shot provides no examples, while fine-tuning alters model weights directly.
  2. Question 2 · Easy · Structured output

    A developer needs an LLM to reliably return valid JSON adhering to a specific schema containing 'name' (string) and 'age' (integer). What is the most robust approach supported by modern LLM APIs?
    1. A.Set the stop token to the closing curly brace } to cut off extra text.
    2. B.Append 'Respond with valid JSON only' to the prompt and strip backticks using a regex.
    3. C.Supply a JSON Schema via native API features such as constrained decoding or tool definitions.
    4. D.Increase the generation temperature so the model explores valid syntax permutations.
    Show answer

    C. Supply a JSON Schema via native API features such as constrained decoding or tool definitions.

    Modern LLM APIs offer native structured outputs or constrained decoding using JSON Schema, which mathematically restricts token probabilities to ensure the output strictly adheres to the requested schema. Regex post-processing or prompt begging is brittle and prone to parsing errors.
  3. Question 3 · Moderate · Tool use and agents

    When building an agent loop that supports tool calling, what is the most robust way to handle a tool execution error (such as a timeout or database exception)?
    1. A.Return the error message as a tool response message to the LLM so it can reflect and try an alternative approach.
    2. B.Rewrite the tool definition dynamically to remove optional parameters and force a retry with default values.
    3. C.Immediately terminate the agent process and throw an unhandled exception to the client.
    4. D.Clear the conversational memory and restart the entire task from the initial prompt.
    Show answer

    A. Return the error message as a tool response message to the LLM so it can reflect and try an alternative approach.

    Feeding tool execution errors back as tool message content in the conversation history allows the LLM to inspect the failure reason and adjust its arguments, choose a different tool, or explain the issue to the user.
  4. Question 4 · Advanced · Cost and latency

    When hosting large language models in serving frameworks such as vLLM or TGI, what architectural mechanism enables PagedAttention to substantially reduce memory waste and increase serving throughput?
    1. A.It quantizes the model weights from FP16 to INT4 dynamically during the forward pass
    2. B.It allocates non-contiguous physical memory blocks for the KV-cache, eliminating internal and external memory fragmentation
    3. C.It merges the query, key, and value matrices into a single shared projection across all attention heads
    4. D.It computes attention using CPU virtual memory swapping whenever GPU VRAM reaches 80% capacity
    Show answer

    B. It allocates non-contiguous physical memory blocks for the KV-cache, eliminating internal and external memory fragmentation

    Traditional LLM serving pre-allocates contiguous virtual memory for the maximum sequence length KV-cache per request, leading to massive internal fragmentation (unused reserved slots) and external fragmentation. PagedAttention borrows virtual memory paging from operating systems to store keys and values in non-contiguous physical blocks, achieving near-zero memory waste.

How scoring and certificates work

  • Each check has 15 multiple-choice questions with one correct answer, and one timer for the whole check. A question you leave unanswered scores nothing.
  • Practice is free without an account and shows whether each answer is right as you go, with an explanation.
  • The certified exam is scored when you submit. 60% passes, which is 9 of 15. Easy unlocks Moderate, and Moderate unlocks Advanced.
  • Passing the exam while signed in earns a free certificate, valid for one year, with its own verification page. See a sample certificate.

Free tools for AI and LLMs: Token Counter & Estimator, Prompt Template Filler, JSON Schema Generator