Back to exam

312-40 Cheatsheet

Certified Cloud Security Engineer

Download free PDF

Cloud architecture and infrastructure

Service models and responsibility

  • **IaaS** supplies virtual infrastructure: Amazon EC2 customers manage guest operating systems, patches, applications and data. The provider manages physical infrastructure and the virtualization platform.
  • **PaaS** adds a managed operating system and runtime. Customers secure deployed code, identities, configuration and data; provider maintenance does not remove application responsibility.
  • **SaaS**, such as Microsoft 365, delivers a managed application. The provider patches the hosted service; customers still manage access, data handling, endpoints and tenant settings.
  • **Public**, **private** and **hybrid** describe deployment arrangements. A responsibility matrix should identify each control owner rather than assuming that cloud adoption transfers every security task.

Cloud actors and management

  • **Consumer** uses services; **provider** delivers them; **carrier** supplies connectivity and transport. A **broker** mediates service selection, aggregation or delivery.
  • **Auditor** independently assesses controls and evidence. Provider certifications support due diligence but do not establish that every customer configuration is secure.
  • The **management plane** provisions and configures resources through consoles, APIs and automation. Protect its identities and audit trail separately from application data traffic.
  • **Vendor lock-in** arises from costly dependencies on provider APIs, formats or services. Plan export, portability, migration costs and an exit process before adoption.

Physical and virtual resilience

  • **Tier I** has no redundant capacity components; **Tier II** adds component redundancy. **Tier III** supports concurrent maintenance; **Tier IV** adds fault tolerance.
  • **HVAC** removes equipment heat and supplies conditioned air. Hot/cold aisle separation, environmental monitoring and redundant power support dependable data-center operations.
  • **SR-IOV** and direct I/O reduce virtualization overhead by exposing hardware capabilities to guests. Balance performance against isolation, portability and migration constraints.
  • **Live migration** moves a running VM between hosts for supported maintenance events. It does not replace application replicas, regional recovery or backups.
  • **Right-sizing** uses representative CPU, memory, disk and network measurements. Disk size or provisioned IOPS may affect throughput; resizing compute and storage have different disruption requirements.

Storage and data protection

Storage and database selection

  • **Block storage** provides volumes for operating systems and databases: Amazon **EBS** and Compute Engine persistent disks. **File storage**, such as Amazon **EFS**, exposes shared filesystem access.
  • **Object storage**, such as S3, Azure Blob and Cloud Storage, stores objects with metadata. **Ephemeral storage** is unsuitable as the only durable copy.
  • **Structured data** follows a defined schema; **semi-structured data** carries flexible fields or tags; **unstructured data** includes media and documents. Select storage around access patterns and durability.
  • **Relational databases**, including Amazon RDS engines, support SQL joins and transactions. NoSQL systems use alternative models; managed databases reduce maintenance but still require access and recovery design.
  • VMware **raw device mapping (RDM)** maps a SAN logical unit to a VM through a mapping file. It differs from an ordinary virtual disk file.

RAID and recoverable copies

  • **RAID 0** stripes data for capacity and throughput without redundancy. **RAID 1** mirrors data and sacrifices usable capacity for resilience.
  • **RAID 5** uses block striping with distributed parity, requires at least three disks and tolerates one disk failure. Parity rotates across members rather than occupying one dedicated disk.
  • **RAID 6** adds dual parity and tolerates two disk failures. **RAID 10** stripes across mirrored pairs, combining performance and redundancy at a capacity cost.
  • **RAID is not a backup**: deletion, ransomware and corruption can affect the array. Keep separately protected recovery points and test restoration.

Storage lifecycle and delegated access

  • **Hot/Standard** storage suits frequent access; colder classes trade lower storage cost for access charges or minimum billing periods. Google **Coldline** targets infrequently accessed objects.
  • **Azure Archive** suits long-lived, rarely read blobs when rehydration delay is acceptable. Archive retrieval is a planning decision, not an immediate failover mechanism.
  • **Signed URLs** grant time-limited Cloud Storage access to anyone possessing the URL. Restrict operation and expiry; protect the URL as a credential.
  • **Bucket names** follow provider syntax and namespace rules. Avoid spaces and sensitive information; a syntactically valid name may already be taken.
  • **AWS Snowball** represents physical bulk-data transfer; **Storage Gateway** bridges on-premises workloads to cloud storage. Choose offline transfer when network copy time is impractical.

