Designing resilient systems
SecurityX CAS-005 · Lesson 6 of 24 · 42:31
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: placing firewalls, IPS and IDS, VPNs, NAC, taps, and collectors, controls in front of applications (WAF, proxies, API gateways, and CDNs), load balancing, scaling, and geography, and recoverability and persistence. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
The portal goes public
Thornbury Biotech's partner portal is ready to go public. It will serve research partners worldwide, expose an API, and store trial results, and it must keep running during traffic peaks and attacks. Where each security component sits, and how the system scales and recovers, decides whether it survives its first busy week.
Placing network controls
Firewalls sit at the boundaries between zones, like the internet edge and the line between users and servers, and allow only the traffic you define. An intrusion prevention system sits inline, in the traffic path, so it can block an attack as it happens, but a bad rule can also block legitimate traffic. An intrusion detection system works out of band: it receives a copy of the traffic, from a network tap or a mirrored switch port, and only raises alerts. Taps copy traffic without changing it, and collectors gather logs and flow data from many devices for central analysis. Network access control checks devices before they join the network, and vulnerability scanners need network paths, and often credentials, to reach every system they assess.
Controls in front of applications
Applications get their own layer of protection. A web application firewall sits in front of a web app, and inspects HTTP requests for attacks like injection or cross-site scripting. A reverse proxy stands in front of your servers for incoming traffic, hiding them and terminating TLS, while a forward proxy handles your users' outgoing traffic to the internet. An API gateway gives APIs one front door, for authentication, rate limiting, and logging. A content delivery network caches content close to users, and its large edge absorbs much of a denial of service attack, while a VPN protects remote connections into the network.
Designing for availability
Availability starts with load balancing, which spreads requests across several servers, and stops sending traffic to a server that fails its health checks. Vertical scaling makes one server bigger, which is simple, but has a ceiling and keeps a single point of failure. Horizontal scaling adds more servers, so capacity grows without downtime, and losing one server is not an outage. Geography matters too: several regions survive a regional disaster and bring the service closer to users, but data residency laws may limit where the data can go. So Thornbury runs its portal in two regions, with servers added automatically behind the load balancers during peaks.
Recoverability and persistence
Recoverability means you can restore service and data within your targets, with tested backups, replicas, and rebuild scripts. Interoperability matters when you mix vendors and clouds: components must exchange data and identities through common standards, or your failover plan breaks at the first handoff. Persistent systems keep their state and changes, like a classic server, while non-persistent systems return to a clean image at each restart, like pooled virtual desktops or immutable containers. Non-persistence limits how long malware can survive, and makes recovery fast, because you redeploy instead of repairing. But any data that must survive needs its own persistent storage, outside the instance.
Recap
Let's recap. Firewalls sit between zones, an IPS sits inline and can block, and an IDS works out of band, fed by taps or mirrored ports. A web application firewall, a reverse proxy, an API gateway, and a CDN protect applications, while a forward proxy handles users' outgoing traffic. Load balancing and horizontal scaling remove single points of failure, and several regions survive regional disasters, within data residency laws. Recoverability needs tested backups and rebuilds, and interoperability needs common standards. And non-persistent systems return to a clean image, so data that must survive is kept in separate storage.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Thornbury wants to block attacks on the portal’s traffic in real time. Today, only a detection sensor sits on a mirrored switch port. What should the architect add?
- A second IDS on another tap
- A log collector near the portal
- An inline IPS in front of the portal
- A forward proxy for employees
Show the answer
An inline IPS in front of the portal
An intrusion prevention system placed inline, in the traffic path, can block attacks as they happen. “A second IDS on another tap” would add a second copy of the traffic, which can still only raise alerts. “A log collector near the portal” only gathers logs for analysis, after the fact. And “A forward proxy for employees” is for employees' outgoing traffic, not for traffic to the portal.
Research partners call Thornbury’s public APIs. The team wants authentication, rate limiting, and request logging, all in one place. Which component fits?
- An API gateway
- A network tap
- A forward proxy
- A vulnerability scanner
Show the answer
An API gateway
An API gateway gives the APIs one front door, for authentication, rate limiting, and logging. “A network tap” only copies network traffic, without controlling any request. “A forward proxy” only handles users' outgoing traffic, not partners calling in. And “A vulnerability scanner” only looks for vulnerabilities, but does not handle requests.
The portal slows down during big trial announcements. The team wants to add capacity without downtime, and survive the loss of any one server. Which design fits?
- One bigger server, with more CPU and memory
- Persistent virtual desktops
- A longer DNS time to live
- More servers behind a load balancer
Show the answer
More servers behind a load balancer
Horizontal scaling adds servers behind a load balancer, without downtime, and no single server can take the portal down. “One bigger server, with more CPU and memory” only makes one server bigger, which keeps a single point of failure. “Persistent virtual desktops” is about desktops that keep their changes, not portal capacity. And “A longer DNS time to live” only changes how long resolvers cache DNS records.