- A
Implement an input validation filter to detect and block anomalous inputs
Input validation can identify adversarial examples based on statistical anomalies.
- B
Increase the number of model replicas to distribute the load
Why wrong: More replicas do not prevent attacks; they spread the impact.
- C
Retrain the model with adversarial examples
Why wrong: Retraining requires time and data, not suitable for real-time mitigation.
- D
Roll back the model to a previous version that was not attacked
Why wrong: Rollback does not prevent the same attack on the previous version if it is also vulnerable.
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?
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.
- →
AI Security, Ethics and Governance — study guide chapter
Learn the concepts, then practise the questions
- →
AI Security, Ethics and Governance practice questions
Targeted practice on this topic area only
- →
All AI0-001 questions
500 questions across all exam domains
- →
CompTIA AI+ AI0-001 study guide
Full concept coverage aligned to exam objectives
- →
AI0-001 practice test guide
How to use practice tests most effectively before exam day
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.
AI Concepts and Foundations practice questions
Practise AI0-001 questions linked to AI Concepts and Foundations.
Machine Learning and Deep Learning practice questions
Practise AI0-001 questions linked to Machine Learning and Deep Learning.
AI Models and Data Engineering practice questions
Practise AI0-001 questions linked to AI Models and Data Engineering.
AI Implementation and Operations practice questions
Practise AI0-001 questions linked to AI Implementation and Operations.
AI Security, Ethics and Governance practice questions
Practise AI0-001 questions linked to AI Security, Ethics and Governance.
CompTIA A+ hardware practice questions
Practise AI0-001 questions linked to CompTIA A+ hardware.
CompTIA A+ mobile devices practice questions
Practise AI0-001 questions linked to CompTIA A+ mobile devices.
CompTIA A+ networking practice questions
Practise AI0-001 questions linked to CompTIA A+ networking.
CompTIA A+ operating systems practice questions
Practise AI0-001 questions linked to CompTIA A+ operating systems.
CompTIA A+ security practice questions
Practise AI0-001 questions linked to CompTIA A+ security.
CompTIA A+ software troubleshooting questions
Practise AI0-001 questions linked to CompTIA A+ software troubleshooting questions.
CompTIA A+ operational procedures questions
Practise AI0-001 questions linked to CompTIA A+ operational procedures questions.
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 →
Last reviewed: Jun 30, 2026
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.
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.
Sign in to join the discussion.