Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

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

Cloud capabilities

SecurityX CAS-005 · Lesson 10 of 24 · 1:12:37

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: the shared responsibility model, API-based and proxy-based CASB and shadow IT, CI/CD pipelines, Terraform, and Ansible, container security and orchestration, and serverless workloads. 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.

Research moves to the cloud

Thornbury Biotech is moving its research analytics to the cloud: pipelines deploy the infrastructure as code, containers run the analytics, and functions process instrument files as they arrive. Meanwhile, the security team found hundreds of cloud apps in use that nobody ever approved. Each of these capabilities can be secure, but only if the customer does its share.

Shared responsibility

In the cloud, security is shared: the provider secures the cloud itself, and the customer secures what it puts in the cloud. With infrastructure as a service, the customer manages the operating system, the network rules, the applications, and the data. With platform as a service, the provider also runs the operating system and the runtime, and with software as a service, it runs the whole application. But in every model, the customer keeps its data, its identities, and who has access, and many cloud breaches start with a customer misconfiguration. So check the provider's responsibility matrix for each service, because the line moves from one service to the next.

CASB and shadow IT

A cloud access security broker, or CASB, gives visibility and control over cloud applications. An API-based CASB connects to each approved SaaS application through its API, out of band, so it can scan stored data and settings from any device, but it acts after the fact. A proxy-based CASB sits inline, as a forward proxy on managed devices, or a reverse proxy for the others, so it can block an upload in real time, but it can break some applications. Shadow IT detection analyzes firewall and proxy logs to find cloud apps that nobody approved, and rates the risk of each one. Then the team can approve the safe ones, offer an alternative, or block the risky ones.

Pipelines and infrastructure as code

In the cloud, infrastructure is code, so the CI/CD pipeline becomes a security boundary: protect its credentials, require reviews, and scan every change before it deploys. Terraform describes infrastructure in declarative files, and a plan shows every change before it is applied, which makes misconfigurations visible and reviewable. Its state file holds every resource it manages, including secret values, even when they are marked sensitive, so keep state in an encrypted remote backend with tight access, never in a code repository. Ansible configures servers without agents, over SSH, with YAML playbooks, so the same hardened settings are applied the same way every time, and its vault feature encrypts secrets. Package monitoring watches the packages a build pulls in, for new vulnerabilities, look-alike names, and malicious updates, so pin versions, and pull from a trusted internal mirror.

Containers and orchestration

Container security starts with the image: a minimal base image, scanned for vulnerabilities, signed, and free of secrets. At runtime, containers should not run as root, should use a file system that nobody can write to, where possible, and should get only the capabilities they need. Orchestration, usually Kubernetes, adds its own controls: role-based access to the API server, network policies that limit traffic between pods, and admission control that rejects images or settings that break policy. By default, pods accept traffic from any other pod, and secrets are stored unencrypted in the cluster's data store, unless encryption at rest is configured. So turn on encryption at rest, write network policies, and keep the control plane private.

Serverless

With serverless, the provider runs the servers, the operating system, and the scaling, so the customer secures the code, its permissions, and its inputs. Each function should have its own execution role, with only the permissions it needs, because a function with broad rights becomes a powerful foothold. Functions are triggered by events, like a file upload or a queue message, so validate every input, because event data can carry injection attacks too. Resources need limits as well: timeouts, memory, and concurrency caps keep a flood of events from running up costs, or starving other functions. And serverless fits short, event-driven workloads, like processing instrument files as they arrive, better than long-running jobs.

Recap

Let's recap. The provider secures the cloud, the customer secures what is in it, and data, identities, and access always stay with the customer. An API-based CASB scans approved apps after the fact, a proxy-based CASB blocks inline, and shadow IT detection finds unapproved apps. Pipelines are a security boundary, Terraform state holds secrets, Ansible applies settings consistently, and packages need monitoring. Containers need minimal, signed images and no root, and Kubernetes needs RBAC, network policies, and encrypted secrets. And serverless functions need their own roles, validated inputs, and resource limits.

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. Thornbury wants to stop users on managed laptops from uploading restricted files to unapproved cloud storage, as it happens. Which option fits?

    • An API-based CASB
    • Shadow IT discovery reports
    • A proxy-based CASB
    • The provider’s responsibility matrix
    Show the answer

    A proxy-based CASB

    A proxy-based CASB sits inline, so it can block the upload in real time. “An API-based CASB” only works through the APIs of approved applications, and acts after the fact. “Shadow IT discovery reports” only finds unapproved apps, without blocking anything. And “The provider’s responsibility matrix” is documentation about who secures what.

  2. A Terraform state file for the trial environment was found in a public code repository. It contains a database password, marked sensitive. What should the team do?

    • Rotate the password, and move state to an encrypted backend
    • Nothing: sensitive values are masked
    • Delete the repository’s latest commit
    • Add Ansible Vault to the repository
    Show the answer

    Rotate the password, and move state to an encrypted backend

    The password is exposed, so rotate it, and keep state in an encrypted remote backend from now on. “Nothing: sensitive values are masked” is wrong, because sensitive values are only hidden in the output, and are still stored in the state. “Delete the repository’s latest commit” would leave the password in the history, and in any copy already made. And “Add Ansible Vault to the repository” is a feature of a different tool, which does not protect Terraform state.

  3. Thornbury’s file-processing functions all share one execution role, with full access to every storage bucket. What should the architect change?

    • Add more memory to each function
    • Move the functions into containers
    • Turn off logging for the functions
    • One role per function, with only the access it needs
    Show the answer

    One role per function, with only the access it needs

    One role per function, with only the access it needs, limits what an attacker gets from a compromised function. “Add more memory to each function” only changes performance, not permissions. “Move the functions into containers” would move the same broad role into containers. And “Turn off logging for the functions” would hide attacks, without reducing any access.