Designing Secure Cloud Architectures

Learn to build security into a cloud workload from the first design. Plan controls with defense in depth, data classification and threat modeling. Protect data with encryption, key management services and TLS, and keep secrets out of code with secret stores, rotation and workload identities. Control network access with security groups, private endpoints, web application firewalls and DDoS protection. Keep tamper-resistant audit trails, measure security posture, and automate compliance with policy as code. Examples use AWS, Microsoft Azure and Google Cloud side by side, and the material supports the secure-design parts of associate-level cloud architect and administrator certifications.

IntermediateLesson 6 of 8 in Cloud Architecture and Administration Course

What you will learn

  1. Decide which security controls a workload needs while it is still being designed, using layered defenses, data classification and threat modeling.
    • Apply security design principles and defense in depth
      Explain how layered controls, a small blast radius, automation and traceability shape a secure design from the first diagram.
    • Classify data and turn threats into control requirements
      Classify the data a workload holds, find threats with STRIDE and translate requirements into specific cloud controls.
  2. Encrypt data at rest and in transit, and manage the keys, their permissions, rotation and lifecycle with cloud key management services.
    • Encrypt data at rest with envelope encryption
      Explain what encryption at rest protects, how envelope encryption works, and how to choose between server-side and client-side encryption.
    • Manage keys with cloud key management services
      Choose a key ownership model, write key policies that separate duties, and handle rotation, deletion, HSM requirements and cross-Region use.
    • Encrypt data in transit and manage certificates
      Protect traffic with TLS, choose where to terminate it, enforce encrypted connections and automate certificate renewal.
  3. Keep passwords, API keys and tokens out of code, rotate the secrets that remain, and replace stored credentials with workload identities wherever possible.
    • Store and retrieve secrets safely
      Store secrets in a managed secrets service with narrow access, versioning and audit, and retrieve them safely at run time.
    • Rotate secrets and replace them with workload identities
      Automate rotation without downtime and remove long-lived credentials with roles, managed identities and workload identity federation.
  4. Filter traffic between tiers, keep services and administration private, and protect public endpoints with web application firewalls and DDoS protection.
    • Filter traffic with security groups, NSGs and network ACLs
      Design stateful and stateless traffic filters for each tier and predict exactly which traffic a set of rules allows.
    • Keep services private and control administrative access
      Reach cloud services through private endpoints, remove public exposure, control outbound traffic and give administrators access without open ports.
    • Filter web requests with a web application firewall
      Protect HTTP applications from common web attacks with managed and custom WAF rules, rate limits and a safe rollout.
    • Design for DDoS resilience
      Combine provider DDoS protection, edge services and scalable design so a workload survives network and application-layer floods.
  5. Collect the right security logs across accounts and Regions, and keep them central, complete and tamper-resistant for investigations and audits.
    • Choose which security logs to collect
      Identify control-plane, data-plane, network and edge logs, know their defaults and retention, and match each question to the log that answers it.
    • Centralize and protect audit trails
      Build a central log archive with restricted access, integrity validation, write-once retention, encryption and lifecycle rules.
  6. Find and fix misconfigurations continuously, enforce requirements as code with automatic evidence, and review complete designs against security requirements.
    • Measure and improve security posture
      Use posture management services to find misconfigurations against benchmarks, prioritize them by risk and track improvement.
    • Automate compliance with policy as code
      Map compliance requirements to preventive, detective, corrective and proactive controls, enforce them as code and collect audit evidence automatically.
    • Review a workload design end to end
      Combine all the controls into one secure reference design, and review a design for gaps, trade-offs and provider equivalents.

Designing Secure Cloud Architectures study guide

6 chapters

1

Plan security into a cloud architecture

Good security choices begin with the workload’s data and paths. A design can look private yet still trust a stolen credential, an overly broad internal route or an administrator who can erase evidence. Plan independent layers, keep failures small and turn threats into specific controls. Classification and a data-flow diagram give those choices a purpose; explicit tests show whether the deployed design actually meets the requirement.

1.1 Build protection into the design

A secure design gives each component a clear job and limits what happens when it fails. Choose controls while drawing the workload, when changing a storage service, identity or network path is still straightforward.

Put independent controls on each path

Defense in depth combines controls that deal with different failures. A web workload can use DDoS protection and a WAF at the edge, security groups between tiers, a narrow application role, hardened compute images, input validation, encrypted storage, and protected audit logs. A WAF can block a suspicious request; the database's permissions still limit what the application can read if a request gets through.

Do not treat the inside of a network as trusted. A stolen workload identity may already be inside it. Zero trust means checking identity and authorization for requests and protecting sensitive internal traffic too. A private database still needs authenticated connections and TLS.

Keep one failure small

The blast radius is the damage a compromised component or credential can cause. Separate production and test into different accounts or subscriptions. Give each workload only the network paths, secrets and keys it needs. Separate keys for independent data sets make their access policies independent too.

For example, a test service and a production service share a database key and broad permissions. A stolen test credential may reach production documents. Move production into a separate account, give its application a dedicated role and key, and remove the cross-environment permissions. The test leak then has fewer places to go; a new account alone would not help if its policies still trusted the compromised role broadly.

Plan changes and ownership

Managed services reduce some maintenance work, but network exposure, data access, keys and backups remain design choices. With virtual machines, you patch the operating system. A managed database transfers engine-patching work to the provider; you still choose who can connect and how.

Late encryption changes can require a replacement resource. An unencrypted Amazon RDS instance needs a snapshot, an encrypted snapshot copy and a restored instance, followed by application cutover. Selecting encryption at creation avoids that migration.

Define repeatable settings in infrastructure as code. A storage template can enable public access blocking and default encryption with the approved customer managed key. Review the template before deployment, then compare deployed resources with that desired state. Console edits appear in audit logs, but they still need approval and reconciliation with the template to avoid drift.

Match effort to risk

The AWS Well-Architected security principles connect identity, traceability, layered protection, automation, protection in transit and at rest, reduced human access to data, and preparation for security events. Azure and Google Cloud frameworks apply comparable ideas.

Controls also have operating costs. Interface endpoints charge by Availability Zone and time; customer managed keys bring policy, lifecycle and request costs. Match these choices to the threat and data sensitivity. Record an accepted risk with its owner, so a later reviewer can distinguish a deliberate decision from a missed control.

Key Takeaways

  • Use independent controls at the edge, network, identity, application and data layers.
  • Limit the reach of a compromised workload with separate environments and narrow permissions.
  • Choose encryption early; adding it later can require replacement and cutover.
  • Review security settings as code and check deployed resources for drift.
  • Match control cost and complexity to the data and threats.

1.2 Turn data and threats into requirements

Start with what the workload holds and what harm its loss or misuse would cause. That gives a reason for each security control and a way to check whether the design meets its brief.

Classify complete data sets

Data classification assigns labels such as public, internal, confidential and restricted. Public product images need integrity and availability, even when their contents need no secrecy. Identity documents may need customer managed keys, private access and a record of every read.

Classify exports, caches and backups as well as the main database. Combining purchase histories with a large email list can create a more sensitive data set than either input alone. Discovery tools help locate sensitive content: Amazon Macie scans S3, Microsoft Purview classifies data across stores, and Google Sensitive Data Protection scans for sensitive information.

Legal and contractual requirements can add controls. Payment card data brings PCI DSS requirements; personal and health data can bring privacy duties. A data residency requirement limits permitted storage and processing Regions. Carry that requirement into backups, replicas and exports, where an otherwise careful design can send data elsewhere.

Draw the data flows

Threat modeling makes the question "What can go wrong?" concrete:

  1. Draw the components, stores and flows.
  2. Mark trust boundaries, where data enters a zone with different trust, such as the internet-to-load-balancer boundary.
  3. List threats at each boundary and choose mitigations.
  4. Test that the mitigations are present and work.

STRIDE provides six prompts. Spoofing calls for authentication, MFA or mutual TLS. Tampering calls for integrity protection such as TLS, signatures or write-once storage. Repudiation, denying an action, calls for reliable audit trails. Information disclosure calls for encryption and limited access. Denial of service calls for edge protection, rate limits and capacity planning. Elevation of privilege calls for narrow permissions, patching and input validation.

Convert a requirement into a test

An invoice-upload application has several distinct risks. Injection through a form needs managed WAF rules and parameterized queries. A stolen database password needs a secret store and rotation. An accidentally public bucket needs public access blocking and a configuration check. Deletable logs need a separate write-once archive. A request flood needs edge absorption and rate limits.

Write each requirement with observable evidence. "Database credentials rotate automatically" can be tested by completing a rotation and opening a fresh connection. "Keep logs unchanged for seven years" needs write-once retention, not just encryption. "Storage traffic must stay off the internet" needs an endpoint path and a test of that path. "Audit use of this key" points to a customer managed key with controlled use and key-use logs.

When the application adds a nightly transfer to an analytics partner, update the diagram. That transfer creates a new trust boundary, credential, destination and log requirement. Reuse the classification of the exported data, then check TLS, destination access and audit coverage for the new flow.

Key Takeaways

  • Classify combined data, exports and backups by their actual sensitivity.
  • Use data flows, trust boundaries and STRIDE to identify threats and select mitigations.
  • Test each control and revisit the threat model when the design changes.
2

Protect data with encryption and key management

Encryption decisions include more than an algorithm. Choose where plaintext exists, which identities can use a key and what happens to backups when that key rotates or is deleted. Data at rest and data in motion need different controls. Follow a file through envelope encryption, compare key ownership and hardware choices, then trace each TLS connection so the design protects the complete path and remains recoverable.

2.1 Encrypt stored data and wrap its keys

Encryption at rest protects stored objects, disks, databases, snapshots and backups. It helps when someone reaches the storage media or ciphertext without the permissions needed to decrypt it. An authorized service read still returns plaintext, so encryption must work with access control.

Use a data key for bulk encryption

Symmetric encryption uses the same key for encryption and decryption; AES-256 is common for stored data. Asymmetric encryption uses a public/private key pair for operations such as signatures, key exchange and small messages. Bulk encryption normally uses a symmetric data key.

Envelope encryption separates the file from the key-management operation. A data key encrypts the file locally. A key encryption key, held in the key service, wraps the data key. Store the encrypted data key beside the encrypted file; discard the plaintext data key after use.

For a 2 GiB video, AWS KMS Encrypt accepts only 4,096 bytes of plaintext per request. Splitting the video into that many small pieces would require 524,288 requests. Instead:

  1. Call GenerateDataKey to receive a plaintext 256-bit data key and its encrypted copy.
  2. Encrypt the video locally with AES-256-GCM.
  3. Erase the plaintext key from memory.
  4. Save the ciphertext and the encrypted key together.

To read the video, call KMS Decrypt on the encrypted data key, then decrypt the file locally. KMS handles a small key; the video never travels to KMS.

Choose where encryption happens

Server-side encryption lets the storage service encrypt writes and decrypt authorized reads. S3 offers SSE-S3 and SSE-KMS; Azure Storage offers Microsoft-managed and customer-managed keys; Google Cloud offers default encryption and customer-managed encryption keys (CMEK).

With client-side encryption, the application encrypts before upload. If its data key is wrapped by the same provider's KMS, that provider still controls a decryption-capable key. A requirement that the provider cannot read the data needs client-side encryption with every key required for decryption outside that provider's control.

S3 encrypts new objects with SSE-S3 by default, as it has since January 2023. Azure Storage, Azure managed disks and Google Cloud also encrypt stored data by default. EBS encryption by default is a per-Region account setting. Azure encryption at host also covers temporary disks and disk caches; Azure Disk Encryption is scheduled to retire on September 15, 2028.

Protect copies and permissions

For an unencrypted RDS database, snapshot it, copy the snapshot with encryption, restore a new encrypted instance and plan cutover. EBS uses the same snapshot-copy approach. Encrypted snapshots stay encrypted; a cross-Region copy needs a key in the destination Region. A multi-Region replica can serve there, but has its own Regional policy.

For an SSE-KMS object, a reader needs both s3:GetObject and permission to use the KMS key for decryption. A stolen application credential with both permissions can still read the object. Use the extra key permission to separate data access where needed, and keep the application's access narrow.

Key Takeaways

  • Envelope encryption uses a local data key and a key-service key that wraps it.
  • Server-side encryption decrypts authorized reads; permissions still matter.
  • Provider-inaccessible data needs all decryption keys outside that provider.
  • Existing unencrypted resources can need snapshot, copy, restore and cutover.
  • A cross-Region copy needs a destination-Region key.
  • SSE-KMS reads require object permission and KMS decryption permission.

