10.3 Cloud Application Architecture (Domain 4.6)

Key Takeaways

  • Domain 4.6 covers cloud application architecture specifics: supplemental security components (WAF, DAM, XML firewalls, API gateway, load balancer), cryptography, sandboxing, and application virtualization/orchestration (microservices, containers, Docker, Kubernetes).
  • Supplemental components add defense in depth at the edge and data tier but do not replace secure design, authZ, or secure coding.
  • Cryptography protects data and trust (TLS, encryption at rest, signing, key custody); design for algorithm agility and correct key management ownership.
  • Sandboxing isolates risky code or workloads to limit blast radius of compromise or untrusted input processing.
  • Microservices, containers, and orchestrators introduce service identity, image provenance, network policy, and control-plane security as first-class architecture concerns.
Last updated: July 2026

Cloud Application Architecture

Domain 4.6 requires you to comprehend and apply the specifics of cloud application architecture. The outline groups: supplemental security components (Web Application Firewall (WAF), Database Activity Monitoring (DAM), Extensible Markup Language (XML) firewalls, Application Programming Interface (API) gateway, load balancer); cryptography; sandboxing; and application virtualization and orchestration (microservices, containers, Docker, Kubernetes). This is the architectural toolkit that surrounds application code in cloud deployments.

Architecture as Security Design

Cloud application architecture defines trust boundaries, data flows, and control insertion points. A correct component in the wrong place (WAF without TLS understanding, encryption without key access control, Kubernetes without RBAC) creates a false sense of safety.

Architectural questionSecurity implication
Where does identity live?Federation, service mesh policy, gateway auth
Where is data at rest?Encryption, DAM, backup isolation
How do services talk?mTLS, API gateway, zero-trust east-west
What runs untrusted logic?Sandbox, container isolation, least privilege
How is capacity managed?Load balancer health, autoscaling abuse controls

Exam framing: Match the component to the threat (injection noise → WAF; SQL abuse/insider queries → DAM; coarse XML attacks → XML firewall; API traffic management → gateway; availability/distribution → load balancer) while remembering none of these fix missing tenant authZ alone.

Supplemental Security Components

These components sit beside or in front of applications to add monitoring, filtering, routing, and policy enforcement.

Web Application Firewall (WAF)

A WAF inspects HTTP/HTTPS application traffic for attacks such as injection, XSS, known exploit patterns, and some bot abuse. It can run as a cloud service, reverse proxy, or platform feature.

WAF strengthWAF limitation
Virtual patching for known exploit patternsLimited understanding of complex business logic
Rate and geo controls at Layer 7Misconfigured rules can block legitimate traffic
Complements secure codingNot a substitute for fixing root vulnerabilities

Place WAFs at internet-facing edges. Tune to reduce false positives. Log and alert on blocks. Pair with secure SDLC so WAF is compensating, not permanent sole mitigation for known code bugs.

Database Activity Monitoring (DAM)

DAM monitors database queries and admin actions for unauthorized access, privilege abuse, anomalous query patterns, and policy violations—often independent of native DB logs alone.

DAM use caseExample
Privileged user monitoringDBA selects entire PII table off-hours
Application anomalyService account suddenly issues DDL
Compliance evidenceProve access monitoring for regulated data stores
Insider threat detectionBulk export patterns

DAM does not encrypt data or replace IAM on the database; it provides visibility and detection. Protect DAM itself from tampering by the accounts it watches.

XML Firewalls

XML firewalls (and related XML/JSON threat protection at gateways) inspect structured messages for XML-specific attacks: oversized payloads, entity expansion (XXE-class issues), schema non-compliance, and malicious transformations. In SOAP/legacy enterprise integrations still common in hybrid cloud, XML firewalls remain relevant. Modern JSON APIs often use schema validation and threat protection features on API gateways with similar intent.

API Gateway

An API gateway is a managed entry point for API traffic offering:

CapabilitySecurity value
Authentication offloadCentral token validation
Authorization hooksCoarse route-level controls
Rate limiting / quotasAvailability and cost protection
Request/response transformationNormalize and strip sensitive headers
TLS termination / re-encryptionConsistent crypto posture
Routing and versioningControlled exposure of API versions
Analytics and loggingInventory and anomaly detection
Threat protectionSchema checks, size limits

Architecture rule: Gateways enforce edge policy; services still enforce object-level authorization and business rules.

Load Balancer

Load balancers distribute traffic for scalability and availability. Security-relevant aspects:

