mediumMultiple ChoiceObjective-mapped
CAS-004 Practice Question: A security analyst is reviewing an AppArmor…
Exhibit
Refer to the exhibit.
```
-- AppArmor Profile: /usr/bin/somebin
#include <tunables/global>
profile somebin /usr/bin/somebin {
capability dac_override,
network inet dgram,
/etc/config/* r,
/var/log/app.log w,
}
```A security analyst is reviewing an AppArmor profile for an application. Based on the exhibit, which action would the application be denied?
⚠ Common exam trap
CompTIA often tests the misconception that AppArmor denies all actions not explicitly allowed, but candidates may overlook that network and capability rules are separate from file path rules, leading them to incorrectly assume a default allow for network or capability operations.
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
✓
Write to a file in /etc/config/
AppArmor profiles restrict applications by path and capability. The profile shown does not include any rule allowing write access to /etc/config/, so any write attempt to that directory or its files would be denied. This is because AppArmor enforces mandatory access control based on the profile's explicit allow rules.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Send a UDP packet to a remote server
Why it's wrong here
network inet dgram allows UDP communication.
- ✗
Override discretionary access controls
Why it's wrong here
The capability dac_override is granted, so DAC override is allowed.
- ✗
Write to /var/log/app.log
Why it's wrong here
Write is explicitly allowed on /var/log/app.log.
- ✓
Write to a file in /etc/config/
Why this is correct
Only read is allowed on /etc/config/*; write is denied.
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
Go deeper
Related to this question
About these practice questions
Courseiva writes every CAS-005 question from scratch — 968 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 CAS-005 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 CAS-005 exam.