2.2 Control who can use keys and keep data recoverable

A key service stores cryptographic keys, checks requests to use them and records those operations. Key ownership determines who can change those checks, rotate the material or make the data permanently unreadable.

Choose ownership and protection separately

AWS owned keys are invisible to the customer. AWS managed keys, such as aws/s3, are created for the customer and rotate yearly, but their policies cannot be edited. With customer managed keys, the customer controls policy, rotation, disabling and deletion. Choose these when the brief needs separate key-use permissions, cross-account use, custom rotation or an audit trail for a particular key.

Azure separates Microsoft-managed keys from customer-managed keys in Key Vault or Managed HSM. Google Cloud offers Cloud KMS and CMEK. Importing key material (BYOK), providing keys with individual requests (S3 SSE-C), or using an external key store gives further control and recovery responsibilities. Lost customer-controlled material can mean lost data.

Protection level is another choice. Key Vault Standard uses software-protected keys; Premium supports HSM-protected keys. AWS KMS uses HSMs validated at FIPS 140-3 Level 3. A Level 3 requirement alone therefore does not require a dedicated HSM. Sole tenancy calls for options such as AWS CloudHSM, Azure Managed HSM or Google Single-tenant Cloud HSM. External key stores keep keys outside the provider; verify the external system's hardware and tenancy separately. CloudHSM users must protect their own HSM credentials because the provider cannot recover lost keys for them.

Separate administration from use

An AWS KMS key policy controls access to its key. IAM permission grants work only when the key policy permits the account to delegate that access. Give the application Decrypt and GenerateDataKey where needed; keep policy changes and deletion in a separate administrative role. Administrators with permission to change policies remain highly trusted, even if their current role lacks decryption permission.

On Azure, Key Vault Crypto User gives an application key-use permissions. Key Vault Crypto Officer also permits cryptographic operations, so it does not meet a requirement that administrators manage keys without using them. That requires a custom role without those operations.

Cross-account AWS use needs permission in both places: the key policy in the owning account and an IAM policy in the calling account. An AWS managed key cannot support sharing an encrypted snapshot with another account; copy under a customer managed key and grant access to that key.

Rotate without losing older ciphertext

Rotation gives the same logical key new material for new encryption. Old material remains available for older ciphertext; existing files and data keys are unchanged. AWS automatic rotation for eligible customer managed symmetric keys is off by default and supports 90–2,560 days, with 365 days as the default period. On-demand rotation is also available. Asymmetric keys, HMAC keys and custom-key-store keys need a new key and an alias change for manual rotation. Azure rotation policies create new versions, picked up by services using versionless references.

Enable a 180-day period on March 15, 2026: the first rotation is September 11, 2026, and the next is March 10, 2027. April ciphertext still decrypts in October. If its plaintext data key leaked, rotating the wrapping key is insufficient: re-encrypt the affected data with a new data key.

Treat deletion as a data decision

AWS KMS deletion has a 7–30 day waiting period, 30 by default. Pending-deletion keys cannot perform cryptographic operations; actual deletion can occur up to 24 hours after the scheduled waiting period. Cancel scheduled deletion during the waiting period if the key is still needed. Disable first to test dependencies, but remember that cached plaintext data keys can keep existing services working until discarded.

Azure Key Vault soft delete retains deleted keys for 7–90 days, 90 by default. Purge protection prevents permanent deletion during that period and cannot be turned off once enabled; Azure Storage customer-managed keys require it. Keep log-archive and backup keys recoverable for as long as their data must be read.

Multi-Region KMS keys share material and key ID across related Regional keys. Each Region still has a separate key and policy, so disaster recovery needs permission checks in the recovery Region too.

Key Takeaways

  • Choose key ownership for policy control and protection level for hardware or tenancy requirements.
  • Separate key administration from application key use.
  • Cross-account use needs the key policy and the caller account’s IAM permission.
  • Rotation preserves old material and does not re-encrypt files or replace leaked data keys.
  • Deletion can destroy access to backups and logs; test dependencies before proceeding.
  • Multi-Region replicas share key material but retain separate Regional policies.

2.3 Protect every traffic hop with TLS

TLS protects traffic against eavesdropping and tampering, and authenticates the server through its certificate. Use TLS 1.2 or 1.3. Disable the deprecated TLS 1.0 and 1.1 versions, including on storage and database connections.

Decide where TLS ends

A connection diagram should show each TLS session separately. These designs have different consequences:

DesignWhat the front end doesPath to the target
TerminationDecrypts and can inspect HTTPPlain HTTP
Termination and re-encryptionDecrypts, inspects and opens another TLS connectionEncrypted again
PassthroughForwards encrypted traffic without HTTP inspectionTarget terminates TLS

For a document-upload service that requires encryption on every hop and WAF inspection at the front end, terminate and re-encrypt. A TCP listener on a Network Load Balancer can pass TLS through, but cannot inspect the encrypted HTTP contents. HTTPS at the public load balancer alone says nothing about the next hop.

Mutual TLS also requires the client to present a certificate. It suits partner APIs, devices and service-to-service authentication. Keep application authorization as well: a valid client certificate does not decide which records that client may read.

Use trusted certificates and automatic renewal

A certificate binds a domain name to a public key and carries a certificate authority's signature. Public services need a CA trusted by their clients. Internal services can use a private CA, with its trust anchor distributed to clients. A self-signed public website certificate causes browser warnings.

AWS Certificate Manager issues public certificates at no charge for integrated services such as load balancers, CloudFront and API Gateway. Azure provides Key Vault certificates and App Service managed certificates; Google Cloud provides Certificate Manager and Google-managed certificates. Automate renewal and alert before expiry, so a missing DNS record or failed deployment is caught before users lose access.

For publicly trusted TLS certificates, the maximum lifetime became 200 days on March 15, 2026. It falls to 100 days on March 15, 2027, and 47 days on March 15, 2029. ACM moved to 198-day public certificates in February 2026. Keep ACM's DNS-validation CNAME in place for automatic renewal.

Require encryption on every route

Offering HTTPS still permits insecure clients if HTTP remains usable. An S3 bucket policy can deny s3:* when aws:SecureTransport is false, covering both the bucket and its objects. Keep Azure Storage's secure-transfer requirement enabled. Require database TLS with settings such as RDS PostgreSQL rds.force_ssl or MySQL require_secure_transport. Redirect web HTTP to HTTPS and send HSTS so browsers use HTTPS on later visits.

Private connectivity needs encryption too. Direct Connect and ExpressRoute keep traffic off the public internet but have no default link encryption. Use application TLS, an IPsec VPN over the link, or MACsec on supported dedicated connections. A private endpoint changes the route to a service; continue to use TLS to that service.

Key Takeaways

  • Mark the TLS termination point and the protection on every following hop.
  • Re-encryption permits front-end inspection and encryption to the targets.
  • Use trusted certificates, automatic renewal and expiry alarms.
  • Enforce TLS on storage and database connections.
  • Private links and endpoints still need encryption.
3

Manage secrets and workload credentials

Applications need access without scattering reusable credentials through code, images and deployment settings. A managed secret store provides controlled retrieval and versioning, but rotation also depends on the target service and the application’s refresh behavior. Use short-lived workload identities wherever supported, and make any remaining password or API key narrow, auditable and replaceable without an outage.

3.1 Retrieve secrets without putting them in code

A secret is a value that grants access: a database password, API key, signing key or connection string containing a password. Treat it differently from ordinary configuration, because possession can let another person act as the application.

Put the value in a managed store

Secrets leak through source code and its history, container images, build logs, infrastructure state, environment settings and messages. Deleting a line from the latest commit leaves earlier copies in Git. Encrypting an environment variable at rest does not hide its plaintext from people or processes allowed to view the runtime value.

A managed secret store encrypts values, versions them, limits readers and records retrievals. AWS Secrets Manager supports rotation, resource policies and cross-Region replication, with a charge per secret. Parameter Store SecureString values use KMS but have no built-in rotation; standard parameters have no extra charge. Azure Key Vault stores secrets, keys and certificates. Google Secret Manager stores versioned secrets.

Choose the store for its behavior. A configuration value that changes occasionally can fit Parameter Store. A database password that must rotate automatically fits Secrets Manager. Separate applications and environments so a test workload's read permission cannot expose production values. On Azure, separate vaults per application and environment help establish that boundary.

Give the workload a narrow retrieval path

The workload uses an IAM role, managed identity or service account to fetch only its own secret. Retrieve when needed, cache briefly in memory and refresh when authentication fails. A client-side caching library reduces repeated requests without fixing one value in the process forever.

For the order service, save the payment API key as prod/orders/payment-api-key. Give orders-prod secretsmanager:GetSecretValue for that secret. For a customer managed KMS key, allow kms:Decrypt through Secrets Manager with kms:ViaService. Do not grant the developer or test roles access. CloudTrail then records each secret retrieval with the caller and time.

Platform injection is convenient, but check how the application gets updates. ECS task definitions can reference Secrets Manager, Kubernetes can mount secrets with the Secrets Store CSI driver, and App Service can use a Key Vault reference such as @Microsoft.KeyVault(SecretUri=...). A value injected into an environment at startup is not a continuously refreshed client-side cache. Its refresh or redeployment behavior must match the rotation design.

Use versions and respond to exposure

Secrets Manager marks the active version AWSCURRENT, a new rotation candidate AWSPENDING and the prior good version AWSPREVIOUS. These labels support testing and rollback. Key Vault keeps secret versions; a versionless reference retrieves the latest version.

When a secret appears in a repository, revoke or rotate it first. Remove it from history and other exposed locations, then examine audit records for use since exposure. Merely moving the same value to a vault leaves the published credential valid. Add scanning and push protection where the leak occurred so the next credential does not follow the same path.

Key Takeaways

  • Store access-granting values separately from code and ordinary configuration.
  • Use workload identities with permission to retrieve only needed secrets.
  • Cache briefly and support refresh when authentication fails.
  • Version labels separate the current, pending and previous secret values.
  • Revoke or rotate an exposed value before cleaning up its copies.

3.2 Rotate credentials and remove stored passwords

Rotation succeeds only when both ends agree on the new value: the secret store and the service checking the credential. The application must also retrieve the replacement without turning a routine rotation into an outage.

Complete and test the change

AWS Secrets Manager supports managed rotation for supported cases, such as RDS-managed master passwords. A Lambda-based rotation follows four steps:

  1. createSecret generates a value labeled AWSPENDING.
  2. setSecret installs it in the target database.
  3. testSecret authenticates with it.
  4. finishSecret moves AWSCURRENT to it; the old value becomes AWSPREVIOUS.

Writing a new value only to the vault does not change the database password. Test a complete rotation in staging, including new connections and clients holding cached credentials.

StrategyChangeAvailability consideration
Single userReplace one user's passwordBrief failures can occur while clients refresh; use retries
Alternating usersRotate the user that is not currentPreviously cached credentials remain valid during the next rotation period

Alternating users needs a separate privileged secret to create the clone. With a 30-day schedule, day 0 uses app_user, day 30 switches to app_user_clone, and day 60 changes app_user again. All clients must refresh during the overlap, before their old user's password changes. A 365-day year contains 12 scheduled 30-day rotations.

Replace credentials with identities

A workload that accesses cloud services can often avoid a stored password or access key. EC2 instance profiles, ECS task roles and Lambda execution roles supply temporary AWS credentials. Azure managed identities and attached Google service accounts provide corresponding workload identities.

An Azure system-assigned identity follows the resource's lifecycle. A user-assigned identity has its own lifecycle and can be attached to multiple resources. In both cases, access still comes from its assigned permissions; removing a secret does not justify a broad role.

For a CI/CD runner outside the target cloud, use workload identity federation. The platform issues a signed OIDC token, which is exchanged for short-lived cloud credentials. Restrict issuer, audience and subject claims to the intended workload. A subject such as repo:example-org/shop:ref:refs/heads/main restricts access to one repository's main branch. Trusting every token from the platform would also trust unrelated workloads.

Some databases accept identity-based authentication. RDS and Aurora MySQL/PostgreSQL support IAM authentication tokens valid for 15 minutes for establishing a connection. Azure SQL supports Microsoft Entra authentication with managed identities.

Handle a leaked credential

Deactivate the exposed credential, issue a replacement and update workloads, then examine its audit activity from the exposure time. For an IAM access key, its access key ID helps locate CloudTrail events. Remove the cause with secret scanning, push protection or a corrected pipeline. Frequent rotation limits exposure time, but it cannot compensate for clients that never refresh or a federation trust that accepts unintended callers.