Encryption, keys and information rights

  • **TLS** protects data in transit. **X.509 certificates** bind public keys to identities; validate trust, hostname and validity rather than treating encryption alone as authentication.
  • **AWS KMS**, **Azure Key Vault** and **Cloud KMS** manage cryptographic keys. Separate key administration from data access and preserve recovery controls throughout rotation and retirement.
  • **S3 SSE-KMS** uses a KMS key in the bucket region. Cross-account use requires the appropriate key and IAM permissions; granting a user access does not change regional key scope.
  • **Database TLS** protects client connections; Amazon Redshift exposes the **require_ssl** setting. Enforce encrypted sessions and validate the server certificate to reduce interception risk.
  • **Information rights management** embeds persistent usage restrictions with encryption. Microsoft information-protection labels can limit document recipients, opening, copying or forwarding beyond simple email transport protection.
  • **Fully homomorphic encryption** enables computation on encrypted values. **Crypto-shredding** destroys required decryption keys; recoverable key copies or plaintext copies undermine the intended deletion.

Identity and privileged access

Federation and identity lifecycle

  • **SAML** exchanges XML assertions for federated sign-in. **OpenID Connect** supplies identity over OAuth; **OAuth** delegates API authorization rather than defining user provisioning.
  • **SCIM** standardizes account provisioning and deprovisioning. Disable leavers promptly, revoke sessions and remove roles or keys; directory removal alone may not invalidate every active credential.
  • **Google IAM principals** include users, groups and service accounts identified by email, plus domain principals. Grant roles on the narrowest resource scope that meets the task.
  • **Entra pass-through authentication** validates cloud sign-ins against on-premises AD through agents. Directory synchronization, password-hash synchronization and authentication are separate mechanisms.

Roles, temporary credentials and scope

  • **Least privilege** limits actions, resources and conditions. Review both permission policies and the trust relationship that allows a principal to assume a role.
  • An **EC2 instance role** delivers temporary credentials through its instance profile. The application uses its workload role; developers need not receive the same data-access permissions.
  • **Privileged Identity Management (PIM)** supports eligible, time-limited role activation with approvals and auditing. Combine privileged access with MFA and periodic review.
  • **Azure RBAC** assignments inherit through management groups, subscriptions, resource groups and resources. A shared Entra tenant does not automatically create identical assignments in every subscription.

Administrative access and IAM operations

  • **Azure Bastion** carries browser access over HTTPS/TLS and reaches VM private addresses using RDP or SSH. It avoids exposing those VM management ports directly to the internet.
  • **Just-in-time VM access** restricts inbound management ports and opens approved access for a limited source and duration using supported NSG or firewall controls.
  • For SSH, **PasswordAuthentication no** disables password authentication; inspect keyboard-interactive settings too. **PermitRootLogin prohibit-password** restricts root password login, while **no** disables root SSH login.
  • **passwd -l USER** locks a local password, not every authentication path. SSH keys and active sessions require separate review; deleting a password is not a safe substitute.
  • AWS IAM operations include **add-user-to-group**, **create-access-key** and **update-login-profile**. Restrict these permissions: creating another user's credentials or resetting a privileged password can enable escalation.

Network and application boundaries

Private connectivity and segmentation

  • **AWS Direct Connect** and **Azure ExpressRoute** provide dedicated private connectivity. Privacy of the route does not itself guarantee payload encryption; add encryption where required.
  • **Site-to-site VPN** connects networks through encrypted tunnels; **point-to-site VPN** connects an individual client. Plan routing, DNS and resilient paths alongside tunnel security.
  • **Azure NSGs** allow or deny inbound and outbound traffic. In Google Cloud, target VPC firewall rules with service accounts or network tags to enforce web-to-API-to-database separation.
  • **Routes select paths; firewalls authorize traffic.** Separate subnets alone do not enforce a three-tier trust boundary. Allow the API tier to reach the database and exclude direct web-tier access.
  • **Identity-Aware Proxy (IAP)** controls application access using identity and policy. **VPC Service Controls** adds service perimeters and access conditions to reduce data exfiltration from supported Google services.

