Based on the SOA-C02 exam guideReport an error
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.
AmazonSSMManagedInstanceCore) + network reachabilitymi-xxx ID same as EC2💡 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.
Command Execution Tools Comparison:
| Characteristic | Run Command | State Manager | Maintenance Window |
|---|---|---|---|
| Execution | Manual trigger (one-time) | Schedule + auto on new instance | Auto at scheduled time |
| Drift Correction | No | Yes | No |
| Auto-include new instances | No | Yes (tag-based) | Tag-based |
| Multi-task order guarantee | No | No | Yes (Priority) |
| Immediate execution possible | Yes | Yes (start-associations-once) | Manual trigger possible |
| Primary scenario | Urgent batch commands | Maintain config standardization | Patch/backup/maintenance |
Secret Management Tools Comparison:
| Characteristic | Parameter Store Standard | Parameter Store Advanced | Secrets Manager |
|---|---|---|---|
| Cost | Free | $0.05/parameter/month | $0.40/secret/month |
| Max value size | 4KB | 8KB | 64KB |
| Auto-rotation | No | No | Yes (RDS/Redshift/Lambda) |
| Cross-region replication | No | No | Yes |
| Parameter Policy (expiration/notification) | No | Yes | No |
| Version management | Yes | Yes | Yes |
| CFn/Lambda/EC2 integration | Yes | Yes | Yes |
Access Method Comparison:
| Characteristic | SSH + Bastion | Session Manager | EC2 Instance Connect |
|---|---|---|---|
| Port 22 needed | Yes | No | Yes |
| SSH key management | Yes (key distribution) | No (IAM-based) | No (ephemeral key) |
| Auto session logging | Requires config | Yes (S3/CW Logs) | No |
| Private VPC access | VPN/DX needed | VPC Endpoint | VPC Endpoint |
| MFA enforcement | Difficult | Easy via IAM policy | No |
| Port forwarding | Yes (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=prodas a condition onssm:startSessionallows sessions only on instances tagged prod. Theaws:MultiFactorAuthPresent: truecondition 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:
| Item | AWS Default Baseline | Custom Baseline |
|---|---|---|
| Applied classifications | Security only | Configurable |
| Approval period | Varies by OS (usually 7 days) | User-set |
| Compliance Level | Not configurable | CRITICAL/HIGH/MEDIUM choice |
| Deny patches | Not configurable | Explicit BLOCK possible |
| Multi-OS | Separate default per OS | Separate 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.
Knowing repeated operational mistakes helps avoid exam trap questions.
| Mistake | Symptom | Correct Method |
|---|---|---|
Create tag named PatchGroup | Patch group not recognized | Patch Group (with space) |
| Create Baseline but don't link to Patch Group | Default Baseline patches instead | register-patch-baseline-for-patch-group required |
Use NoReboot instead of RebootIfNeeded | InstalledPendingRebootCount accumulates | Maintenance Window includes reboot |
| Mix up Scan vs Install | Compliance updates without actual patch | Install applies actual patch |
| Think default Baseline includes Important | Security audit findings | Default Baseline = Security/Critical only |
Think ApproveAfterDays=0 means instant apply | Understanding error | =0 means "approve immediately upon release" |
⚠️ Pitfall:
ApproveAfterDays=0means "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."
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 focuses on IaC Operations, centered on CloudFormation.
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.