AWS CloudOps Engineer Associate · Domain 3 of 5 · 22% of the exam

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

  1. Question 1. A team wants a hardened AMI rebuilt and tested automatically each month with the latest patches. Which service fits?

    1. AWS Backup with a monthly plan
    2. Data Lifecycle Manager AMI policies only
    3. EC2 Image Builder with a scheduled pipeline
    4. AWS Config with a remediation action
    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.

  2. Question 2. Launch templates are preferred over launch configurations. Why?

    1. They are the only way to launch Amazon Linux instances
    2. They support versions and newer features like mixed instances
    3. They don't require an AMI ID to launch instances
    4. They automatically patch instances that are already running
    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.

  3. Question 3. An Auto Scaling group must replace all instances with a new launch template version gradually. What should be used?

    1. Deleting and recreating the group
    2. A scheduled action that sets desired capacity to zero
    3. A lifecycle hook on termination only
    4. An instance refresh with a minimum healthy percentage
    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.

  4. Question 4. Which CloudFormation feature protects critical resources from being updated or replaced in a stack update?

    1. A change set
    2. A DeletionPolicy of Snapshot
    3. A stack policy
    4. Drift detection
    Show answer

    Answer: C. A stack policy

    Stack policies deny update actions on specified resources unless temporarily overridden.

  5. Question 5. A CloudFormation stack update failed and is stuck in UPDATE_ROLLBACK_FAILED. What can be done?

    1. Delete the CloudFormation service role for the stack
    2. Continue the update rollback, skipping stuck resources if needed
    3. Create a new change set and execute it right away
    4. Run drift detection and then delete the whole stack
    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.

  6. Question 6. A stack must deploy the same infrastructure to 30 accounts in an AWS Organization automatically, including new accounts. What fits?

    1. StackSets with service-managed permissions and auto-deploy
    2. A nested stack created manually in each account
    3. A cross-stack reference from the management account
    4. A Service Catalog portfolio shared by hand to each account
    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.

  7. Question 7. Which CloudFormation feature imports existing resources, created manually, into a stack?

    1. Drift detection
    2. Resource import
    3. Stack policies
    4. Change set execution without resources
    Show answer

    Answer: B. Resource import

    Import brings existing resources under stack management without recreating them.

  8. Question 8. Parameters such as the latest Amazon Linux AMI ID should be resolved at deployment time. What can the template use?

    1. A hard-coded AMI ID in the template
    2. A Mappings entry that is updated monthly
    3. An SSM parameter type pointing to the public AMI path
    4. A custom resource that scans all EC2 images
    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.

  9. Question 9. A CloudFormation template needs a secret password without storing it in the template. What should it use?

    1. A NoEcho parameter default in the template
    2. A Mappings section with the password
    3. An Output that exports the password
    4. A dynamic reference to Secrets Manager
    Show answer

    Answer: D. A dynamic reference to Secrets Manager

    Dynamic references like {{resolve:secretsmanager:...}} fetch the value at deploy time.

  10. Question 10. Which Systems Manager capability patches OS packages on a fleet on a schedule, with approval rules?

    1. Parameter Store with patch versions
    2. Session Manager with a schedule
    3. Patch Manager with patch baselines
    4. AppConfig feature flags
    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.

  11. Question 11. How can a team see which instances are missing required patches?

    1. The CloudTrail event history
    2. The EC2 console's Monitoring tab
    3. The Patch Manager compliance report
    4. The Trusted Advisor cost checks
    Show answer

    Answer: C. The Patch Manager compliance report

    Compliance data shows instances that are compliant or missing patches against their baseline.

  12. Question 12. Which Systems Manager capability collects installed software and configuration data from instances?

    1. Inventory
    2. Distributor
    3. Change Manager
    4. Incident Manager
    Show answer

    Answer: A. Inventory

    Inventory gathers applications, files, network settings, and more, which can be queried across accounts.

  13. Question 13. A software agent must be installed on all instances and kept updated from one place. Which Systems Manager feature fits?

    1. Distributor
    2. Parameter Store
    3. OpsCenter
    4. Explorer
    Show answer

    Answer: A. Distributor

    Distributor packages software and installs it through Run Command or State Manager.

  14. Question 14. Every instance must always have the CloudWatch agent running, even new ones. Which Systems Manager feature enforces this?

    1. State Manager associations
    2. Maintenance Windows only
    3. Parameter Store versions
    4. Session Manager preferences
    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.

  15. Question 15. Instances don't appear as managed nodes in Systems Manager. What is a common cause?

    1. Detailed monitoring is disabled on the instance
    2. The instance's root volume type is gp3
    3. CloudTrail is not enabled in the account
    4. It lacks the SSM Agent or an instance profile for SSM
    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.

  16. Question 16. A change to production must be approved and scheduled through a process. Which Systems Manager capability fits?

    1. Run Command with a rate control
    2. Change Manager with change templates
    3. Parameter Store with versions
    4. Fleet Manager with a remote desktop
    Show answer

    Answer: B. Change Manager with change templates

    Change Manager handles approvals and runs Automation runbooks during allowed windows.

  17. Question 17. Which Systems Manager feature blocks automation during a holiday freeze period?

    1. Change Calendar
    2. Maintenance Windows
    3. Inventory
    4. Session Manager
    Show answer

    Answer: A. Change Calendar

    Change Calendar marks times as open or closed, and Automation and Change Manager check it before running.

  18. 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?

    1. A CloudWatch dashboard with alarm widgets
    2. An AWS Config rule with no remediation
    3. A Systems Manager Automation runbook
    4. A Trusted Advisor check with a refresh
    Show answer

    Answer: C. A Systems Manager Automation runbook

    Automation runbooks chain AWS API calls, scripts, approvals, and branching into one repeatable process.

  19. Question 19. Which service lets teams deploy approved products, such as a standard VPC, through a self-service portal?

    1. AWS Marketplace only
    2. AWS Artifact
    3. AWS Service Catalog
    4. AWS License Manager
    Show answer

    Answer: C. AWS Service Catalog

    Service Catalog portfolios hold approved CloudFormation products with constraints and access control.

  20. 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?

    1. A new cluster for each version
    2. Manual task stops and starts
    3. An ECS capacity provider with Spot only
    4. The ECS deployment circuit breaker with rollback
    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.

  21. Question 21. A Lambda function update should be rolled out with automatic rollback if alarms fire. What fits?

    1. Updating $LATEST directly in the console
    2. Setting reserved concurrency to zero first
    3. CodeDeploy with a canary configuration on an alias
    4. Publishing a second function with a new name
    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.

  22. Question 22. Which AWS service provisions infrastructure from TypeScript or Python code and synthesizes CloudFormation?

    1. AWS CLI only
    2. AWS CDK
    3. AWS Systems Manager Explorer
    4. AWS Elastic Beanstalk
    Show answer

    Answer: B. AWS CDK

    CDK apps define constructs in code and deploy through CloudFormation.

  23. Question 23. Which Terraform practice is recommended when a team manages AWS infrastructure with Terraform?

    1. Keep the state file on one laptop
    2. Edit the state file by hand after each change
    3. Commit state files with secrets to a public repo
    4. Store state remotely, such as in S3 with locking
    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.

  24. Question 24. An EC2 instance must run a script only on its first boot to install packages. Where should the script go?

    1. User data
    2. The instance's tags
    3. The security group description
    4. An IAM instance profile
    Show answer

    Answer: A. User data

    User data scripts run at first launch by default through cloud-init.

  25. 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?

    1. Share the AMI and grant the other account use of the KMS key
    2. Share only the AMI; the key is shared automatically
    3. Copy the AMI to S3 and make it public
    4. Change the AMI to unencrypted first
    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.

  26. Question 26. An AMI must be available in three Regions for deployments. What should be done?

    1. Share the AMI ID, since it works in all Regions
    2. Copy the AMI to each Region, e.g. with Image Builder
    3. Attach the same EBS volume in each Region
    4. Add an S3 bucket policy that allows the AMI
    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.

  27. Question 27. An Auto Scaling group should use Spot Instances for cost, but keep a base of On-Demand capacity. What should be configured?

    1. A mixed instances policy with an On-Demand base and Spot percentage
    2. A launch configuration with Spot pricing
    3. Two separate Auto Scaling groups with no balancing
    4. Dedicated Hosts for the base capacity
    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.

  28. Question 28. Spot Instances in a group are interrupted often. What improves availability?

    1. Diversify instance types, with price-capacity-optimized
    2. Use one instance type only, in one AZ
    3. Use the lowest-price allocation with one pool
    4. Set a very high Spot maximum price on the group
    Show answer

    Answer: A. Diversify instance types, with price-capacity-optimized

    Diversifying across pools and choosing pools with spare capacity reduces interruptions.

  29. Question 29. Which EC2 feature launches and replaces instances of many types to meet a target capacity, including Spot?

    1. EC2 Instance Connect
    2. Placement groups
    3. Elastic IP addresses
    4. EC2 Fleet
    Show answer

    Answer: D. EC2 Fleet

    EC2 Fleet and Spot Fleet manage capacity across instance types, AZs, and purchase options.

  30. Question 30. HPC instances need the lowest latency between them. Which placement group strategy fits?

    1. Spread
    2. Cluster
    3. Partition
    4. None; placement doesn't matter
    Show answer

    Answer: B. Cluster

    Cluster placement groups pack instances close together in one AZ for low-latency networking.

  31. Question 31. A small set of critical instances must be on separate hardware to reduce correlated failures. Which placement strategy fits?

    1. Spread
    2. Cluster
    3. Partition with one partition
    4. Dedicated Instances
    Show answer

    Answer: A. Spread

    Spread placement puts each instance on distinct racks, with up to seven per AZ.

  32. Question 32. A licensed application requires control over the physical server and its socket count. What should be used?

    1. EC2 Dedicated Hosts
    2. Dedicated Instances
    3. Spot Instances
    4. Instances in a cluster placement group
    Show answer

    Answer: A. EC2 Dedicated Hosts

    Dedicated Hosts give visibility of sockets and cores for bring-your-own-license software.

  33. Question 33. Which tool deploys containers to Amazon ECS and manages the related load balancer and networking with little configuration?

    1. AWS Batch with a job queue
    2. ECS Express Mode or AWS Copilot
    3. Amazon Lightsail containers
    4. AWS OpsWorks stacks and layers
    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.

  34. Question 34. A resource created outside CloudFormation drifted from a template-managed configuration. What finds this?

    1. AWS Budgets usage reports
    2. CloudFormation drift detection
    3. AWS Artifact compliance reports
    4. Trusted Advisor service limits
    Show answer

    Answer: B. CloudFormation drift detection

    Drift detection compares actual resource properties with the template's expected values.

  35. Question 35. A deployment must pause until a Lambda function checks the new version's health. Which CloudFormation-driven feature can wait for this?

    1. A DeletionPolicy on the function
    2. A stack output with the version number
    3. A custom resource or a wait condition
    4. An IAM permissions boundary on the stack
    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.

  36. Question 36. An operator must bulk-tag thousands of existing resources across services. Which tool helps?

    1. The CloudTrail console
    2. The EC2 Instance Connect console
    3. Tag Editor in AWS Resource Groups
    4. IAM Access Analyzer
    Show answer

    Answer: C. Tag Editor in AWS Resource Groups

    Tag Editor finds resources across Regions and adds or changes tags in bulk.

  37. Question 37. Which feature makes tags required and consistent across an AWS Organization?

    1. Service control policies only
    2. Tag policies in AWS Organizations
    3. AWS Config aggregators only
    4. IAM password policies
    Show answer

    Answer: B. Tag policies in AWS Organizations

    Tag policies standardize tag keys and values, and SCPs or Config rules can enforce presence.

  38. Question 38. Instances launched from an old AMI must be replaced with a patched AMI without downtime. What should be done?

    1. Patch each instance manually over an SSH session
    2. Stop all instances and change their AMI IDs in place
    3. Update the launch template and run an instance refresh
    4. Delete the Auto Scaling group and create a new one
    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.

  39. Question 39. A company wants new accounts to start with baseline guardrails and logging. Which service automates account setup?

    1. AWS Artifact agreements
    2. AWS Control Tower Account Factory
    3. AWS License Manager rules
    4. AWS Budgets alerts per account
    Show answer

    Answer: B. AWS Control Tower Account Factory

    Control Tower sets up a landing zone with guardrails, and Account Factory provisions accounts consistently.

  40. Question 40. Which service shows aggregated operations data, such as patch compliance and OpsItems, across accounts and Regions?

    1. AWS Cost Explorer
    2. AWS Health Dashboard
    3. Systems Manager Explorer
    4. CloudFront reports
    Show answer

    Answer: C. Systems Manager Explorer

    Explorer gives a customizable dashboard of operational data from Systems Manager and other sources.

  41. Question 41. An operator needs to run the same CLI script safely against many accounts. What is a good practice?

    1. Store root keys for every account in the script
    2. Create IAM users with keys in each account
    3. Assume a role in each account from a central account
    4. Use one shared password for all accounts
    Show answer

    Answer: C. Assume a role in each account from a central account

    Cross-account roles give short-lived credentials and central control.

  42. Question 42. Which Elastic Beanstalk feature applies managed platform updates, such as patches, during a maintenance window?

    1. Rolling with additional batch deployments
    2. Managed platform updates
    3. Environment URL swap
    4. Saved configurations
    Show answer

    Answer: B. Managed platform updates

    Beanstalk can apply minor and patch platform updates automatically during a weekly window.

  43. Question 43. A container image must be scanned for vulnerabilities when pushed to ECR. What should be enabled?

    1. An ECR lifecycle policy on the repository
    2. ECR cross-Region replication only
    3. An ECR pull-through cache rule
    4. ECR enhanced scanning with Amazon Inspector
    Show answer

    Answer: D. ECR enhanced scanning with Amazon Inspector

    Enhanced scanning finds OS and programming language vulnerabilities continuously.

  44. Question 44. An ECR repository keeps thousands of old images, raising storage cost. What should be configured?

    1. ECR image scanning on every push
    2. A larger repository storage quota
    3. Cross-Region replication of the repository
    4. An ECR lifecycle policy that expires old images
    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.