Question 51 of 500
AI Security, Ethics and GovernancehardMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to implement an input validation filter to detect and block anomalous inputs, as this solution detects adversarial attacks on AI models in real-time without requiring model retraining. This works by analyzing statistical properties of incoming data—such as outlier detection and perturbation magnitude—at the API gateway level, allowing the filter to identify and block crafted inputs designed to maximize prediction error before they reach the TensorFlow model. On the CompTIA AI+ AI0-001 exam, this question tests your understanding of defensive AI security measures that operate outside the model itself, a common trap being the temptation to choose retraining or model hardening, which are slower and less practical for immediate threats. Remember the key distinction: input validation filters are lightweight, stateless, and deployable at the network edge, making them ideal for Kubernetes environments where rapid, non-invasive mitigation is critical. Memory tip: think “filter first, retrain later”—the filter catches the attack now, while retraining is a long-term fix.

AI0-001 AI Security, Ethics and Governance Practice Question

This AI0-001 practice question tests your understanding of ai security, ethics and governance. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

You are a security engineer at a large e-commerce company that uses an AI-based recommendation system. The system is deployed on a Kubernetes cluster and uses a TensorFlow model served via REST API. Recently, the security team detected unusual API calls that caused the model to return incorrect recommendations. Analysis shows that the inputs were crafted to maximize prediction error. The team suspects an adversarial attack. You need to implement a solution that detects and mitigates such attacks in real-time without requiring model retraining. Which approach should you take?

Question 1hardmultiple choice
Full question →

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

Implement an input validation filter to detect and block anomalous inputs

Option A is correct because an input validation filter can detect and block adversarial inputs in real-time by analyzing statistical properties (e.g., outlier detection, perturbation magnitude) without modifying the model. This approach is lightweight, operates at the API gateway level, and does not require retraining, making it suitable for immediate deployment against crafted inputs that maximize prediction error.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Implement an input validation filter to detect and block anomalous inputs

    Why this is correct

    Input validation can identify adversarial examples based on statistical anomalies.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Increase the number of model replicas to distribute the load

    Why it's wrong here

    More replicas do not prevent attacks; they spread the impact.

  • Retrain the model with adversarial examples

    Why it's wrong here

    Retraining requires time and data, not suitable for real-time mitigation.

  • Roll back the model to a previous version that was not attacked

    Why it's wrong here

    Rollback does not prevent the same attack on the previous version if it is also vulnerable.

Common exam traps

Common exam trap: answer the scenario, not the keyword

CompTIA often tests the misconception that retraining or scaling can solve security issues, but the key constraint here is 'real-time detection without retraining,' which eliminates options that require model modification or do not address the attack vector.

Detailed technical explanation

How to think about this question

Adversarial attacks like the Fast Gradient Sign Method (FGSM) or Projected Gradient Descent (PGD) craft inputs by adding small, imperceptible perturbations to maximize loss. An input validation filter can use techniques such as statistical anomaly detection (e.g., Mahalanobis distance), local intrinsic dimensionality, or feature squeezing (e.g., reducing color bit depth) to flag inputs that deviate from the training distribution. In real-world deployments, such filters are often implemented as a sidecar proxy (e.g., using Istio or Envoy) to intercept API calls before they reach the model server, ensuring low-latency detection.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the AI0-001 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AI0-001 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AI0-001 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AI0-001 question test?

AI Security, Ethics and Governance — This question tests AI Security, Ethics and Governance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Implement an input validation filter to detect and block anomalous inputs — Option A is correct because an input validation filter can detect and block adversarial inputs in real-time by analyzing statistical properties (e.g., outlier detection, perturbation magnitude) without modifying the model. This approach is lightweight, operates at the API gateway level, and does not require retraining, making it suitable for immediate deployment against crafted inputs that maximize prediction error.

What should I do if I get this AI0-001 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.