CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
  • Week 1
    • 1.AWS Infrastructure Through an Operator's Eyes: Regions, AZs, and the Boundary of Responsibility
    • 2.IAM Operator's Manual: Users, Groups, Roles, Policy Evaluation Algorithm
    • 3.Advanced IAM: Building Guardrails with Permission Boundary, SCP, and Identity Center
    • 4.AWS Organizations: How One Person Operates 100 Accounts
    • 5.Week 1 Consolidated Review: Revisiting the First Week Through Operator Scenarios
  • Week 2
  • Week 3
  • Week 4
  • Week 5
    • 1.AWS Systems Manager: The Operator's Central Control Tower
    • 2.Run Command, State Manager, Maintenance Window: The Operations Automation Trio
    • 3.Patch Manager: Applying Security Patches Safely and Compliantly
    • 4.Parameter Store, Session Manager, Automation Runbook: SSM Advanced Automation
    • 5.Week 5 Review: Systems Manager Comprehensive Scenario
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
  • Week 12
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← SOA-C02/Week 5/Day 5

Based on the SOA-C02 exam guide·Report an error

SOA-C02· AssociateWeek 5 · Day 5~43 min read

Day 5 - Week 5 Review: Systems Manager Comprehensive Scenario

Week 5 covered the entire massive AWS Systems Manager operational platform. From Managed Instance registration conditions to command automation (Run Command), state management (State Manager), scheduled tasks (Maintenance Window), patch automation (Patch Manager), configuration centralization (Parameter Store), keyless access (Session Manager), and complex operational workflows (Automation Runbook). All these tools converge on one goal: enable operators to escape from repetitive and risky manual work and focus on what matters.

Today we review the entire Week 5 using real-world scenario formats from exams. Each question doesn't simply ask "what is this tool" but trains logical reasoning about "why this tool." SOA-C02 often has all four choices as SSM tools, making precise role distinction a pass/fail factor.

One-Line Core Concept Summary

  1. Managed Instance 3 requirements: SSM Agent running + IAM Role(AmazonSSMManagedInstanceCore) + network reachability
  2. Private VPC 3 required Endpoints: ssm / ssmmessages / ec2messages (all Interface, HTTPS 443)
  3. Hybrid Activations: On-premises/other clouds get mi-xxx ID same as EC2
  4. Run Command(one-time) / State Manager(persistent + drift correction) / Maintenance Window(scheduled + order guarantee) — role division
  5. Patch Group tag name = exactly "Patch Group" (with space, case-sensitive)
  6. AWS default baseline = Security/Critical only — Important and above needs Custom Baseline
  7. Dev(0 days) → Stage(3 days) → Prod(14 days) gradual apply = ApproveAfterDays difference
  8. Parameter Store SecureString = KMS encrypted — auto-rotation handled by Secrets Manager
  9. Session Manager = SSH/RDP without keys, port 22 closed, IAM-based, auto-audit sessions
  10. Automation Runbook = multi-step workflow — Config Auto Remediation, EventBridge trigger

💡 Related theory: SSM is a precise implementation of the "control plane vs. data plane" separation architecture used in distributed systems. The SSM API layer (registering commands, querying status) is the control plane; the SSM Agent (actually executing commands, sending heartbeats) is the data plane. A control plane failure (an SSM service issue) does not affect Agent tasks that are already running. This is exactly the "control plane / data plane separation" that AWS CTO Werner Vogels returns to in every re:Invent keynote — and SSM is a real-world implementation of it.

Comparison Table: Clarifying Confusing Concepts

Command Execution Tools Comparison:

CharacteristicRun CommandState ManagerMaintenance Window
ExecutionManual trigger (one-time)Schedule + auto on new instanceAuto at scheduled time
Drift CorrectionNoYesNo
Auto-include new instancesNoYes (tag-based)Tag-based
Multi-task order guaranteeNoNoYes (Priority)
Immediate execution possibleYesYes (start-associations-once)Manual trigger possible
Primary scenarioUrgent batch commandsMaintain config standardizationPatch/backup/maintenance

Secret Management Tools Comparison:

CharacteristicParameter Store StandardParameter Store AdvancedSecrets Manager
CostFree$0.05/parameter/month$0.40/secret/month
Max value size4KB8KB64KB
Auto-rotationNoNoYes (RDS/Redshift/Lambda)
Cross-region replicationNoNoYes
Parameter Policy (expiration/notification)NoYesNo
Version managementYesYesYes
CFn/Lambda/EC2 integrationYesYesYes

Access Method Comparison:

CharacteristicSSH + BastionSession ManagerEC2 Instance Connect
Port 22 neededYesNoYes
SSH key managementYes (key distribution)No (IAM-based)No (ephemeral key)
Auto session loggingRequires configYes (S3/CW Logs)No
Private VPC accessVPN/DX neededVPC EndpointVPC Endpoint
MFA enforcementDifficultEasy via IAM policyNo
Port forwardingYes (manual)Yes (document support)No

🔍 Going deeper: Session Manager's IAM-based access control goes beyond "who is allowed to connect" and makes fine-grained policies possible: "to which instances, at what time, running which commands only." For example, adding ssm:resourceTag/Environment=prod as a condition on ssm:startSession allows sessions only on instances tagged prod. The aws:MultiFactorAuthPresent: true condition lets you enforce MFA. That kind of granular control is very hard to achieve with traditional SSH keys. Combined with IAM Identity Center (SSO), you can even drive access control from a central directory.

Patch Manager Key Comparison:

ItemAWS Default BaselineCustom Baseline
Applied classificationsSecurity onlyConfigurable
Approval periodVaries by OS (usually 7 days)User-set
Compliance LevelNot configurableCRITICAL/HIGH/MEDIUM choice
Deny patchesNot configurableExplicit BLOCK possible
Multi-OSSeparate default per OSSeparate per OS needed