Key Takeaways

  • Install and test a replacement secret before publishing it to clients.
  • Alternating users gives clients a limited refresh overlap.
  • Use workload identities and restrict federation to the intended workload.
  • Test client refresh and fresh connections during rotation.
4

Control network access to workloads

Network protection works at several layers, from a subnet rule to HTTP inspection at a global edge. Trace the packet through each applicable filter, then check the route, DNS and public-access setting of each service. Keep administrative paths private and restrict outbound destinations. WAF rules, origin restrictions and DDoS protection then work together to protect both request handling and the finite capacity behind it.

4.1 Predict which network connections pass

Traffic filters sit at different places and evaluate rules differently. Before changing a rule, identify the filter, the direction and whether the packet belongs to a new or established connection.

Compare the rule engines
FilterPlacementRule behaviorReturn traffic
AWS security groupNetwork interfaceAllow rules combined; no orderingStateful; permitted automatically
AWS network ACLSubnet boundaryAllow/deny; lowest number firstStateless; explicit rules needed
Azure NSGSubnet, interface or bothAllow/deny; lowest priority number firstStateful; permitted automatically

New AWS security groups have no inbound allows and allow all outbound traffic. Default network ACLs allow all; a new custom ACL denies until rules are added. ACL rules use numbers 1–32766 with a final unmatched-traffic deny. Azure custom NSG priorities run from 100 to 4096. Google Cloud VPC firewall rules are stateful, with priorities 0–65535 and targets such as network tags or service accounts.

When both subnet and interface NSGs apply, inbound traffic passes the subnet filter then the interface filter. Outbound traffic passes them in the reverse order. Both must permit the connection.

Separate application tiers

For a three-tier AWS application, sg-alb allows TCP 443 from the internet. sg-app allows TCP 8080 only from sg-alb, and sg-db allows TCP 5432 only from sg-app. New instances gain the intended access through group membership. Neither the application nor database gets a direct internet-source allow rule.

Azure application security groups similarly group machines by role. Service tags such as Storage or Internet represent maintained address ranges; they identify a service's addresses, not an application's identity.

Trace the first match

Consider these subnet NSG rules: priority 100 allows internet HTTPS; 200 denies all internet TCP; 300 allows SSH from 203.0.113.10. An SSH attempt from that address matches 200 first and is denied. Moving its allow to 150 makes it precede the broad deny. If the interface NSG also denies SSH, the connection still fails there.

Azure's defaults follow custom rules: inbound virtual-network traffic is allowed at 65000, load-balancer traffic at 65001, and remaining inbound traffic denied at 65500. Outbound defaults allow virtual-network and internet traffic before the final deny. Add explicit internal segmentation rules; an absence of custom allows does not override the virtual-network default.

A custom ACL that allows inbound TCP 443 also needs outbound response traffic to client ephemeral ports, commonly 1024–65535. Without it, the security group's state tracking cannot rescue packets denied at the subnet boundary. To block 198.51.100.0/24, an ACL deny must precede a matching allow; a security group cannot express a deny.

Use security groups or NSGs for fine segmentation and ACLs for coarse subnet guardrails. Central services such as AWS Firewall Manager and Azure Virtual Network Manager help keep policies consistent. Do not assume rule removal ends an established session immediately: connection tracking can keep existing sessions alive.

Key Takeaways

  • Security groups combine allows without ordering; ACLs and NSGs use first-match ordering.
  • Stateful filters allow response traffic; stateless ACLs need explicit return rules.
  • Subnet and interface NSGs must both permit a connection.
  • Group references keep tier access aligned with scaling workloads.
  • Azure default virtual-network rules can allow traffic between tiers.
  • An established connection can outlive a rule change.

4.2 Build and test private service paths

Private access removes an internet path to a service while retaining the specific connections a workload needs. It takes a route, correct DNS, service-side restrictions and identity permissions working together.

Select the endpoint model
ModelHow it reaches the serviceImportant boundary
AWS gateway endpointRoute-table target for S3 or DynamoDBVPC-originated traffic; no hourly charge
AWS interface endpointPrivate interfaces and private DNS through PrivateLinkMany services; hourly per-zone and data charges
Azure private endpointPrivate address mapped to a resource instanceConfigure DNS and disable its public access separately
Azure service endpointService's public address over the Azure backboneSubnet-based service firewall access; no on-premises access

Gateway endpoints do not serve peered VPCs or on-premises clients. Interface endpoints can be reached over VPN or Direct Connect. An AWS endpoint policy further limits allowed principals and resources; the default is broad, so narrow it to the workload's destinations.

An Azure private endpoint targets a specific resource and subresource. A service endpoint applies to the service, and needs resource firewall rules; without destination restrictions, the subnet can still reach other accounts of that service. Google Cloud offers Private Service Connect and Private Google Access, with VPC Service Controls for data-boundary enforcement.

Work through a private-storage connection

An application must read blobs from contoso privately:

  1. Create a private endpoint for its blob subresource in snet-pe.
  2. Link privatelink.blob.core.windows.net to the application virtual network.
  3. Disable public network access on the storage account.
  4. From the workload, check nslookup contoso.blob.core.windows.net. It should resolve to the endpoint's private address, such as 10.1.2.5.
  5. Test an authorized read privately and verify public-path access fails.

If DNS still returns the public address, private clients can fail once public access is disabled. Creating an endpoint alone leaves the public path available until separately restricted. Keep TLS and narrow identity permissions on the private route too.

Control exit and administration paths

A NAT gateway allows outbound connections and blocks unsolicited inbound ones. It does not choose safe destinations. Restrict outbound traffic with endpoint policies, instance-specific private endpoints and firewall FQDN rules. An AWS policy can restrict destinations to organizational buckets with aws:ResourceOrgID.

AWS Session Manager uses an outbound agent connection and needs no inbound management port. Configure session logging explicitly for auditable shell sessions; SSH and port-forwarding session contents are not recorded. EC2 Instance Connect Endpoint reaches SSH or RDP privately. Azure Bastion accepts users over TLS 443 in AzureBastionSubnet, sized /26 or larger; targets need no public IP but must allow 22 or 3389 from that subnet. Google IAP supports TCP forwarding. Just-in-time access opens a management port for one source for a limited period.

Keep self-managed jump hosts patched, hardened, source-restricted and protected with MFA. For hybrid access, limit advertised routes and allowed source ranges. VPN encrypts traffic; Direct Connect and ExpressRoute need TLS, IPsec or supported MACsec for encryption. A private subnet reachable through a broad peering or VPN rule can still expose a workload to compromised internal systems.

Key Takeaways

  • Choose endpoints for the required service and client locations.
  • Private DNS and service-side public-access restrictions complete the private path.
  • Endpoint policies and egress filters limit destinations; NAT does not.
  • Session Manager needs no inbound port; Bastion targets still need private management-port rules.
  • Private and hybrid routes still need identity checks and encryption.

4.3 Filter HTTP attacks without blocking real users

A web application firewall inspects HTTP request details, including paths, headers, query strings, cookies and bodies. This layer-7 view lets it recognize suspicious input that an address-and-port filter cannot distinguish.

Combine request inspection with secure code

AWS WAF attaches to services including CloudFront, Application Load Balancer and API Gateway. Azure WAF runs at Application Gateway or Front Door. Google Cloud Armor protects external Application Load Balancers.

Managed rule groups cover common patterns such as SQL injection and cross-site scripting. For example, the fragment "' OR 1=1 --" may signal an attempt to alter a query. Custom rules can match an IP set, path, header, country or size. Bot controls and challenge actions add ways to slow automated abuse. AWS evaluates rules by priority and applies the web ACL's default action if no rule terminates evaluation.

A WAF helps mitigate attacks but leaves application logic and authorization to the application. Keep parameterized queries and output encoding. A normal-looking request that accesses another customer's record needs an application access check.

Choose what a rate rule counts

An AWS rate-based rule groups matching requests by an aggregation key, usually source IP. It looks backward over 60, 120, 300 or 600 seconds; the default is 300. The lowest limit is 10, and the action can be any supported rate-rule action except Allow. Enforcement is approximate, so it is unsuitable as an exact transaction quota.

For /login, use a scope-down condition, 100 requests per 300 seconds per IP and Block. At 3 requests per second, a bot attempts 900 requests over 300 seconds and crosses 100 after about 34 seconds. The trailing window is checked repeatedly; it is not a fixed five-minute block timer. Blocking continues while the estimated count remains above the threshold and ends after the count falls.

Aggregation matters. Many legitimate users behind one shared public address contribute to the same IP-based count. Review logs and traffic patterns before choosing the key and threshold.

Roll out and protect the route

Start new AWS rules in Count or Azure rules in Detection. Inspect false positives, such as legitimate HTML from a rich-text editor matching a cross-site-scripting rule. Add a narrowly scoped exclusion or condition, then enable Block or Prevention. Keep changes in code for review and rollback. WAF logs show the matched rule, action and request details; enable them before tuning.

An edge WAF is effective only on requests that traverse it. Restrict a CloudFront origin with its origin-facing prefix list and a secret custom header, or use VPC origins. A prefix list alone identifies CloudFront infrastructure, not your particular distribution. For Front Door, combine the AzureFrontDoor.Backend service tag with X-Azure-FDID, or use Private Link. Test direct access to the origin: it should fail while the intended CDN route succeeds.

Key Takeaways

  • A WAF inspects HTTP content and complements secure application code.
  • Rate rules count a chosen group over a trailing window and enforce approximately.
  • Use Count or Detection, inspect logs, then enforce tuned rules.
  • Narrow exclusions to legitimate traffic that needs them.
  • Restrict the origin so requests cannot bypass the edge WAF.

4.4 Keep floods away from limited back ends

A DDoS attack uses many sources to exhaust bandwidth, connection state or application capacity. The point of exhaustion determines which layer must absorb or reject the traffic.

Match protection to the flood

Volumetric attacks fill bandwidth, often through reflected and amplified UDP traffic. Protocol attacks such as SYN floods exhaust connection resources. HTTP floods reach layer 7 and can look like normal requests. A WAF filters HTTP; the provider's edge network and DDoS service handle network-layer floods before they reach constrained back ends.

Baseline protection includes AWS Shield Standard for common layer-3/4 attacks and Azure DDoS infrastructure protection for public-address services. Google Cloud's edge infrastructure and Cloud Armor Standard protect workloads behind supported load balancers. Paid tiers add workload tuning, response support or cost safeguards.

TierUseful distinction
Shield AdvancedRegister protected resources; response and cost-protection features have eligibility requirements
Azure DDoS Network ProtectionPlan covering 100 public IPs, with rapid response and cost protection
Azure DDoS IP ProtectionPer-public-IP pricing, without rapid response or cost protection
Cloud Armor EnterpriseGoogle's paid protection tier

As of October 2026, Shield Advanced's base subscription is USD 3,000 per month per organization's payer account with a one-year commitment, plus data-transfer fees. It protects registered supported resources. Included WAF web-ACL, rule and request fees apply up to 50 billion requests monthly per subscribed payer organization at the default 1,500-WCU limit; extra usage and features have additional charges. Shield Response Team access needs Business or Enterprise support.

Make the architecture absorb less work

Expose edge components and keep application and database tiers private. Use resilient DNS, a CDN and anycast edge capacity. Cache static responses so repeated requests avoid origin work. Put horizontal scaling behind a load balancer and apply WAF rate limits to expensive paths.

Auto scaling alone can increase the attack bill. Set maximum capacity and budget alarms, and combine scaling with request filtering and caching. The load balancer distributes accepted work; it cannot make an overloaded database unlimited.

Compare cost and prepare access

An online store loses USD 20,000 per hour of outage. A USD 3,000 monthly subscription over 12 months costs USD 36,000. Dividing 36,000 by 20,000 gives 1.8 hours of avoided outage to cover that base subscription. This is a break-even comparison, not a prediction of how many attacks the service will prevent; include transfer costs and the value of response support in the actual decision.

Prepare a runbook before an event: name contacts and escalation paths, register resources, and configure health checks and alarms. Proactive Shield engagement can notify the response team when protected resources become unhealthy during an event. Run simulations only under the provider's published testing policy, using approved partners where required. A paid subscription without the relevant enrolled resources or operational access leaves gaps at the moment it is needed.

Key Takeaways

  • Use network DDoS protection for network floods and WAF rules for HTTP floods.
  • Cache at the edge, keep back ends private and bound scaling cost.
  • Enroll required resources and prepare response access before an event.
  • Compare protection cost with outage impact and required support features.
5

Record security activity in logs and audit trails

