Courseiva
AI SecurityhardMultiple ChoiceObjective-mapped

AI0-001 AI Security Practice Question

An attacker repeatedly queries a public LLM API with carefully crafted inputs to reconstruct the model's architecture and approximate weights. This is an example of which attack?

⚠ Common exam trap

CompTIA AI often tests the distinction between model extraction (stealing the model) and model inversion (reconstructing training data), so the trap here is confusing 'reconstructing the model's architecture and weights' with 'reconstructing training samples' from model outputs.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Model extraction

Model extraction attacks involve querying a public API with carefully crafted inputs to reconstruct a target model's architecture and approximate weights. By analyzing the outputs (e.g., logits or probabilities), an attacker can train a substitute model that mimics the original, enabling offline exploitation or competitive intelligence. This directly matches the scenario described.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Model extraction

    Why this is correct

    Model extraction aims to steal the model itself by analyzing query responses.

  • Data poisoning

    Why it's wrong here

    Data poisoning corrupts training data, not inference queries.

  • Membership inference

    Why it's wrong here

    Membership inference determines whether a specific data record was part of the training set, not the model's architecture or weights. The attacker here reconstructs structural parameters via repeated queries, which is model extraction. It is tempting because both attacks exploit query access to a model, but membership inference targets individual record presence, not the model's internal configuration.

  • Model inversion

    Why it's wrong here

    Model inversion reconstructs training data, not model parameters.

About these practice questions

One of 754 original AI0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.