💡 Related theory: Patch Manager's "Approval Rules → Maintenance Window → Compliance" pipeline is a structure that automatically satisfies the ISO 27001 A.12.6.1 requirement (technical vulnerability management). In an ISO 27001 certification audit you can submit the Patch Compliance report directly as evidence that the vulnerability-patching process is automated. Control 7 of CIS Controls v8 (vulnerability management) follows the same idea. AWS Audit Manager's ISO 27001 and NIST 800-53 frameworks automatically collect Patch Manager data as evidence.

Collection of Common Patch Mistakes

Knowing repeated operational mistakes helps avoid exam trap questions.

MistakeSymptomCorrect Method
Create tag named PatchGroupPatch group not recognizedPatch Group (with space)
Create Baseline but don't link to Patch GroupDefault Baseline patches insteadregister-patch-baseline-for-patch-group required
Use NoReboot instead of RebootIfNeededInstalledPendingRebootCount accumulatesMaintenance Window includes reboot
Mix up Scan vs InstallCompliance updates without actual patchInstall applies actual patch
Think default Baseline includes ImportantSecurity audit findingsDefault Baseline = Security/Critical only
Think ApproveAfterDays=0 means instant applyUnderstanding error=0 means "approve immediately upon release"

⚠️ Pitfall: ApproveAfterDays=0 means "approved from the day the patch is released." So the next time Patch Manager runs, any patch that has already been released is applied immediately. If the Maintenance Window runs once a week, the patch lands up to 7 days after release. It does not mean "applied instantly in real time" — it means "on the next Maintenance Window run, apply every patch released on or after its release date."

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

The operations team manages EC2 instances with SSM in a private VPC (no internet gateway). The instance has the AmazonSSMManagedInstanceCore IAM role attached and the SSM Agent is running, but the instance does not appear in Fleet Manager in the SSM console. What is the cause?

Question 2

A company uses an Auto Scaling group to adjust web server capacity dynamically. Each time a new EC2 instance is launched by the ASG, the CloudWatch Agent configuration must be applied automatically. The operations team must not need to intervene. What is the most appropriate configuration?

Question 3

The company's patch policy is as follows: "For Web servers (Linux) in the prod environment, apply only Critical patches in the Security classification, and only those more than 14 days past release. Manage by Patch Group." What is the minimum set of configuration steps to implement this, in the correct order?

Question 4

The security team has presented the following requirements. "All EC2 connection sessions must be retained in an auditable form. All commands entered by the user must be logged. Port 22 is not allowed in security groups." What is a way for the operations team to implement these requirements while also meeting developers' access needs?

Question 5

An operator thinks a patch Task in a running Maintenance Window is likely to exceed the Window Duration. Cutoff is set to 1 hour. It is currently 30 minutes before the Window ends, and a request to run a new Task has arrived. What happens?

Question 6

A Lambda function needs a password to access Production RDS. Currently the plaintext password is stored in a Lambda environment variable. The security team has requested an improvement. The password must be changed automatically every 90 days, and the new password must be used without changing the Lambda code. What is the most appropriate solution?

Question 7

The operations team wants to detect a "public S3 bucket" with a Config rule and automatically block the bucket's public access immediately upon detection. Which SSM feature is most appropriate?

Question 8

During the transition of the installed Node.js version from 14.x to 18.x, the development team asked, "please pull a list of prod servers currently using 14.x." Which SSM feature can answer this most efficiently?

Question 9

A company manages 50 on-premises servers with SSM using Hybrid Activations. It wants to apply security patches to these servers weekly. Which Patch Manager features should it use, and what format is the SSM identifier of an on-premises server?

Question 10

A patch Task in a Maintenance Window failed. Concurrency is set to 10% and Error Tolerance to 5%, and 6% of instances failed. What happens?

Question 11

You want to send an automatic notification when the Parameter Store parameter /myapp/prod/db/password has not been changed for 90 days, and also have this parameter deleted automatically on January 1, 2027. What configuration is required?

Question 12

Which of the following is NOT a correct reason why Session Manager is better than the traditional SSH/Bastion approach?

Week 6 Preview

Week 6 focuses on IaC Operations, centered on CloudFormation.

  • Day 1: CloudFormation Fundamentals — Template structure, Stack lifecycle, cfn-signal
  • Day 2: Change Set, Drift Detection, Rollback Trigger — safe CFn operation patterns
  • Day 3: Nested Stack, Cross-Stack Reference, StackSets — large-scale multi-account IaC
  • Day 4: Service Catalog, AppConfig, AppRegistry — self-service provisioning
  • Day 5: Week 6 Review + 10 scenario questions

CloudFormation is the core of SOA-C02's "deployment, provisioning, automation" domain. Drift Detection, Change Set, StackSets appear frequently. If Week 5's SSM Automation is "instance-level automation," CloudFormation is "infrastructure-level automation." Combined, they form complete operational automation stack.

PreviousParameter Store, Session Manager, Automation Runbook: SSM Advanced AutomationWeek 5 · Day 4Next CloudFormation: Infrastructure as Code from the Operator's PerspectiveWeek 6 · Day 1

Official references

  • SOA-C02 official exam page(opens in a new tab)
  • AWS Systems Manager documentation(opens in a new tab)
  • Amazon EC2 documentation(opens in a new tab)
  • AWS Lambda documentation(opens in a new tab)
  • AWS IAM documentation(opens in a new tab)
  • Amazon S3 documentation(opens in a new tab)

On this page

  • One-Line Core Concept Summary
  • Comparison Table: Clarifying Confusing Concepts
  • Collection of Common Patch Mistakes
  • Scenario Practice Questions
  • Week 6 Preview