FeatureSecurity/resilience role
Health checksRemove compromised or failed nodes
TLS termination / passthroughCrypto design point; certificate management
Protocol controlsDisable weak ciphers/protocols at edge
Integration with WAF/DDoSLayered edge defense
Internal vs external balancersSeparate public and private planes
Session affinity awarenessUnderstand sticky sessions for auth design

Load balancers are not primarily authorization engines; do not treat “behind a LB” as “authenticated.”

Component Placement Table

ComponentTypical placementPrimary threats addressed
WAFPublic HTTP edgeOWASP-class web attacks, some bots
API gatewayNorth-south API edge (and some internal)AuthN at edge, abuse of open APIs, version sprawl
XML firewallSOAP/XML integration boundaryXML attacks, schema abuse
Load balancerBefore app tiersAvailability, TLS edge, healthy routing
DAMNear data stores (logical)DB abuse, insider/anomalous queries

Defense in depth example: Internet users → DDoS protection → load balancer → WAF → API gateway → microservices → database with IAM least privilege and DAM on sensitive clusters.

Cryptography in Cloud Application Architecture

Cryptography protects confidentiality, integrity, authenticity, and non-repudiation when designed and keyed correctly.

Where Crypto Appears in Apps

LayerApplication
In transitTLS for user and service traffic; mTLS between services
At restVolume, object, database, backup encryption
Application-levelField encryption for high-sensitivity elements before storage
IntegrityHashing, HMAC, code/image signing
IdentityCertificate-based auth, signed tokens (JWT with proper validation)
Key managementKMS/HSM-backed keys; envelope encryption; rotation

Design Principles for CCSP

  1. Prefer standard protocols and libraries—do not invent crypto.
  2. Separate key custody from encrypted data where threat requires (customer-managed keys).
  3. Least privilege on key use—encrypt/decrypt permissions are high value.
  4. Rotate and revoke keys/certificates; automate expiration monitoring.
  5. Protect against metadata and side channels where relevant (for example, do not put secrets in URLs/logs).
  6. Plan algorithm agility so broken primitives can be replaced.
  7. Mind shared responsibility—provider offers KMS; you configure key policies, access, and app integration.

Common Architectural Crypto Failures

FailureResult
TLS terminated then cleartext on flat internal networks without compensating controlsLateral sniffing risk
Hardcoded keys in imagesGlobal compromise on leak
Encryption at rest with publicly readable objectsAttackers read via API as authorized anonymous
Custom XOR “encryption”Trivial break
JWT accepted without signature/algorithm validationAuth bypass
Same key for every tenant without isolation strategyBlast radius on key compromise

Cryptography is necessary architecture glue for cloud apps, but access policy and secure key lifecycle determine real strength.

Sandboxing

Sandboxing runs code or processes in restricted environments so compromise or misbehavior cannot easily reach the host, sibling workloads, or sensitive data.

Sandbox Use Cases

Use caseExample
Untrusted content processingConvert user-uploaded documents in an isolated worker
Executable untrusted codeCustomer scripts, plugins, or infrastructure-as-code plan evaluation
Browser isolationHigh-risk browsing separated from corporate endpoints
Mobile/app runtimeOS-level app sandboxes (conceptually related)
Function isolationPer-invocation isolation in serverless platforms
Test of suspicious packagesDetonate in isolated pipeline runners

Properties of Effective Sandboxes

  • Strong isolation (containers with hardened profiles, VMs, gVisor-like runtimes, separate accounts).
  • Least privilege identities and network egress allow-lists.
  • Ephemeral filesystems and no access to production secrets.
  • Resource limits (CPU, memory, time, disk) against DoS from within.
  • Monitoring of breakout attempts and anomalies.
  • No shared writable host mounts by default.

Sandbox vs Container vs VM

MechanismIsolation strength (generalized)Notes
Process aloneWeakNot a sandbox
ContainerModerateShare kernel; harden and avoid privileged mode
Hardened container / user-space kernelStrongerBetter for untrusted code
VM / separate accountStrongHigher overhead; clear blast-radius boundary

Exam tip: When stems involve processing untrusted uploads or running customer code, sandboxing is often the architecture control—not only “add a WAF.”

Application Virtualization and Orchestration

Microservices

Microservices decompose applications into independently deployable services communicating over networks (HTTP/gRPC/events).

BenefitSecurity challenge
Independent scaling and releaseLarger attack surface of APIs
Technology flexibilityInconsistent authZ implementations
Fault isolation (if designed)Cascading failures and retry storms
Team autonomyDivergent logging and secret practices