Traffic delivery and web protection

  • **Application Gateway** supplies regional Azure HTTP routing; **Front Door** supplies global edge routing. **Load Balancer** handles transport-layer traffic rather than HTTP path decisions.
  • **CloudFront** caches content at edge locations. **Route 53** supplies DNS routing, health checks and failover; latency routing selects measured network latency rather than simply the nearest city.
  • An **HTTPS listener** terminates client TLS at a load balancer. Protect the backend connection separately when end-to-end encryption is required.
  • **AWS Certificate Manager (ACM)** manages certificates used by integrated services. Imported certificates require an explicit renewal and reimport process; managed issuance and imported certificates have different renewal behavior.
  • **WAF** filters application requests and supports rate rules; **Shield** addresses DDoS protection. **Cloud Armor** provides Google edge protection; App Engine firewall rules allow or deny source IP ranges.

APIs, content policy and cloud access

  • **Cloud Endpoints** can validate **JWTs** for API callers. Check signature, issuer, audience and claims; an API key typically identifies a project or application, not an authenticated user.
  • **CASB** applies cloud access, data protection and compliance policy. API-based integrations inspect service activity; proxy-based deployment can enforce policy on traffic passing through it.
  • **URL filtering** blocks categories or destinations; **DLP** detects or controls sensitive-data movement. Geography, destination reputation and information sensitivity are different policy signals.

Monitoring and security operations

AWS logs and security services

  • **CloudTrail** records account and API activity: who acted, what they requested and when. Verify event coverage and retention rather than assuming every data-plane action is logged by default.
  • **CloudWatch** collects operational metrics and logs, supports alarms and reveals CPU, network and application trends. **AWS Config** records resource configuration history and evaluates configuration rules.
  • **VPC Flow Logs** capture network-flow metadata useful for source, destination and port analysis. They are not packet payload captures. S3 access logs address object-storage requests.
  • **GuardDuty** detects threats using activity signals, intelligence and anomaly analysis. **Detective** helps investigate relationships and behavior to understand suspicious activity.
  • **Inspector** identifies supported workload vulnerabilities; **Macie** discovers sensitive data and security risks in S3. **Security Hub** aggregates findings and posture checks across security sources.

Azure visibility and alert handling

  • **Microsoft Sentinel** combines SIEM analytics, incident investigation and hunting with SOAR automation. **Defender for Cloud** focuses on cloud posture and workload protection.
  • **Azure Activity Log** captures subscription control-plane events. **Resource logs** expose service-specific operations; Entra audit and sign-in logs describe directory changes and authentication.
  • **Azure Monitor** centralizes metrics and logs. **Log Analytics** supports KQL analysis; **Application Insights** follows requests, dependencies, failures and application performance.
  • **Storage logs and metrics** help diagnose Blob, Queue and Table operations. **Network Watcher** supplies network diagnostics, connectivity checks and topology visibility.
  • Configure **security contacts**, alert severity and notification destinations deliberately. Use **tags** for owner, environment and cost context; tags do not grant access or enforce isolation.

Google Cloud findings and telemetry

  • **Security Command Center** centralizes security findings and posture visibility. **Security Health Analytics** identifies misconfigurations; **Event Threat Detection** analyzes supported logs for threats.
  • **Container Threat Detection** addresses suspicious container runtime behavior. Anomaly signals can identify unusual activity; correlate findings with IAM, resource configuration and audit evidence.
  • **Cloud Logging** collects platform, component and application-written logs. For checkout failures, correlate payment application errors with request IDs, dependencies and platform events.
  • **Cloud Monitoring** tracks metrics, dashboards and alerts; agents provide supported guest telemetry. Application debugging and tracing investigate code state and request paths rather than replacing security detection.