Security evidence must cover the activity you need to explain and survive the failures you are investigating. Resource changes, object reads, network connections and blocked requests appear in different logs. Choose those sources and their retention early, collect them across accounts and Regions, then move them beyond workload administrators’ control. Integrity checks, write-once retention and protected keys give the archive distinct layers of protection.

5.1 Collect the logs that answer security questions

An audit trail records the principal, action, time, source, target and result of activity. Choose the required events before deployment: logs enabled after a loss cannot reconstruct events that were never collected.

Distinguish changes from data access

Control-plane logs record resource management, such as creating a role or changing a firewall. CloudTrail Event history keeps 90 days of AWS management events per Region; use a trail for longer retention. Azure Activity Log keeps subscription operations for 90 days unless exported. Google Admin Activity audit logs are always enabled and retained for 400 days.

Data-plane logs record work inside the resource: reading an object, invoking a function or retrieving a secret. High-volume data logging often needs explicit configuration. CloudTrail data events cover selected S3, Lambda and DynamoDB activity. Azure resource logs need diagnostic settings; Google Data Access audit logs are disabled by default except for BigQuery. Identity logs, such as Entra sign-in logs, add authentication context.

CloudTrail Lake closed to new customers on May 31, 2026. New architectures can send trail events to Amazon CloudWatch for searching, while retaining a protected archive separately.

Match a question to an event
Security questionEvidence to collect
Who deleted a security group?CloudTrail management event DeleteSecurityGroup
What downloaded an export object?S3 data events or server access logs
What retrieved a stored password?CloudTrail GetSecretValue or Key Vault AuditEvent
Did a machine contact an address?VPC or virtual network flow logs
What rule blocked a web request?WAF logs

Flow logs contain addresses, ports, protocol, byte counts and acceptance or rejection. They do not contain packet bodies. Use DNS query, firewall and load-balancer access logs for their corresponding questions. On Azure, choose virtual network flow logs; new NSG flow logs are unavailable and existing NSG flow logs retire on September 30, 2027.

Make coverage and retention deliberate

Collect across accounts and Regions, including unused Regions where unauthorized resources could be created. Include global-service activity such as IAM and STS. Select data events for sensitive resources, using advanced selectors to control volume and cost, rather than assuming a management trail includes object reads.

Retention follows the workload's requirements. PCI DSS requires at least 12 months of audit history, with the latest three months immediately available for analysis. Use UTC timestamps, synchronized clocks and request IDs to connect events across services. Set retention explicitly in each search and archive destination.

A credential in a log identifies the principal used, which could be an attacker using a stolen credential. Personal identities, MFA and avoidance of shared accounts improve attribution. Keep that distinction when reading "who" in an audit request: the record shows which credentials acted, and identity evidence helps connect them to a person.

Key Takeaways

  • Management logs describe resource changes; data logs describe access inside resources.
  • Enable required data events explicitly, before they are needed.
  • Flow logs contain connection metadata, not payloads.
  • Cover every account, Region and relevant global service.
  • Set retention from requirements and preserve UTC time and request IDs.

5.2 Keep audit evidence separate and tamper-resistant

An audit archive should survive compromise of the workload it records. Send logs to a separate security-owned account, subscription or project, and protect both the stored records and the configuration that delivers them.

Separate collection from workload control

An AWS organization trail can deliver all organization accounts to a log-archive bucket. Control Tower creates separate Log Archive and Audit accounts. Azure Policy deployIfNotExists can deploy diagnostic settings to central destinations. Google organization-level aggregated sinks route logs centrally.

Deny workload administrators access to stop logging or delete the archive. Service control policies can restrict cloudtrail:StopLogging, DeleteTrail and UpdateTrail in member accounts. Keep tightly controlled emergency access separate from routine workload roles. An archive encrypted with a customer managed key needs its own key policy: the delivery service can encrypt, and authorized investigators can decrypt.

Detect changes and prevent deletion

CloudTrail integrity validation hashes delivered files with SHA-256. Hourly signed digest files list those hashes and link to the previous digest signature. Run aws cloudtrail validate-logs to check whether delivered files were altered or deleted. Enabling digest delivery supplies evidence for validation; it does not run the later validation for you.

Integrity validation detects changes. Write-once-read-many (WORM) retention blocks changes to protected object versions. S3 Object Lock requires versioning and has two modes:

Mode or holdEffect
Compliance retentionNo user, including root, can delete a locked version or shorten retention before its date
Governance retentionA permitted caller can explicitly bypass the lock
Legal holdProtects a version until an authorized person removes the hold

Azure immutable blob storage supports locked time-based retention and legal holds; Google offers Bucket Lock. Protect the encryption key too: preserved ciphertext is useless if its key is destroyed.

Plan search, archive and deletion together

For 40 GB of logs per day retained for 365 days, keep the newest 90 days in a fast tier and the remaining 275 days in archive storage. That is 3,600 GB fast and 11,000 GB archived, about 14,600 GB total at steady state, before delivery and lifecycle timing differences.

Set Object Lock for the required retention, then use lifecycle transitions for the cheaper tier. In a versioned bucket, expiring the current object creates a delete marker; it does not remove the underlying version. Add noncurrent-version expiration after the lock permits deletion and clean up expired delete markers. Otherwise storage keeps accumulating after the planned retention.

Use a searchable store such as CloudWatch, Log Analytics or Cloud Logging for recent investigation, with explicit retention there as well. Test retention settings in governance mode before adopting a long compliance lock. Once compliance retention is set, its time and storage commitment cannot be shortened through normal object operations.

Key Takeaways

  • Keep the archive outside workload administrators’ control.
  • Protect log delivery settings, stored versions and the archive key.
  • Signed digests detect changes; WORM retention prevents changes to locked versions.
  • Governance mode permits authorized bypass; compliance mode protects through the retention date.
  • Versioned-bucket cleanup needs noncurrent-version expiration as well as current expiration.
6

Manage security posture and automate compliance

A secure template can drift, and a compliant-looking score can hide an exposed workload. Continuous posture checks find configuration gaps; policy and remediation make requirements repeatable. Read results in their risk context and preserve evidence of both fixes and accepted exceptions. Finish by walking the full architecture, including the identities and permissions that can change its controls, so separate good choices form a coherent design.

6.1 Use posture findings to reduce real exposure

Cloud security posture management (CSPM) compares deployed configurations with benchmarks and produces findings with severity and remediation guidance. It can identify public storage, open management ports, missing encryption or disabled logging across a large estate.

Read the finding and its context

AWS Security Hub CSPM checks standards largely through AWS Config rules. The newer AWS Security Hub correlates CSPM, GuardDuty, Inspector and Macie findings into prioritized exposures. Microsoft Defender for Cloud applies the Microsoft cloud security benchmark and can connect to AWS and Google Cloud. Its paid Defender CSPM adds attack path analysis; foundational CSPM is free. Google Cloud uses Security Command Center.

A benchmark is a set of configuration recommendations, such as CIS guidance or the provider's own best practices. A finding's mapping to a benchmark control helps organize evidence. It does not decide how much harm the affected resource could cause in your workload.

Prioritize severity together with exposure, data sensitivity and privileges. A vulnerable public machine whose role can read customer documents combines several risks into an attack path. It can deserve attention before a similarly severe finding on an isolated test system. A public website-image bucket and a public identity-document bucket need different decisions even when a tool reports the same public-access setting.

Understand what a score measures

For Defender for Cloud's classic secure score, a control contributes its maximum points multiplied by its healthy-resource fraction. A 4-point control with 15 healthy resources out of 20 contributes 3 points. Fixing the remaining five adds 1 point.

Security Hub CSPM calculates passed controls divided by enabled controls with Passed, Failed or Unknown status; controls with no data are excluded. With 180 passed out of 200 enabled, the score is 90%. Suppressing failed findings can increase the score without removing exposure. Examine the suppressions and the denominator before treating an increase as progress.

Scores summarize the checks that ran. Configuration checks do not examine every application authorization decision or identify every active attacker. Keep application testing and security monitoring alongside posture assessment.

Close findings at the source

Assign an owner and fix the infrastructure template or policy that created the setting. A console repair alone can disappear on the next deployment. Record accepted risks as suppressions or exemptions with reasons and expiry dates. Use automatic remediation for repeated, low-risk changes only after testing its effect.

Central administration avoids coverage gaps. A delegated Security Hub CSPM administrator can aggregate accounts and Regions; Defender for Cloud settings at management-group scope can include new subscriptions. Consolidate overlapping control findings so enabling more standards does not bury the same unresolved issue in duplicate records.

Key Takeaways

  • Use exposure, data sensitivity and privilege alongside severity.
  • Scores depend on the checks, statuses and suppressions included.
  • Repair the template that creates the problem.
  • Give accepted risks an owner, reason and expiry date.
  • Manage coverage centrally as accounts and subscriptions are added.

6.2 Make requirements enforceable and evidence automatic

Compliance maps a requirement to controls and evidence. A provider's attestation report covers its part of the service; the workload's configuration, access processes and operating procedures still need their own evidence.

Choose when a control acts
Control typeTiming and resultExamples
ProactiveChecks a template before deploymentCloudFormation Hooks, pipeline scanning
PreventiveStops a prohibited changeSCPs, Azure Policy deny, organization constraints
DetectiveReports an existing violationConfig rule, Azure Policy audit
CorrectiveRepairs a violationSystems Manager Automation, Policy remediation

AWS Config records configurations over time and evaluates managed or custom rules on changes or schedules. A conformance pack bundles rules and remediation; an aggregator combines account and Region results. An aggregator collects evidence, so confirm the rules are also deployed in each required location.

Azure regulatory compliance initiatives group policies for a framework. Assign at management-group scope for consistent subscription coverage. For create/update requests, evaluation checks disabled first, then append and modify, then deny, then audit effects. Effects such as deployIfNotExists and modify can remediate existing resources through tasks using a managed identity. Existing resources need that remediation step; merely assigning policy leaves work to do.

Work a requirement through all layers

The requirement is "All object storage uses approved customer managed keys and is not publicly accessible." On AWS:

  1. Set default SSE-KMS encryption with the approved key. Use a bucket policy to deny uploads selecting another key through s3:x-amz-server-side-encryption-aws-kms-key-id.
  2. Enable account-level Block Public Access and protect its settings with organization guardrails.
  3. Evaluate approved-key encryption with s3-default-encryption-kms and public-access settings with s3-bucket-level-public-access-prohibited.
  4. Test remediation that restores public access blocking, and preserve compliance history.

Public access blocking prevents public grants. Authorized internet requests remain possible. If the brief also requires a private network path, add a resource policy restricting requests to approved endpoints with aws:SourceVpce. An endpoint policy limits its own path; the resource policy closes alternative paths.

On Azure, deny storage accounts with public network access enabled and audit or deny missing customer-managed encryption. Keep the key, network and access requirements separately testable.

Preserve decisions and evidence

If 184 of 200 resources comply, the rate is 92%. Fixing ten gives 194 of 200, or 97%. Assign the remaining six a fix or an explicit exemption with an owner and expiry. Keep exempt resources visible so the report does not disguise unresolved risk.

Config conformance packs and Security Hub CSPM provide technical control evidence; timestamp and protect it like audit logs. AWS Audit Manager closed to new customers on April 30, 2026. Broader policy and procedure evidence needs a compliance management tool; Microsoft Purview Compliance Manager and Google Assured Workloads support their respective cloud compliance workflows.

Scan templates with tools such as Checkov, cfn-guard, Trivy or PSRule for Azure. Keep pipeline and runtime rules aligned. Start new remediation in audit mode and test before enforcing it. Define narrow exemptions and emergency access so a broad deny does not block an essential recovery change.

Key Takeaways

  • Distinguish proactive, preventive, detective and corrective controls.
  • Map each requirement to a specific control and retained evidence.
  • Public grants, public network paths and key choices need separate checks.
  • Deploy rules as well as aggregators, and remediate existing resources deliberately.
  • Keep exemptions visible, owned and time-limited.
  • Align pipeline checks with runtime enforcement.

6.3 Review the whole workload and its control plane

A security review follows the request, data and administration paths. At every component, check who can reach it, who can act, how data is protected, what is logged, what finds drift and what happens under attack.

Trace a protected customer portal

At the edge, DNS and a CDN lead to a WAF with managed rules and a login rate limit, backed by DDoS protection. The public load balancer accepts only the intended CDN route. It reaches application servers in private subnets; the database allows only the application tier.

Require TLS to the application and database. Use a customer managed database key and a separate document-storage key. Block public document access and use an endpoint with a policy restricting the allowed storage destination. Give the application a role to read its rotating secret. Administrators use Session Manager.

