Question 1
A company uses AWS Systems Manager to keep EC2 instances configured. A specific agent must always be installed and running, and drift must be corrected within 30 minutes. Which feature fits BEST?
- A one-time Run Command invocation that installs the agent on all instances
- A State Manager association that applies the configuration every 30 minutes — Correct
- An Automation runbook that the team starts manually each morning
- A Patch Manager baseline that includes the agent as an approved patch
Correct answer
A State Manager association that applies the configuration every 30 minutes
Explanation
State Manager reapplies desired state on a schedule. One-time commands and manual runbooks do not correct drift. Patch baselines manage OS patches, not arbitrary agent state.
Question 2
A company manages hundreds of EC2 instances and wants to apply OS patches in a controlled way: test environments first, then production a week later, during maintenance windows. Which approach fits BEST?
- Ask each application owner to patch their own instances whenever convenient
- Patch Manager with patch groups, maintenance windows, and baselines with approval delays — Correct
- Enable automatic updates on every instance so that patches install as soon as they are released
- Create a new AMI every day and replace all instances, including production, at the same time
Correct answer
Patch Manager with patch groups, maintenance windows, and baselines with approval delays
Explanation
Patch groups and maintenance windows stage patching, and approval delays control timing. Automatic updates are uncontrolled. Daily full replacement is disruptive. Owner-driven patching is inconsistent.
Question 3
A company needs consistent golden AMIs with security hardening and the latest patches every month, tested before use, and distributed to multiple accounts and Regions. Which approach fits BEST?
- A developer launches an instance each month, patches it by hand, and creates an AMI
- An EC2 Image Builder pipeline with hardening, test components, and multi-account distribution — Correct
- A CloudFormation stack that creates an instance and an AMI, deployed manually in each Region
- An S3 bucket that stores ISO images that teams download and install themselves
Correct answer
An EC2 Image Builder pipeline with hardening, test components, and multi-account distribution
Explanation
Image Builder automates build, test, and distribution. Manual or per-Region processes are slow and inconsistent. ISO downloads are not AMIs.
Question 4
A company runs a fleet of Windows and Linux EC2 instances. It needs an inventory of installed software across all accounts to find instances running an outdated library. Which approach fits BEST?
- A spreadsheet that each team updates with its installed software every quarter
- AWS Config advanced queries on EC2 instance types and tags only
- Systems Manager Inventory with resource data sync to S3 — Correct
- Amazon Inspector network reachability findings for each instance
Correct answer
Systems Manager Inventory with resource data sync to S3
Explanation
Inventory collects software data, and resource data sync centralizes it for queries. Spreadsheets are stale. Config queries on types and tags do not list software. Network reachability is unrelated.
Question 5
A company needs consistent EC2 instance configuration across Regions and wants instances to self-heal configuration drift. Which approach fits BEST?
- Manual configuration of each instance after launch
- Weekly reboots of all instances in every Region
- One-time user data scripts with no further enforcement
- Systems Manager State Manager associations deployed in each Region — Correct
Correct answer
Systems Manager State Manager associations deployed in each Region
Explanation
State Manager reapplies configuration regularly in every Region. Manual setup and one-time scripts do not correct drift. Reboots do not fix configuration.
Question 6
A company must store application configuration that changes often, roll it out gradually to production with validation, and roll back automatically if errors increase. Which service fits BEST?
- An S3 object that applications download once every 24 hours
- AWS AppConfig with validators, a gradual deployment strategy, and alarm-based rollback — Correct
- Environment variables baked into each container image
- Systems Manager Parameter Store standard parameters read once at application startup
Correct answer
AWS AppConfig with validators, a gradual deployment strategy, and alarm-based rollback
Explanation
AppConfig supports validation, gradual rollout, and automatic rollback. Parameter Store, S3 objects, and environment variables do not provide gradual rollout and rollback.
Question 7
A company uses AWS Organizations and wants to delegate administration of CloudFormation StackSets to a DevOps account instead of the management account. Which feature fits BEST?
- Run StackSets only from member accounts with self-managed permissions
- Register the DevOps account as a delegated administrator for StackSets — Correct
- Create IAM users in the management account for each DevOps engineer
- Share the management account's root credentials with the DevOps team
Correct answer
Register the DevOps account as a delegated administrator for StackSets
Explanation
StackSets supports delegated administrators for service-managed deployments. Sharing root credentials or creating management account users is poor practice. Self-managed StackSets lack automatic deployment to OUs.
Question 8
A company deploys an application in a single Region and wants to protect against accidental deletion of its CloudFormation-managed S3 buckets and databases. Which configurations help? (Choose TWO.)
- Larger instance types for the databases
- Disabled CloudTrail logging to reduce noise
- DeletionPolicy Retain or Snapshot on critical resources — Correct
- Termination protection on production stacks — Correct
- Short TTLs on Route 53 records
Correct answer
DeletionPolicy Retain or Snapshot on critical resources; Termination protection on production stacks
Explanation
Deletion policies keep resources or snapshots, and termination protection blocks stack deletion. TTLs, instance sizes, and disabled logging do not protect resources.
Question 9
A team must use the latest Amazon Linux AMI in its CloudFormation templates in every Region without editing templates when AWS releases a new AMI. Which approach fits BEST?
- An AWS::SSM::Parameter::Value<AWS::EC2::Image::Id> parameter for the public AMI — Correct
- A custom resource that searches the AWS Marketplace for the newest AMI
- A Mappings section with AMI IDs for each Region that is updated by a script every month
- A hard-coded AMI ID in the template that is valid in all Regions
Correct answer
An AWS::SSM::Parameter::Value<AWS::EC2::Image::Id> parameter for the public AMI
Explanation
Public SSM parameters resolve to the latest AMI ID per Region. Mappings need updates. AMI IDs are Regional. A custom resource adds unnecessary code.
Question 10
A team wants to reduce the risk of configuration drift in Kubernetes deployments and keep a full history of changes. Which approach fits BEST?
- Kubernetes resources created through the console without version control
- GitOps with manifests in Git, reconciled by Argo CD or Flux — Correct
- Helm releases installed manually from engineers' laptops
- kubectl edit in production whenever a change is needed
Correct answer
GitOps with manifests in Git, reconciled by Argo CD or Flux
Explanation
GitOps keeps desired state and history in Git with automatic reconciliation. Manual edits and installs cause drift.