aws SOA-C03: AWS Certified CloudOps Engineer – Associate · Practice questions

Domain 3: Deployment, Provisioning, and Automation Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A company wants to automatically apply critical security patches to Amazon Linux instances within 7 days of release, and other patches within 30 days. Which Patch Manager configuration meets this requirement?

  1. A State Manager association that runs yum update every day on all instances without a baseline.
  2. A custom patch baseline that approves only the patches that are listed by hand in its approved patches list.
  3. A custom patch baseline that auto-approves critical security patches after 7 days and others after 30 days. — Correct
  4. The default AWS-AmazonLinux2DefaultPatchBaseline patch baseline, with no changes to its approval rules.

Correct answer

A custom patch baseline that auto-approves critical security patches after 7 days and others after 30 days.

Explanation

Custom baselines can define approval delays per classification and severity. The default baseline does not match these delays. Manual lists do not scale. Daily updates without a baseline ignore the approval rules.

Question 2

A CloudOps engineer must apply OS patches to EC2 instances in an Auto Scaling group. The instances are replaced often, so patching running instances is not effective. What is the BEST approach?

  1. Suspend the Launch process on the Auto Scaling group until each running instance has been patched.
  2. Bake patches into a new AMI, update the launch template, and run an instance refresh on the Auto Scaling group. — Correct
  3. Add a yum update command to the user data so that every instance patches itself after it launches.
  4. Run Patch Manager on the running instances every night, and leave the launch template and its AMI unchanged.

Correct answer

Bake patches into a new AMI, update the launch template, and run an instance refresh on the Auto Scaling group.

Explanation

Immutable updates with a patched AMI and an instance refresh keep every new instance patched. Patching running instances is lost when they are replaced. Patching in user data slows launches and gives inconsistent results. Suspending launches reduces availability.

Question 3

A CloudFormation stack contains a production RDS database and many other resources. Developers update the stack often. The CloudOps engineer must prevent any stack update from replacing or deleting the database while allowing updates to other resources. What should the engineer do?

  1. Set the database's DeletionPolicy to Retain so that stack updates cannot replace the database.
  2. Enable termination protection on the stack so that no update can remove the database resource.
  3. Run drift detection before each update so that developers can see whether the database will change.
  4. Apply a stack policy that denies Update:Replace and Update:Delete actions on the database's logical ID. — Correct

Correct answer

Apply a stack policy that denies Update:Replace and Update:Delete actions on the database's logical ID.

Explanation

A stack policy controls which update actions are allowed on specific resources. Termination protection only blocks stack deletion. DeletionPolicy Retain keeps a resource that is removed but does not stop replacement during updates. Drift detection does not preview updates.

Question 4

A company must build a hardened Amazon Linux AMI every month with the latest patches, run automated tests on it, and share the AMI with 10 accounts. Which solution meets these requirements with the LEAST operational effort?

  1. Launch an instance each month, patch it with Run Command, create an AMI from it, and copy the AMI into each account with a script.
  2. Create an EC2 Image Builder pipeline with a monthly schedule, test components, and a distribution that shares the AMI. — Correct
  3. Create a CloudFormation stack that launches and patches an instance each month, and use StackSets to share the resulting AMI with the 10 accounts.
  4. Run the AWS-UpdateLinuxAmi Automation runbook manually each month, and modify the AMI launch permissions to share the AMI with each of the 10 accounts.

Correct answer

Create an EC2 Image Builder pipeline with a monthly schedule, test components, and a distribution that shares the AMI.

Explanation

Image Builder automates building, testing, and distributing AMIs on a schedule. The other options rely on manual steps or custom scripts, and StackSets do not share AMIs.

Question 5

New instances in an Auto Scaling group must download configuration files and register with a monitoring system before they receive traffic. If registration fails, the instance must not go into service. What should the CloudOps engineer configure?

  1. A termination lifecycle hook that removes instances if they fail registration after they have entered service.
  2. A scheduled action that adds new instances to the load balancer target group only after registration has finished on each instance.
  3. A longer health check grace period on the Auto Scaling group so that instances have time to finish registering before health checks begin.
  4. A launch lifecycle hook that keeps instances in Pending:Wait until a script completes the lifecycle action with CONTINUE or ABANDON. — Correct

Correct answer

A launch lifecycle hook that keeps instances in Pending:Wait until a script completes the lifecycle action with CONTINUE or ABANDON.

Explanation

Launch lifecycle hooks pause instances before InService, and the result decides whether they continue or are terminated. A grace period does not block traffic. Scheduled actions cannot track per-instance registration. A termination hook acts too late.