An organization trail records management events and document-bucket data events into a separate archive with integrity validation and Object Lock. Add flow and WAF logs for their own evidence. Security Hub CSPM and Config conformance packs check the deployed design. Protect logging changes with service control policies.

Repair gaps by following the bypass

A database allowing TCP 3306 from 0.0.0.0/0 needs a private path and an application-group source restriction. A password committed to Git needs revocation or rotation, a secret store and history cleanup. A single-Region trail in the workload account needs wider coverage and a separate protected archive. A publicly readable document bucket needs public access blocked and controlled downloads. HTTP after public TLS termination needs re-encryption to targets.

A presigned URL gives temporary access to a specific object under the signer's permissions. Use a short lifetime, such as 15 minutes for a download. Temporary signing credentials can expire sooner and end access before the URL's stated time. Azure SAS provides scoped storage access; prefer a user delegation SAS signed with Entra credentials. Stored access policies support revocation of service SAS tokens, not user delegation SAS tokens.

Review administrative power and operating cost

Who can change a security group, stop a trail or schedule key deletion? Those control-plane permissions can undo data-path protection. Review them with the same care as application access, using least privilege, guardrails and sensitive-change alerts.

Estimate endpoint, key and request costs. S3 Bucket Keys can reduce SSE-KMS requests and related costs by up to 99%. For client-side envelope encryption, bounded data-key caching reduces calls; it also keeps plaintext keys in memory for the chosen interval. Monitor KMS request quotas and use retry with backoff so a busy workload does not fail when throttled.

Translate controls by function when moving providers. AWS KMS maps to Azure Key Vault/Managed HSM and Google Cloud KMS; Secrets Manager to Key Vault secrets and Secret Manager; CloudTrail to Activity/resource logs and Cloud Audit Logs. WAF/Shield, Azure WAF/DDoS Protection and Cloud Armor protect different edge surfaces. Compare the actual resource, permission and retention behavior before accepting an equivalent design.

Key Takeaways

  • Review request, data and administration paths component by component.
  • Test alternate public and direct-origin paths as well as the intended path.
  • Short-lived download access still depends on the signer’s permissions and credential lifetime.
  • Protect the permissions that can disable or weaken security controls.
  • Check key-request capacity, endpoint cost and recovery dependencies.

Designing Secure Cloud Architectures examples

6 Walkthroughs

1

Plan protection for an invoice service

10 steps
Build a threat model, choose independent controls and test a new data flow.
  1. 1
    IntroductionStart with the workload

    An invoice service accepts PDFs from customers and keeps payment details in a database. Its design needs more than a firewall icon.

    Follow the data from the upload page to storage, then decide which controls stop disclosure, unwanted changes, service loss and loss of evidence. Listing those threats is a threat model; controls that fail independently give defense in depth. The same diagram will help explain why each control belongs there.

  2. 2
    ExplanationPlace independent layers

    Put WAF and DDoS protection at the edge, narrow traffic rules between tiers, and a dedicated role on the application. Protect stored data with encryption and key permissions, and send audit events to an independent archive.

    These controls handle different failures. If a malicious request passes the WAF, a narrow database role still limits the records and operations it can reach.

  3. 3
    ExampleReduce the reach of a test leak

    Test and production currently share an account and broad access to one encryption key. A leaked test credential can therefore affect production.

    Separate the environments, assign a production-only application role and key, and remove broad cross-environment trust. The useful change is the loss of that access path. Account separation works with permissions to reduce the blast radius.

  4. 4
    ChallengeCheck the internal request

    A developer proposes using plain HTTP from the load balancer to the application because both are inside the private network. What security assumption needs correction?

    ---reveal---

    The proposal trusts the network location. Private placement does not encrypt the hop or authenticate every request. Use TLS for sensitive internal traffic and check identity and authorization even after traffic passes the perimeter.

  5. 5
    ExplanationClassify the actual stored data

    Invoices, customer contact details and exports may have different sensitivity. Classify each stored combination by the harm from disclosure, alteration or loss.

    An export joining purchase history to a large email list can deserve stronger controls than either table alone. Include backups and caches in the classification, because they contain usable copies of the same information.

  6. 6
    ExampleMark the trust boundaries

    Draw the browser, load balancer, application, document store and database. Add arrows for uploads, reads and database calls. Mark the internet-to-edge boundary and each transition to a differently trusted service.

    At the upload boundary, consider spoofed identities, altered input, sensitive content and floods. STRIDE turns those broad concerns into questions about authentication, integrity, auditability, confidentiality, availability and privilege.

  7. 7
    ExampleMake controls testable

    For injection, choose managed WAF rules and parameterized database queries. For leaked passwords, use a secret store with tested rotation. For log deletion, send events to a separate archive with write-once retention.

    Then specify evidence: a new connection works after rotation; the workload role cannot delete archived logs. A requirement becomes useful when the team can demonstrate it.

  8. 8
    ChallengeReview the partner export

    The service adds a nightly transfer of customer invoices to an analytics partner. What must be revisited before enabling it?

    ---reveal---

    Update the data-flow diagram and threat model for the new trust boundary. Classify the exported combination, check the destination and permitted processing Region, and define TLS, narrow credentials and transfer logging. Existing upload controls do not describe this new path.

  9. 9
    ChallengeChoose a justified control

    The team proposes a paid protection tier for every test endpoint while its production archive remains deletable by application administrators. How should the design review prioritize this?

    ---reveal---

    Address the clear evidence-loss path and assess the paid tier against actual outage impact and threats. Defense in depth needs independent, relevant controls; simply adding subscriptions does not establish that. Record any deferred risk with an owner.

  10. 10
    RecapCheck what the design can demonstrate

    Use the diagram to connect data sensitivity, threats, controls and tests. Independent layers limit a breach, while separated environments limit its reach.

    Before approving a new integration, check which data crosses its boundary and which new permissions it creates. Keep security settings in reviewed templates so the deployed workload can be compared with the design as it changes.

2

Encrypt a document and keep it readable

15 steps
Follow envelope encryption, key permissions, lifecycle decisions and TLS hops.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow plaintext and key use
  2. 2
    ExplanationSeparate bulk data from the wrapping key
  3. 3
    ExampleRequest and use the data key
  4. 4
    ExampleStore the encrypted result
  5. 5
    ChallengeCheck a stolen read credential
  6. 6
    ExplanationChoose independent key permissions
  7. 7
    ExampleRotate without rewriting the archive
  8. 8
    ChallengePrepare the recovery Region
  9. 9
    TipTest dependencies before deletion
  10. 10
    ExplanationDraw both TLS connections
  11. 11
    ExampleEnforce the private hop
  12. 12
    ChallengeKeep the certificate renewable
  13. 13
    Key InsightPrivate links have a separate job
  14. 14
    ChallengeExplain unreadable but preserved logs
  15. 15
    RecapReview encryption and availability together
3

Replace a deployment key and rotate a database secret

11 steps
Move from reusable credentials to controlled retrieval, tested rotation and federation.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFind the credential paths
  2. 2
    ExplanationPut the secret behind a workload identity
  3. 3
    ExampleBuild the refresh path
  4. 4
    ChallengeRespond to a published password
  5. 5
    ExampleCreate and test the replacement
  6. 6
    ExplanationUse the overlap deliberately
  7. 7
    ChallengeDiagnose the rotation outage
  8. 8
    ExplanationExchange the pipeline identity
  9. 9
    ChallengeRestrict a shared build platform
  10. 10
    ChallengeKeep rotation independent of release dates
  11. 11
    RecapCheck each remaining secret separately
4

Trace a request from the edge to private storage

17 steps
Evaluate filters, repair a private path and protect the application from floods.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow a customer request
  2. 2
    ExplanationIdentify the filter before reading rules
  3. 3
    ExampleConnect only adjacent tiers
  4. 4
    ExampleFind the shadowed exception
  5. 5
    ChallengeFind the missing response rule
  6. 6
    ExampleCreate the private storage path
  7. 7
    ExplanationClose other routes and destinations
  8. 8
    TipGive administrators a private path
  9. 9
    ChallengeDiagnose the endpoint connection
  10. 10
    ExplanationInspect the request at HTTP level
  11. 11
    ExampleTune before blocking
  12. 12
    ChallengeCheck whether the origin is bypassable
  13. 13
    ExplanationReject floods before limited resources
  14. 14
    ExamplePrepare the paid protection
  15. 15
    ChallengeSeparate two flood defenses
  16. 16
    ChallengeReview the combined path
  17. 17
    RecapTest allowed paths and refused paths
5

Build an archive that survives a workload compromise

11 steps
Choose event sources, centralize delivery and verify retained evidence.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionDesign evidence before the event
  2. 2
    ExplanationChoose events for the question
  3. 3
    ExampleExtend coverage beyond event history
  4. 4
    ChallengeRead the limits of a flow record
  5. 5
    ExampleMove delivery beyond the workload
  6. 6
    ExplanationAdd two different integrity controls
  7. 7
    ExampleCalculate the storage tiers
  8. 8
    ChallengeExplain storage that keeps growing
  9. 9
    TipChoose the lock commitment carefully
  10. 10
    ChallengeCheck an intact but incomplete archive
  11. 11
    RecapVerify coverage and preservation separately
6

Turn a posture finding into a lasting fix

14 steps
Prioritize risk, automate requirements and review the complete workload.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionConnect a finding to the design
  2. 2
    ExplanationRead risk behind the severity
  3. 3
    ExampleUnderstand a score change
  4. 4
    ChallengeKeep the fix after deployment
  5. 5
    ExplanationChoose when to act
  6. 6
    ExampleSeparate keys, grants and paths
  7. 7
    ExampleMeasure the remaining work
  8. 8
    ChallengeRepair existing resources safely
  9. 9
    ExampleFollow the customer document
  10. 10
    ExplanationInclude the people who change controls
  11. 11
    ChallengeCheck a temporary download link
  12. 12
    ChallengeExplain a provider report’s scope
  13. 13
    TipCheck cost and key-request capacity
  14. 14
    RecapRequire evidence of the lasting result

Designing Secure Cloud Architectures practice questions

50 Practice Questions in 5 sets

Set 1: Keep access working as controls change10 Practice Questions

Question 1 of 10

A team manually fixes encryption settings after each deployment, but new deployments recreate the unsafe settings. What change addresses the recurring cause?
  1. Repeat the console repair more often and retain the existing template unchanged.
  2. Extend audit-log retention and use the same deployment template for consistency.
  3. Correct the infrastructure template and review that change before deployment.
  4. Give operators more console permissions so they can repair settings more quickly.
Show answerHide answer
Answer: C
The template declares the state that deployments recreate, so fix the settings there and verify the result. Audit records help explain changes but do not correct an unsafe template. Repeating a console repair leaves the same cause ready for the next deployment.

Question 2 of 10

An internal staff list is joined to detailed travel histories for a new export. How should the export’s classification be decided?
  1. Assess harm from the joined data and apply controls for that combined result.
  2. Use the staff list’s label because it was the first input selected for the export.
  3. Use the lower input label because the export has not added any new individual fields.
  4. Classify only the transfer connection because both original data sets already had labels.
Show answerHide answer
Answer: A
The combined export can reveal sensitive relationships absent from either input alone. Classify what will actually be stored and shared, including the possible harm from that combination. Reusing one input’s label can miss the new exposure even when no individual field was added.

Question 3 of 10

A health-record API needs front-end HTTP inspection and encryption from clients through to its targets. What TLS arrangement meets both needs?
  1. Terminate TLS at the inspecting front end and use HTTP to targets in private subnets.
  2. Pass TLS unchanged through a TCP listener and inspect its encrypted HTTP body there.
  3. Use HTTPS from clients and leave target encryption dependent on the private route.
  4. Terminate TLS at the inspecting front end and establish TLS again to the targets.
Show answerHide answer
Answer: D
Termination exposes HTTP to the front end for inspection, and a new TLS connection protects the target hop. Plain HTTP behind the front end fails the all-hops requirement even in private subnets. A forwarding TCP listener cannot inspect HTTP that remains encrypted through it.

Question 4 of 10

A database password rotation passes its target test, but long-running clients fail to reconnect until restarted. What should the team repair?
  1. The password’s encryption algorithm in the managed secret store.
  2. The clients’ retrieval, cache-refresh and retry behavior.
  3. The audit-trail retention for successful password retrievals.
  4. The rotation labels by keeping both old and new values current.
Show answerHide answer
Answer: B
The successful test shows that the new credential works at the target. Clients that recover only after restart are likely retaining the old value, so check how they retrieve and refresh it. Stronger vault encryption does not make a running process replace its cached password.

