3: 3.0 Security Architecture

    Security Implications of Different Architecture Models

    Architecture decisions made in a design review echo through every later security control. A workload running as a managed serverless function never accepts a host-based agent, so the question "how do we install HIPS?" is malformed; the workload simply does not have a host to install on. A workload running on a Programmable Logic Controller (PLC) on a factory floor cannot reboot for a kernel patch without halting a production line, so the question "when will we patch?" turns into "what compensating control do we add because we will not patch for eighteen months?" The job of this section is to walk the catalogue of models the exam tests, name the trade-offs each one forces, and tie each model back to the considerations (availability, resilience, cost, responsiveness, scalability, ease of deployment, risk transference, ease of recovery, patch availability, inability to patch, power, compute) that auditors and architects argue over.

    The same set of business requirements (process payment cards for a retail chain, run a hospital pharmacy system, control a water-treatment plant, ship a consumer mobile app) maps to wildly different architectures, and each architecture inherits a different risk posture. The exam writes scenarios that say "the engineering team wants X" and asks you to pick the architecture or the control that satisfies X without breaking some other requirement. The pattern to internalize is: architecture chooses the risks, and controls compensate for the risks the architecture cannot remove.

    A second pattern: every model has at least one feature that auditors will probe first. Cloud auditors probe the shared responsibility matrix. On-premises auditors probe the physical inventory and the patch register. ICS auditors probe the air gap and the jump host. IoT auditors probe the over-the-air update channel and the default credential register. Knowing which question to expect for each model is how a question stem reduces from four plausible options to one.

    Cloud, Responsibility Matrix, Hybrid, and Third-Party Vendors

    Cloud computing rents compute, storage, and platform services from a provider whose infrastructure is shared across many tenants. The exam splits cloud into the three service models (Infrastructure as a Service, Platform as a Service, Software as a Service) and the four deployment models (public, private, community, hybrid). What matters for an architecture review is not the marketing label but the shared responsibility matrix: the contractual document that records which line items the provider secures and which the customer secures. Misreading that line is the single most common source of cloud breaches that appear in question stems.

    The split is rarely binary. In a typical Infrastructure-as-a-Service contract the provider secures the data centre, the network fabric, the host hypervisor, and the storage backplane; the customer secures the guest operating system, all software on top, the network access control lists, the data, and the identities. Move up to Platform as a Service and the operating-system, runtime, and patching shift to the provider; the customer still owns the application code and the data. Move to Software as a Service and almost everything except identity configuration, data classification, access reviews, and tenant-level audit settings sits with the provider.

    A hybrid deployment splits a single application across on-premises and cloud, usually because regulated data must remain on-premises while public-facing tiers run in the cloud. The security question is the connection between the two environments: who terminates the encrypted tunnel, who is responsible for the firewall rule that crosses the boundary, and how is identity federated. The recurring trap on the exam is treating the hybrid edge as one administrator's problem; it is split between two teams and that split must be documented.

    Third-party vendor risk re-emerges inside a cloud contract because the provider itself uses sub-processors. Payment processing might be sub-contracted to a fourth-party vendor with its own data-handling terms. The right-to-audit clause covered later in the course exists to give a customer visibility into those sub-contractors.

    Service ModelProvider SecuresCustomer SecuresCommon Trap
    IaaSHardware, hypervisor, network fabric, storageGuest OS, patches, runtime, app, data, IAMAssuming the provider patches the guest OS
    PaaSAll of IaaS plus OS, runtime, middlewareApp, data, IAM, configurationStoring secrets in the runtime as plain environment values
    SaaSAll of PaaS plus the app itselfData classification, IAM, tenant audit settingsForgetting that the tenant admin role is still customer-side
    Hybrid EdgeProvider side of the tunnelCustomer side of the tunnel, identity federation, firewall rules at the boundaryTreating the edge as one team's problem

    💡 Exam Trap: A question that says "the database in the managed Platform-as-a-Service tier was breached because patches were missing" is asking who owned the patch. In PaaS the runtime patches belong to the provider, but the data-plane configuration (firewall rules, public-network exposure flag, identity policy) still belongs to the customer. The right answer almost always blames the customer-side configuration, not a provider patch.

    ⚠️ Anti-Pattern: Signing a cloud contract without reading the responsibility matrix for every service consumed. The matrix differs per service inside the same provider; a managed database has a different split than a virtual machine in the same account.

    📊 Limit: Public cloud providers publish a contractual availability target per service (commonly four-nines for compute and five-nines for storage at the regional level); these are SLA service credits, not technical guarantees, and they do not promise data integrity, only uptime.

    Infrastructure as Code (IaC)

    Infrastructure as Code is the practice of declaring infrastructure (virtual machines, networks, identity policies, firewall rules, storage buckets) in version-controlled source files that a runner applies against a cloud or hypervisor. The security implications are large and cut both ways. A version-controlled declarative file makes drift auditable: every change has a commit, a reviewer, and a rollback. A misconfigured declarative file replicates that misconfiguration to every environment it touches.

    The right control posture for IaC is to treat the source repository as a privileged system: pull-request review by a second engineer, scanning of the declarative files for known misconfigurations (publicly exposed storage buckets, world-open security groups, missing encryption-at-rest flags), and a signed-pipeline runner that proves the file applied matches the file reviewed. The reviewer-of-record discipline from change management applies here: the approver is not the author.

    A second posture: the runner identity (the service principal the IaC pipeline uses) is itself a high-value account. If that identity is over-permissioned, every misconfiguration in a declarative file becomes a privilege-escalation channel into the cloud account. The least-privilege principle defined in Chapter 2 applies: the runner gets exactly the permissions its files declare, no more.

    Serverless and Microservices

    Serverless workloads run as short-lived functions invoked by an event (a queue message, an HTTPS request, a storage upload). The customer never sees the underlying host. From a security viewpoint, serverless removes host-level controls (no HIPS, no host firewall, no kernel patching) and replaces them with platform-level controls (function permissions, network egress controls at the function boundary, code-signing of the deployment package, environment-variable secrets backed by a key vault).

    Microservices decompose a single application into many small services that communicate over network calls. The security implication is that the attack surface grows: every inter-service call is a network hop that needs authentication, every service is a deployable unit that needs vulnerability management, and the east-west traffic between services is now in scope for monitoring. A service mesh (a sidecar proxy at each service) is the common pattern for enforcing mutual Transport Layer Security between services and for logging the call graph.

    PropertyMonolithMicroservicesServerless
    Host controls availableFullPer-containerNone
    Patch surfaceOne imageMany imagesProvider runtime
    Network controlsPerimeterEast-west plus perimeterPer-function egress
    IdentityApplication identityService identity per microserviceFunction identity per function
    Common monitoring toolHost agentService mesh, sidecarProvider runtime logs

    🎯 Scenario: A retail platform splits its order-processing monolith into eight microservices. The security team asks how to enforce the "least privilege" principle. The right answer is per-service identity, where each microservice has its own service account and the database firewall allows only the order-write service to reach the orders table. Giving every microservice the same shared database credential collapses the segmentation benefit of the split.

    Network Infrastructure: Physical Isolation, Logical Segmentation, and SDN

    Network design picks between physical isolation, logical segmentation, and software-defined networking. Physical isolation runs the sensitive workload on dedicated cable runs, dedicated switches, and no shared transport with anything else; the extreme form is the air gap, where the network has no electrical path at all to any other network. Air gaps appear around classified workloads, vault networks, and some industrial control segments. The security guarantee is strong; the operational pain is moving data on and off the air gap by hand (signed removable media, data diodes, one-way file transfer).

    Logical segmentation runs many tenants on the same physical fabric but separates them with virtual LANs, network access control lists, and routing rules. The implementation cost is low; the security boundary depends on the configuration being correct. A misconfigured trunk port or a flat virtual LAN that grew over time is the most common way logical segmentation fails.

    Software-defined networking abstracts the control plane (the policy that decides where packets go) from the data plane (the switches and routers that forward them). The security benefit is that policy changes propagate to every device from a single controller; the security risk is that the controller becomes the single point of compromise. The controller is the prize target; harden it like a domain controller, segregate its management plane, and watch for unauthorized policy changes.

    💡 Exam Trap: A scenario describes a manufacturing plant whose control network "must not be reachable from the corporate network." The expected answer is air-gapped or, more often, "air-gapped where possible with a tightly controlled jump host for the rare admin task." Pure logical segmentation is rarely accepted as the answer for high-safety control networks because configuration drift can collapse the segmentation silently.

    On-Premises, Centralized vs. Decentralized

    On-premises means the organisation owns the hardware, the data centre, the power and cooling, and the physical security. The trade-off is full control and full responsibility. The exam will pose scenarios where regulated data, latency requirements, or sovereignty rules force an on-premises footprint and ask which controls move with that decision (physical security, power, environmental sensors, physical inventory, hardware decommissioning, on-site staff).

    Centralized architectures aggregate compute, storage, and policy at a single (or few) location; decentralized architectures distribute them. Centralization improves consistency (one policy, one audit point) and simplifies monitoring (one log aggregator). Decentralization improves resilience (failure of one site does not take the business down) and responsiveness (compute is near the user). The exam tests the trade: centralized for control, decentralized for availability.

    PropertyCentralizedDecentralized
    Policy enforcementEasierHarder, must federate
    MonitoringOne paneMany feeds to aggregate
    Resilience to site failureLowerHigher
    User-perceived latencyHigher for remote usersLower for local users
    Audit complexityLowerHigher
    Common deploymentHeadquarters data centreEdge or regional sites

    Containerization and Virtualization

    Virtualization places many guest operating systems on one physical host via a hypervisor. Containerization places many isolated user-space environments on one operating-system kernel via a container runtime. The security implications differ.

    A virtual machine has a strong isolation boundary (the hypervisor) and a full operating system inside; it can run its own host firewall and agent. The exam-relevant risk is VM escape (covered in Chapter 2) where a flaw in the hypervisor lets one guest reach another or reach the host. A container shares the host kernel; isolation is enforced by namespaces and control groups inside that kernel. The exam-relevant risk is container escape, where a misconfigured container (privileged mode, host filesystem mount, host network namespace) can reach the host kernel and from there other containers.

    The patch-availability angle differs too. A virtual machine inherits the patching of its guest operating system. A container is patched by rebuilding the image and rolling new replicas, which is fast but depends on a healthy image-build pipeline. The exam phrases this trade-off as "your team needs to reduce patch lag for a microservice; which model is best?" with containers being the expected answer.

    IoT, ICS/SCADA, RTOS, and Embedded Systems

    The Internet of Things (IoT) covers small, networked devices: cameras, thermostats, smart sensors, point-of-sale tablets, fleet trackers. The security profile is poor by default: limited compute for cryptography, no operator console, default credentials shipped in firmware, slow over-the-air update channels, and a high churn of vendors who lose interest in patching after a hardware generation. The security posture for IoT is therefore not "patch every device on Tuesday" but "segment the IoT network so a compromised device cannot reach a sensitive segment, monitor it for anomalous outbound traffic, and treat firmware updates as a tracked change."

    Industrial Control Systems (ICS) and the supervisory layer above them, Supervisory Control and Data Acquisition (SCADA), control physical processes: water treatment, electricity distribution, oil pipelines, factory floors. The architecture rule is strict separation of the operational-technology network from the information-technology network, traditionally aligned to the Purdue Enterprise Reference Architecture levels. The operational network values availability and safety above confidentiality and patch currency; rebooting a PLC during a production run is unacceptable, so patches wait for scheduled outages that may be months apart.

    A Real-Time Operating System (RTOS) runs on hardware that must meet hard timing deadlines: avionics, automotive control units, medical devices, robotics controllers. The security profile shares constraints with IoT (limited compute, no agent, slow patching) but adds a safety-engineering dimension where any change must be re-certified against the safety case.

    Embedded systems is the umbrella for any computer integrated into a larger product: a vehicle infotainment unit, a network printer's firmware, a smart meter's metering chip. The security implications track IoT closely: segment them, monitor their traffic, and treat firmware as a managed asset with an inventory.

    ClassPatch CadenceCommon Compensating ControlNetwork Placement
    Generic IoT (cameras, sensors)Vendor over-the-air, often slowDedicated VLAN, egress allow-listIsolated tenant segment
    ICS / SCADAScheduled outages, often quarterlyAir gap with jump host, DPI sensor on linkOperational-Technology network, Level 0-3
    RTOSTied to safety re-certificationWhitelisting, signed firmware, attestationOften air-gapped or one-way diode
    Embedded (printer, meter)Vendor-driven, intermittentDefault-credential change, firmware inventoryManagement VLAN

    💡 Exam Trap: A scenario lists "the plant cannot apply a vendor patch for nine months." The wrong answer is "patch anyway." The right answer is to add a compensating control, typically network segmentation plus continuous monitoring, and to document the exception in the risk register.

    ⚠️ Anti-Pattern: Plugging an IoT device into the corporate user VLAN because there is an open port. The device almost certainly ships with default credentials, an unpatched stack, and no agent; it must land in an IoT segment with a default-deny egress policy.

    High Availability as an Architecture Property

    High availability (HA) is the property that a service keeps responding to clients through individual component failures. The exam treats HA as both an architecture model (an explicit design decision to run redundant components) and a consideration that every other model is measured against. Architectures that bake HA in (active-active clusters, multi-availability-zone deployments, anycast routing) cost more in compute and complexity but reduce both the recovery-time objective and the operational pain when a component fails. The detailed mechanics live in the resilience-and-recovery section later in this chapter.

    Architectural Considerations: The Trade-Off Matrix

    The official outline lists twelve considerations that every architecture decision is graded against. They are not independent: improving one almost always degrades another. The exam tests recognition of the trade-off.

    ConsiderationQuestion to AskTypical Trade-Off
    AvailabilityWhat fraction of time is the service reachable?Higher availability costs more compute and more sites
    ResilienceDoes the system survive component failures gracefully?Resilience often degrades responsiveness during a failover
    CostWhat is the total cost of ownership?The cheapest model usually has the worst recovery story
    ResponsivenessHow fast does a user request return?Centralised systems are slower for distant users
    ScalabilityCan capacity grow with demand?Highly scalable models often need stateless designs
    Ease of deploymentHow quickly can a new instance be stood up?Cloud beats on-premises, serverless beats containers
    Risk transferenceCan the risk move to a third party?Transferred risk does not vanish, it changes form
    Ease of recoveryHow fast can the service be restored?Easy recovery often needs more frequent backups, higher cost
    Patch availabilityAre vendor patches actually shipped?Older or niche stacks ship few patches
    Inability to patchWhat if the device cannot accept patches?Drives compensating controls and segmentation
    PowerDoes the site have reliable electrical supply?Drives generator and uninterruptible-power-supply decisions
    ComputeIs the hardware sized for the workload?Under-provisioned compute degrades availability under spike

    🎯 Scenario: A small clinic with one server room must choose between moving the patient-records system to a managed cloud service and refreshing the on-premises hardware. The clinic has unreliable power, two part-time IT staff, and a regulatory requirement that records remain in the country. The decision is partly a sovereignty question (does the cloud provider have an in-country region?), partly a cost question (managed cloud removes the power and patch-currency problem), and partly a risk-transference question (the cloud provider becomes a sub-processor under the data-protection regime). The right architecture is rarely just "cloud" or "on-prem"; it is "cloud in the in-country region, with documented vendor terms and a defined data-egress process."

    💡 Exam Trap: A question that says "the team needs to move fast" without giving any other constraint usually points at ease of deployment and risk transference, which both lean toward cloud or serverless. The same question with the added constraint "regulated data must remain in country" pulls the answer back to on-premises or in-country cloud regions.

    📊 Limit: A typical IaaS region offers multiple availability zones, often three. Spreading workload across the three zones is the baseline pattern for a four-nines availability target; spreading across multiple regions is the baseline pattern for a five-nines availability target.

    Decision Anchor. Choose cloud when the team is small, the data is not sovereignty-restricted, the workload is bursty, and the responsibility matrix is acceptable. Choose on-premises when the data is sovereignty-restricted or air-gap-restricted, the workload is steady-state, and the organisation has the staff for physical and patching responsibility. Choose hybrid when one tier of the workload is bound to on-premises while the other tiers benefit from cloud elasticity. Choose containers over virtual machines when patch lag must be short and the workload fits a small, immutable image. Choose serverless over containers when the workload is event-driven and the team does not want to operate a runtime.


    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the CompTIA - Security+ learning hub.