AWS Certified SysOps Administrator - Associate (SOA-C02) · AWS

Deployment, Provisioning, and Automation

12 practice questions covering 18% of the official AWS Certified SysOps Administrator - Associate (SOA-C02) blueprint. Every item includes a worked explanation of the correct answer.

View all 6 domains in AWS Certified SysOps Administrator - Associate (SOA-C02)

Syllabus Coverage & Domain Overview

This topic covers how a SysOps administrator builds and maintains AWS resources in a repeatable way instead of by hand. The official outline splits it into two task statements. The first is provisioning and maintaining resources: creating and managing machine images (for example with EC2 Image Builder), creating, managing and troubleshooting CloudFormation stacks, provisioning across several Regions and accounts, and choosing a suitable deployment approach such as blue/green, rolling or canary. The second is automating repeatable processes: using services such as Systems Manager and CloudFormation to automate deployments, applying patches automatically, and scheduling tasks with services such as EventBridge and AWS Config. Together this domain makes up 18% of the exam. Note that AWS has since introduced a successor exam, so check which version you are sitting.

The distinctions that matter are mostly about scope and mechanism. A CloudFormation stack belongs to one account and Region, so reaching many accounts or Regions calls for StackSets, with the right cross-account roles in place, or for sharing resources through Resource Access Manager. You should know how templates, parameters, change sets, update behaviour and rollback work, and why a stack ends up in a failed or rolled-back state. Common causes include missing permissions, resources that cannot be created in the target environment, and a signal that never arrives when a creation policy is waiting for one. You should also know the difference between baking configuration into an image and applying it at launch, and how the main deployment strategies trade speed, cost, risk and rollback effort. On the Systems Manager side, learn which capability fits which job: running commands, opening shell access without inbound ports, patching against a baseline in a maintenance window, and keeping instances in a desired state.

Questions are usually short scenarios with one operational requirement and several plausible services. A typical stem asks for the solution with the least operational overhead, or for a fix that does not interrupt production. The traps are choosing a manual or custom-scripted answer when a managed feature exists, confusing similar tools (a one-off command versus a recurring association, a scheduled rule versus a compliance check), and overlooking scope, such as a single-Region stack when the requirement spans accounts. Another frequent trap is changing resources outside CloudFormation and then expecting later stack updates to behave predictably, so watch for hints that someone modified a resource by hand. Read the error message or stack status in a troubleshooting question closely, because it often points directly to the cause.

To prepare, build small things yourself. Write a template with parameters and a creation policy, deliberately break it and read the stack events, then deploy it to a second Region. Set up a managed instance with no open inbound ports, connect through Session Manager, and run a patch baseline inside a maintenance window. Practise explaining in one sentence when you would use each deployment strategy and each automation service. Finish by working through scenario questions and, for every wrong option, stating why it fails the stated requirement.

In the official AWS Certified SysOps Administrator - Associate (SOA-C02) examination blueprint, Deployment, Provisioning, and Automation carries a weightage of 18%. Out of the total examination duration of 3 hr, candidates should budget approximately 32 min for questions from this domain to maintain pace across the paper.

How to Master Deployment, Provisioning, and Automation for AWS Certified SysOps Administrator - Associate (SOA-C02)

Our 12 published questions in Deployment, Provisioning, and Automation are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the medium difficulty level of the AWS exam:

  • Targeted Topic Drills: Launch Topic Practice mode to work exclusively through Deployment, Provisioning, and Automation items and review the step-by-step derivation after each submission.
  • Negative Marking Discipline: The AWS Certified SysOps Administrator - Associate (SOA-C02) applies no negative marking penalty, so practice eliminating the three distractors systematically on every Deployment, Provisioning, and Automation item.
  • Benchmark Target: Aim for at least 72% accuracy in Deployment, Provisioning, and Automation drills before moving to full-paper simulations.

Deployment, Provisioning, and Automation worked examples

