Chapter 4
Identity Architecture, Cloud, and Zero Trust
Chapter Objectives
- 2.4 — Apply security concepts to the design of access, authentication, and authorization systems: provisioning and deprovisioning, federation, SSO, conditional access, IdP/SP roles, attestations, policy decision and enforcement points, the RBAC, rule-based, ABAC, MAC, and DAC access models, PKI architecture, and physical and logical access control.
- 2.5 — Securely implement cloud capabilities in an enterprise environment: CASB in API-based and proxy-based modes, shadow IT detection, the shared responsibility model, CI/CD pipelines, Terraform and Ansible, container security and orchestration, serverless, cloud control strategies, customer-to-cloud connectivity, and cloud data security.
- 2.6 — Integrate Zero Trust concepts into system architecture design: continuous authorization, asset identification, management, and attestation, segmentation and microsegmentation, VPN and always-on VPN, deperimeterization with SASE, SD-WAN, and SDN, security boundaries, subject–object relationships, context-based reauthentication, API integration and validation, and ZTNA.
Chapter 3 designed the resilient estate: where components sit, how traffic flows, and how data is protected. This chapter answers the next question. Who may reach those components, under what conditions, and with what proof?
Identity is the modern control plane.
Networks no longer have a trusted inside. Users work from homes, hotels, and client sites, and applications live in two clouds and a data center at once. An attacker who steals one password can cross all of it, unless the architecture checks identity, device, and context at every step.
CertCrack.com is the running example in this chapter.
CertCrack runs its practice engine and PBQ labs for thousands of candidates. Its staff include item writers, support agents, finance staff, and external reviewers, and its clients include training companies that buy group access. Every design choice in this chapter is tested against that mixed estate.
The chapter moves in three steps: design access itself, carry those controls into the cloud, then remove the idea of a trusted network entirely and rebuild access as Zero Trust.
4.1 Access, Authentication, and Authorization Design (Objective 2.4)
Objective 2.4 asks you to design the full access system, not just pick a login method. A complete design answers four questions. How does an identity come into existence, and how does it end? How do separate organizations trust one identity? What rules turn identity into permission? And what evidence proves a device or person is what it claims to be?
Weak answers to any one question break the whole design. A strong password policy cannot save an account that should have been deleted last year. This section builds the system piece by piece, in the order an architect designs it.
4.1.1 The Identity Lifecycle: Provisioning and Deprovisioning
Every access problem starts as a lifecycle problem. Accounts are created for a reason, change as roles change, and must end when the reason ends. The design task is to make each transition automatic, approved, and recorded.
DEFINITION
Provisioning. Provisioning is the controlled creation of an identity and its access rights when a person, device, or service joins or changes role. Good provisioning is driven by an authoritative source, usually the HR system. It grants the access the new role needs on day one, and no more.
The authoritative source decides who exists.
At CertCrack, the HR record is the source of truth for staff. When HR records a hire, the identity system creates the account, the mailbox, and the base group memberships. No manager creates accounts by hand in a console. Hand-made accounts drift, get forgotten, and escape every later review.
Joiner, mover, leaver is the lifecycle in three words.
- Joiner. A new identity is created with birthright access for the role: standard applications, the team file shares, and the training environment.
- Mover. A role change adds the new role's access and removes the old role's access in the same transaction. Access must not accumulate silently over a career.
- Leaver. The identity is disabled, sessions are revoked, and access is removed on a schedule tied to risk, not to convenience.
Birthright access must stay small.
Birthright access is what every account in a role receives automatically. Keep it to the tools the role truly needs on day one. Everything else is requested, approved, and time-limited. A large birthright set turns every new account into an over-privileged account.
Self-provisioning lets users request access themselves, inside
guardrails.
Through an access catalog, a user requests the application or role they need; the request is checked against policy, approved by the data or role owner, granted time-limited where the risk justifies it, and recorded like any other provisioning event. Self-service speeds access without abandoning control — the approval guardrails, not the request form, are the design. Unapproved self-provisioning, where users grant themselves access with no check, is shadow access by another name.
DEFINITION
Deprovisioning. Deprovisioning is the controlled removal of an identity and all of its access when the person leaves or the need ends. Complete
deprovisioning disables the account, revokes active sessions and tokens, reclaims licenses and devices, and transfers ownership of files and groups. A disabled password with live tokens still attached is not deprovisioning.
Deprovisioning speed is a security control, not an admin target.
For a voluntary departure, removal at the end of the last working day may be acceptable. For an involuntary termination, access ends at the moment HR confirms the decision, before the conversation finishes. Design both paths in advance. The urgent path must work at 2 a.m., from a runbook, without the leaver's own manager improvising.
Orphaned accounts are the failure this design prevents.
An orphaned account belongs to no current person. It survives because it was created outside the lifecycle, or because a leaver process missed it. Run a regular reconciliation: compare every account in every system against the authoritative source. Any account with no matching live identity is investigated and removed. Dormant accounts that do match a person are flagged for review, because dormancy plus valid credentials is an attacker's favorite combination.
Service accounts need a lifecycle too.
Service accounts do not leave the company, but their owners change and their purpose ends. Give every one a named human owner, a stated purpose, and a
review date, and rotate its secrets on schedule. When the service is retired, the account is retired in the same change.
EXAM TIP
When a scenario describes a former employee, contractor, or partner still able to sign in, the tested weakness is almost always deprovisioning or lifecycle reconciliation — not password strength and not MFA. Look for the answer that fixes the lifecycle: an authoritative source, automated removal, and
orphaned-account review.
Access reviews close the loop.
Automation handles the known transitions. Reviews catch what automation missed. Managers and data owners re-certify access on a cycle: quarterly for privileged and sensitive access, less often for standard access. A review that only clicks approve is worthless, so the design includes evidence: last-used dates, a plain description of what the access allows, and a remove option that works.
4.1.2 Federation, Single Sign-On, and the IdP/SP Model
One person, many applications. Without design, that means many passwords, many password resets, and many separate places where access must be removed. Federation solves the trust problem. Single sign-on solves the user problem. They are related, but they are not the same thing.
DEFINITION
Federation. Federation is a trust arrangement between separate organizations or security domains that lets one domain accept identities proven by another. The organization that proves the identity is the identity provider. The application that accepts the proof is the service provider. Federation is the trust. It exists whether or not the user experience feels seamless.
DEFINITION
Single Sign-On (SSO). Single sign-on lets a user authenticate once and then reach many applications without signing in again to each one. SSO is the user experience built on top of federation or a shared identity provider. One sign-in event, many sessions, one place to enforce policy and one place to cut access off.
The identity provider (IdP) proves who the user is.
The IdP holds the identity, checks the credentials and MFA, and issues a signed assertion or token that states who authenticated, when, and how strongly. Because every application trusts the IdP, the IdP is the most sensitive system in
this design. It gets the strongest protection: phishing-resistant MFA for administrators, tight change control, and monitoring on every configuration change.
The service provider (SP) consumes the proof.
The SP is the application. It does not check the password. It validates the IdP's signature, checks the assertion's audience and expiry, and then creates its own local session. An SP that skips signature validation accepts forged assertions from anyone. Validation is not optional decoration; it is the control.
SAML is the established enterprise federation protocol.
Security Assertion Markup Language carries signed XML assertions from IdP to SP, usually through the user's browser. It is common in enterprise SaaS and in partner federation. OpenID Connect (OIDC) is the modern alternative, built on OAuth 2.0, carrying identity in JSON tokens. It fits web, mobile, and API-first applications well. OAuth 2.0 itself is an authorization framework: it delegates limited access to resources. OIDC adds the identity layer on top of it. The exam expects you to keep those roles straight.
Figure 21 — The IdP authenticates the user once and returns a signed assertion the service provider trusts.
Reading Figure 21. Follow the numbered steps from top to bottom. First the user asks the service provider for an app. The service provider has no password for the user, so it redirects the browser to the identity provider. The identity provider
handles login and MFA in one place. It then returns a signed assertion: a SAML assertion or an OIDC token. The service provider checks the signature and the claims inside. Only then does it grant access and start the session. One login now serves many apps.
Reading the federation flow in Figure 21, the order matters.
Step 1 — the user asks the SP for a resource. Step 2 — the SP redirects the user to the IdP, because the SP does not authenticate. Step 3 — the IdP authenticates the user, with MFA and conditional access applied here, once. Step 4 — the IdP issues the signed assertion. Step 5 — the browser carries it back to the SP, which validates it and opens the session. Every later design in this chapter reuses this pattern: prove once, at a controlled point, then present proof.
Partner federation extends the model across companies.
CertCrack's corporate clients want their staff to reach the training portal with company credentials, so CertCrack federates with each client's IdP. The client stays responsible for its own joiners and leavers. CertCrack stays responsible for what a federated identity may do inside the portal. Authentication is delegated; authorization is not.
Trust is scoped and time-limited.
A federation agreement states which attributes the IdP will send, which groups map to which portal roles, and how quickly the partner must report a compromise. Signing certificates roll over on a planned schedule. A federation with no attribute contract and no incident contact is an open door with a logo on it.
CORE CONCEPT
Federation separates proving identity from granting access. The IdP's job ends at a trustworthy assertion. The SP still decides what that identity may do, using its own authorization rules. When a scenario says a partner's user reached data they should not have, check the SP's group-to-role mapping first — the IdP usually proved the right person; the SP granted the wrong role.
4.1.3 Conditional Access and Attestations
A correct password from the wrong place, at the wrong time, on an unknown device, should not open the same doors as a correct password from a managed laptop in the office. Conditional access is the design pattern that makes access depend on context, not only on credentials.
DEFINITION
Conditional Access. Conditional access is a policy system that evaluates signals at sign-in and during the session — user, device, location, application, and risk — and then allows access, requires stronger proof, limits the session, or blocks it. It turns authentication from a single yes-or-no event into a
decision that fits the risk of each request.
Signals are the inputs to the decision.
- Identity signals. Who the user is, their group memberships, and their role. A finance approver and a support agent are treated differently.
- Device signals. Whether the device is managed, compliant, encrypted, and healthy, proven by a device certificate or an endpoint agent.
- Network signals. Source address, known corporate egress points, and impossible-travel patterns between consecutive sign-ins.
- Risk signals. Sign-in risk from the IdP's detection systems: leaked credentials, anonymous networks, atypical behavior for this user.
- Application signals. The sensitivity of the target. The item bank needs stronger rules than the lunch menu.
Outcomes are graduated, not binary.
A low-risk request from a compliant device is allowed. A medium-risk request requires MFA or a step-up check. A request to a highly sensitive application from an unmanaged device may be allowed only in a limited, browser-isolated session with downloads blocked. A high-risk request is denied and alerted. Graduated outcomes are why conditional access improves security without locking staff out of ordinary work.
Figure 22 — Sign-in signals feed a policy engine that allows, steps up MFA or denies each request.
Reading Figure 22. Start at the top with signals. Every access request arrives with context: who the user is, which device they use, where they are and how risky the sign-in looks. The policy engine in the center weighs all of those signals against the written rules. Three outcomes leave the bottom of the engine. Low risk is allowed straight through. Medium risk triggers step-up MFA, so the user proves more before entry. High risk is denied, blocked and logged. Every decision, allowed or not, is recorded and fed to the SIEM.
Figure 23 — One policy as an administrator configures it: assignments, conditions, and grant controls.
Reading Figure 23. Trace one sign-in through the panel. A finance user on an unmanaged Android phone, at medium sign-in risk, matches the policy's users, apps, and conditions, so the grant controls apply: MFA and a compliant device, both required. The device cannot prove compliance, so the result is the red evaluation line — blocked, with the reason named. The same user on a compliant laptop at medium sign-in risk satisfies both grant controls (MFA and a compliant device) and is allowed through (the green evaluation line). Figure 22 drew this as a decision flow; this is the same decision as an administrator actually builds it, including the deliberate break-glass exclusion that keeps a bad conditional access policy from locking out recovery.
Policy design follows three rules.
Rule one: start in report-only mode, so you can see who a policy would block before it blocks them. Rule two: exclude a break-glass account, stored offline and alarmed, so a bad policy cannot lock out every administrator. Rule three: name policies by intent, such as Require compliant device for item bank. Forty unnamed policies are an incident waiting for a quiet weekend.
DEFINITION
Attestation. Attestation is verifiable evidence that a claim about a user, device, or workload is true. A device attests that it is encrypted and running approved software. A user attests that they completed training or reviewed their access. A workload attests its identity with a certificate or a
platform-issued token. Conditional access and Zero Trust decisions consume attestations instead of trusting self-declared claims.
Device attestation is the common exam case.
A laptop proves its state with evidence the server can verify: a TPM-backed key, a measured boot state, an endpoint agent's signed health report. A checkbox in a portal that asks is this device secure is not attestation. The difference is who produces the evidence. Attestation evidence comes from the platform, not from the person asking for access.
Attestations expire.
A device that was healthy at 9 a.m. may be compromised by noon. Designs therefore set attestation lifetimes, re-check compliance during long sessions, and revoke access when the endpoint agent reports a failed control. This idea returns in full in the Zero Trust section: trust is re-earned continuously, never granted permanently.
SCENARIO
CertCrack's item writers work from home on a mix of company laptops and personal machines. The item bank holds unpublished exam questions, so a leak would destroy its value. Writers currently reach it with a password and an authenticator app from any device. Design the conditional access rules for the item bank. State the signals you will use, the outcome for a compliant company laptop, the outcome for a personal device, and the outcome for a sign-in flagged high risk.
Discussion. A strong design requires a compliant, attested company device plus phishing-resistant MFA for full item-bank access, because the asset is the most sensitive data CertCrack owns. A personal device receives no item-bank access at all, or at most a browser-isolated, download-blocked view of non-sensitive material — the deciding factor is that device state cannot be attested. A high-risk sign-in is blocked and alerted regardless of device, and the account's sessions are revoked pending review. Weaker answers rely on MFA alone from any device; MFA proves the person, but says nothing about the machine the questions will sit
on.
4.1.4 Policy Decision Points and Policy Enforcement Points
Conditional access needs an architecture, not just a settings page. The standard pattern separates the place that decides from the place that enforces. That separation is one of the most tested ideas in this objective, and it is the backbone of Zero Trust later in the chapter.
DEFINITION
Policy Decision Point (PDP). The policy decision point is the component that evaluates an access request against policy, identity, device state, and context, and returns a decision: permit, deny, or permit with conditions. The PDP decides. It does not itself sit in the traffic path, and it does not serve the resource. In NIST SP 800-207 the PDP comprises the Policy Engine, which renders the decision, and the Policy Administrator, which executes it.
DEFINITION
Policy Enforcement Point (PEP). The policy enforcement point is the component that sits in front of a resource and carries out the PDP's decision. It intercepts the request, asks the PDP, and then allows, limits, or blocks the traffic. A PEP that cannot reach the PDP must fail in the way policy states — for sensitive resources, that means fail closed.
Why separate them?
One PDP can serve many PEPs. The same policy then protects the web portal, the API, and the admin console in the same way. Change the policy once, in one place, and every enforcement point follows. If each application invented its own rules, the rules would drift apart within a year, and the audit would find the weakest one — which is also the one an attacker would find.
Where PEPs live depends on the resource.
A reverse proxy or API gateway acts as PEP for web applications. A network access control system acts as PEP at the switch or wireless controller. An agent on a workload acts as PEP for service-to-service calls. The exam describes these by function, not by product name. When a scenario asks where to place a control so that no path bypasses it, place the PEP on the only path to the resource, and place the PDP where every PEP can reach it with low latency.
Policy administration completes the pattern.
Policies are code-like artifacts: reviewed, tested in report-only mode, and rolled back when they misbehave. The architect designs who may change policy, because control of the PDP is control of every door it guards.
EXAM TIP
Keep the verbs separate. The PDP decides; the PEP enforces. If an option says the enforcement point evaluates risk policy and renders the decision, it has merged the two roles — in CAS-005 scenarios that is usually the wrong
answer, and the right answer names the decision point for the decision and the enforcement point for the interception.
4.1.5 Access Control Models: RBAC, Rule-Based, ABAC, MAC, and DAC
Authentication answers who are you. Authorization answers what may you do. The access model is the logic that connects the two. Objective 2.4 names five models. Each fits a different shape of problem, and the exam tests whether you can match model to scenario, not whether you can recite definitions.
DEFINITION
Role-Based Access Control (RBAC). RBAC grants permissions to roles, and roles to users. A support agent receives the Support role and everything it contains. RBAC scales well where job functions are stable, and it makes reviews simple, because an auditor can ask one question: should this person hold this role?
DEFINITION
Attribute-Based Access Control (ABAC). ABAC makes decisions from attributes of the user, the resource, the action, and the environment. A policy might read: a user in Finance, with a compliant device, during business hours, may approve payments below a stated limit. ABAC is the most expressive model, and the one conditional access and Zero Trust designs are built on.
DEFINITION
Mandatory Access Control (MAC). MAC is imposed by the system, not the owner. Data carries a classification label, users carry a clearance, and the system compares them. A user cleared to Confidential cannot read Secret data, and cannot choose to share it downward. MAC fits government and defense environments where labels are law-like. It is rigid by design. That rigidity is the point, and also the cost.
DEFINITION
Discretionary Access Control (DAC). DAC leaves the choice with the owner. Under DAC, the owner of a file or resource decides who may access it. Sharing a document with a colleague is DAC in action. DAC is flexible and familiar, and it is weak where owners are careless, because any owner can grant access the organization never approved. Most commercial file systems blend DAC with central policy for exactly this reason.
DEFINITION
Rule-Based Access Control. Rule-based access control decides from conditions, not identity. A firewall rule that allows traffic on port 443 from a stated network is rule-based: if the packet matches the conditions, the action follows, whoever sent it. Time-of-day rules and network ACLs work the same way. Rule-based control is simple and fast. It knows nothing about the person behind the request, which limits it to problems where conditions alone are enough.
Figure 24 — RBAC uses roles, ABAC uses attributes, MAC uses labels and DAC lets the owner decide.
Reading Figure 24. Compare the four panels, which show the four identity-based models; rule-based control, the fifth model, is covered in the prose. RBAC, top left, gives access through a job role: the user holds a role, and the role holds permissions. ABAC, top right, checks attributes of the user, device and context against a policy for each request. MAC, bottom left, is mandatory: the system compares security labels and clearances, and users cannot override it. DAC,
bottom right, is discretionary: the owner of a resource decides who gets access and records it in an access control list. The exam tests which model fits a stated rule.
Choosing a model is a design trade; Figure 24 shows the four
identity-based models side by side.
- Choose RBAC when job functions are stable and the main need is clean administration and review at scale.
- Choose ABAC when decisions must include context — device, time, location, data sensitivity — or when roles alone would explode into hundreds of near-identical variants. This is called role explosion, and it is the classic sign that a design has outgrown pure RBAC.
- Choose MAC when classification labels and clearances are mandated and must override every user's discretion.
- Accept DAC for user-owned collaboration content, wrapped in central guardrails such as sharing limits and DLP.
- Use rule-based control at network and perimeter layers, where conditions on traffic are the natural language of the control.
Real designs layer the models.
CertCrack's portal uses RBAC for its base roles: Candidate, Item Writer, Reviewer, Support, Finance, Administrator. ABAC rules refine the sensitive actions: an Item Writer may open the item bank only from an attested device, and a Finance user may release a payment only below a limit and during approved hours. Rule-based controls guard the network path. No single model carries the whole design.
EXAM TIP
Scenario wording gives the model away. "Based on job function" points to RBAC. "Based on department, device compliance, and time of day" points to ABAC. "The owner decides who can access the file" is DAC. "Labels and clearances the user cannot change" is MAC. "If the traffic matches these conditions" is rule-based. Match the phrase to the model before you read the options.
4.1.6 Enterprise PKI Architecture
Certificates are how machines, services, and increasingly users prove identity without passwords. A public key infrastructure (PKI) is the system that issues, distributes, checks, and retires those certificates. At enterprise scale, PKI is architecture, and its failures are architectural: a compromised issuing key or a broken revocation path undermines every system that trusts it.
DEFINITION
Certificate Authority (CA). A certificate authority is the trusted issuer of certificates. It binds a public key to an identity — a server name, a user, a device, a service — and signs that binding with its own key. Anything that trusts the CA trusts the certificates it issues, which is why CA keys are among the most protected keys in the enterprise.
The hierarchy limits the blast radius.
A well-built enterprise PKI, shown in Figure 25, has an offline root CA at the top. The root signs only the certificates of issuing CAs below it, and then goes back offline, its key in a hardware security module (HSM), in a safe, under dual control. Issuing CAs do the daily work, separated by purpose: one for users, one for devices, one for servers, one for code signing. If one issuing CA is compromised, it is revoked by the root and rebuilt, and the rest of the hierarchy stands.
Figure 25 — An offline root CA anchors trust, issuing CAs do the daily work, and OCSP reports certificate status.
Reading Figure 25. Start at the top. The offline root CA is the trust anchor for the whole organization. It stays powered off and air-gapped, and its key lives in the HSM shown on the left. The root signs only the four issuing CAs beneath it, one per purpose: users, devices, servers, and code signing. Those online CAs do the daily work. The registration authority in the center proofs identity before any certificate is issued. At the bottom, end entities receive certificates, and the OCSP
responder answers live status checks, so revoked certificates stop working quickly across the estate.
The registration authority (RA) checks before the CA signs.
The RA verifies that a requester is entitled to the identity in the certificate: that this server really is the payments server, that this person really joined the finance team. The CA then issues. Separating checking from signing means the CA can stay automated and locked down while the RA handles the human and workflow side. In many products both roles live in one system, but the design still names them separately, and so does the exam.
Certificate types follow purpose.
- TLS server certificates prove a service's name to clients and enable encrypted sessions.
- Client certificates prove a user or device, and power passwordless and mutual TLS authentication.
- Code-signing certificates prove who published software, so systems can refuse unsigned or altered code.
- Email certificates support S/MIME signing and encryption.
- Document-signing and timestamping certificates prove origin and time for records that must stand up years later.
Extensions state what a certificate is for.
The subject alternative name (SAN) extension lists the names a certificate covers. Key usage and extended key usage state whether the key may sign, encrypt, authenticate a server, or authenticate a client. Basic constraints state whether the certificate belongs to a CA or an end entity. A validator that ignores extensions accepts a client certificate as a server certificate. Extensions are not metadata; they constrain what the certificate may be used for.
Certificate templates make issuance repeatable.
A template fixes the type, extensions, key length, lifetime, approval steps, and who may request. Issuing from templates stops the slow drift of hand-built certificates, each slightly different, each a small surprise during an incident. Sensitive templates require RA approval. Low-risk, high-volume templates, such as workstation certificates, are fully automated through enrollment protocols.
Lifetimes are shrinking by design.
Short-lived certificates limit how long a stolen key stays useful. The consequence is firm: any PKI that depends on humans remembering renewals will expire in production. Automate enrollment and renewal, and monitor expiry as an operational metric.
Revocation answers the question templates cannot: this certificate
must stop being trusted now.
A certificate revocation list (CRL) publishes revoked serial numbers for clients to download. The Online Certificate Status Protocol (OCSP) answers a live query for one certificate. CRLs are simple but can be stale and large. OCSP is fresh but adds a query, a dependency, and a privacy leak, because the responder learns which sites a client visits.
DEFINITION
OCSP Stapling. OCSP stapling lets the server obtain a signed, time-stamped OCSP response from the CA and attach — staple — it to the TLS handshake. The client checks the staple instead of querying the responder itself. Stapling is faster, more private, and keeps working briefly if the responder is
unreachable, because the response is cached by the server.
Key protection decides whether any of this matters.
CA keys live in HSMs, never in files on a general server. Issuing CA servers are dedicated and hardened. Every issuance is logged, to a store the CA administrators cannot alter. A PKI is a trust factory; its audit trail is part of the product.
SCENARIO
CertCrack built its PKI quickly: one online CA issues every certificate type, its key is stored on the CA server's disk, and administrators renew server
certificates by hand. Two outages this year came from expired certificates, and an auditor has flagged the design. Redesign the PKI. State the hierarchy, how keys are protected, how issuance is controlled, and how revocation status reaches clients efficiently.
Discussion. A strong redesign creates an offline root CA whose key lives in an HSM under dual control, with separate issuing CAs by purpose — users, devices, servers, code signing — so one compromise does not end the whole system. Issuance runs from approved templates, with RA verification for sensitive types and automated enrollment for high-volume types, which also removes the manual-renewal outages. Revocation uses OCSP with stapling on public and internal TLS services, so clients get fresh status without slow queries or privacy leaks. The single online CA with a disk-stored key fails on every axis: one compromise, no separation of duties, and no automation.
Worked example — inspecting a certificate the way an auditor does.
Today is 14 November 2026. A partner reports TLS warnings against the engine's API endpoint. The analyst dumps the certificate the endpoint actually serves:
Certificate:
Data:
Version: 3 (0x2)
Signature Algorithm: sha1WithRSAEncryption
Issuer: CN = CertCrack Internal CA
Validity
Not Before: Mar 12 00:00:00 2025 GMT
Not After : Mar 12 23:59:59 2026 GMT
Subject: CN = api.certcrack.com
X509v3 Subject Alternative Name:
DNS:api.certcrack.com, DNS:www.certcrack.com
Reading the certificate. Three faults, one per field group. Validity: the Not After date lies months in the past, so the certificate is expired — that alone explains the warnings. Name: clients connect to engine.certcrack.com, but neither the Subject nor the SAN list contains that name, so even a renewed copy of this same certificate would still warn. Signature: sha1WithRSAEncryption is a deprecated algorithm that modern clients distrust on sight. The issuer is the internal CA, but the partner trusts that root under the federation agreement, so private-CA trust is not a fourth fault here. Under the PKI hierarchy of Figure 25, all three are issuance-process faults — the CA renewed a legacy template instead of the service's current one — so the durable fix is at the template, not on this one server.
4.1.7 Physical and Logical Access Control Systems
Access control is not only digital. The server room door and the admin console protect the same assets, and the design must treat them as one system with two kinds of enforcement.
Physical access control systems govern space.
Badge readers, PIN pads, biometrics, turnstiles, and mantraps control who enters which area. The design principles mirror the digital ones. Least privilege: a badge opens the floors the role needs, not the building. Lifecycle: the badge is issued by the same joiner process and killed by the same leaver process as the network account. Logging: every door event is recorded and correlated with digital events, so a 3 a.m. server-room entry and a 3 a.m. console login by the same identity tell one story.
Anti-tailgating controls protect the gap between policy and behavior.
A badge reader counts credentials, not people. Mantraps and turnstiles handle the second person. Sensitive areas add a second factor at the door and camera coverage, reviewed when door logs show anomalies such as one badge used in two buildings at once.
Logical access control systems govern systems and data.
Everything earlier in this section is logical control: directories, IdPs, PEPs, access models, and certificates. The design point the exam presses is integration.
Physical and logical systems should share one identity and one lifecycle. A contractor whose engagement ended Friday should lose the badge, the VPN, and the portal account in one transaction, driven by one authoritative end date — not in three tickets closed by three teams over two weeks.
Privileged access gets its own layer in both worlds.
Physically, privileged areas such as the data center and the HSM room need named-person access lists, reviewed monthly. Logically, privileged accounts are vaulted, checked out just in time, session-recorded, and never used for daily work. The two lists — who may enter the room, who may hold the keys — are reviewed together, because either one alone can defeat the other.
CORE CONCEPT
Every control in this section is the same idea in different clothing: one authoritative identity, granted least privilege by an approved process, checked at a controlled point, and removed on time. Provisioning, federation, conditional access, PKI, and door badges differ in technology. They do not differ in logic. When a design fails, it fails in the logic first — an account nobody owned, a trust nobody scoped, a door and a login that were never the same lifecycle.
4.2 Secure Cloud Capabilities (Objective 2.5)
Objective 2.5 moves the same design discipline into the cloud. The cloud does not remove the architect's responsibilities. It changes where the boundaries sit, which parts a provider operates, and how fast everything can be created — including mistakes. A storage bucket can be exposed to the internet in seconds, by code, at scale. Cloud design is therefore about visibility, explicit shared responsibility, self-checking pipelines, and data controls that assume exposure will be attempted.
CertCrack's estate is now hybrid.
The practice engine runs in one cloud tenant, the PBQ labs in a second, isolated tenant, and staff use a dozen SaaS applications. This section designs the controls for that shape of estate.
4.2.1 CASB and Shadow IT Detection
You cannot secure cloud services you do not know about. Two problems arrive together: sanctioned services need control, and unsanctioned services need discovery. The cloud access security broker exists for both.
DEFINITION
Cloud Access Security Broker (CASB). A CASB is a control point between users and cloud services that provides visibility, data security, threat protection, and compliance enforcement for cloud applications. It discovers which
services are in use, applies DLP and access policy to them, and reports risk per application. A CASB is the cloud-era version of the PEP idea from Section 4.1.
API-based CASB connects to the service, not the traffic.
In API mode, the CASB uses the cloud service's own APIs to scan data at rest, review sharing settings, audit accounts, and apply policy inside the service. It sees content users stored weeks ago. It works for managed and unmanaged devices alike, because it does not sit in the network path. Its limit is timing: API scans are near-real-time at best, so API mode alone cannot block an upload in the moment it happens.
Proxy-based CASB sits in the traffic path.
In forward-proxy mode, user traffic to cloud services passes through the CASB, which can inspect and block in real time. In reverse-proxy mode, the CASB sits in front of a specific application, commonly reached through the IdP, and enforces policy per session without an agent on the device. Proxy mode gives inline control. Its costs are coverage work — steering traffic to the proxy — and care with certificate inspection and application compatibility.
Figure 26 — API mode scans SaaS data out of band, while proxy mode inspects user traffic inline.
Reading Figure 26. Compare the two panels side by side. In API mode, on the left, the user goes straight to the SaaS app. The CASB connects to the app through its API, out of band. It scans data at rest, checks sharing and applies policy after the fact. In proxy mode, on the right, every user request passes through the CASB first. The proxy inspects traffic inline, in real time, and can block an upload before it lands. API mode sees stored data best. Proxy mode controls live sessions best.
The two modes are complements, not rivals, as Figure 26 shows.
Use API mode to govern sanctioned services deeply: scan the file store, find oversharing, check configuration. Use proxy mode where the moment matters: block uploads of item-bank files to personal storage, in the act. Mature designs run both against the same policy set, so a rule written once protects data at rest and data in motion.
Shadow IT detection starts with logs you already have.
Proxy and firewall logs, DNS queries, and endpoint agents reveal which cloud services staff actually use. The CASB scores each service for risk: encryption in transit, data location, SSO and MFA support, ownership. Discovery then becomes a workflow, not a report: sanction the good services under SSO and DLP, coach users off the risky ones, and block the unacceptable few.
Cloud service adoption is the governance around that workflow.
A sanctioned service is adopted deliberately, with a named owner, a data classification, SSO and MFA enforced, and a review date. An unsanctioned service is adopted only after a risk assessment, never by drift. Adoption is a decision,
recorded and reversible — a service adopted without an owner becomes the next shadow-IT finding.
EXAM TIP
Match the CASB mode to the verb in the scenario. "Scan existing files and sharing settings" and "works from any device" point to API-based mode. "Block the upload as it happens" and "real-time" point to proxy-based mode. Scenarios that need both outcomes need both modes — that combination is a common best answer.
4.2.2 The Shared Responsibility Model
Every cloud argument starts from one question: whose job is this control? The shared responsibility model answers it, differently for each service model. Designs fail when a team assumes the provider handles something the provider never promised to handle.
DEFINITION
Shared Responsibility Model. The shared responsibility model divides cloud security duties between provider and customer. The provider secures the cloud itself: facilities, hardware, and the managed platform layers it operates. The customer secures what it puts in the cloud: data, identities, configuration, and access. The dividing line moves with the service model — IaaS, PaaS, or SaaS.
Figure 27 — The provider manages more of the stack as the model moves from IaaS to PaaS to SaaS.
Reading Figure 27. Read each column from top to bottom. The blue part is what the customer manages. The purple part is what the provider manages. In IaaS the customer manages the most: the operating system, apps, data and identity. The provider runs the facilities, physical network, hardware, and virtualization. In PaaS the boundary moves down, because the provider also runs the operating system and runtime. In SaaS the provider runs almost everything. The customer still owns its data and who can access it, in every model, without exception.
Figure 28 — Four open posture findings across two cloud accounts, with severity and resource.
Reading Figure 28. Prioritize by exposure, not by the order on screen. The public storage bucket is first: the data is reachable now, by anyone, with no exploit needed. The open SSH port is second — it is an entry point, but it still demands credentials. The unencrypted volume is third, because reaching it requires access the attacker does not yet have, and the dormant root key is fourth: a Critical-severity credential finding whose fix is minutes of hygiene — delete it — but the severity and the effort are different things. Every one of these four sits on the customer side of Figure 27's boundary — and the queue is ordered by exposure.
Infrastructure as a service (IaaS) leaves the most with the customer.
The provider runs the facilities, hardware, and virtualization layer. The customer owns the guest operating system, patching, network rules, identities, and data. An unpatched IaaS server is the customer's unpatched server. The provider's hypervisor being secure does not change that.
Platform as a service (PaaS) moves the platform up the stack.
The provider patches the operating system and runtime. The customer owns the application code, its configuration, its identities, and its data. A PaaS database with a public endpoint and a weak admin password is still the customer's failure.
Software as a service (SaaS) moves the application too.
The provider runs the software. The customer still owns the data, the user lifecycle, the sharing settings, and the integrations it approves. Most SaaS breaches are customer-side failures: a leaver's account never disabled, a file shared to anyone with the link, a third-party add-on granted sweeping access and forgotten.
Two duties never transfer.
Accountability for data and responsibility for identity stay with the customer in every model. You can outsource operations; you cannot outsource accountability. Figure 27 draws the boundary for each model; the architect writes it into contracts, runbooks, and monitoring, so every control has a named owner on one side of the line.
SCENARIO
A CertCrack client migrated its candidate records to a SaaS platform and then suffered a breach: an attacker used the still-active account of a contractor whose engagement had ended two months earlier. The client argues the SaaS provider is responsible, because the provider runs the application. Evaluate that claim under the shared responsibility model, and state the two controls that would have prevented the breach.
Discussion. The claim fails. In SaaS, the provider secures the application platform, but the customer owns identities, the user lifecycle, and access configuration in every service model. The first missing control is lifecycle-driven deprovisioning: the contractor's account should have been disabled automatically at the engagement end date, ideally through federation with the client's IdP so one disable stops every service. The second is access review with dormant-account alerting, which would have caught a live account unused for two months. Patching, encryption at rest, and the provider's data-center controls are all provider strengths — and none of them addresses a valid account that should not exist.
4.2.3 Secure Delivery: CI/CD Pipelines, Terraform, and Ansible
Cloud estates are built by pipelines, not by consoles. Whoever controls the pipeline controls the estate, so the pipeline is designed as a security system in its own right.
A secure CI/CD pipeline checks at every stage.
Code is committed to a protected branch. Static analysis and dependency scanning run automatically. The build produces a signed artifact and a software bill of materials. Deployment uses a short-lived, scoped identity, never a stored long-term key. Chapter 3 designed these gates in the SDLC; in the cloud they are also the enforcement mechanism, because the pipeline is how change legitimately happens. Manual console changes are treated as drift.
Package monitoring watches the dependencies after the build ships.
Dependency scanning at build time catches what is known then; package monitoring catches what is disclosed after the build shipped. It tracks the packages and libraries the estate depends on, flags newly disclosed vulnerabilities in pinned versions, watches for unmaintained or newly compromised packages, and alerts when a security fix supersedes the version in use — so the estate learns about a vulnerable library without waiting for the next release.
Infrastructure as code (IaC) makes the estate reviewable.
The network, the storage, the identities, and the logging are declared in code, versioned, and reviewed like application code. A change to a firewall rule gets the same pull-request scrutiny as a change to payment logic.
Terraform declares infrastructure across providers.
Terraform describes resources in configuration files, plans the difference between declared and actual state, and applies it. Security design points: the state file holds sensitive values and must be stored encrypted, access-controlled, and
locked against concurrent change. Providers and modules come from trusted sources and pinned versions. Plans are reviewed before apply, because the plan is where an exposed storage bucket is visible before it exists.
Ansible configures what runs inside.
Ansible applies configuration to servers and devices using agentless, declarative playbooks over SSH or APIs. It hardens baselines, installs agents, sets file permissions, and keeps configuration from drifting. Secrets in playbooks belong in an encrypted vault, never in plain text in the repository. Terraform builds the house; Ansible furnishes and maintains it. The exam uses exactly that division: provisioning versus configuration management.
EXAM TIP
If a scenario asks how to stop insecure cloud resources from being created at all, think pipeline and policy, not scanning after the fact. If it asks how to fix configuration across a fleet of existing servers, think Ansible. If it asks how to rebuild or re-declare the infrastructure itself, think Terraform. The tool follows the layer.
4.2.4 Container Security, Orchestration, and Serverless
Containers and serverless functions package applications differently, and each breaks an assumption traditional controls rely on. Containers share a host kernel. Functions may live for seconds. The design adapts: protect the image and the supply chain, not just the running instance.
Container security starts before anything runs.
- Image hygiene. Build from minimal, trusted base images. Scan images for vulnerabilities and secrets in the pipeline, and block deployment above a stated severity.
- Image signing. Sign images at build time and let the platform admit only signed images, so what runs is what was built and reviewed.
- Runtime limits. Run as a non-root user, with a read-only file system where possible, dropped privileges, and resource limits, so one compromised container cannot easily become the host.
- Secrets delivery. Inject secrets at runtime from a secrets manager. A secret baked into an image is published to everyone who can pull the image.
DEFINITION
Container Orchestration. Container orchestration is the automated management of containers at scale: scheduling them onto hosts, restarting failures, scaling replicas, networking them, and enforcing deployment policy. Kubernetes is the standard example. The orchestrator is a control plane for the whole workload estate, so its API, its identities, and its admission policies are high-value security targets.
Orchestration security concentrates on the control plane.
Protect the orchestrator's API with strong authentication and RBAC. Segment workloads by namespace and network policy, so a compromised front-end container cannot reach the database container directly. Audit admission decisions. The orchestrator decides what runs where; an attacker who reaches it does not need to attack containers one at a time.
Worked example — a Kubernetes NetworkPolicy, read as a firewall rule.
Kubernetes allows all pod-to-pod traffic until a policy says otherwise. This policy is the microsegmentation of Section 4.3.3 written for the payments namespace: it governs the database pods.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: db-allow-app-only
namespace: payments
spec:
podSelector:
matchLabels:
app: payments-db
policyTypes: ["Ingress"]
ingress:
- from:
- podSelector:
matchLabels:
app: payments-api
ports:
- port: 5432
Reading the policy. The podSelector chooses the protected workloads — every pod labeled payments-db. The single ingress rule then names the only allowed source, pods labeled payments-api, on the one port the database serves, 5432. Because a policy with an ingress section denies everything it does not list, the front-end pods, the monitoring pods, and every other namespace lose their path to the database the moment this policy is applied — the flat default becomes a default-deny segment per workload. Two cautions complete the picture: the cluster's network plugin must actually enforce NetworkPolicy (not all do), and egress is untouched here, so a separate policy is needed to stop the database initiating connections outward.
DEFINITION
Serverless Computing. Serverless computing runs code in functions that the provider starts on demand, scales automatically, and bills per use, with no server for the customer to manage or patch. The customer still owns the code, the function's permissions, its input validation, and the data it touches. Serverless removes the operating system from the customer's duties. It does not remove the application from them.
Serverless design is mostly identity and input.
Give each function its own identity with the minimum permissions for its task — one broad role shared by forty functions turns any one flaw into an estate-wide flaw. Validate every input, because functions are commonly triggered by public events such as uploads and webhooks. Keep functions small and single-purpose. Patch the dependencies in the deployment package; the provider patches the runtime, not your libraries.
CORE CONCEPT
Containers and serverless move the unit of security from the machine to the workload. You no longer ask, "Is this server patched and hardened?" You ask, "Is this image signed and scanned, does this workload hold only the
permissions it needs, and can it reach only what it should?" The questions from Sections 4.1 — identity, least privilege, lifecycle — apply unchanged. Only the nouns change.
4.2.5 Cloud Control Strategies and Customer-to-Cloud Connectivity
Cloud controls are classified by when they act. A balanced design uses all three timings, because no single timing catches everything.
- Preventative controls stop the bad state from existing. Organization policies that forbid public storage buckets, deny unencrypted volumes, or restrict which regions may be used are preventative: guardrails that make the bad state impossible, not evaluations of a proposed change.
- Proactive controls evaluate intended change before it lands. Scanning Terraform plans and pipeline templates against policy, and refusing a deployment that would expose data, acts earlier than any detective control can.
- Detective controls find what exists. Cloud security posture management, configuration monitoring, and log analysis detect the public bucket that was created outside the pipeline, the unused key that suddenly authenticates, the rule that drifted. Detective controls must connect to a response path, or they are only a record of what went wrong.
Customer-to-cloud connectivity carries the same decisions as any
network design.
Options range from the public internet with strong identity controls, through site-to-site VPN, to private dedicated links that keep traffic off the public internet entirely. Choose by sensitivity, latency, and cost. Figure 29 shows CertCrack's hybrid topology: the on-premises environment and two cloud tenants joined by SD-WAN, with SASE providing the access layer for staff wherever they work.
Figure 29 — Headquarters, branch, two cloud tenants and the internet all connect through one SASE platform.
Reading Figure 29. Start at the top left with headquarters and its on-premises data center. The branch office, top right, reaches services through its SD-WAN edge, which builds encrypted overlay links. Both sites connect into the SASE platform in the center. SASE applies ZTNA, secure web gateway, CASB and firewall services close to each user. From SASE, traffic flows down to two separate cloud tenants and out to the internet. Each tenant stays isolated. Policy is set once, centrally, and enforced at the SASE edge for every site and every cloud.
Connectivity is also an identity question.
A private link makes traffic private. It does not make the requester authorized. Hybrid designs therefore pair connectivity with Section 4.1's controls: federation for people, certificates for workloads, PEPs at each tenant boundary. CertCrack's PBQ lab tenant is deliberately unreachable from the practice-engine tenant except through one audited API.
Worked example — a policy that grants more than it says. This policy was
written to let a deployment role update one application. Read it the way an attacker reads it:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DeployApp",
"Effect": "Allow",
"Action": ["ec2:RunInstances", "lambda:UpdateFunctionCode"],
"Resource": "*"
},
{
"Sid": "PassAnyRole",
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "*"
},
{
"Sid": "ReadSecrets",
"Effect": "Allow",
"Action": "secretsmanager:GetSecretValue",
"Resource": "*"
}
]
}
Reading the policy. Three statements combine into an escalation path. PassAnyRole lets the holder hand any role in the account — including an administrator role — to a new compute instance, and the first statement lets the holder start that instance: RunInstances on * covers the AMI, subnet, security group, network interface, and volume the launch requires, so the call succeeds rather than being denied for a missing resource permission. Whoever holds this policy can therefore become whichever role they pass. The third statement widens the damage on the way through: every secret in the account is readable. The rewrite is scope, not removal: PassRole limited to the one deployment role's ARN, secrets limited to the application's own secret, and instance actions limited with the ec2:InstanceType condition key to the types the deployment needs. A wildcard resource on an identity action is the cloud's version of permit ip any any — written once, regretted publicly.
4.2.6 Cloud Data Security
Cloud data failures follow a short list of patterns. The objective names them, and the design answers each one directly. Exposure is data reachable by people who should not reach it.
Public storage, overshared files, and snapshots shared to the wrong account are exposure. Preventative policy forbids public settings; detective tooling scans continuously for them; CASB API mode finds the overshared file inside a
sanctioned service. Exposure is the most common cloud data failure, and the most preventable.
Leakage is data leaving through a channel, sanctioned or not.
DLP at the CASB, the email gateway, and the endpoint watches for sensitive content moving to personal storage, personal email, or code repositories. Leakage controls need Chapter 3's data classification: you cannot watch for the item bank leaving if nothing has labeled which files are the item bank.
Insecure storage is data held without the baseline protections.
Encryption at rest, access logging, versioning, and backup are the baseline for sensitive cloud storage. A database without access logs cannot answer the first incident question: who read what, and when? Storage design states these properties per data class, and posture tooling verifies them continuously.
Data remanence is data that survives its container.
Deleted volumes, deallocated disks, and returned media can retain data a later tenant or handler could recover. Reputable providers overwrite or destroy media to a stated standard, and contracts should say so. For the most sensitive data, the customer-side answer is encryption with customer-held keys: destroy the key, and the residual ciphertext is unrecoverable. That technique, cryptographic erasure, appears again in Chapter 6 as “Cryptographic erase”.
Encryption keys are where cloud data security is won or lost.
Choose deliberately between provider-managed keys, customer-managed keys in the provider's key service, and customer-held keys outside the provider. Customer-managed keys give rotation control, separation of duties, and revocation by disabling the key. They also give you a new way to cause an outage. Key design states who can use each key and who can administer it — different people — and how key events are logged.
Licenses split the same way keys do.
Cloud-managed licenses are provisioned and metered by the provider, scaling with use and billed per seat or per consumption; customer-managed licenses are bought, allocated, and tracked by the customer, often for software installed on cloud infrastructure. The design question is the same as for keys: who tracks entitlement, who reclaims a license when a user leaves, and what happens when the count is exceeded — a blocked sign-in, or a quiet compliance breach.
EXAM TIP
Separate the cloud data terms by mechanism. Exposure = reachable by the wrong people (access settings). Leakage = moving out through a channel (DLP's problem). Remanence = left behind after deletion (encryption and key destruction answer it). Insecure storage = missing baseline protections. A scenario's wording names the mechanism; the mechanism names the control.
4.3 Zero Trust Architecture (Objective 2.6)
Objective 2.6 asks you to design as if the network is already hostile — because for a hybrid, remote, multi-cloud estate, it is. Zero Trust is not a product and not a single project. It is an architecture discipline: never trust by location, always verify explicitly, grant the least access that works, and assume breach when you design containment. This section assembles everything from Sections 4.1 and 4.2 into that discipline.
4.3.1 Principles and Continuous Authorization
Verify explicitly is the first principle.
Every access request is authenticated and authorized using all available signals: identity, device attestation, location, behavior, and the sensitivity of the target. A request from inside the office network receives no free pass. The office is a location signal, nothing more.
Least privilege is the second principle.
Access is granted per session, per resource, and just in time where the risk justifies it. Standing access to sensitive systems is designed out. An administrator requests elevation, receives it for a bounded window with the session recorded, and loses it automatically.
Assume breach is the third principle.
Design as if an attacker already holds one account and one device. Segment so that foothold cannot become the estate. Log as if you will need the evidence. This principle is why Zero Trust designs pair every access control with monitoring and containment, not as extras, but as part of the same decision.
DEFINITION
Continuous Authorization. Continuous authorization means access is evaluated at the start of a session and re-evaluated as conditions change during it. If device health fails, risk rises, or behavior shifts, the session is limited, stepped up for reauthentication, or terminated. Authorization is a live decision with an expiry, not a permanent grant made at login.
Figure 30 — Every request is verified by the IdP, decided by the PDP, enforced by the PEP and rechecked continuously.
Reading Figure 30. Follow the numbers from the top. A subject, a user with a device, asks for access. The identity provider verifies who they are, with MFA. The policy decision point then evaluates the request. It uses fresh signals about risk and device posture, shown on the left. The policy enforcement point sits on the path and applies the decision. Only then does the subject reach the resource. At the bottom, monitoring watches every session. Its feedback arrow runs back up to the decision point, so trust is rechecked continuously, never granted once and forgotten.
Figure 30 shows the end-to-end shape.
A subject — a person, device, or workload — presents identity and attestation evidence to the identity provider. The policy decision point evaluates the request against policy and live signals. The policy enforcement point in front of the resource allows exactly what was decided, and streams telemetry back. That telemetry feeds the next decision. The loop, not any single box, is the architecture: decide, enforce, observe, decide again.
Trust algorithms score the loop's inputs.
In mature designs the PDP computes a confidence level from signals rather than checking rules one by one. Falling confidence — a device posture failure mid-session, an impossible change of location — triggers step-up or termination. The exam requires the design idea, not a vendor's algorithm: decisions consume live signals and change when the signals change.
4.3.2 Assets, Subjects, Objects, and Trust Decisions
Zero Trust cannot protect an estate it cannot enumerate. Asset work comes
before access work. Asset identification builds the inventory.
Users, devices, workloads, applications, APIs, and data stores are discovered from the IdP, the endpoint platform, the cloud tenants, and network observation, then reconciled into one inventory. Unknown devices and shadow workloads are findings, not footnotes: an unmanaged device that appears on the network is contained to a limited segment until it is identified and owned.
Asset management keeps the inventory true.
Every asset has an owner, a criticality rating, and a lifecycle state, fed by the same joiner–mover–leaver discipline as identities. The CMDB discipline from Chapter 1 becomes a security input: the PDP can only reason about criticality and sensitivity if the inventory records them accurately.
Asset attestation proves current state.
As in Section 4.1, devices and workloads present verifiable evidence: TPM-backed identity, measured boot results, agent health, a platform-issued workload identity. Attestation turns the inventory from a list of claims into a list of checked facts, refreshed on a cycle short enough to matter.
Subject–object relationships define what policy actually governs. A
subject is the entity requesting access: a user, a device, a service, a workload. An object is the resource being requested: an application, a data set, an API operation, a device. Policy is written as relationships between them — this class of subject, in this state, may perform this action on this class of object, under these conditions.
Mapping the estate's subject–object pairs is the real design work of Zero Trust. It exposes the pairs nobody intended, such as a reporting service that can also write to the item bank, and those unintended pairs are where breaches live.
CORE CONCEPT
Zero Trust policy is a set of subject–object relationships, each with conditions. "Item writers may edit unpublished items from attested devices" is a
relationship. "The lab tenant may call the results API and nothing else" is a relationship. If a design document cannot list its subject–object pairs, it does not yet have a Zero Trust design — it has a product purchase. The exam's architecture scenarios reward the relationship thinking, not the product name.
4.3.3 Segmentation, Microsegmentation, and Security Boundaries
Verification decides who may pass. Segmentation decides how far anyone — verified or not — can move. The two controls are partners: identity without segmentation leaves a verified attacker free to roam, and segmentation without identity cannot tell a user from a workload.
Segmentation divides the network into zones by trust and function.
User networks, server networks, management networks, lab environments, and guest access sit in separate segments with controlled crossings. Segmentation limits broadcast and scanning, gives firewalls meaningful places to stand, and contains the first foothold. It is necessary. At enterprise scale, it is not sufficient, because each segment still holds many workloads that trust each other by location.
DEFINITION
Microsegmentation. Microsegmentation applies policy at the level of the individual workload. Each application, service, or container receives its own enforcement point and may exchange traffic only with the specific workloads its function requires, on the specific ports required. A compromised workload finds every lateral path closed by default, including paths to its neighbors in the same segment.
Figure 31 — Zones set the outer perimeter; a policy enforcement point at every workload sets the inner one.
Reading Figure 31. Read the top row left to right. Traffic from untrusted Internet users crosses the edge into the DMZ zone, where a web server sits behind a policy enforcement point (PEP) built from a WAF and firewall rules. Traffic then crosses into the app and data zone, where the app server and the database each carry their own PEP instead of trusting the zone. The bottom row zooms inside one zone: every workload has a host-level PEP, traffic between workloads is denied by default, and only explicitly allowed flows pass. A flat zone trusts everything inside it; microsegmentation removes that trust.
Figure 31 contrasts the two layers.
Zones form the outer structure. Inside each zone, per-workload PEPs enforce the subject–object map from Section 4.3.2. East–west traffic — workload to workload, the traffic traditional perimeters never saw — is where microsegmentation earns its cost, because lateral movement is east–west traffic.
Worked example — microsegmentation as written, on one workload. On
a Linux workload the policy of the definition box becomes a host firewall rule set. This is the item-bank application server, app-07, written with iptables (the nftables rule set is equivalent in structure):
# app-07 — item-bank application tier. Default: deny. iptables -P INPUT DROP iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -p tcp -s 10.20.1.0/24 --dport 8443 -j ACCEPT iptables -A INPUT -p tcp -s 10.20.9.10 --dport 22 -j ACCEPT iptables -A INPUT -j LOG --log-prefix "APP07-DROP: "
Reading the rules. The policy line sets the posture: anything not expressly allowed is dropped, including traffic from the workload's own neighbors in the same segment. The loopback rule admits localhost traffic, which the default DROP would otherwise block and local services depend on. The next rule admits only replies to connections app-07 itself opened. The following rule admits exactly one business flow — the web tier's subnet to the application port, 8443 — and the next admits administration from one jump host, not from the user network. Everything else reaches the log rule, is recorded, and then falls through to the default DROP policy. A compromised neighbor scanning app-07 meets this list, not a trusting peer: that is microsegmentation at the level of a single workload, enforced in the operating system itself.
Data perimeters draw the boundary around data itself.
A data perimeter keeps defined data inside defined accounts, networks, and identities, and blocks exfiltration paths that bypass them — for example, copying a snapshot to an external account. Identity rules say who may act; the data perimeter says the data may only ever be acted on from inside the boundary.
Secure zones hold the highest-value functions.
The PKI issuing servers, key management administration, and the item bank's authoring environment sit in zones with their own PEPs, named-person access, and no general-purpose browsing or email. A secure zone is segmentation with intent: the small set of places where the estate's strictest rules apply.
SCENARIO
An attacker phishes a CertCrack support agent's password and passes MFA from an unmanaged device during a fatigue attack. The agent's account can reach the support console — and, because the internal network is flat, the same session can scan the item-bank servers and the PBQ lab controllers. Redesign the access path so this exact compromise stays small. Name the decision point, the enforcement points, and the segmentation change.
Discussion. A strong redesign puts the PDP in the identity layer evaluating device attestation and sign-in risk: an unmanaged device with a high-risk pattern is denied or stepped up before any console is reached, which likely stops this
attack at the door. PEPs sit in front of the support console, the item bank, and the lab controllers separately, so passing one grants nothing at the others — and the support role holds no item-bank relationship in the subject–object map at all. Microsegmentation then closes the lateral paths: the support segment cannot route to item-bank servers, and each workload accepts only its required flows. The flat network plus one reusable grant is the defect; a stronger password or a second MFA prompt alone leaves the blast radius unchanged.
4.3.4 Deperimeterization: SASE, SD-WAN, SDN, VPN, and ZTNA
The old design had a perimeter: a wall around the office and data center, with VPN as the gate. Cloud, SaaS, and remote work dissolved it. Deperimeterization is the name for designing honestly after the wall is gone: controls move to identity, device, and cloud-delivered enforcement points, close to wherever the user and the resource actually are.
DEFINITION
Secure Access Service Edge (SASE). SASE combines network connectivity and security enforcement in a cloud-delivered service. It typically joins SD-WAN routing with a secure web gateway, CASB functions, firewall as a service, and Zero Trust network access, all driven by identity-based policy. The user
connects to the nearest enforcement point; policy follows the identity, not the building.
SD-WAN rebuilds the wide-area network in software.
Software-defined WAN steers traffic across broadband, LTE, and private links by application policy and link health, managed centrally. Its security role in this objective is transport: getting branch and home traffic to enforcement points efficiently, and segmenting traffic classes over whatever links exist. SD-WAN alone does not authenticate users or authorize applications. It carries traffic to the places that do.
SDN separates control from forwarding inside the network.
Software-defined networking centralizes the control plane, so policy can program flows across switches and virtual networks from one point. That programmability makes microsegmentation and rapid isolation practical at scale: a PDP decision can become network behavior in seconds, including quarantining a workload by rewriting its allowed flows.
VPN still has a defined, narrower job.
A traditional VPN extends a network to a remote device. Its weakness for Zero Trust purposes is breadth: once connected, the device commonly reaches far more than the one application it needed. Site-to-site VPN remains a sound tool for
joining networks. For user-to-application access, the narrower tool below is preferred.
Always-on VPN removes the user's choice from the connection.
The tunnel starts with the device, before login, and cannot be disabled by the user. A managed device therefore always reaches the internet through controlled paths and can be managed and patched. Always-on VPN pairs well with device attestation: the device proves itself to establish the tunnel. It still grants network-level reach, so sensitive applications keep their own PEPs behind it.
DEFINITION
Zero Trust Network Access (ZTNA). ZTNA grants access per application, not per network. The user authenticates through the IdP, the PDP evaluates identity, device, and context, and a connector brokers a session to the one application requested. The network itself is never exposed: applications have no listening presence to scan, and reaching one application grants no path to any other.
Choosing between VPN and ZTNA is a scope question. Choose ZTNA for
user access to named applications, especially SaaS-adjacent and internal web applications, and for third parties, who should never hold network-level access to your estate. Retain VPN where a workload genuinely needs network-level connectivity, such as site-to-site links and some legacy or OT tooling, and wrap it with the same identity and device checks.
CertCrack's external reviewers are the textbook ZTNA case: they need two applications, for six weeks, from devices CertCrack does not manage — per-application access with attestation of the session, and nothing else reachable.
EXAM TIP
Watch for breadth words. "Access to the network" suggests VPN and is usually the over-broad option. "Access to this application only, after identity and device checks, with the application hidden from scanning" is ZTNA. When a scenario includes third parties or unmanaged devices, the narrow answer almost always wins.
4.3.5 Context-Based Reauthentication and API Security
Two refinements complete the design: what happens when risk changes mid-session, and how machine-to-machine access is governed, because in a Zero Trust estate most traffic is APIs, not browsers. Context-based
reauthentication asks for fresh proof when the context demands it.
Triggers include a long idle period, a change of network or location, a device posture failure, an unusual action for the session, and any step into a more sensitive operation — releasing a payment, exporting the item bank, changing a security policy. The step-up is proportionate: a phishing-resistant check for the sensitive act, not a full logout for a coffee break. Session design sets the maximum lifetime, the idle lifetime, and the step-up triggers together, because they are one control expressed three ways.
API integration is how Zero Trust components talk.
The IdP, PDP, PEPs, endpoint platform, and SIEM exchange signals and decisions through APIs: posture changes, risk scores, revocation events, policy updates. That integration makes continuous authorization real — a device that fails compliance at noon loses its sessions at noon, because the endpoint platform told the PDP, and the PDP told every PEP. Design the integrations as production interfaces: authenticated, authorized, and logged.
API validation protects the APIs themselves.
Every API call is authenticated — tokens or mutual TLS for workloads — authorized against the subject–object map, and validated for shape: schema checks, input validation, rate limits, and rejection of unexpected methods and payloads. An API gateway commonly serves as the PEP for this traffic, applying the PDP's decisions at the boundary of each service. Unvalidated APIs are the soft interior of many Zero Trust designs: strong at the browser door, trusting at the machine door. The exam tests both doors.
Workload identity closes the loop.
Services authenticate to each other with short-lived, platform-issued identities and certificates, not with shared static keys in configuration files. A stolen static key works from anywhere, forever. A workload identity works from the workload, briefly, and its use is attributable in logs. That difference is the whole Zero Trust argument, applied to machines.
EXAM TIP
Zero Trust scenarios are decided by scope and continuity. The best answer grants the narrowest access — per application, per session, per
subject–object pair — and keeps evaluating it. Answers that grant standing network access, trust a location, or check identity once at login contradict the model, even when every technology named in them is real.
CORE CONCEPT
Zero Trust is Sections 4.1 and 4.2 with the location assumption removed. The IdP still proves identity. Attestation still proves device state. The PDP still decides and PEPs still enforce. PKI still carries machine identity. What changes is that no network, office, or tunnel is trusted by itself, every decision expires, and segmentation assumes one decision will eventually be wrong. If you can explain a Zero Trust design as those familiar parts in a continuous loop, you can answer any scenario the exam builds from it.
EXAM TRAP
The federation trap. In any SSO option set, the identity provider authenticates and the service provider authorizes. An option that has the IdP granting application permissions, or the SP checking passwords, has swapped the roles and falls without further reading. The cloud twin is the shared responsibility model, which never moves: an option that makes the customer patch the provider's hypervisor, or the provider classify the customer's data, violates it in either direction. And hold the CASB split from Section 4.2.1 — API mode inspects data at rest and cannot block in real time; only proxy mode stands in the flow.
Chapter Exercises
SCENARIO
CertCrack is acquiring a small training company with 40 staff, its own IdP, and a SaaS-heavy estate. Day one requirement: the acquired staff must reach CertCrack's item bank review portal and shared finance system. Constraint: CertCrack must not create 40 local accounts, and acquired staff must not gain any network-level access. Design the access architecture. Name the trust mechanism, the enforcement pattern, and the lifecycle control that protects CertCrack when individual staff later leave the acquired company.
Discussion. A strong design federates the two IdPs: the acquired company's IdP authenticates its own staff, and CertCrack's portal and finance system act as service providers consuming scoped assertions, with group claims mapped to the minimum roles. Access is delivered per application through ZTNA-style enforcement — a PDP evaluates identity, group, and context, and PEPs in front of each application enforce it — so no network-level path is granted. The lifecycle protection is the federation itself: when a person leaves the acquired company, its leaver process disables the identity at the source, which blocks the next login — but live CertCrack sessions end only at expiry, via single or back-channel logout, or on a pushed revocation signal, so the design pairs the disable with short session lifetimes and a revocation mechanism, backed by quarterly review of the
group mappings. Local accounts fail the constraint and recreate the orphaned-account problem; a site-to-site VPN grants far more reach than two applications require.
SCENARIO
CertCrack's cloud posture tool reports four findings in the PBQ lab tenant: (1) a storage bucket holding lab templates is publicly readable; (2) a function's execution role can administer the whole tenant; (3) deleted lab volumes are destroyed by the provider after 30 days with no customer-side protection for the candidate data they held; (4) an unsigned container image was deployed to the lab cluster last week. Classify each finding by the cloud data or delivery concept it represents, and give the strongest control for each.
Discussion. Finding 1 is exposure: the strongest control is preventative — an organization policy forbidding public storage settings — backed by detective posture scanning. Finding 2 is a least-privilege failure in serverless identity: give the function its own role scoped to its single task. Finding 3 is data remanence: encrypt candidate data with customer-managed keys and destroy the key at deletion (cryptographic erasure), so residual media holds only unrecoverable ciphertext. Finding 4 is a supply-chain and orchestration failure: sign images in the CI/CD pipeline and set the orchestrator's admission control to refuse unsigned images, so the platform enforces the control rather than reviewer vigilance.
Chapter Summary
Access design starts with the lifecycle. Provisioning creates identities from an authoritative source with small birthright access; deprovisioning removes the account, the sessions, and the tokens on a schedule set by risk; reconciliation hunts the orphaned accounts both processes miss. Federation lets one organization trust another's identities: the identity provider proves who the user is and issues a signed assertion; the service provider validates it and still makes its own authorization decision. SSO is the single sign-in experience built on that trust. Conditional access turns sign-in into a risk decision, consuming identity, device, network, and risk signals plus verifiable attestations, and returning graduated outcomes from allow to step-up to block. Behind it sits the pattern the chapter reuses: a policy decision point decides, policy enforcement points enforce, and one policy serves every door.
The access model gives the decision its logic. RBAC fits stable job functions, ABAC fits context-rich decisions and cures role explosion, MAC enforces labels and clearances the user cannot change, DAC leaves sharing with the owner inside central guardrails, and rule-based control decides from traffic conditions. PKI carries machine identity: an offline root over purpose-separated issuing CAs, a registration authority verifying entitlement before issuance, templates making
issuance repeatable, extensions stating what each certificate is for, and OCSP stapling delivering fresh revocation status inside the handshake. Physical and logical controls share one lifecycle, so a leaver loses the badge, the VPN, and the portal in one transaction.
In the cloud, the CASB restores visibility and control: API mode scans and governs data inside sanctioned services, proxy mode enforces in real time in the traffic path, and shadow IT discovery turns unknown services into sanction, coach, or block decisions. The shared responsibility model assigns every control an owner — the provider secures the cloud; the customer secures data, identity, and configuration in every model, with the line moving between IaaS, PaaS, and SaaS. Delivery is secured as a pipeline: Terraform declares infrastructure, Ansible configures it, CI/CD gates check and sign what ships. Containers are secured as images and workloads, orchestration as a control plane, and serverless as per-function identity and validated input. Cloud data security answers exposure with preventative policy, leakage with DLP, insecure storage with baselines and logging, and remanence with encryption and key destruction. Zero Trust then removes location trust entirely: continuous authorization re-decides as signals change, asset attestation keeps the inventory truthful, subject–object relationships define what policy governs, microsegmentation and
data perimeters contain the assumed breach, SASE and SDN deliver enforcement wherever users are, carried over SD-WAN transport, ZTNA grants per-application access instead of network access, and context-based reauthentication plus validated APIs protect the session and the machine door alike.
Key Terms
- Provisioning. The controlled creation of an identity and its access rights, driven by an authoritative source, when a person, device, or service joins or changes role.
- Deprovisioning. The controlled removal of an identity, its sessions and tokens, and all of its access when the person leaves or the need ends.
- Federation. A trust arrangement in which one domain accepts identities proven by another; the prover is the identity provider, the consumer is the service provider.
- Single Sign-On (SSO). One authentication event that grants access to many applications without signing in to each one separately.
- Conditional Access. Policy that evaluates user, device, network, application, and risk signals at sign-in and during the session, then allows, steps up, limits, or blocks access.
- Attestation. Verifiable evidence that a claim about a user, device, or workload is true, produced by the platform rather than self-declared.
- Policy Decision Point (PDP). The component that evaluates a request against policy and context and returns the access decision.
- Policy Enforcement Point (PEP). The component in front of a resource that intercepts requests and carries out the PDP's decision.
- Role-Based Access Control (RBAC). Access granted through roles that match job functions; users receive permissions by holding roles.
- Attribute-Based Access Control (ABAC). Access decided from attributes of the user, resource, action, and environment evaluated together.
- Mandatory Access Control (MAC). Access imposed by the system from classification labels and clearances the user cannot change or override.
- Discretionary Access Control (DAC). Access decided by the owner of a resource, who chooses who may use it.
- Rule-Based Access Control. Access decided from conditions on the request, such as time or network, rather than from identity.
- Certificate Authority (CA). The trusted issuer that binds a public key to an identity and signs the resulting certificate.
- OCSP Stapling. The server attaches a signed, time-stamped OCSP response to the TLS handshake so clients get revocation status without querying the responder.
- Cloud Access Security Broker (CASB). A control point between users and cloud services providing visibility, data security, and policy enforcement, in API-based and proxy-based modes.
- Shared Responsibility Model. The division of cloud security duties: the provider secures the cloud itself; the customer secures data, identities, and configuration, with the line moving by service model.
- Container Orchestration. Automated management of containers at scale — scheduling, scaling, networking, and admission policy — through a control plane such as Kubernetes.
- Serverless Computing. Code run in functions the provider starts on demand and bills per use, with no server for the customer to manage or patch.
- Continuous Authorization. Access evaluated at the start of a session and re-evaluated as conditions change during it.
- Microsegmentation. Per-workload enforcement that allows only the specific flows a workload's function requires, closing lateral paths inside a segment.
- Secure Access Service Edge (SASE). Cloud-delivered network connectivity and security enforcement joined in one service, driven by identity-based policy.
- Zero Trust Network Access (ZTNA). Per-application access brokered after identity, device, and context checks, with no network-level access granted and no application exposed to scanning.
End-of-Chapter Test — Chapter 4
Q1. A security architect at CertCrack.com reviews the leaver process after an audit. A support agent resigned on good terms and gave four weeks of notice. Her accounts were disabled on her last day, but the audit finds her API tokens for the internal reporting tool still worked a week later, because token revocation was a separate manual step owned by another team. Which design change BEST fixes the root cause?
A) Shorten all API token lifetimes to 24 hours so forgotten tokens expire quickly.
B) Move the reporting tool behind the VPN so external token use fails.
C) Require managers to confirm in writing that a leaver's access was removed.
D) Make deprovisioning a single automated workflow driven by the HR record that disables the account, revokes sessions and tokens, and reclaims devices together.
Q2. A corporate client wants its 300 staff to reach the CertCrack training portal using their existing company credentials. CertCrack must not store the client's passwords, must require MFA as part of the federated sign-in, and must control which portal roles each client group receives. Which design BEST meets these requirements?
A) Synchronize the client's password hashes to CertCrack's directory nightly.
B) Give each staff member a separate CertCrack-managed account with the same username.
C) Federate the client's identity provider with the portal as service provider, map client groups to portal roles, and require MFA as part of the federated sign-in.
D) Place the portal behind a site-to-site VPN and trust the client's network as the authentication.
Q3. An architect is designing sign-in policy for the item bank, which holds unpublished exam questions. Writers use compliant company laptops. A sign-in is flagged high risk by the identity provider because the credentials appeared in a leaked password dump. The device is compliant and the password plus MFA both succeed. What should the conditional access design do?
A) Block the sign-in, revoke existing sessions, and require a password change through a verified process before access resumes.
B) Allow the sign-in because device compliance and MFA both passed.
C) Allow a read-only session and review the sign-in at the next weekly meeting.
D) Require a second MFA prompt and then allow full access.
Q4. CertCrack's finance team needs payment-release rules: a finance user may release a payment only if they are in the Finance department, use a compliant device, act during approved hours, and stay below a per-user limit that varies by seniority. The current role-based design has produced over 200 narrowly different roles. Which model BEST fits this requirement?
A) Discretionary access control, so each payment owner sets their own rules.
B) Mandatory access control, using classification labels on each payment.
C) Rule-based access control, using firewall-style conditions on the traffic.
D) Attribute-based access control, evaluating department, device, time, and limit attributes together.
Q5. A public TLS service receives heavy traffic. Clients are slow to complete handshakes because each one queries the CA's OCSP responder, and the security team also objects that the responder learns which services each client visits. The certificates and CA are otherwise sound. Which change BEST addresses both concerns?
A) Publish a larger CRL more frequently and require clients to download it.
B) Enable OCSP stapling so the server attaches a signed, time-stamped status response to the handshake.
C) Extend certificate lifetimes so status checks matter less often.
D) Disable revocation checking to remove the query entirely.
Q6. CertCrack has sanctioned a cloud file service for project work. The security team must find item-bank drafts that staff stored and shared externally over the past six months, including files shared from personal devices the company does not manage. Which CASB approach BEST meets this requirement?
A) Reverse-proxy CASB in front of the service's sign-in page.
B) Forward-proxy CASB, which inspects uploads in real time as traffic passes through it.
C) API-based CASB, which scans data at rest and sharing settings inside the service regardless of the device used.
D) A secure web gateway rule blocking the service's upload URL.
Q7. A client runs its candidate database on IaaS virtual machines. The guest operating systems have not been patched in five months. After a compromise through a known OS vulnerability, the client claims patching was the cloud provider's duty because the provider owns the infrastructure. How should the architect evaluate this claim?
A) The claim is correct, because the provider owns the physical infrastructure.
B) The claim is correct only if the client's contract includes a premium support tier.
C) The claim is wrong: under the shared responsibility model for IaaS, the customer owns the guest operating system and its patching.
D) The claim is wrong only because the database held regulated data.
Q8. An engineer plans to change a cloud storage configuration. The security architect wants the team to see exactly which resources will be created, modified, or exposed before anything is applied, and wants the file that records the estate's current state protected because it contains sensitive values. Which tool and practice BEST fit?
A) Ansible playbooks, reviewed after they run against the fleet.
B) Manual console changes documented in a change ticket.
C) A configuration management database updated weekly from scans.
D) Terraform, with the plan output reviewed before apply and the state file stored encrypted with restricted access and locking.
Q9. CertCrack is moving its PBQ lab workloads to a container platform. A red-team exercise showed that one compromised lab container could reach every other lab container and the cluster's management API. Which control set MOST directly addresses this design weakness?
A) Admit only signed, scanned images, enforce per-workload network policies so containers reach only what their function requires, and protect the orchestrator API with strong authentication and RBAC.
B) Rebuild all containers nightly so any compromise is short-lived.
C) Place the whole cluster behind a single perimeter firewall with one allow rule for lab traffic.
D) Give each container a public address so its traffic can be logged by the ISP.
Q10. A cloud volume that held candidate personal data is deleted at the end of a project. The compliance officer asks how the design ensures the data cannot be recovered from storage media later reassigned or retired by the provider. The data was encrypted at rest with customer-managed keys. Which answer BEST addresses the concern?
A) Rely on the volume deletion API, which guarantees immediate overwriting of every block.
B) Destroy the customer-managed key for that data set, so any residual ciphertext left by remanence is unrecoverable.
C) Keep the volume's snapshots for a year in case recovery is needed.
D) Ask the provider to confirm deletion in a support ticket and file the reply.
Q11. CertCrack is rebuilding remote access on Zero Trust lines. Internal web applications must be reachable only after a central service evaluates identity, device attestation, and risk, and every application must enforce that same decision even if a user finds a direct path to it. Where should the decision and enforcement functions sit?
A) Each application should evaluate policy locally so no central service is a single point of failure.
B) The perimeter firewall should decide once at network entry, and applications should trust traffic that passed it.
C) The VPN concentrator should decide, because it already terminates remote sessions.
D) A central policy decision point should evaluate the request, and a policy enforcement point in front of each application should intercept every path and enforce the decision.
Q12. After segmentation, CertCrack's workloads sit in well-separated zones, but an internal test shows any compromised workload in the application zone can still reach every other workload in that zone on any port, and lateral movement succeeds in minutes. Which design change MOST directly closes this gap?
A) Add more zones so the estate has twice as many segments.
B) Install microsegmentation with a per-workload enforcement point that allows only the flows each workload's function requires.
C) Require MFA for all administrator logins to the zone's servers.
D) Move the application zone behind a second perimeter firewall.
Q13. External reviewers need access to exactly two internal applications for six weeks, from their own unmanaged laptops. They must never gain network-level reach into CertCrack's estate, the applications must not be exposed to internet scanning, and each session must be checked against reviewer identity and context. Which solution BEST fits?
A) An always-on VPN profile restricted by firewall rules to the two application servers.
B) ZTNA that brokers per-application sessions after identity and context checks, without exposing the applications or granting network access.
C) Publishing both applications on the internet behind a login page.
D) A site-to-site VPN between the review firm and CertCrack.
Q14. A finance user is signed in from a compliant device with a normal session. Mid-session, she attempts to export the full candidate payment file — an action she performs rarely and that the policy classifies as high sensitivity. Her session token is still valid for three more hours. What should the Zero Trust design do?
A) Trigger context-based reauthentication with a step-up check before allowing the export, because the action's sensitivity changed the risk of the session.
B) Allow the export, because the session was authorized at sign-in and the token has not expired.
C) Terminate the account and require a full re-onboarding.
D) Log the export for review at the end of the month and take no action in the session.
Answer Key — Chapter 4
1. D — A single automated deprovisioning workflow driven by the HR record is right because the root cause was a lifecycle split across teams: the account was disabled, but the tokens lived under a separate manual step. Joining disable, session and token revocation, and device reclaim into one triggered workflow removes the gap for every leaver, not just this one. Shortening token lifetimes to 24 hours reduces the exposure window but leaves valid tokens working after departure and does nothing for sessions or devices. A manager's written confirmation is an attestation about a manual process; it records the same fragile steps rather than fixing them. Moving the tool behind the VPN changes the network path, but the tokens remain valid for anyone who reaches the tool, including through any other path.
2. C — Federation is right because the client's identity provider authenticates its own staff, so CertCrack never stores client passwords, and the portal as service provider validates the assertions and maps client groups to its own roles. CertCrack requires MFA by requesting the MFA authentication context (SAML AuthnContext / OIDC acr) in the federated sign-in and verifying the returned assertion carries it; the MFA itself is performed by the client's identity provider. Synchronizing password hashes makes CertCrack a custodian of client credentials, the exact thing the requirement forbids, and creates a high-value target. Issuing 300 separate local accounts recreates the full lifecycle burden and guarantees orphaned accounts when client staff leave. Trusting the client's network over a VPN is location-based trust: it authenticates a network, not a person, and gives network reach instead of per-application access.
3. A — Blocking, revoking sessions, and forcing a verified password change is right because a credential known to be leaked is compromised evidence, not a routine risk signal. Conditional access exists so that a high-risk signal overrides otherwise passing checks; the item bank's sensitivity leaves no room for a limited session on a possibly attacker-held credential. Allowing the sign-in because device and MFA passed ignores the risk signal entirely and treats conditional access as a checklist. A read-only session still exposes unpublished questions to whoever holds the leaked password. A second MFA prompt adds little, because an attacker who obtained the password may also phish or fatigue the MFA, and it leaves the compromised credential in place.
4. D — Attribute-based access control is right because the rule is built entirely from attributes evaluated together: department, device compliance, time, and a per-user limit that varies by seniority. ABAC expresses that in one policy, which is why it cures the role explosion the scenario describes. Discretionary access control leaves decisions with individual owners and provides no central, consistent rule for payment release. Mandatory access control compares classification labels and clearances; it does not evaluate device state, hours, or monetary limits. Rule-based access control decides from traffic conditions such as addresses and ports, and knows nothing about the user's department or limit.
5. B — OCSP stapling is right because the server obtains a signed, time-stamped status response and attaches it to the handshake. Clients stop making their own queries, which removes the handshake delay, and the responder no longer learns which services each client visits, which answers the privacy objection. A larger, more frequent CRL makes downloads heavier, keeps the staleness problem, and still gives clients no per-handshake freshness. Extending certificate lifetimes makes a stolen key useful for longer and does nothing for check performance or privacy. Disabling revocation checking removes the query by removing the protection, so a revoked certificate would be trusted.
6. C — API-based CASB is right because it connects to the sanctioned service itself and scans data at rest: existing files, their content, and their sharing settings, reaching back over the stored history the scenario asks about. Because it works through the service's APIs, it covers files shared from unmanaged personal devices as well. Forward-proxy CASB inspects traffic in motion and is the right tool for blocking an upload as it happens, but it cannot see files stored before deployment or outside its traffic path. Reverse-proxy mode governs sessions through the sign-in path and likewise does not scan stored content. A web gateway URL block prevents future uploads to one address but discovers nothing about six months of existing sharing.
7. C — The claim is wrong because the shared responsibility model for IaaS assigns the guest operating system, including its patching, to the customer. The provider secures the facilities, hardware, and virtualization layer; everything from the guest OS upward is the customer's. A premium support tier can add advice and faster responses, but it does not transfer the patching duty itself. The regulated nature of the data raises the stakes and may add compliance duties, but the patching responsibility would be the customer's for any data — the service model, not the data type, draws the line.
8. D — Terraform is right because it declares infrastructure as code and produces a plan showing exactly what will be created, changed, or destroyed before anything is applied, which is the pre-change visibility the architect asked for. Its state file genuinely contains sensitive values, so encrypted storage, restricted access, and state locking are the correct companion controls. Ansible is a configuration management tool for the systems that run inside the infrastructure; its playbooks act on the fleet rather than planning infrastructure change, and reviewing after the run is too late for the stated requirement. Manual console changes bypass reviewable code entirely. A weekly updated CMDB records what scans found after the fact; it neither plans nor enforces the change.
9. A — The combined control set is right because it answers each demonstrated path: signed, scanned images stop unreviewed workloads at admission; per-workload network policy closes the container-to-container lateral movement the exercise proved; and strong authentication with RBAC on the orchestrator API protects the control plane that manages everything. Nightly rebuilds shorten a compromise but leave the same open paths available again every day, and a determined attacker works in minutes. A single perimeter firewall with one broad lab rule recreates flat trust at the cluster edge and inspects nothing inside it. Public addresses per container increase exposure and solve no part of the internal reachability problem.
10. B — Destroying the customer-managed key is right because it is cryptographic erasure: data remanence means residual data may persist on media the provider later reassigns or retires, but ciphertext without its key is unrecoverable, and key control is exactly what customer-managed keys give the customer. A deletion API removes the logical volume; no provider guarantees an immediate block-by-block overwrite of shared physical media, which is the remanence problem itself. Keeping snapshots for a year deliberately retains the very data that must be unrecoverable. A filed support-ticket reply is an assurance statement, not a technical control, and it does nothing to the residual data.
11. D — A central policy decision point with a policy enforcement point in front of each application is right because it gives one consistent decision for every application and enforcement on every path, including direct paths that bypass the front door. That separation is the core Zero Trust access pattern. Local evaluation by each application recreates policy drift, so the weakest application becomes the effective policy. A perimeter firewall decision trusts location after entry and cannot evaluate identity, attestation, or per-application context. A VPN concentrator terminates network tunnels; it grants network-level reach and is not a per-application policy engine, and applications behind it typically trust its traffic.
12. B — Microsegmentation is right because the proven weakness is inside the zone: every workload can reach every other workload. Per-workload enforcement points that allow only the flows each function requires close those lateral paths directly, regardless of zone boundaries. Adding more zones shrinks each flat area but leaves the same flat trust inside each new zone, and the test would still succeed within them. MFA for administrators protects login paths, not workload-to-workload traffic, which is where the lateral movement occurred. A second perimeter firewall adds another edge around the same internally open zone and inspects none of the east–west traffic.
13. B — ZTNA is right because it brokers access per application after identity and context checks, grants no network-level access, and keeps the applications themselves unexposed — there is no listening service for internet scanning to find. That matches every stated constraint for third parties on unmanaged devices. An always-on VPN is designed for managed devices that must stay inside policy permanently; even with firewall rules it grants network-level connectivity to unmanaged machines, the thing the requirement forbids. Publishing the applications on the internet exposes them to scanning and attack regardless of the login page. A site-to-site VPN joins two networks wholesale, the broadest option of all.
14. A — Context-based reauthentication is right because Zero Trust authorization is continuous: a valid session token grants the session, not unlimited action within it. A rare, high-sensitivity export changes the risk of the session, and a proportionate step-up check re-proves the user at the moment of the sensitive act. Allowing the export on sign-in authorization alone treats authorization as a one-time event, which contradicts the continuous model. Terminating the account and requiring re-onboarding is disproportionate — the user and device show no sign of compromise, only a sensitive action. Logging for month-end review is detective only; by the time anyone reads it, the payment file has already left.