Question 6

A CloudFormation stack update failed and the stack is now in UPDATE_ROLLBACK_FAILED because a resource was changed outside CloudFormation. Which actions can return the stack to a working state? (Choose TWO.)

  1. Enable termination protection on the stack, which resets the stack's rollback state.
  2. Run drift detection, which automatically restores the stack to UPDATE_ROLLBACK_COMPLETE.
  3. Fix the resource manually so that it matches the expected state, then run continue-update-rollback. — Correct
  4. Run continue-update-rollback and specify the problem resource in ResourcesToSkip. — Correct
  5. Create a change set with the previous template, which overrides the failed rollback state.

Correct answer

Fix the resource manually so that it matches the expected state, then run continue-update-rollback.; Run continue-update-rollback and specify the problem resource in ResourcesToSkip.

Explanation

Continuing the rollback after fixing the resource, or skipping the resource, returns the stack to UPDATE_ROLLBACK_COMPLETE. Drift detection only reports. Change sets cannot run on a stack in this state. Termination protection does not affect rollback.

Question 7

Resources were created manually in the console months ago. The team now wants to manage them with CloudFormation without deleting or recreating them. What should the CloudOps engineer do?

  1. Create a new stack with a template that uses the same physical resource names, so that CloudFormation adopts the existing resources by name during creation.
  2. Run drift detection on a new empty stack so that CloudFormation discovers the existing resources and adds them automatically.
  3. Write a template that describes the resources with DeletionPolicy set, and use a CloudFormation resource import operation to bring them into a stack. — Correct
  4. Use CloudFormation StackSets to deploy a stack to the account, which imports all existing resources of the supported types.

Correct answer

Write a template that describes the resources with DeletionPolicy set, and use a CloudFormation resource import operation to bring them into a stack.

Explanation

Resource import adds existing resources to a stack based on their identifiers. Drift detection only compares resources already in a stack. Matching names causes creation conflicts. StackSets do not import resources.

Question 8

An application on EC2 instances reads configuration from Parameter Store at startup. The team wants new parameter values to be used by running instances within a few minutes without restarts. What should the CloudOps engineer recommend?

  1. Change the parameters to the advanced tier so that Parameter Store pushes new values to every running instance automatically.
  2. Enable Parameter Store notifications through EventBridge, and restart each instance whenever a parameter value changes.
  3. Store the configuration in the instance user data so that it is read again every few minutes from instance metadata.
  4. Have the application poll Parameter Store, or use AWS AppConfig and its agent to fetch updates. — Correct

Correct answer

Have the application poll Parameter Store, or use AWS AppConfig and its agent to fetch updates.

Explanation

Applications must re-read Parameter Store, and AppConfig provides managed polling and deployment of configuration. Parameter Store does not push values. User data is not meant to be changed at runtime. Restarting instances was ruled out.

Question 9

An Automation runbook restarts production database servers. The operations manager must approve each run before the restart step executes. What should the CloudOps engineer add to the runbook?

  1. An aws:sleep step of 1 hour before the restart step so that the manager can cancel the execution.
  2. An aws:approve step that requires approval from the manager's IAM principal before the restart step. — Correct
  3. An aws:executeScript step that emails the manager and continues after the email has been sent.
  4. An aws:branch step that checks whether the manager is signed in to the console before the restart.

Correct answer

An aws:approve step that requires approval from the manager's IAM principal before the restart step.

Explanation

The aws:approve action pauses the runbook until a specified approver approves or rejects it. A sleep step is not an approval. An email script does not wait for a decision. Branch steps cannot check a console sign-in.

Question 10

The finance team declares a change freeze for the last 3 days of every quarter. During that time, Systems Manager Automation runbooks and State Manager associations must not make changes in production. What should the CloudOps engineer use?

  1. A maintenance window that is disabled during the freeze period and enabled again by hand after the freeze period ends.
  2. An SCP that denies all ssm actions in the production accounts, attached at the start of each freeze period and removed when it ends.
  3. Systems Manager Change Calendar with a closed event for the freeze period, referenced by the runbooks and associations. — Correct
  4. A CloudWatch alarm that stops all running Automation executions when the freeze period starts.

Correct answer

Systems Manager Change Calendar with a closed event for the freeze period, referenced by the runbooks and associations.

Explanation

Change Calendar defines open and closed periods, and Automation and State Manager can check it before running. SCPs cannot be time-based. Alarms cannot detect calendar dates. Manual window changes are error-prone and do not cover all runbooks.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz