Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Vulnerabilities and patching

SCS-C03 · Lesson 10 of 22 · 1:24:49

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 SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: Amazon Inspector continuous scanning of EC2, ECR images, and Lambda, hybrid scanning and the Inspector score, GuardDuty Runtime Monitoring, Systems Manager Patch Manager with patch baselines, patch policies, and maintenance windows, and security in the pipeline with Inspector code security and Amazon Q Developer. Includes three original practice questions.

Study notes

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

Known holes

Most break-ins do not need a new attack: they use a vulnerability that was published months ago, on a server that was never patched. AnyCompany Health runs instances, containers, and Lambda functions, and new code ships every day. This lesson covers vulnerability scanning, runtime monitoring, patching, and security tools in the delivery pipeline.

Scanning with Amazon Inspector

Amazon Inspector discovers and scans EC2 instances, container images in Amazon ECR, and Lambda functions, continuously, and it scans again when something changes, such as a new package or a newly published vulnerability. For EC2, hybrid scanning uses the Systems Manager agent where it runs, and EBS snapshots where it does not, with no agent at all. For Lambda, standard scanning checks the dependencies of functions and layers, and code scanning also checks your own code. Each finding gets an Inspector score, which starts from the CVSS score and adjusts it to your environment, for example lower when no open network path from the internet leads to the instance.

Runtime threats

Scanning finds known weaknesses, but it does not see an attack in progress. GuardDuty Runtime Monitoring uses a security agent to watch operating system, network, and file events on EKS, on ECS including Fargate, and on EC2, and it raises findings when a workload behaves like an attacker. GuardDuty can install the agent and keep it current for you, and in an organization, the delegated administrator turns the plan on for the member accounts.

Patching at scale

Patch Manager, a tool of Systems Manager, patches managed nodes against a patch baseline, which lists the approved patches, for example security patches approved automatically seven days after their release. By default, Patch Manager focuses on security updates rather than every available patch. A patch policy in Quick Setup sets patching for all the accounts and Regions of the organization at once, while a maintenance window runs a Scan or Install task at a time that suits the business, such as Sunday night for the clinician portal. A Scan operation only reports the missing patches, which feeds patch compliance, while Install applies them and can reboot the node. Then validate continuously: Inspector scans each node again after the change, so the finding is marked closed only when the vulnerable package is really gone.

Security in the pipeline

The cheapest place to fix a vulnerability is before it ships, so add security tools to the delivery pipeline. Amazon Inspector Code Security scans your repositories: your own source code, third-party dependencies, and infrastructure as code, with a scan configuration that sets how often each repository is scanned. In the IDE, Amazon Q Developer reviews code for security vulnerabilities, hard-coded secrets, infrastructure as code issues, and vulnerable dependencies, even while the developer types. The exam guide also names Amazon CodeGuru Security, but AWS discontinued it in November 2025. Make the pipeline stop on critical findings, and send the others to the backlog, each with an owner and a due date.

Recap

Let's recap. Inspector scans EC2, ECR images, and Lambda continuously, with hybrid scanning and a score adjusted to your environment. GuardDuty Runtime Monitoring watches the workloads that run. Patch Manager uses patch baselines, patch policies, and maintenance windows, and Inspector confirms the fix. And Inspector Code Security and Amazon Q Developer find flaws before the code ships.

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. AnyCompany Health wants to know when a Lambda function uses a vulnerable library, and when its own code has a flaw, such as an injection, with continuous scans and no agent. What should the security engineer turn on?

    • GuardDuty Runtime Monitoring for Lambda
    • Amazon Macie on the deployment bucket
    • Security Hub CSPM controls for Lambda
    • Inspector standard and code scanning
    Show the answer

    Inspector standard and code scanning

    Lambda standard scanning checks the dependencies of functions and layers, and code scanning adds the custom code of the functions. “GuardDuty Runtime Monitoring for Lambda” is for EKS, ECS, and EC2, not for Lambda. “Amazon Macie on the deployment bucket” is for sensitive data in S3. And “Security Hub CSPM controls for Lambda” would check the configuration of the functions, not their libraries or their code.

  2. The security team must patch every Linux instance in all accounts and Regions, with security updates approved automatically seven days after release, without building the setup in each account. What should they use?

    • An Image Builder pipeline in each account
    • A patch policy in Quick Setup
    • Amazon Inspector with its findings
    • A custom Lambda function in each Region
    Show the answer

    A patch policy in Quick Setup

    One patch policy in Quick Setup applies a patch baseline and a schedule to all the accounts and Regions of the organization. “An Image Builder pipeline in each account” would build new images, without patching the instances that already run. “Amazon Inspector with its findings” would find the missing patches, but Inspector does not install them. And “A custom Lambda function in each Region” would mean writing and running custom code in every Region.

  3. Developers commit application code and infrastructure as code every day. The security team wants vulnerabilities in the code, in third-party dependencies, and in the infrastructure templates found before deployment. What should they use?

    • Amazon Inspector Code Security
    • Amazon CodeGuru Security
    • GuardDuty Runtime Monitoring
    • AWS Config conformance packs
    Show the answer

    Amazon Inspector Code Security

    Inspector Code Security scans first-party code, dependencies, and infrastructure as code in the repositories. “Amazon CodeGuru Security” was discontinued in November 2025. “GuardDuty Runtime Monitoring” would watch workloads that already run, after deployment. And “AWS Config conformance packs” would check deployed resources, not the code.