Deployment, Provisioning, and Automation questions from the AWS Certified SysOps Administrator - Associate (SOA-C02) syllabus, answered in full. Try each one before opening the explanation.

  1. Example 1 · Deployment, Provisioning, and Automation · medium

    A SysOps administrator manages 200 Amazon EC2 instances running Amazon Linux 2023 and Windows Server 2022. Corporate policy requires that: (1) only Critical and Important security patches approved at least 7 days ago be installed, (2) patching must occur only on Sundays between 02:00 and 04:00 UTC, and (3) at most 10% of instances may be rebooted concurrently, halting immediately if more than 2 instances fail patching. How should AWS Systems Manager Patch Manager be configured?

    • AEnable EC2 Auto-Recovery and set the EBS snapshot lifecycle policy to 7 days
    • BUse AWS Config s3-bucket-public-read-prohibited with an EventBridge rate of 7 days
    • CCreate an SSM Patch Baseline (7-day approval delay) and Maintenance Window (10% concurrency)
    • DRun yum update -y inside UserData without rebooting or scheduling maintenance windows
    Show answer and explanation

    Correct answer: C. Create an SSM Patch Baseline (7-day approval delay) and Maintenance Window (10% concurrency)

    Why

    In AWS Systems Manager Patch Manager, you define a custom Patch Baseline with an Auto-approval delay of 7 days for Critical/Important security classifications, register the targets in an SSM Maintenance Window (cron(0 0 2 ? * SUN *)), and run the AWS-RunPatchBaseline task with MaxConcurrency = 10% and MaxErrors = 2.

    • A. Enable EC2 Auto-Recovery and set the EBS snapshot lifecycle policy to 7 days — EC2 Auto-Recovery and EBS snapshots do not patch guest OS packages or enforce maintenance concurrency.
    • B. Use AWS Config s3-bucket-public-read-prohibited with an EventBridge rate of 7 days — AWS Config audits resource compliance and does not manage OS patch auto-approval delays.
    • D. Run yum update -y inside UserData without rebooting or scheduling maintenance windows — UserData runs only at initial instance launch by default, not on recurring Sunday maintenance windows.
  2. Example 2 · Deployment, Provisioning, and Automation · hard

    A SysOps administrator deploys an AWS CloudFormation stack containing an EC2 instance with a CreationPolicy (ResourceSignal: Count: 1, Timeout: PT10M). The EC2 instance's UserData script installs Nginx and runs /opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackName} --resource WebServerInstance --region ${AWS::Region}. However, the instance is launched inside a private subnet with no NAT Gateway and no VPC Endpoints, and the stack rolls back after 10 minutes with Failed to receive 1 resource signal(s) within the specified duration. Why did cfn-signal fail, and how can it be fixed without adding public internet access?

    • AAttach an S3 Gateway VPC Endpoint (pl-xxxx) to the private subnet route table for cfn-signal
    • BIncrease the EC2 root EBS volume from 8 GiB to 100 GiB in BlockDeviceMappings
    • CReplace cfn-signal with cfn-hup daemon polling over UDP 53
    • DCreate an Interface VPC Endpoint for CloudFormation (com.amazonaws.<region>.cloudformation)
    Show answer and explanation

    Correct answer: D. Create an Interface VPC Endpoint for CloudFormation (com.amazonaws.<region>.cloudformation)

    Why

    cfn-signal makes an HTTPS API call to the regional AWS CloudFormation service endpoint (cloudformation.<region>.amazonaws.com). In a private subnet with no NAT Gateway, that outbound HTTPS request times out unless you create an Interface VPC Endpoint (AWS PrivateLink) for AWS CloudFormation (com.amazonaws.<region>.cloudformation) with Private DNS enabled and a Security Group allowing inbound TCP 443 from the VPC CIDR.

    • A. Attach an S3 Gateway VPC Endpoint (pl-xxxx) to the private subnet route table for cfn-signal — cfn-signal calls the CloudFormation API (com.amazonaws.<region>.cloudformation), not Amazon S3.
    • B. Increase the EC2 root EBS volume from 8 GiB to 100 GiB in BlockDeviceMappings — Disk capacity does not provide network connectivity to the regional CloudFormation API endpoint.
    • C. Replace cfn-signal with cfn-hup daemon polling over UDP 53 — cfn-hup also requires HTTPS connectivity to CloudFormation and does not satisfy initial CreationPolicy signals over DNS.
  3. Example 3 · Deployment, Provisioning, and Automation · medium

    A security audit requires removing all inbound SSH (TCP 22) and RDP (TCP 3389) rules from every Amazon EC2 Security Group, deleting all EC2 key pairs, and terminating all public bastion hosts across the account. Administrators still need interactive browser/CLI shell access to private EC2 instances, with every shell command logged to Amazon CloudWatch Logs and an encrypted Amazon S3 bucket. Which AWS service meets these requirements?

    • AAWS Direct Connect public VIF with BGP tags for port 22
    • BAWS Systems Manager Session Manager using the SSM Agent and IAM instance profile
    • CAWS CloudFormation Drift Detection scheduled via an EventBridge cron expression rule
    • DAmazon Inspector Network Reachability assessment templates over port 22 (SSH)
    Show answer and explanation

    Correct answer: B. AWS Systems Manager Session Manager using the SSM Agent and IAM instance profile

    Why

    AWS Systems Manager Session Manager provides interactive browser and AWS CLI shell access (and port forwarding) to EC2 instances via the outbound HTTPS (TCP 443) SSM Agent channel (ssmmessages / ssm endpoints) — requiring zero inbound Security Group ports, zero SSH keys, and zero bastion hosts — while natively streaming full session audit logs to CloudWatch Logs and Amazon S3.

    • A. AWS Direct Connect public VIF with BGP tags for port 22 — Direct Connect still relies on network-layer SSH/RDP ports if Session Manager is not used.
    • C. AWS CloudFormation Drift Detection scheduled via an EventBridge cron expression rule — Drift Detection compares stack templates against live resource properties and does not provide interactive OS shells.
    • D. Amazon Inspector Network Reachability assessment templates over port 22 (SSH) — Amazon Inspector scans for vulnerabilities and unintended open ports; it does not provide interactive shell sessions.
  4. Example 4 · Deployment, Provisioning, and Automation · medium

    An enterprise manages 85 AWS accounts organized into 4 Organizational Units (OUs) in AWS Organizations. Whenever a new AWS account is created or moved into the Production-OU, a baseline AWS CloudFormation template (creating an IAM support role, AWS Config recorder, and GuardDuty detector) must be automatically deployed to that account across us-east-1 and eu-west-1, and automatically removed if the account leaves the OU. Which CloudFormation feature accomplishes this?

    • ACloudFormation Change Sets executed manually in each of the 85 accounts
    • BCloudFormation StackSets with Service-Managed Permissions targeting the Organization OUs
    • CCloudFormation Fn::ImportValue intrinsic functions exporting across all 85 member accounts
    • DCloudFormation Custom Resources backed by a local bash script
    Show answer and explanation

    Correct answer: B. CloudFormation StackSets with Service-Managed Permissions targeting the Organization OUs

    Why

    CloudFormation StackSets with service-managed permissions is the feature built for this scenario. When you enable trusted access between CloudFormation StackSets and AWS Organizations, StackSets creates the required IAM roles in target accounts for you. You then deploy the template to an organization or to specific OUs and choose multiple Regions, here us-east-1 and eu-west-1. Turning on automatic deployment makes StackSets create stack instances in any account that is created in or moved into the target OU, and it can remove those instances when the account leaves the OU, provided the retain-stacks setting is off. That matches the requirement for hands-off baseline deployment of an IAM role, Config recorder and GuardDuty detector across 85 accounts. The common trap is picking a feature that sounds like multi-account deployment but is scoped to one stack, or forgetting that self-managed StackSets require manual role setup and do not offer automatic deployment by OU.

    • A. CloudFormation Change Sets executed manually in each of the 85 accounts — Change sets are a preview of the modifications an update would make to a single stack in one account and Region. Executing them manually in 85 accounts is not automated and gives no OU-membership-driven deployment or removal.
    • C. CloudFormation Fn::ImportValue intrinsic functions exporting across all 85 member accounts — Fn::ImportValue lets one stack consume an output exported by another stack, and only within the same account and Region. It is a cross-stack reference mechanism, not a way to deploy templates to other accounts.
    • D. CloudFormation Custom Resources backed by a local bash script — A custom resource lets a stack run custom provisioning logic, usually through Lambda or SNS, and a local bash script is not a managed option. It has no integration with Organizations OU membership, so it cannot deploy to or remove baselines from accounts automatically.
  5. Example 5 · Deployment, Provisioning, and Automation · medium

    A SysOps administrator wants to ensure that every EC2 instance tagged Role = WebServer has the httpd service installed, running, and configured with a baseline /etc/httpd/conf/httpd.conf file, and that every 30 minutes AWS automatically checks those instances and re-applies the configuration if someone stops httpd or edits the config file. Which AWS Systems Manager capability continuously enforces desired-state configuration on a recurring schedule?

    • AAWS Systems Manager Parameter Store Standard tier storing a string parameter
    • BAWS Systems Manager State Manager association targeting tag:Role=WebServer every 30m
    • CAWS CloudFormation DeletionPolicy: Snapshot on the EC2 AWS::EC2::Instance resource
    • DAmazon EC2 Placement Groups configured in Cluster mode within a single Availability Zone
    Show answer and explanation

    Correct answer: B. AWS Systems Manager State Manager association targeting tag:Role=WebServer every 30m

    Why

    AWS Systems Manager State Manager is a desired-state configuration processor that associates an SSM document (such as AWS-RunShellScript, AWS-ApplyAnsiblePlaybooks, or AWS-RunPowerShellScript) with target instances (by tag or resource group) on a recurring schedule (e.g., every 30 minutes) to remediate configuration drift on the guest OS.

    • A. AWS Systems Manager Parameter Store Standard tier storing a string parameter — Parameter Store holds configuration values, but does not execute scheduled desired-state enforcement on EC2.
    • C. AWS CloudFormation DeletionPolicy: Snapshot on the EC2 AWS::EC2::Instance resource — DeletionPolicy only runs when a CloudFormation stack resource is deleted.
    • D. Amazon EC2 Placement Groups configured in Cluster mode within a single Availability Zone — Placement Groups control physical host proximity for low-latency networking, not guest OS service state.
  6. Example 6 · Deployment, Provisioning, and Automation · medium

    A production VPC Security Group and an Amazon S3 bucket were originally provisioned by an AWS CloudFormation stack (Prod-Core-Stack). Two weeks later, an on-call engineer manually added an emergency inbound rule (TCP 8080 from 203.0.113.5/32) to the Security Group in the AWS Management Console. Before running the next stack update, how can the SysOps administrator identify all resources in Prod-Core-Stack whose live configuration diverges from the CloudFormation template?

    • ARun aws cloudformation validate-template against the local YAML file in Git
    • BEnable TerminationProtection on Prod-Core-Stack in the CloudFormation console
    • CAdd a DeletionPolicy: Retain attribute to the Security Group
    • DRun CloudFormation Drift Detection (DetectStackDrift) on Prod-Core-Stack
    Show answer and explanation

    Correct answer: D. Run CloudFormation Drift Detection (DetectStackDrift) on Prod-Core-Stack

    Why

    AWS CloudFormation Drift Detection (DetectStackDrift / DetectStackResourceDrift) compares the current live state of stack resources against the expected property values defined in the stack's CloudFormation template and reports resources as MODIFIED (DRIFTED), DELETED, or IN_SYNC.

    • A. Run aws cloudformation validate-template against the local YAML file in Git — validate-template only checks YAML/JSON syntax locally; it never inspects live deployed AWS resources.
    • B. Enable TerminationProtection on Prod-Core-Stack in the CloudFormation console — Stack Termination Protection prevents accidental DeleteStack calls, not out-of-band console edits.
    • C. Add a DeletionPolicy: Retain attribute to the Security Group — DeletionPolicy: Retain controls behavior when a resource is deleted, not drift auditing.

Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.

All 6 Deployment, Provisioning, and Automation questions with answers

All Syllabus Domains in AWS Certified SysOps Administrator - Associate (SOA-C02)

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.