Courseiva
Threat Detection and Incident ResponsehardMultiple ChoiceObjective-mapped

SCS-C02 Threat Detection and Incident Response Practice Question

A financial services company uses a multi-account AWS organization with a centralized security account. The security team has enabled Amazon GuardDuty in all accounts and configured it to send findings to the security account via AWS Organizations. The team also uses AWS Security Hub in the security account to aggregate findings. They have set up automated response using AWS Systems Manager Automation documents to isolate compromised EC2 instances by applying a security group that denies all traffic. However, during a recent incident, the automation failed because the Systems Automation document did not have permission to modify the security group in the member account. The security team needs to design a solution that allows the security account to automatically isolate instances in any member account. What should they do?

⚠ Common exam trap

Many exam-takers assume a single IAM role in the security account can be granted permissions across all member accounts via resource-based policies, but in reality, cross-account access requires a role in the target account that trusts the source account, not just permissions on the source role.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use AWS CloudFormation StackSets to deploy an IAM role in each member account with permissions to modify security groups. Then, in the security account, configure the Systems Manager Automation document to assume that role when running the isolation step.

It uses AWS CloudFormation StackSets to deploy an IAM role in each member account with the necessary permissions to modify security groups. The Systems Manager Automation document in the security account can then assume this role via a cross-account IAM role assumption, allowing it to isolate EC2 instances in any member account without requiring a single monolithic role or per-account Lambda functions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a Lambda function in each member account that is triggered by GuardDuty findings and modifies the security group.

    Why it's wrong here

    Deploying a Lambda function in every member account means you must replicate code, IAM roles, event sources, and error handling per account, which creates significant operational overhead and configuration drift. Any change to the isolation logic requires updating each function individually, and there is no central point of visibility to audit actions across the organization. StackSets with a cross-account role is far more scalable because the role is deployed consistently from a management account, while the automation logic remains centralized in Systems Manager.

  • Create a single IAM role in the security account that has permissions to modify security groups in all member accounts.

    Why it's wrong here

    An IAM role is an entity created in a single account, and its policies grant permissions only within that account's scope. Even if you attach a policy that lists security group ARNs from member accounts, the role cannot directly modify those resources because the member account's own IAM authorization does not recognize the security account as a trusted principal. Cross-account access requires the member account to create a separate role with a trust policy for the security account, which the automation then assumes via sts:AssumeRole.

  • Use AWS CloudFormation StackSets to deploy an IAM role in each member account with permissions to modify security groups. Then, in the security account, configure the Systems Manager Automation document to assume that role when running the isolation step.

    Why this is correct

    AWS CloudFormation StackSets deploys the same IAM role template to every member account, and the role is configured with a trust policy that allows the Systems Manager Automation execution role in the security account to assume it. The automation document uses the 'assumeRole' parameter in a step such as aws:executeScript to switch to that member account role, then runs the EC2 ModifySecurityGroup API against local resources. Because StackSets is integrated with AWS Organizations, the role is automatically provisioned when new accounts are added, centralizing governance while keeping permissions scoped per account.

  • Modify the IAM role used by Systems Manager Automation in the security account to include permissions to modify security groups in all member accounts.

    Why it's wrong here

    Modifying the automation role's IAM policy in the security account only affects permissions in the security account; AWS evaluates resource access in the account where the resource lives, so the member account denies the API call because the security account principal is not allowed there. To make this work, you would need to establish a trust relationship from each member account to the automation role and then have the role assume a target role—which is exactly the StackSets approach. Simply adding member-account resource ARNs to the policy does not create the required reverse trust.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 376 original SCS-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SCS-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C02 exam.