Secure delivery and operational control

  • **DevOps** automates integration, testing and deployment. **DevSecOps** adds code, dependency, image and **IaC scanning** before deployment, followed by runtime checks for drift.
  • **CloudFormation** defines repeatable AWS resources as code. Review templates and permissions before provisioning; automation can reproduce an insecure configuration just as reliably as a secure one.
  • **Systems Manager** supports fleet operations and patching without opening inbound SSH to each VM. Configure agents, instance permissions, connectivity, maintenance windows and compliance reporting.
  • **Hotfixes** address urgent defects through an expedited release path. Retain authorization, rollback and follow-up testing; urgency does not guarantee zero downtime or justify uncontrolled changes.
  • **Chaos engineering** tests resilience through controlled fault experiments. Define a steady state, limit blast radius and set stop conditions before introducing failure.

Managed integration and application services

  • **Amazon Data Firehose** buffers and delivers streaming data to destinations such as S3, with supported transformation and compression options. Delivery buffering trades immediacy for throughput.
  • **Amazon SQS** decouples producers and consumers through queues. Server-side encryption protects stored messages; queue policies, IAM and key permissions still govern access.
  • **AppStream 2.0** streams centrally hosted applications to remote users. Application streaming differs from direct control of a particular office laptop.
  • **Amazon SNS** distributes notifications; it does not detect misconfigurations by itself. Connect a detection or monitoring service to the notification destination.
  • **Time-series anomaly detection** flags deviations from expected behavior. Tune sensitivity and validate against context; an abnormal metric is a signal to investigate, not proof of compromise.

Incident response and cloud forensics

Response lifecycle and team roles

  • **Prepare** identities, runbooks, logging and evidence access before an incident. **Detect and analyze** alerts, confirm scope and prioritize impact on confidentiality, integrity and availability.
  • **Containment** limits harm by isolating resources, restricting traffic or revoking credentials. Balance service disruption against continued exposure and preservation of volatile evidence.
  • **Eradication and recovery** remove persistence, fix the entry point and restore trusted service. Monitor for recurrence before closing the incident.
  • **Lessons learned** document cause, timeline, decisions and control improvements. Feed the findings back into preparation, detection and recovery plans.
  • The **incident commander** coordinates decisions; operations leads technical response; communications manages messaging; **subject matter experts** contribute security, forensic, product or legal knowledge. Severity scales depend on defined business impact.

Evidence preservation and investigation

  • **Incident handlers** provide immediate response; forensic investigators analyze evidence. Coordinate with the provider for provider-controlled layers and with relevant internal or external stakeholders.
  • **Volatile evidence** includes RAM, processes and active connections. Powering down a VM can destroy it; disk contents may persist according to the storage and termination configuration.
  • **Snapshots** preserve disk state, not VM memory. Preserve originals, analyze working copies, record hashes where applicable and maintain **chain of custody**, timestamps and acquisition records.
  • Use an isolated **forensic workstation** with least privilege. Avoid booting or modifying evidence disks; choose read-only access and prevent automatic writes where supported.
  • Plan **evidence location and access** before copying between regions or accounts. Confirm residency, authorization and retention requirements; keep investigation access separate from compromised credentials.

Provider evidence acquisition

  • For **EC2**, collect relevant telemetry and snapshot affected EBS volumes. Create evidence volumes in a compatible location, attach them to a controlled analysis instance and preserve the original snapshots.
  • A **stopped instance** differs from a **terminated instance**: termination removes the instance and can delete configured volumes. Do not terminate an analysis instance as a preparation step for attaching evidence.
  • For **Azure**, snapshot the suspect managed disk, preserve a protected copy in the investigation environment and create a working disk for analysis. Keep source and investigation permissions distinct.
  • Snapshot export may use a time-limited **SAS** to copy into protected Blob storage. Limit scope and expiry, preserve the copy before mounting evidence and revoke temporary export access afterward.
  • Correlate **control-plane logs**, network flows, guest events and application logs. No single source establishes the complete sequence; distinguish an API change from a packet flow or application failure.

Business continuity and recovery