Question 5 of 10

How does an AWS security group treat response traffic for an allowed connection?
  1. It permits the response only if a higher-priority allow matches.
  2. It permits the response only through an ephemeral-port rule.
  3. It permits the response by never filtering outbound packets.
  4. It permits the response through connection state tracking.
Show answerHide answer
Answer: D
A security group tracks an allowed connection and permits its response traffic. The explicit return-port rule belongs to a stateless network ACL, which must be checked separately. Security groups also have no priority ordering, so a higher-priority rule is not part of their evaluation.

Question 6 of 10

A managed WAF rule would block valid rich-text submissions. How should it be introduced safely?
  1. Block every managed match immediately and remove the rich-text feature on failure.
  2. Disable the whole managed group permanently and rely on the network security group.
  3. Observe matches in Count mode, narrow the exception, and then enable blocking.
  4. Allow every request to the application and keep logging disabled until after rollout.
Show answerHide answer
Answer: C
Count or Detection mode shows legitimate matches without rejecting users. Use the logs to create a narrow exclusion or scope condition, then enforce the tuned rule. Disabling the whole group discards unrelated protections, and an address/port filter cannot replace HTTP inspection.

Question 7 of 10

A company compares an annual protection subscription of USD 42,000 with outage loss of USD 14,000 per hour. How much avoided outage covers the base subscription cost?
  1. 0.33 hours per year.
  2. 3 hours per year.
  3. 12 hours per year.
  4. 36 hours per year.
Show answerHide answer
Answer: B
Divide the annual base cost by the hourly loss: 42,000 divided by 14,000 is 3 hours. Dividing the hourly loss by the annual cost reverses the units and gives about 0.33 instead. This break-even figure excludes other fees and does not predict how much outage will actually be prevented.

Question 8 of 10

What can CloudTrail log file integrity validation establish about delivered files?
  1. Whether their contents changed or a delivered file is missing.
  2. Whether a workload administrator is prevented from deleting them.
  3. Whether every data-event category was enabled before delivery.
  4. Whether all retained ciphertext can be read without its key.
Show answerHide answer
Answer: A
Hashes and signed digest files support checking delivered files for changes or deletion. They detect tampering; enforced retention and access controls constrain deletion. Validation also cannot create missing event coverage or recover an encryption key that has been destroyed.

Question 9 of 10

An organization requires approved encryption keys and private-only S3 access. A template sets the approved default key and Block Public Access, but writers can choose another KMS key and authorized clients can use public endpoints. What closes the two gaps?
  1. Default to the approved key and deny resource access outside the approved VPC endpoints.
  2. Deny uploads selecting other keys and deny resource access outside approved VPC endpoints.
  3. Deny uploads selecting other keys and restrict access through the endpoint policy.
  4. Deny uploads selecting other keys and enable Block Public Access on every bucket.
Show answerHide answer
Answer: B
Default encryption does not by itself reject a writer’s different key choice, and Block Public Access does not reject authorized internet traffic. Enforce both requirements in resource policies and check them. An endpoint policy restricts its own path but cannot close a different path to the resource.

Question 10 of 10

A document portal has private database networking, encrypted storage and a locked archive. Its application administrator can change the bucket policy, stop the trail and schedule the archive key’s deletion. What design gap remains?
  1. Restrict bucket-policy and trail changes while leaving archive-key deletion with workload operators.
  2. Restrict key deletion and bucket-policy changes while allowing workload operators to stop trails.
  3. Restrict trail changes and key deletion while leaving bucket-policy changes with workload operators.
  4. Restrict policy, trail and key changes through narrow administrative roles and organization guardrails.
Show answerHide answer
Answer: D
The management plane can reopen data access, stop future evidence and destroy decryption capability. Restrict those administrative actions and protect sensitive changes with guardrails and alerts. A longer object lock preserves existing versions but does not preserve trail delivery or the archive key.
Set 2: Choose controls for a new workload10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A preview service shares production’s database role. What design change most directly limits damage from a stolen preview credential?
  1. Keep the shared role and enable more detailed production access logs.
  2. Give preview a separate role with no production data permissions.
  3. Keep the shared role and encrypt both databases with the same key.
  4. Keep the shared role and add a WAF to the production web endpoint.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An Azure application must decrypt data, while routine key administrators must manage keys without cryptographic use. How should roles be assigned?
  1. Give the application Crypto Officer and administrators Crypto User for the same keys.
  2. Give both groups Crypto Officer and separate their access through different sign-in names.
  3. Give administrators Crypto Officer and remove only their direct access to the encrypted files.
  4. Give the application Crypto User and administrators a custom role without cryptographic operations.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An application reads a server-side encrypted object using credentials with all required read and decryption permissions. In what form does the storage service return its content?
  1. Plaintext, because the service decrypts an authorized read.
  2. Ciphertext, because at-rest encryption remains applied to all reads.
  3. Ciphertext, until the application downloads the key-service master key.
  4. Plaintext, only after the storage account’s encryption is disabled.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A backup team must allow a second AWS account to restore a snapshot encrypted under an AWS managed key. What change is needed?
  1. Keep its AWS managed key and grant the second account only snapshot permissions.
  2. Enable annual rotation on its AWS managed key and share the unchanged snapshot.
  3. Copy it under a customer managed key and grant the second account key access.
  4. Copy it under a new AWS managed key and grant the second account storage access.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A service’s API key is discovered in a public issue. What should happen first?
  1. Delete the issue containing the value.
  2. Revoke or rotate the exposed value.
  3. Move that value into a secret store.
  4. Restrict who can open future issues.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A subnet NSG allows a new HTTPS connection, but the network-interface NSG denies it. What is the result?
  1. The connection is denied because both NSGs must permit it.
  2. The connection is allowed because the subnet NSG is evaluated first.
  3. The connection is allowed because HTTPS is stateful return traffic.
  4. The connection is denied only if both NSGs use the same priority.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A private AWS reporting service must read only organizational S3 buckets. It currently uses NAT and has broad S3 permission. The new requirement forbids public-network S3 access and uploads to outside buckets. What network and resource controls meet both requirements?
  1. Use an S3 endpoint, retain its broad default policy, and keep the bucket’s public route usable.
  2. Use the NAT route, limit inbound application ports, and enable encryption on every bucket.
  3. Use an S3 endpoint, restrict its destinations, and rely on public access blocking for the path.
  4. Use an S3 endpoint, restrict its destinations, and require that endpoint in the bucket policy.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A team retains CloudTrail management events and now needs to record reads of a sensitive S3 bucket. What collection change is required?
  1. Extend management-event retention for the trail.
  2. Enable VPC flow logs on the private subnet.
  3. Enable S3 object data events for that bucket.
  4. Enable more management events in that Region.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A posture check flags a virtual machine with SSH open to all sources. What does that finding establish?
  1. A confirmed attacker currently controlling a resource.
  2. A proof that an application has no authorization flaws.
  3. A configuration that fails an enabled security check.
  4. A complete decision about the workload’s business risk.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A rule reports public storage after it is deployed. The requirement is to reject future deployments with public storage. What additional control type is needed?
  1. A preventive control that denies the prohibited deployment.
  2. A detective control that evaluates the storage more often.
  3. A corrective control that reports the responsible resource owner.
  4. A detective control that stores its findings in a central account.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Diagnose gaps in running cloud services10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A service adds a nightly export to a partner’s cloud account. What security planning work does this change require?
  1. Retain the existing threat model because the application’s public address is unchanged.
  2. Apply the upload form’s WAF rule to the export and keep its access design unchanged.
  3. Classify only the partner account name because the exported fields already have labels.
  4. Update the threat model for the new destination, trust boundary and data flow.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A client encrypts files locally and wraps its data keys with the same provider’s KMS. The contract requires that provider to be unable to decrypt the files, and a plaintext data key has leaked. What two changes address both requirements?
  1. Move wrapping keys outside the provider and rotate only the provider’s logical KMS key.
  2. Keep the provider’s KMS and re-encrypt affected files under a newly generated data key.
  3. Move all decryption keys outside provider control and re-encrypt affected files under a new data key.
  4. Keep the provider’s KMS, restrict public bucket grants, and delete the exposed key from application logs.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

What additional identity check does mutual TLS provide beyond ordinary server-authenticated TLS?
  1. The server authenticates a client certificate as well.
  2. The client checks a server certificate for the first time.
  3. The database authorizes each requested record through TLS.
  4. The network encrypts every connection beyond the TLS endpoint.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A container receives a database password as an environment value only when it starts. The store later rotates the password. What must be verified before relying on that rotation?
  1. Whether the encrypted secret store allows the old password to remain current forever.
  2. Whether adding a second storage encryption key refreshes the running process value.
  3. How the running container receives a new value or is replaced after rotation.
  4. Whether a versionless store reference alone updates an already injected environment value.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A release pipeline trusts every repository on its OIDC platform, while deployed containers receive a database password only at startup. Deployment keys must be removed without granting unrelated repositories access, and scheduled password rotation must keep clients working. What paired change is needed?
  1. Restrict OIDC trust to the repository and branch, and assume a versionless reference refreshes every running container.
  2. Restrict OIDC trust to the repository and branch, and implement tested secret refresh or task replacement.
  3. Accept all platform subjects with short token expiry, and implement tested secret refresh or task replacement.
  4. Accept all platform subjects with short token expiry, and retain a static injected password across rotations.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An on-premises application must retrieve Secrets Manager values over Direct Connect with no public service path. The draft uses a gateway endpoint, public DNS and no TLS because the link is private. What revision meets the route, name-resolution and confidentiality requirements?
  1. Use an interface endpoint, resolve its private addresses from on-premises, and retain TLS.
  2. Use an interface endpoint, retain public DNS from on-premises, and rely on link privacy.
  3. Use an S3 gateway endpoint, resolve Secrets Manager to it, and retain TLS over the private link.
  4. Use an interface endpoint, resolve its private addresses from on-premises, and remove TLS.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A rate-based WAF rule limits each source IP over a trailing two-minute window. After a burst stops, why can requests from that IP remain limited for a while?
  1. Each blocked request automatically starts an exact new two-minute ban.
  2. Earlier requests remain in the trailing count until they age out.
  3. The limit is checked only at fixed two-minute boundaries on the clock.
  4. The source IP stays blocked until an administrator clears a permanent deny.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

What information does a VPC Flow Log provide about network traffic?
  1. The complete application messages and document contents transferred.
  2. The database rows returned for each accepted network connection.
  3. The human identity responsible for every source network address.
  4. Connection metadata such as addresses, ports, bytes and action.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A CSPM score rises immediately after several failed findings are suppressed, while resource configurations are unchanged. How should this be interpreted?
  1. The resources were corrected because a higher score requires configuration repairs.
  2. The standard stopped counting unknown controls because all suppressions remove them.
  3. The reporting changed; review the suppressions before claiming lower exposure.
  4. The application code was verified because suppressed findings cannot affect posture.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

At 10:12 UTC a download link is signed with role credentials expiring at 10:25. The link requests a 20-minute lifetime. With permissions unchanged and no other restrictions, what is its latest usable time, and what controls it?
  1. 10:25 UTC, when the signing credentials expire.
  2. 10:32 UTC, when the requested URL lifetime ends.
  3. 10:45 UTC, the credential expiry plus URL lifetime.
  4. 10:12 UTC, since role credentials cannot sign URLs.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Review recovery, evidence and enforcement10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A team moves a database from a VM to a managed service. What security decisions still belong to the customer?
  1. Provider hypervisor patching, physical disk disposal and facility access approvals.
  2. Network exposure, allowed identities, encryption-key choice and backup configuration.
  3. Provider engine maintenance only, because managed services inherit all access rules.
  4. Client permissions only, because the provider decides every network and backup setting.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An unencrypted RDS database must use encrypted storage. What migration sequence is appropriate?
  1. Enable TLS, rotate the login password, then keep the original storage unchanged.
  2. Change the instance’s security group, create a key and restart the same database.
  3. Take a snapshot, copy it with encryption, restore a new instance and cut over.
  4. Take a snapshot, restore it unchanged, then encrypt only the application connection.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A production account must give a recovery account a restorable encrypted snapshot in a second AWS Region. The current snapshot uses an AWS managed key in the source Region. Recovery must not depend on a cross-Region KMS call. How should the copy and access be prepared?
  1. Share a copy under a destination AWS managed key and grant the recovery role snapshot access.
  2. Share a copy under the source customer managed key and grant key-policy and recovery-role IAM access.
  3. Share a copy under a destination customer managed key and grant only recovery-role IAM access.
  4. Share a copy under a destination customer managed key, with key-policy and recovery-role IAM grants.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

