Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · SecurityX CAS-005

Data, keys, and connectivity in the cloud

SecurityX CAS-005 · Lesson 11 of 24 · 1:19:59

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: API security (authorization, logging, and rate limiting), cloud-managed and customer-managed keys and licenses, data exposure, leakage, and remanence, proactive, preventative, and detective controls, and customer-to-cloud connectivity and adoption. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Trial data in the cloud

Thornbury Biotech's trial data now sits in cloud storage, and research partners reach it through APIs. Last month, a storage bucket was public for two days, and a regulator now asks who controls the encryption keys. This lesson covers what the customer must design around its data in the cloud.

Securing cloud APIs

Cloud services are driven by APIs, so API security is cloud security. Authorization must be checked on every request, for every object, not only at sign-in: a user who can open their own record must not open someone else's by changing an ID in the request. Use short-lived tokens with narrow scopes, like OAuth access tokens, instead of long-lived keys written into code. Logging keeps a trail of every API call, with the caller, the action, the source, and the result, sent to the SIEM, without secrets or personal data in clear text. Rate limiting caps how many requests a client can send, which slows down scraping, credential stuffing, and denial of service, and protects costs.

Keys and licenses

Cloud-managed encryption keys are created and rotated by the provider, which is simple, but the provider controls them. Customer-managed keys sit in the provider's key management service, under the customer's control: the customer sets rotation and access, and can disable a key to make the data unreadable. For even more control, bring your own key imports a key the customer generated, and hold your own key keeps it outside the provider, at the cost of more work, and more risk of losing access. Licenses split the same way: cloud-managed licenses come with the service, while bring your own licenses reuse the customer's existing ones, which must allow cloud use, and must be tracked. So choose by need: regulation, how much control is required, and who can operate it safely.

Cloud data risks

Data exposure happens when data is reachable by people who should not see it, most often through a misconfigured storage resource, like a public bucket, or a shared link that never expires. Data leakage is data leaving through an allowed channel, like a sync client, an over-shared document, or an API that returns more fields than needed. Data remanence is what stays behind after deletion, on disks, snapshots, and backups, and since you cannot wipe the provider's disks, you encrypt everything, then destroy the keys, which is called crypto shredding. Insecure storage resources include public buckets, unencrypted volumes, snapshots shared with other accounts, and storage keys that never rotate. Posture management tools scan cloud settings continuously, and flag these resources before an attacker finds them.

Control strategies

Cloud control strategies combine three kinds of controls. Proactive controls act before deployment, like policy checks on infrastructure code, secure templates, and threat modeling. Preventative controls block bad actions as they happen, like organization policies that forbid public storage, or that require encryption. Detective controls find what got through, like posture management, logging, and alerts on configuration changes. You need all three, because no single layer catches every misconfiguration.

Connectivity, integration, adoption

Connectivity from the customer to the cloud can use a site-to-site VPN over the internet, quick to set up and encrypted, or a dedicated private connection, with steadier performance, which keeps traffic off the internet, but is not necessarily encrypted. So add encryption, like IPsec or MACsec, on private links that carry sensitive data, and plan a second path for resilience. Cloud service integration connects services to each other and to on-premises systems through managed identities, private endpoints, and event buses, instead of shared keys and public endpoints. Cloud service adoption should be governed: assess each new service for security features, data location, compliance, and exit options, before teams build on it. An approved service catalog, with secure default settings, makes the safe path the easy one.

Recap

Let's recap. Cloud APIs need authorization on every object, short-lived scoped tokens, safe logging, and rate limiting. Provider-managed keys are simple, customer-managed keys give control, and bring or hold your own key go further, while licenses need the same choice. Exposure, leakage, remanence, and insecure storage are the main data risks, and crypto shredding answers remanence. Proactive, preventative, and detective controls work together. And private links may need added encryption, integrations should use managed identities and private endpoints, and adoption should go through a governed catalog.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. A regulator requires that Thornbury can make its trial data in the cloud unreadable at any time, on its own decision, and that it controls key rotation. What fits?

    • Provider-managed encryption keys
    • Customer-managed keys in the provider’s KMS
    • A rate limit on the storage API
    • Bring-your-own licenses
    Show the answer

    Customer-managed keys in the provider’s KMS

    With customer-managed keys, Thornbury sets rotation, and can disable a key to make the data unreadable. “Provider-managed encryption keys” would leave rotation and control with the provider. “A rate limit on the storage API” only limits how many requests reach the API. And “Bring-your-own licenses” is about software licenses, not encryption keys.

  2. Thornbury is ending a cloud project, and must make sure that trial data on deleted volumes and snapshots can never be recovered. The provider does not let customers wipe physical disks. What should Thornbury do?

    • Overwrite the files with zeros
    • Make the storage bucket private
    • Destroy the data’s encryption keys
    • Add a rate limit to the storage API
    Show the answer

    Destroy the data’s encryption keys

    If the data was encrypted, destroying its keys makes every remaining copy unreadable, which is crypto shredding. “Overwrite the files with zeros” would miss copies that Thornbury cannot reach, like snapshots and the provider's own disks. “Make the storage bucket private” is about exposure, not about what remains after deletion. And “Add a rate limit to the storage API” only limits API requests.

  3. Thornbury’s development teams keep starting new cloud services without any review, and some store data outside approved regions. What should the security team put in place?

    • Governed adoption, with an approved catalog
    • A larger site-to-site VPN
    • Customer-managed keys for every service
    • Higher API rate limits
    Show the answer

    Governed adoption, with an approved catalog

    Governed adoption, with an approved service catalog, reviews each service and its data location before teams use it. “A larger site-to-site VPN” only changes how traffic reaches the cloud. “Customer-managed keys for every service” would encrypt the data, but would leave it in the wrong regions. And “Higher API rate limits” would only let more requests through.