Recovery objectives and backups

  • **RTO** is the recovery-time objective; **RPO** is the acceptable data-loss interval. Choose replication and restoration processes that meet both objectives under realistic failures.
  • **Full backup** copies the selected dataset. **Incremental** copies changes since the latest backup; **differential** copies changes since the latest full backup.
  • Restoring an **incremental chain** generally needs the full backup and subsequent increments. Differential restoration generally needs the full backup and latest differential.
  • **Replication** supports availability but can propagate corruption or deletion. Retain isolated recovery history, protect backup administration and test application-consistent restoration.

Recovery sites and deployment patterns

  • **Cold sites** need equipment or substantial setup; **warm sites** have partial readiness; **hot sites** have operational infrastructure and current data. Measure actual failover and data loss rather than relying on the label.
  • **Backup and restore** rebuilds after failure. **Pilot light** keeps essential components running; **warm standby** keeps a scaled-down functional environment ready to expand.
  • **Active-active** distributes work across live environments. Lower RTO and RPO usually require greater cost, synchronization and operational complexity.
  • **To-cloud recovery** moves recovery from an on-premises source to cloud; **from-cloud recovery** uses an on-premises target for cloud production. Cloud-to-cloud designs place both in cloud environments.

Availability and recovery exercises

  • **Plan review** checks documents for omissions; **tabletop exercises** walk through decisions. Simulations and controlled failover tests validate progressively more of the actual recovery process.
  • **Cloud SQL high availability** uses a configured standby for supported zonal failover. Backups, regional recovery and application reconnection remain distinct design tasks.
  • **Failover testing** must include DNS, traffic routing, credentials, dependencies and failback. A provider-managed service does not remove the need to validate customer configuration and application behavior.

Governance, risk and assurance

Governance and cloud adoption

  • **Corporate governance** establishes direction, accountability and stakeholder oversight. **Cloud governance** translates business objectives into ownership, policies, architecture and service-lifecycle controls.
  • A **cloud business office** aligns value, funding and accountability; a **cloud center of excellence** develops reusable expertise and practices. Define responsibilities explicitly rather than relying on job titles.
  • **Shadow IT** creates unapproved or unknown resources. Inventory services, identify owners, enforce procurement and deployment controls, and retire unused workloads to reduce exposure and cost.
  • **Gap analysis** compares required security capabilities against available controls before migration. **Business impact analysis** identifies critical processes, dependencies and recovery priorities.
  • **Cloud adoption frameworks**, including AWS CAF, organize business and technical readiness. Build a roadmap around measurable outcomes, governance, skills, operations and security.

Risk, contracts and audit evidence

  • **Risk management** identifies assets and threats, assesses likelihood and impact, selects treatment and monitors residual risk. Track high risks with owners, indicators, thresholds and review intervals.
  • **Avoid** ends the risky activity; **mitigate** reduces likelihood or impact; **transfer** shares financial consequences through contracts or insurance; **accept** records a justified residual risk.
  • **Cloud contracts and SLAs** define service levels, control responsibilities, incident notification, audit access, recovery, data handling and exit terms. Contractual risk transfer does not remove accountability.
  • **CAATs** use software to analyze audit evidence at scale. **Re-performance** independently repeats a control; **gap analysis** identifies differences between the current state and a requirement.
  • **CSA CCM** organizes cloud security controls; **CAIQ** is a provider-assessment questionnaire; **STAR** is CSA's assurance program. ISACA's **COBIT** supports governance; **COSO** addresses internal control and enterprise risk.

Compliance and standards vocabulary

  • **Corporate compliance** follows internal policies; **regulatory compliance** follows applicable external obligations. Determine applicability from the data, activity, organization and jurisdiction.
  • **GLBA** concerns financial customer information; **FERPA** concerns education records; **HIPAA** concerns protected health information within its scope. **GDPR** concerns personal-data processing within its scope.
  • **FISMA** addresses US federal information security; **PCI DSS** protects payment account data. A standard, a law and an audit report are different kinds of assurance requirements.
  • **ISO/IEC 27001** specifies an information-security management system; **27002** supplies control guidance. **NIST SP 800-53** catalogs security and privacy controls; **SOC 2** reports on relevant trust-services controls.
  • **DMTF** develops management and interoperability standards, including virtualization-related formats. Portability also depends on data formats, APIs, identity, networking and operational dependencies.