Firewall, IAM, Log, and Risk PBQ Mini-Labs

Key Takeaways

  • Firewall PBQs test source, destination, protocol, direction, and rule order, ending in an implicit deny.
  • IAM PBQs reward least privilege, separation of duties, MFA, PAM, and joiner-mover-leaver lifecycle cleanup.
  • Log PBQs require correlation across identity, endpoint, network, and time fields before choosing an action.
  • Risk PBQs require matching asset, threat, vulnerability, likelihood, impact, treatment, owner, and residual risk.
  • End every mini-lab by writing the secure end state and the reason before checking the answer.
Last updated: June 2026

How to Use These Labs

Run these as final-week drills. For each one, write the end state and your reasoning before reading the fix. The goal is to rehearse how the exam thinks: apply secure defaults, meet the stated business need, preserve evidence, and avoid unnecessary exposure.

Lab 1: Firewall Rule Cleanup

Scenario: a small retailer runs a public web server, an application server, a database server, and an admin jump box.

Required business flows: customers reach the website over HTTPS; the web server reaches the app server; the app server queries the database; administrators manage servers only through the jump box; monitoring sends logs to the SIEM collector.

Candidate rule set:

RuleSourceDestinationServiceAction
1InternetWeb serverTCP 443Allow
2InternetDatabase serverTCP 3306Allow
3Admin subnetJump boxTCP 22Allow
4Jump boxServersTCP 22, 3389Allow
5ServersSIEMSyslog 514Allow
6AnyAnyAnyDeny

Fix: delete or deny rule 2. The database must not be Internet-reachable. The intended flow is app server to database on TCP 3306 only, so replace rule 2 with App server -> Database, TCP 3306, Allow. Keep the explicit deny at the bottom and ensure specific allows sit above it; firewalls evaluate top-down and stop at the first match.

Lab 2: IAM Least Privilege and Separation of Duties

Scenario: a payroll clerk enters time corrections but must not approve payroll runs; a payroll manager approves runs but should not change bank records; a help desk analyst resets passwords but should not grant finance roles.

RoleAllowedNot allowed
Payroll clerkCreate/edit time correctionsApprove payroll run
Payroll managerApprove payroll runChange employee bank account
HR records specialistUpdate bank account after verificationApprove payroll run
Help desk analystReset password after identity checkAdd finance or payroll roles

Secure PBQ answer: assign users to role-based groups matching job duties, require MFA (multi-factor authentication) for payroll access, log privileged actions, and require a ticket or workflow approval for role changes. Splitting entry from approval is separation of duties; it prevents one person from both creating and authorizing a fraudulent payment. Do not grant a blanket "finance admin" role for convenience.

Lab 3: Cloud Log Triage

Review the events:

2026-04-29T09:10:03Z idp user=ajones result=success mfa=push source_ip=198.51.100.42 device=new
2026-04-29T09:12:44Z cloud user=ajones action=CreateAccessKey result=success
2026-04-29T09:15:01Z cloud user=ajones action=AttachAdminPolicy target=ajones result=success
2026-04-29T09:17:28Z proxy user=ajones dst=storage-sync-example.net bytes_out=734003200 action=allow
FindingReason
New-device login then access-key creationPossible compromise and persistence setup
Self-attached admin policyPrivilege escalation
~700 MB outbound transferPossible data exfiltration
Same user across all eventsCorrelation raises severity

Best next actions: contain the account, revoke the new access key and active sessions, preserve the logs, validate whether the activity was approved (change ticket?), then scope affected resources. MFA succeeding does not clear the account: push fatigue, phishing-relay, or coercion can produce a legitimate-looking approval.

Lab 4: Risk Register PBQ

Scenario: a clinic keeps an unsupported imaging workstation because replacing it requires vendor revalidation. It stores patient images locally and connects to the internal network.

Risk fieldGood entry
AssetImaging workstation IMG-07
ThreatMalware, unauthorized access, data loss
VulnerabilityUnsupported OS, local sensitive data
ImpactPatient data exposure, clinical disruption
LikelihoodMedium-to-high if broadly connected
TreatmentMitigate: segment, restrict access, back up, monitor, plan replacement
OwnerClinical technology manager or named system owner
Residual riskRisk remaining after compensating controls until replacement

Because replacement is blocked, the correct treatment is mitigation with compensating controls (network segmentation, access restriction, monitoring) plus a documented replacement plan, not risk acceptance. Risk acceptance requires documented approval from the asset owner; a single firewall rule does not eliminate the risk.

How to Grade Yourself

After each lab, ask:

  • Did I meet the business requirement without over-permitting?
  • Did I choose secure protocols and controlled paths?
  • Did I preserve or use evidence before destructive change?
  • Did I assign an owner and residual risk where governance was required?

If your answer would make an auditor, incident handler, or network engineer ask "who approved this and why is it so broad," tighten it.

Why These Four Lab Types Cover the Exam

These four labs are not random; they map to the highest-yield PBQ formats CompTIA reuses. Firewall labs test Domain 3 (Architecture) and Domain 4 (Operations) by checking whether you can read source, destination, protocol, direction, and rule order, and whether you remember that firewalls match top-down and stop at the first hit. IAM labs test access control depth: role-based access control (RBAC), separation of duties, least privilege, and the joiner-mover-leaver lifecycle. Log labs test correlation, the core analyst skill in Domain 4, where the trick is joining four ordinary-looking lines into one attack narrative.

Risk labs test Domain 5 (Program Management) governance vocabulary, where the trap is treating risk as eliminated rather than mitigated, or accepting risk with no documented owner.

A good final-week rhythm is to run one of each lab type per session, write the end state from memory, then check against the explanation. Score yourself on the reasoning, not just the final selection: a correct answer reached by the wrong logic will not transfer to a slightly different stem on exam day. If you find yourself opening broad any-any rules, granting blanket admin roles, deleting logs, or accepting risk without approval, those are the exact reflexes the PBQs are built to punish.

Test Your Knowledge

In the firewall mini-lab, which rule is the clearest problem?

A
B
C
D
Test Your KnowledgeMulti-Select

The log triage shows a new-device login, access-key creation, a self-attached admin policy, and a ~700 MB outbound transfer. Which actions are appropriate? Select three.

Select all that apply

Contain the account and revoke suspicious sessions or keys
Preserve the relevant logs for investigation
Validate whether the activity was approved
Delete all logs to reduce storage use
Grant the user more permanent privileges
Test Your Knowledge

A payroll clerk may enter time corrections but may not approve payroll runs. Which principle is most directly applied?

A
B
C
D