Microservice security architecture patterns:

  • Service identity and mTLS (mesh or platform).
  • Centralized authZ or rigorously shared libraries.
  • API gateway for north-south; service mesh policy for east-west.
  • Per-service least-privilege datastore credentials.
  • Distributed tracing with careful PII handling.
  • Circuit breakers and timeouts (availability as security-adjacent resilience).
  • Threat models per service trust boundary.

Containers and Docker

Containers package application and dependencies into portable images. Docker popularized container tooling (images, registries, daemon/runtime concepts). CCSP expects security practices, not product trivia.

Control areaPractice
Image hygieneMinimal base, no secrets in layers, SCA on images
ProvenanceSign images; pull by digest
UserNon-root processes
CapabilitiesDrop Linux capabilities; read-only root FS where possible
SecretsInject at runtime via secret stores—not ENV in image history
RegistriesPrivate, scanned, access-controlled
RuntimeAvoid privileged containers; limit hostPath mounts
PatchingRebuild images frequently; immutable deploy

Kubernetes and Orchestration

Kubernetes orchestrates containers: scheduling, networking, scaling, rolling updates, and declarative desired state. Security architecture must cover cluster control plane, nodes, workloads, and supply chain.

DomainControls
AuthN/AuthZStrong identity for users and service accounts; RBAC least privilege; disable anonymous risky access
Admission controlPolicy webhooks for signed images, non-root, resource limits
Network policyDefault-deny east-west; allow only required paths
SecretsEncrypt etcd secrets; external KMS; short-lived tokens
Pod securityRestricted profiles; no privileged escalation
Supply chainOnly trusted registries; admission on digest/signature
ObservabilityAudit logs for API server; runtime detection
Multi-tenancyNamespaces are not hard multi-tenant boundaries without extra controls; use separate clusters/accounts for strong isolation
Node hardeningMinimal OS, patching, restricted SSH
Egress controlLimit pod access to metadata and internet

Orchestration Threat Examples

ThreatArchitectural mitigation
Compromised CI deploys malicious podSigned images + admission + least-privilege deploy identity
Pod escapes to nodeNon-privileged, hardened runtime, up-to-date nodes
Lateral movement pod-to-podNetwork policies, mTLS
Stolen service account tokenBound tokens, short life, audience restrictions
Dashboard exposed publiclyNever expose control plane without strong auth and network restriction

Serverless Note (Architecture Adjacent)

While the outline names microservices/containers/Docker/Kubernetes under virtualization and orchestration, cloud architectures also use serverless functions. Apply the same principles: least privilege roles, dependency SCA, secrets not in code, sandbox assumptions, and API gateway fronts. Do not ignore event-source permissions (who can invoke the function).

Integrated Architecture Scenario

A fintech exposes APIs publicly: global load balancer and WAF at the edge, API gateway for JWT validation and rate limits, microservices on Kubernetes with network policies and mTLS, field-level crypto for account numbers via KMS, DAM on the primary database, and untrusted document parsing in a sandboxed worker queue with no production datastore credentials. That design applies every Domain 4.6 bullet in one system.

Putting Domain 4.6 Together for the Exam

  1. Map threat → supplemental component (injection patterns → WAF; DB insider queries → DAM; API sprawl → gateway; availability → LB; XML threats → XML firewall).
  2. Place cryptography with correct key custody and TLS design.
  3. Use sandboxing for untrusted execution/content.
  4. For containers/K8s/microservices, emphasize identity, network policy, image provenance, and RBAC—not only “we containerized it.”
  5. Reject answers that claim a WAF or gateway alone completes application security.

Common Traps

  • Equating load balancing with authentication.
  • Storing long-lived cloud keys in container images.
  • Treating Kubernetes namespaces as sufficient hard multi-tenancy for hostile tenants.
  • Enabling a WAF in monitoring-only mode forever and calling the risk mitigated.
  • Encrypting disks while leaving API anonymous public access.
  • Running privileged containers “for convenience” in production.
Test Your Knowledge

Security needs detection of anomalous privileged SELECT statements against a regulated customer database that already uses IAM and encryption at rest. Which supplemental component best fits?

A
B
C
D
Test Your Knowledge

Which Kubernetes-oriented control set best reduces risk of unauthorized lateral movement and untrusted image deployment?

A
B
C
D
Test Your Knowledge

An application must convert untrusted user-uploaded office documents to PDF. Which architectural control is most appropriate to limit blast radius if a parser vulnerability is exploited?

A
B
C
D
Test Your Knowledge

What is a correct characterization of an API gateway in cloud application architecture?

A
B
C
D