AWS CloudOps Engineer Associate Domain 3: Deployment, Provisioning, and Automation
44 free practice questions for Deployment, Provisioning, and Automation in the AWS Certified CloudOps Engineer – Associate (SOA-C03) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Deployment, Provisioning, and Automation practice questions
-
Question 1. A team wants a hardened AMI rebuilt and tested automatically each month with the latest patches. Which service fits?
Show answer
Answer: C. EC2 Image Builder with a scheduled pipeline
Image Builder pipelines apply build components, run tests, and distribute AMIs to Regions and accounts.
-
Question 2. Launch templates are preferred over launch configurations. Why?
Show answer
Answer: B. They support versions and newer features like mixed instances
Launch configurations are legacy. Launch templates support versioning, Spot mixes, and more options.
-
Question 3. An Auto Scaling group must replace all instances with a new launch template version gradually. What should be used?
Show answer
Answer: D. An instance refresh with a minimum healthy percentage
Instance refresh rolls through the group, can use checkpoints, and can roll back automatically.
-
Question 4. Which CloudFormation feature protects critical resources from being updated or replaced in a stack update?
Show answer
Answer: C. A stack policy
Stack policies deny update actions on specified resources unless temporarily overridden.
-
Question 5. A CloudFormation stack update failed and is stuck in UPDATE_ROLLBACK_FAILED. What can be done?
Show answer
Answer: B. Continue the update rollback, skipping stuck resources if needed
ContinueUpdateRollback retries the rollback, and resources can be skipped after being fixed manually.
-
Question 6. A stack must deploy the same infrastructure to 30 accounts in an AWS Organization automatically, including new accounts. What fits?
Show answer
Answer: A. StackSets with service-managed permissions and auto-deploy
Service-managed StackSets deploy to OUs and to new accounts added to them.
-
Question 7. Which CloudFormation feature imports existing resources, created manually, into a stack?
Show answer
Answer: B. Resource import
Import brings existing resources under stack management without recreating them.
-
Question 8. Parameters such as the latest Amazon Linux AMI ID should be resolved at deployment time. What can the template use?
Show answer
Answer: C. An SSM parameter type pointing to the public AMI path
AWS publishes AMI IDs in public Parameter Store paths, which CloudFormation parameters can reference.
-
Question 9. A CloudFormation template needs a secret password without storing it in the template. What should it use?
Show answer
Answer: D. A dynamic reference to Secrets Manager
Dynamic references like {{resolve:secretsmanager:...}} fetch the value at deploy time.
-
Question 10. Which Systems Manager capability patches OS packages on a fleet on a schedule, with approval rules?
Show answer
Answer: C. Patch Manager with patch baselines
Patch baselines define which patches are approved. Patch policies in Quick Setup apply them across accounts.
-
Question 11. How can a team see which instances are missing required patches?
Show answer
Answer: C. The Patch Manager compliance report
Compliance data shows instances that are compliant or missing patches against their baseline.
-
Question 12. Which Systems Manager capability collects installed software and configuration data from instances?
Show answer
Answer: A. Inventory
Inventory gathers applications, files, network settings, and more, which can be queried across accounts.
-
Question 13. A software agent must be installed on all instances and kept updated from one place. Which Systems Manager feature fits?
Show answer
Answer: A. Distributor
Distributor packages software and installs it through Run Command or State Manager.
-
Question 14. Every instance must always have the CloudWatch agent running, even new ones. Which Systems Manager feature enforces this?
Show answer
Answer: A. State Manager associations
State Manager applies a configuration on a schedule, bringing drifted or new instances back to the desired state.
-
Question 15. Instances don't appear as managed nodes in Systems Manager. What is a common cause?
Show answer
Answer: D. It lacks the SSM Agent or an instance profile for SSM
Nodes need the agent, IAM permissions such as AmazonSSMManagedInstanceCore, and a network path to Systems Manager.
-
Question 16. A change to production must be approved and scheduled through a process. Which Systems Manager capability fits?
Show answer
Answer: B. Change Manager with change templates
Change Manager handles approvals and runs Automation runbooks during allowed windows.
-
Question 17. Which Systems Manager feature blocks automation during a holiday freeze period?
Show answer
Answer: A. Change Calendar
Change Calendar marks times as open or closed, and Automation and Change Manager check it before running.
-
Question 18. An operator needs to run a multi-step procedure, such as creating an AMI and updating a launch template, in a repeatable way. What should be used?
Show answer
Answer: C. A Systems Manager Automation runbook
Automation runbooks chain AWS API calls, scripts, approvals, and branching into one repeatable process.
-
Question 19. Which service lets teams deploy approved products, such as a standard VPC, through a self-service portal?
Show answer
Answer: C. AWS Service Catalog
Service Catalog portfolios hold approved CloudFormation products with constraints and access control.
-
Question 20. A team runs containers on ECS with Fargate and needs a new task definition version rolled out with automatic rollback on failures. What fits?
Show answer
Answer: D. The ECS deployment circuit breaker with rollback
The circuit breaker detects failing deployments and rolls back to the last completed deployment.
-
Question 21. A Lambda function update should be rolled out with automatic rollback if alarms fire. What fits?
Show answer
Answer: C. CodeDeploy with a canary configuration on an alias
CodeDeploy shifts alias traffic gradually and rolls back when CloudWatch alarms go into alarm.
-
Question 22. Which AWS service provisions infrastructure from TypeScript or Python code and synthesizes CloudFormation?
Show answer
Answer: B. AWS CDK
CDK apps define constructs in code and deploy through CloudFormation.
-
Question 23. Which Terraform practice is recommended when a team manages AWS infrastructure with Terraform?
Show answer
Answer: D. Store state remotely, such as in S3 with locking
Remote state with locking avoids conflicts and loss. The S3 backend supports native locking.
-
Question 24. An EC2 instance must run a script only on its first boot to install packages. Where should the script go?
Show answer
Answer: A. User data
User data scripts run at first launch by default through cloud-init.
-
Question 25. A company must share an AMI with another AWS account. What must be done if the AMI is encrypted with a customer managed key?
Show answer
Answer: A. Share the AMI and grant the other account use of the KMS key
The target account needs permission on the key to launch instances from encrypted snapshots.
-
Question 26. An AMI must be available in three Regions for deployments. What should be done?
Show answer
Answer: B. Copy the AMI to each Region, e.g. with Image Builder
AMIs are regional, so each Region needs its own copy with its own ID.
-
Question 27. An Auto Scaling group should use Spot Instances for cost, but keep a base of On-Demand capacity. What should be configured?
Show answer
Answer: A. A mixed instances policy with an On-Demand base and Spot percentage
Mixed instances policies combine purchase options and several instance types across pools.
-
Question 28. Spot Instances in a group are interrupted often. What improves availability?
Show answer
Answer: A. Diversify instance types, with price-capacity-optimized
Diversifying across pools and choosing pools with spare capacity reduces interruptions.
-
Question 29. Which EC2 feature launches and replaces instances of many types to meet a target capacity, including Spot?
Show answer
Answer: D. EC2 Fleet
EC2 Fleet and Spot Fleet manage capacity across instance types, AZs, and purchase options.
-
Question 30. HPC instances need the lowest latency between them. Which placement group strategy fits?
Show answer
Answer: B. Cluster
Cluster placement groups pack instances close together in one AZ for low-latency networking.
-
Question 31. A small set of critical instances must be on separate hardware to reduce correlated failures. Which placement strategy fits?
Show answer
Answer: A. Spread
Spread placement puts each instance on distinct racks, with up to seven per AZ.
-
Question 32. A licensed application requires control over the physical server and its socket count. What should be used?
Show answer
Answer: A. EC2 Dedicated Hosts
Dedicated Hosts give visibility of sockets and cores for bring-your-own-license software.
-
Question 33. Which tool deploys containers to Amazon ECS and manages the related load balancer and networking with little configuration?
Show answer
Answer: B. ECS Express Mode or AWS Copilot
These higher-level tools create the service, load balancer, and networking from a simple definition.
-
Question 34. A resource created outside CloudFormation drifted from a template-managed configuration. What finds this?
Show answer
Answer: B. CloudFormation drift detection
Drift detection compares actual resource properties with the template's expected values.
-
Question 35. A deployment must pause until a Lambda function checks the new version's health. Which CloudFormation-driven feature can wait for this?
Show answer
Answer: C. A custom resource or a wait condition
Custom resources and wait conditions let external logic report success or failure to the stack.
-
Question 36. An operator must bulk-tag thousands of existing resources across services. Which tool helps?
Show answer
Answer: C. Tag Editor in AWS Resource Groups
Tag Editor finds resources across Regions and adds or changes tags in bulk.
-
Question 37. Which feature makes tags required and consistent across an AWS Organization?
Show answer
Answer: B. Tag policies in AWS Organizations
Tag policies standardize tag keys and values, and SCPs or Config rules can enforce presence.
-
Question 38. Instances launched from an old AMI must be replaced with a patched AMI without downtime. What should be done?
Show answer
Answer: C. Update the launch template and run an instance refresh
Instance refresh rolls out the new AMI while keeping enough healthy capacity.
-
Question 39. A company wants new accounts to start with baseline guardrails and logging. Which service automates account setup?
Show answer
Answer: B. AWS Control Tower Account Factory
Control Tower sets up a landing zone with guardrails, and Account Factory provisions accounts consistently.
-
Question 40. Which service shows aggregated operations data, such as patch compliance and OpsItems, across accounts and Regions?
Show answer
Answer: C. Systems Manager Explorer
Explorer gives a customizable dashboard of operational data from Systems Manager and other sources.
-
Question 41. An operator needs to run the same CLI script safely against many accounts. What is a good practice?
Show answer
Answer: C. Assume a role in each account from a central account
Cross-account roles give short-lived credentials and central control.
-
Question 42. Which Elastic Beanstalk feature applies managed platform updates, such as patches, during a maintenance window?
Show answer
Answer: B. Managed platform updates
Beanstalk can apply minor and patch platform updates automatically during a weekly window.
-
Question 43. A container image must be scanned for vulnerabilities when pushed to ECR. What should be enabled?
Show answer
Answer: D. ECR enhanced scanning with Amazon Inspector
Enhanced scanning finds OS and programming language vulnerabilities continuously.
-
Question 44. An ECR repository keeps thousands of old images, raising storage cost. What should be configured?
Show answer
Answer: D. An ECR lifecycle policy that expires old images
Lifecycle policies remove images by age or count, such as keeping only the last 20 tags.
AWS, Amazon Web Services, and AWS Certified are trademarks of Amazon.com, Inc. or its affiliates. These questions are original study material, not questions from the real exam.