Question 829 of 1,546
Deployment, Provisioning, and AutomationhardMultiple ChoiceObjective-mapped

Quick Answer

The answer is EC2 Image Builder, which is the correct choice because it is purpose-built for automating custom AMI builds with EC2 Image Builder, allowing you to define a component that encapsulates your PowerShell scripts, create a recipe, and schedule a pipeline to run weekly. This directly minimizes operational overhead by handling the entire image creation, patching, and testing lifecycle without manual intervention. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of managed services over manual scripting—a common trap is reaching for AWS CodePipeline or Lambda, but Image Builder is the only service that natively supports scheduled, repeatable AMI creation with integrated component definitions. A strong memory tip is to think of Image Builder as a "recipe and pipeline" service: the recipe defines what goes into the AMI (your software stack and scripts), and the pipeline automates when it gets baked, ensuring weekly security patches are applied automatically.

SOA-C02 Deployment, Provisioning, and Automation Practice Question

This SOA-C02 practice question tests your understanding of deployment, provisioning, and automation. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: eC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A SysOps administrator uses AWS CloudFormation to deploy infrastructure. The admin has a template that creates an EC2 instance with a custom software stack. The software stack must be installed and configured using PowerShell scripts. The admin wants to minimize operational overhead by automating the creation of an AMI that includes the software stack, and the AMI should be rebuilt on a weekly basis to include the latest security patches. Which combination of AWS services should be used?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

Question 1hardmultiple choice
Read the full NAT/PAT explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use EC2 Image Builder to define a component with the PowerShell scripts, create a recipe, and schedule a pipeline to run weekly.

EC2 Image Builder is purpose-built for automating the creation, patching, and testing of custom AMIs. By defining a component that encapsulates the PowerShell scripts, creating a recipe that references that component, and scheduling a pipeline to run weekly, the administrator achieves fully automated, repeatable AMI builds with minimal operational overhead. This directly meets the requirement for weekly rebuilds with the latest security patches.

Key principle: EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use EC2 Image Builder to define a component with the PowerShell scripts, create a recipe, and schedule a pipeline to run weekly.

    Why this is correct

    EC2 Image Builder is purpose-built for creating golden AMIs with custom scripts. It handles the entire process, including patching, testing, and scheduling, with minimal operational overhead.

    Clue confirmation

    The clue word "minimum / minimize" in the question point toward this answer.

    Related concept

    EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.

  • Use AWS Systems Manager Automation to run a PowerShell script on an existing EC2 instance, then manually create an AMI each week.

    Why it's wrong here

    While Systems Manager Automation can execute scripts, it does not automate the AMI creation process on a schedule; manual steps increase overhead and risk.

  • Use AWS CodePipeline with CodeBuild to run the PowerShell scripts and create an AMI using the AWS CLI, triggered by a weekly CloudWatch Events schedule.

    Why it's wrong here

    This approach works but requires building custom CI/CD logic for AMI creation. EC2 Image Builder provides a more integrated and simpler solution with built-in testing and distribution.

  • Use Amazon EC2 Auto Scaling with a lifecycle hook to run the PowerShell script on instance launch, and schedule a weekly instance refresh.

    Why it's wrong here

    This does not create a reusable AMI; it installs software each time an instance launches, increasing launch times and not providing a pre-baked AMI for use in other environments.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may overcomplicate the solution by choosing a multi-service orchestration (like CodePipeline + CodeBuild) when a single, purpose-built service (EC2 Image Builder) is designed exactly for this use case, leading to unnecessary complexity and operational overhead.

Detailed technical explanation

How to think about this question

EC2 Image Builder uses a pipeline that orchestrates the build, test, and distribution phases. The component resource defines the PowerShell scripts as a sequence of steps, and the recipe combines the component with a base image. The pipeline can be triggered on a cron schedule (e.g., weekly) and automatically creates a new AMI version, which can then be used by Auto Scaling groups or other EC2 instances. Under the hood, Image Builder launches a temporary EC2 instance, runs the component scripts, creates an AMI from the instance, and then terminates the instance, all without manual intervention.

KKey Concepts to Remember

  • EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.
  • Components define the software installation and configuration steps, including PowerShell scripts.
  • Image pipelines schedule the regular (e.g., weekly) rebuilding of AMIs.
  • Image Builder integrates with AWS services for testing, distribution, and vulnerability scanning.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Review eC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs., then practise related SOA-C02 questions on the same topic to reinforce the concept.

Related practice questions

Related SOA-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SOA-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SOA-C02 question test?

Deployment, Provisioning, and Automation — This question tests Deployment, Provisioning, and Automation — EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs..

What is the correct answer to this question?

The correct answer is: Use EC2 Image Builder to define a component with the PowerShell scripts, create a recipe, and schedule a pipeline to run weekly. — EC2 Image Builder is purpose-built for automating the creation, patching, and testing of custom AMIs. By defining a component that encapsulates the PowerShell scripts, creating a recipe that references that component, and scheduling a pipeline to run weekly, the administrator achieves fully automated, repeatable AMI builds with minimal operational overhead. This directly meets the requirement for weekly rebuilds with the latest security patches.

What should I do if I get this SOA-C02 question wrong?

Review eC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs., then practise related SOA-C02 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

What is the key concept behind this question?

EC2 Image Builder automates the creation, maintenance, and distribution of custom AMIs.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SOA-C02 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.