In Secrets Manager, what does the staging label AWSPENDING identify during rotation?
  1. The new candidate value being prepared and tested.
  2. The active value every application must already use.
  3. The last successful value retained for rollback.
  4. The permanent key encrypting every secret version.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

For a new HTTPS connection, a subnet NSG allows TCP 443 at priority 110. The interface NSG denies all internet TCP at 130 and allows internet TCP 443 at 210. Return routes exist. What is the narrowest rule correction that admits HTTPS while retaining the broad deny?
  1. Move the interface HTTPS allow ahead of priority 130 and keep the broad deny.
  2. Move the subnet HTTPS allow ahead of priority 110 and keep the interface rules.
  3. Add an outbound ephemeral-port allow to the interface and keep its inbound rules.
  4. Move the interface HTTPS allow after priority 210 and retain the existing deny.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

During an HTTP flood, application scaling increases the bill while repeated image requests keep reaching the origin. What change most directly reduces that repeated origin work?
  1. Raise the maximum application capacity and keep every image request uncached.
  2. Open the database to internet clients so image requests can bypass the application.
  3. Remove the CDN and increase the origin timeout for every repeated image request.
  4. Cache the reusable images at the CDN and keep sensible capacity and cost alarms.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A long-term trail contains resource-management events but no S3 object-read events. Investigators need to identify last month’s download of a particular object. What limits the available evidence?
  1. The trail needs a longer retention setting to recover the omitted reads.
  2. The archive needs indexing before its management records show object reads.
  3. The required object-read data events were not collected for that activity.
  4. The subnet lacks flow logs, which record the object request and its contents.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A versioned log bucket uses compliance retention, transitions old versions to archive storage, and expires current objects after the retain-until date. Costs keep growing because previous versions remain. What complete cleanup is needed?
  1. Shorten the active compliance retention and leave previous versions without expiration.
  2. Add noncurrent-version expiration and expired-marker cleanup after retention permits deletion.
  3. Add only a transition to a cheaper archive class and retain every previous version.
  4. Disable versioning on the locked bucket and delete current objects on their original dates.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A compliance report covers 240 resources. After remediation, 228 comply and 12 remain noncompliant. What percentage complies, and how should unresolved resources be handled?
  1. 95%; remove the twelve from the scope without recording a decision.
  2. 90%; report them as compliant because remediation has already run.
  3. 5%; retain the failures without owners until the next annual report.
  4. 95%; assign each a repair or an owned, time-limited exemption.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Customers need presigned downloads from an SSE-KMS document bucket for 12 minutes. The signer can read objects but cannot decrypt with KMS, and its credentials expire in 4 minutes. How can the links meet the access and lifetime requirements?
  1. Keep the role’s permissions and use credentials lasting at least 12 minutes, then sign 12-minute URLs.
  2. Grant narrow KMS decryption access and use credentials lasting at least 12 minutes, then sign 12-minute URLs.
  3. Grant narrow KMS decryption access and use the current 4-minute credentials to sign 12-minute URLs.
  4. Keep the role’s permissions and current credentials, then sign longer URLs to compensate for early expiry.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Resolve competing security requirements10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A restricted dataset may be stored and processed only in approved Regions, including during recovery. A design uses approved primary storage but copies backups elsewhere and sends combined records to an analytics partner. What review best addresses the remaining exposure?
  1. Keep the primary classification, encrypt every copy, and retain unrestricted recovery and partner Regions.
  2. Classify the partner’s individual fields, approve its credentials, and exempt backups from the Region rule.
  3. Trace only customer-facing requests, enable a WAF, and approve recovery copies under the primary label.
  4. Trace backups and partner flows, classify the combined export, and restrict all storage and processing destinations.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A partner API requires client-certificate authentication at its gateway, HTTP-body inspection there, and encryption from gateway to targets. What TLS design meets all three requirements?
  1. Terminate mutual TLS at the inspecting gateway and open a separate TLS connection to each target.
  2. Pass TLS unchanged through the gateway and use the target’s certificate to inspect the HTTP body there.
  3. Terminate mutual TLS at the gateway and send HTTP to targets whose subnets have no public route.
  4. Terminate server-only TLS at the gateway and re-encrypt to targets without checking client certificates.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A service alternates database users every 21 days: A is current on day 0 and B on day 21. On day 42 a new A password is installed as AWSPENDING but has not passed its test. An instance caching day-0 A cannot reconnect. What should clients retrieve, and what must precede publishing A?
  1. Retrieve AWSPENDING A immediately, then publish it before testing to restore every cached client.
  2. Retrieve AWSPREVIOUS A, then leave its old password valid until two more rotation periods have passed.
  3. Retrieve AWSCURRENT B, and test the new A credential successfully before making it current.
  4. Retrieve cached day-0 A again, and move AWSCURRENT without another database authentication test.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A branch office reaches Azure over a private hybrid link. Blob access must use a private resource address and the storage public endpoint must refuse connections. What design meets the requirement?
  1. Enable a service endpoint on a cloud subnet, keep public DNS, and allow that subnet in the resource firewall.
  2. Create a blob private endpoint, provide hybrid private DNS resolution, and disable public network access.
  3. Create a blob private endpoint, retain public DNS at the branch, and leave public network access enabled.
  4. Enable a service endpoint, give the branch the storage access key, and turn on secure transfer for public access.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An origin allows the CloudFront origin-facing address list, but accepts any CloudFront distribution. A new managed WAF rule also matches valid editor submissions. What paired changes preserve the intended edge path and allow safe enforcement?
  1. Keep the address-list check alone, then block all editor submissions until users change their input.
  2. Add a distribution-specific origin check, then disable the entire managed group for every path.
  3. Add a distribution-specific origin check, then tune the WAF rule in Count before blocking.
  4. Open the origin to all addresses, then tune the rule in Count only on the intended distribution.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A flood exhausts connection state with repeated SYN requests. At what protection layer should the primary mitigation operate?
  1. Network/protocol DDoS protection at the provider edge.
  2. HTTP rate limiting on the application’s login path alone.
  3. Horizontal application scaling behind the existing listener alone.
  4. Caching static HTTP responses at a content delivery network alone.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An archive’s digests validate, but workload administrators can stop its trail and schedule its encryption key’s deletion. The logs use governance retention that those same administrators can bypass. What control combination addresses the unresolved risks?
  1. Restrict trail and key administration, retain workload governance bypass, and rely on valid digests for deletion protection.
  2. Remove workload governance bypass and restrict key deletion, but let workload administrators stop trail delivery.
  3. Restrict trail administration and use compliance retention, but let workload administrators delete the archive key.
  4. Restrict trail and key administration, remove workload bypass, and use the required write-once retention.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two findings have the same severity. One affects an internet-facing server whose role can read identity documents; the other affects an isolated test server with no sensitive access. What should drive priority?
  1. The identical severity requires both findings to receive identical priority.
  2. The exposed path to sensitive data makes the first finding more urgent.
  3. The test-first repair rule makes the isolated test finding more urgent.
  4. The larger secure-score point gain decides which finding is more urgent.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A deployIfNotExists policy reports missing diagnostics on existing Azure resources. Its managed identity can read those resources but cannot create diagnostic settings. What must happen to repair them?
  1. Grant the identity deployment permission and only reevaluate the policy without a remediation task.
  2. Run a remediation task under the unchanged identity because the policy assignment overrides its permissions.
  3. Grant the operator deployment permission and leave the remediation identity with resource-read permission.
  4. Grant the identity the required deployment permission and run a remediation task for the resources.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A customer document service must permit customer downloads, retain object-read evidence and keep workload operators from weakening controls. Its draft exposes anonymous object URLs and gives operators logging-admin rights. What revision meets these needs?
  1. Use scoped temporary downloads, retain management events alone, and keep operators’ logging-admin rights.
  2. Use scoped temporary downloads, collect object data events, and restrict operators’ logging changes.
  3. Keep anonymous object URLs, collect object data events, and restrict operators’ logging changes.
  4. Use scoped temporary downloads, collect flow metadata alone, and let operators stop logging during releases.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

92 Key Terms, each with its definition

A

Alternating-user rotation
Alternating-user rotation changes the inactive database user and makes it current, leaving a refresh overlap for existing clients.
A client using the previous user refreshes before that user’s password changes in the following rotation.
Application security group
An application security group groups Azure virtual machines by role so network rules can refer to the group instead of individual addresses.
A database rule uses the application-tier group as its source while the application scales.
Attack path
An attack path connects exposures and permissions that an attacker could use to reach a valuable target through multiple resources.
A public vulnerable machine’s powerful role creates a possible route to restricted customer documents.
Audit trail
An audit trail is a chronological record of actions, principals, times, sources, targets and outcomes used for accountability and investigation.
Investigators connect the resource-change event to the credentials that submitted its API request.

B

Benchmark
A benchmark is a published set of recommended configuration controls used to assess and improve a cloud environment’s security settings.
CIS guidance and provider best-practice standards organize the checks applied across the organization.
Blast radius
A blast radius is the extent of harm one compromised component or credential can cause through its access to other resources.
Separating production permissions from test credentials limits how far a test-service compromise can spread.

C

Central log archive
A central log archive receives records across workloads in a separate security-owned account, subscription or project with restricted control.
A compromised application administrator cannot delete the organization’s retained trail in the archive account.
Certificate authority
A certificate authority signs certificates that bind identities to public keys, under a trust relationship recognized by clients.
Internal services use a private CA whose trust anchor is installed on the clients that connect to them.
Client-side encryption
Client-side encryption encrypts content in the application before upload, so the storage service receives the encrypted form.
If the provider must not decrypt it, the service also keeps every required decryption key outside that provider.
Cloud security posture management
Cloud security posture management continuously checks resource configurations against security recommendations and reports actionable findings.
The platform reports a public document bucket and assigns its failed configuration check a severity.
Compliance exemption
A compliance exemption records an approved exception to a requirement, with its reason, accountable owner and review or expiry conditions.
A legacy integration’s exception expires after its scheduled replacement, leaving the remaining risk visible.
Conformance pack
A conformance pack bundles AWS Config rules and remediation actions into a deployable unit for related technical requirements.
The security team deploys one pack across accounts and aggregates the resulting compliance evidence.
Content delivery network
A content delivery network serves content through distributed edge locations, reducing repeated origin work and spreading request handling.
Cached product images remain at the edge instead of repeatedly loading the application during a flood.
Control-plane log
A control-plane log records operations that create, change or delete cloud resources, rather than reads of their stored contents.
A DeleteSecurityGroup management event identifies the request that removed a network access control.
Corrective control
A corrective control changes an existing resource to repair a violation, often through tested automation with the required permissions.
A remediation task deploys missing diagnostic settings to older resources after the policy finds them.
Credential cache
A credential cache temporarily keeps a retrieved access value in memory to reduce repeated store requests between refreshes.
The application discards its cached password after an authentication failure and fetches the current value.
Customer managed key
A customer managed key gives the customer control over key permissions and lifecycle, including rotation, disabling and deletion.
The backup team uses its own key policy to authorize a recovery role from a second AWS account.

D

Data classification
Data classification labels a data set by the potential harm of disclosure, alteration or loss and guides its required protection.
The combined customer export receives a restricted label because it joins contact details with purchase histories.
Data key
A data key encrypts the bulk content in an envelope-encryption design and is itself wrapped for storage with that ciphertext.
The application erases the plaintext data key from memory after encrypting the uploaded document.
Data residency
Data residency describes requirements for the permitted geographic locations of data storage and processing, including copies.
The recovery design keeps backup processing inside approved Regions as well as primary storage.
Data-plane log
A data-plane log records access to data or activity within a service resource, such as an object read or secret retrieval.
The sensitive bucket’s object data events supply the record needed to audit document downloads.
Defense in depth
Defense in depth combines independent security layers so one failed control leaves other protections against exposure or misuse.
A narrow application role limits data access even when a malicious web request gets through the WAF.
Detective control
A detective control identifies and reports an existing violation so a person or an automated process can decide how to address it.
An AWS Config rule reports a resource whose encryption setting differs from the required standard.
Digest file
A CloudTrail digest file is a signed hourly record of delivered log-file hashes that also links to the previous digest signature.
Investigators retain the digest chain alongside the logs so they can verify the delivered evidence.
Distributed denial of service
A distributed denial of service attack uses many sources to exhaust bandwidth, connection capacity or application resources.
The response plan combines provider edge absorption with application rate limits for different flood layers.

E

