AI0-001 AI Security Practice Question
A company is deploying a pre-trained image classification model for facial recognition in a security system. They are concerned about adversarial examples. Which TWO of the following are effective defenses against adversarial examples?
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
✓
Adversarial training during model development
Adversarial training (including the model with adversarial examples during training) and input sanitization (e.g., JPEG compression, denoising) are proven defenses against adversarial perturbations. Gradient masking is a weak defense. Homomorphic encryption and federated learning are unrelated to adversarial robustness.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Adversarial training during model development
Why this is correct
Adversarial training incorporates adversarial examples into the training set, making the model more robust to such perturbations at inference time.
- ✗
Gradient masking to hide model gradients
Why it's wrong here
Gradient masking is a weak defense that can often be bypassed by adaptive attacks; it is not considered a robust defense.
- ✓
Input sanitization techniques such as JPEG compression or denoising
Why this is correct
Input sanitization can remove or reduce the imperceptible perturbations that characterize adversarial examples.
- ✗
Homomorphic encryption of input images
Why it's wrong here
Homomorphic encryption is for privacy-preserving computation, not for defending against adversarial examples.
- ✗
Federated learning to train on distributed data
Why it's wrong here
Federated learning is a distributed training approach for privacy, not a defense against adversarial inputs.
About these practice questions
Courseiva writes every AI0-001 question from scratch — 754 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.