Economic denial of service
Economic denial of service increases a workload’s cost through attacker-generated resource use, including scaling charges during floods.
Capacity bounds, caching and budget alarms limit the financial effect of unwanted repeated requests.
Egress filtering
Egress filtering restricts outbound traffic to approved destinations or protocols, limiting unwanted external access and data transfer.
A firewall rejects outbound destinations outside the service’s required partner and provider endpoints.
Encryption at rest
Encryption at rest protects stored data with cryptography, while the service can still decrypt it for a reader with valid permissions.
A copied disk remains encrypted, but an authorized application can receive plaintext through its normal read.
Endpoint policy
An endpoint policy restricts which principals, actions or resources are allowed through an AWS VPC endpoint’s access path.
The endpoint policy allows organizational buckets, while the bucket policy restricts alternate access paths.
Envelope encryption
Envelope encryption encrypts bulk data with a data key and protects that key by encrypting it under a separate key-service key.
The upload service stores the encrypted data key alongside the encrypted video instead of sending the video to KMS.
Ephemeral port
An ephemeral port is a temporary client-side port used for a connection, which a stateless return-path filter may need to allow.
The subnet ACL permits server responses to the client’s temporary port as well as inbound traffic to 443.

F

False positive
A false positive is legitimate traffic incorrectly matched as unwanted, which can cause a protective rule to disrupt normal users.
A rich-text editor’s valid HTML matches a cross-site-scripting rule and needs a narrow exclusion.
Finding suppression
A finding suppression changes how a reported issue is treated without necessarily repairing its underlying resource configuration.
The team records an owner and expiry for an accepted risk instead of hiding a failed check indefinitely.
Flow log
A flow log records connection metadata, including endpoints, ports, protocol, volume and action, without storing packet contents.
The team checks flow metadata for contact with an address, then uses service logs to examine data access.

G

Gateway endpoint
A gateway endpoint adds an AWS route-table target for S3 or DynamoDB access from a VPC without an hourly endpoint charge.
The VPC’s S3 route uses the gateway endpoint, while on-premises clients need a different access design.

H

Hardware security module
A hardware security module is a device that protects cryptographic keys and performs operations within a controlled hardware boundary.
A sole-tenancy requirement drives the HSM choice separately from the required FIPS validation level.

I

Infrastructure as code
Infrastructure as code defines resource settings in reviewable templates that support repeatable deployment and checks for drift.
The storage template enables public access blocking and the approved encryption key on each deployment.
Integrity validation
Integrity validation checks hashes and signed evidence to determine whether delivered records remain unchanged or have gone missing.
CloudTrail validation checks retained files against their digests after the organization receives them.
Interface endpoint
An interface endpoint places private network interfaces in AWS subnets to reach supported services through PrivateLink.
The branch reaches Secrets Manager over the hybrid link through the endpoint’s private addresses.

K

Key encryption key
A key encryption key encrypts other keys, letting a key service govern decryption without processing the bulk content itself.
Permission to unwrap the stored data key determines whether the application can decrypt the local file.
Key management service
A key management service stores cryptographic keys, authorizes operations with them and provides records of key use.
The application sends a wrapped data key to KMS for decryption while processing its large file locally.
Key policy
A key policy is an AWS KMS resource policy that controls access to one key and can authorize delegation through IAM policies.
Cross-account decryption fails if the caller has IAM permission but the owning key policy does not permit it.
Key rotation
Key rotation introduces new material for future encryption under a logical key while retaining older material for earlier ciphertext.
A file encrypted before routine rotation remains readable afterward without being rewritten.

L

Legal hold
A legal hold protects an object version without a preset end date, remaining in effect until an authorized person removes it.
An investigation keeps selected evidence under a hold while routine time-based retention continues elsewhere.
Log retention
Log retention is the configured period for keeping events available in a search store or archive according to evidence requirements.
The policy keeps recent events quickly searchable and moves older evidence to a lower-cost archive.

M

Managed bastion
A managed bastion provides controlled administrative connectivity to private machines while avoiding public management ports on those targets.
Azure Bastion reaches RDP privately; the target’s NSG allows that port from the Bastion subnet.
Managed identity
A managed identity is an Azure workload identity whose credentials the platform manages, with access determined by assigned permissions.
The application uses its managed identity to read its Key Vault secret without storing another password.
Managed rule group
A managed rule group is a provider-maintained set of WAF rules for common request threats, requiring application-specific rollout and tuning.
The team first counts matches from a SQL-injection group before enabling its blocking behavior.
Management plane
The management plane contains operations that configure cloud resources and controls, including policy changes, trail settings and key deletion.
A workload review checks who can disable logging as well as who can read the application’s data.
Multi-Region key
A multi-Region key is a related set of AWS KMS keys sharing material and key ID across Regions, with separate Regional policies.
The recovery role still needs permission on the replica key in the Region where its restore will run.
Mutual TLS
Mutual TLS authenticates both connection peers with certificates, adding client-certificate authentication to the usual server check.
The partner gateway verifies a client certificate before application authorization checks the requested action.

N

Network ACL
A network ACL is an AWS stateless subnet filter whose numbered allow and deny rules use the first match in each direction.
An inbound HTTPS allow still needs an outbound response-port allow for the browser connection to work.
Network security group
A network security group is an Azure stateful filter with priority-ordered allow and deny rules applied at a subnet or interface.
A packet must pass the subnet NSG and interface NSG before it can establish a permitted connection.
Noncurrent-version expiration
Noncurrent-version expiration removes eligible older versions in a versioned bucket after their lifecycle age and retention conditions permit it.
The archive needs this cleanup because current expiration adds a delete marker instead of deleting the data version.

O

Origin restriction
An origin restriction limits access to the back-end service behind a CDN, preventing requests from bypassing the intended edge path.
The load balancer accepts the intended distribution’s requests and refuses direct internet access.

P

Policy as code
Policy as code expresses requirements in machine-evaluable rules that can check, restrict or help repair infrastructure consistently.
The same approved-key rule is checked in the deployment pipeline and against the running storage configuration.
Presigned URL
A presigned URL grants temporary access to a specific object under the signer’s permissions, bounded by URL and credential lifetimes.
The download link becomes unusable when its temporary signing credentials expire, even if its requested time remains.
Preventive control
A preventive control rejects a prohibited change before it becomes an accepted resource action, such as through an explicit deny policy.
The organization blocks a deployment that would expose restricted storage through its public network endpoint.
Private endpoint
An Azure private endpoint maps a virtual-network private address to a specific service resource and subresource through Private Link.
The blob hostname resolves to the storage endpoint’s private address after private DNS is linked.
Proactive control
A proactive control checks proposed infrastructure before deployment, giving the team a chance to reject an unsafe template early.
The pipeline’s infrastructure scan fails a template that enables public storage before that setting reaches the cloud account.
Protocol attack
A protocol attack exhausts network or transport resources, such as connection state, instead of relying on an application flaw.
A SYN flood needs network-layer mitigation before connections reach the HTTP inspection stage.
Purge protection
Purge protection prevents permanent deletion of soft-deleted Key Vault objects before their configured recovery period ends.
The storage key cannot be purged early while its protected soft-delete retention period is still active.

R

Rate-based rule
A rate-based rule counts matching requests by a chosen aggregation key over a trailing time window and applies its configured action.
The login rule counts requests per source IP and limits traffic while the estimated recent count stays high.
Repudiation
Repudiation is denying that an action occurred, a threat addressed by reliable records of the action and evidence of their integrity.
The signed audit trail helps establish which credentials submitted a request and when it occurred.
Retry with backoff
Retry with backoff spaces repeated attempts after a transient failure, helping a client recover without immediately repeating the same load.
The application waits between retries after KMS throttling and monitors its quota use during traffic peaks.

S

S3 Bucket Key
An S3 Bucket Key reduces KMS requests and related costs for SSE-KMS object operations, while retaining KMS-based storage encryption.
The storage design enables Bucket Keys to reduce key-service request volume for frequent object operations.
Secret
A secret is a value that grants access, such as a password, API key or signing key, and needs controlled storage and retrieval.
The service keeps its payment-provider API key in a managed store instead of in its source repository.
Secret rotation
Secret rotation replaces a credential at both its store and checking system, then verifies that clients can use the new value.
The rotation function installs and tests the candidate database password before publishing it as current.
Secret store
A secret store encrypts access-granting values, limits permitted readers and records retrievals, often with version support.
Only the production order-service role can retrieve the payment secret from the production store.
Secret version
A secret version is a stored value from one stage of a secret’s lifecycle, allowing controlled publication, testing or rollback.
A pending password is tested against the database before its version becomes the active secret.
Secure score
A secure score summarizes the results included in a posture assessment according to that service’s calculation and status rules.
The reviewer examines suppressions and checked resources before attributing a rising score to repaired exposure.
Security by design
Security by design chooses protection while planning the workload, so its architecture supports the required access, evidence and recovery.
The team chooses encrypted database storage before launch, avoiding a later snapshot migration and cutover.
Security group
A security group is an AWS stateful interface firewall that combines allow rules and automatically permits allowed-connection responses.
The database group permits its port only from the application group, including newly scaled application instances.
Separation of duties
Separation of duties assigns administration and data or key use to distinct roles, reducing the powers held by each routine identity.
The application can decrypt with the key but cannot schedule deletion or change its access policy.
Server-side encryption
Server-side encryption lets a storage service encrypt writes and transparently decrypt reads for principals with the required access.
SSE-KMS protects stored objects while checking both object access and the permission to use their KMS key.
Service endpoint
An Azure service endpoint reaches a service’s public address over the backbone, with resource firewall access based on the source subnet.
A subnet uses the Storage service endpoint, but the account still has public addressing and needs firewall rules.
Service tag
A service tag names provider-maintained address ranges in Azure rules, allowing a service’s ranges to be referenced as a group.
The firewall policy refers to the Storage service tag instead of maintaining every storage address by hand.
Shared access signature
A shared access signature grants scoped access to Azure Storage for specified operations and time, using its supported signing method.
The application chooses a user delegation SAS signed using Entra credentials for a temporary download.
Staging label
A staging label identifies a Secrets Manager version’s role, such as current, pending during rotation or previously current.
AWSCURRENT moves to the new value after testing, while AWSPREVIOUS retains the earlier good version.
STRIDE
STRIDE groups threats into spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege.
The review uses STRIDE to check the upload boundary for more than accidental data disclosure alone.

T

Threat modeling
Threat modeling is a structured review of data flows, trust boundaries and possible failures, followed by mitigations and tests.
A new analytics export triggers a review of its destination, credentials, encryption and transfer records.
TLS certificate
A TLS certificate binds a name to a public key through a certificate authority’s signature, enabling clients to verify a server.
The browser checks that the portal’s certificate is valid for the hostname and signed by a trusted authority.
TLS passthrough
TLS passthrough forwards encrypted traffic to a target without decrypting its HTTP content at the forwarding load balancer.
A TCP listener passes the client’s encrypted stream to the target, which presents the server certificate.
TLS termination
TLS termination ends an encrypted connection at a component, where the decrypted application traffic becomes available for processing.
The load balancer inspects HTTP after termination and opens a new TLS session to the application target.
Transport Layer Security
Transport Layer Security protects a connection’s confidentiality and integrity and authenticates the server using its certificate.
The database listener requires TLS even though its application clients connect through a private network.
Trust boundary
A trust boundary separates zones with different trust, making the crossing a place to examine identity, data and network threats.
The browser-to-load-balancer connection crosses a boundary from an untrusted client into the service.

V

Volumetric attack
A volumetric attack overwhelms network bandwidth with traffic, often using reflected or amplified requests from many sources.
Provider edge protection absorbs a UDP amplification flood before it fills the workload’s available link.

W

Web application firewall
A web application firewall inspects HTTP request fields and applies actions to matches, such as blocking, counting or challenging them.
A WAF rule recognizes suspicious form input that a TCP 443 network allow rule cannot distinguish.
Workload identity
A workload identity gives an application its own authenticated cloud identity, allowing access without a stored long-lived access key.
An ECS task role supplies temporary credentials for the service’s permitted calls to other AWS services.
Workload identity federation
Workload identity federation exchanges a trusted platform’s identity token for temporary cloud credentials under restricted trust.
Only the main branch of the selected repository can exchange its OIDC token for the deployment role.
Write-once-read-many storage
Write-once-read-many storage protects retained data from modification or deletion for an enforced period or while an applicable hold remains.
Object Lock preserves protected object versions even if a normal delete creates a marker above them.

Z

Zero trust
Zero trust requires identity and authorization checks for access, without treating an internal network location as sufficient trust.
A private database requires an authenticated TLS connection even from an application in the same network.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started