- A
Set the AMI ID in a CloudFormation template and associate it with the environment.
Why wrong: Elastic Beanstalk does not use CloudFormation templates for AMI selection.
- B
Use AWS CodeDeploy to deploy the application to the custom AMI.
Why wrong: CodeDeploy is for application deployment, not for creating custom AMIs.
- C
Create a custom AMI using the Elastic Beanstalk platform as the base.
This ensures compatibility with the platform.
- D
Configure the .ebextensions folder to set the AMI ID for the Auto Scaling launch configuration.
This allows specifying the custom AMI in the environment.
- E
Use Packer to create the custom AMI from any base image.
Why wrong: Must use the Elastic Beanstalk platform as base to avoid issues.
Quick Answer
The correct combination is to create a custom AMI from the base Elastic Beanstalk platform and then configure the .ebextensions folder to set that AMI ID for the Auto Scaling launch configuration. This works because Elastic Beanstalk uses a launch template or launch configuration to provision EC2 instances, and the aws:autoscaling:launchconfiguration namespace in the .ebextensions folder allows you to override the default platform AMI with your custom one, ensuring all environment instances run the hardened image with required security agents. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of environment customization and the distinction between platform-managed and custom configurations. A common trap is thinking Packer is mandatory or that the AMI ID belongs in a CloudFormation template, but the key is that the custom AMI must be derived from the Elastic Beanstalk base to maintain compatibility. Memory tip: “Ebextensions for AMI, not CloudFormation or Packer.”
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. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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 company uses AWS Elastic Beanstalk to deploy a web application. The application requires a custom Amazon Linux 2 AMI with specific security agents installed. The company wants to ensure that all environment instances use this custom AMI. Which combination of steps should be taken? (Choose two.)
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
Create a custom AMI using the Elastic Beanstalk platform as the base.
Option A and D are correct. A custom AMI must be created and used in a launch template or configuration. The .ebextensions folder can configure the platform to use the custom AMI via the aws:autoscaling:launchconfiguration namespace. Option B is wrong because Packer can be used to create the AMI, but it is not a required step. Option C is wrong because the AMI must be built from the base Elastic Beanstalk platform to ensure compatibility. Option E is wrong because the AMI ID is set in the environment configuration, not in a CloudFormation template.
Key principle: NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Set the AMI ID in a CloudFormation template and associate it with the environment.
Why it's wrong here
Elastic Beanstalk does not use CloudFormation templates for AMI selection.
- ✗
Use AWS CodeDeploy to deploy the application to the custom AMI.
Why it's wrong here
CodeDeploy is for application deployment, not for creating custom AMIs.
- ✓
Create a custom AMI using the Elastic Beanstalk platform as the base.
Why this is correct
This ensures compatibility with the platform.
Related concept
Static NAT maps one inside address to one outside address.
- ✓
Configure the .ebextensions folder to set the AMI ID for the Auto Scaling launch configuration.
Why this is correct
This allows specifying the custom AMI in the environment.
Related concept
Static NAT maps one inside address to one outside address.
- ✗
Use Packer to create the custom AMI from any base image.
Why it's wrong here
Must use the Elastic Beanstalk platform as base to avoid issues.
Common exam traps
Common exam trap: NAT rules depend on direction and matching traffic
NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.
Detailed technical explanation
How to think about this question
NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.
KKey Concepts to Remember
- Static NAT maps one inside address to one outside address.
- PAT allows many inside hosts to share one public address using ports.
- Inside local and inside global describe the private and translated addresses.
- NAT ACLs identify traffic for translation, not always security filtering.
TExam Day Tips
- Identify inside and outside interfaces first.
- Check whether the scenario needs static NAT, dynamic NAT or PAT.
- Do not confuse NAT matching ACLs with normal packet-filtering intent.
Key takeaway
NAT direction and interface roles matter as much as the IP address mapping. Inside/outside designation controls which traffic is translated.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related SOA-C02 NAT questions on configuration and troubleshooting.
- →
Deployment, Provisioning, and Automation — study guide chapter
Learn the concepts, then practise the questions
- →
Deployment, Provisioning, and Automation practice questions
Targeted practice on this topic area only
- →
All SOA-C02 questions
1,546 questions across all exam domains
- →
AWS Certified SysOps Administrator Associate SOA-C02 study guide
Full concept coverage aligned to exam objectives
- →
SOA-C02 practice test guide
How to use practice tests most effectively before exam day
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.
Monitoring, Logging, and Remediation practice questions
Practise SOA-C02 questions linked to Monitoring, Logging, and Remediation.
Reliability and Business Continuity practice questions
Practise SOA-C02 questions linked to Reliability and Business Continuity.
Deployment, Provisioning, and Automation practice questions
Practise SOA-C02 questions linked to Deployment, Provisioning, and Automation.
Security and Compliance practice questions
Practise SOA-C02 questions linked to Security and Compliance.
Networking and Content Delivery practice questions
Practise SOA-C02 questions linked to Networking and Content Delivery.
Cost and Performance Optimization practice questions
Practise SOA-C02 questions linked to Cost and Performance Optimization.
SOA-C02 fundamentals practice questions
Practise SOA-C02 questions linked to SOA-C02 fundamentals.
SOA-C02 scenario practice questions
Practise SOA-C02 questions linked to SOA-C02 scenario.
SOA-C02 troubleshooting practice questions
Practise SOA-C02 questions linked to SOA-C02 troubleshooting.
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 — Static NAT maps one inside address to one outside address..
What is the correct answer to this question?
The correct answer is: Create a custom AMI using the Elastic Beanstalk platform as the base. — Option A and D are correct. A custom AMI must be created and used in a launch template or configuration. The .ebextensions folder can configure the platform to use the custom AMI via the aws:autoscaling:launchconfiguration namespace. Option B is wrong because Packer can be used to create the AMI, but it is not a required step. Option C is wrong because the AMI must be built from the base Elastic Beanstalk platform to ensure compatibility. Option E is wrong because the AMI ID is set in the environment configuration, not in a CloudFormation template.
What should I do if I get this SOA-C02 question wrong?
Review the four NAT address types (inside local, inside global, outside local, outside global), PAT port overload, and static vs dynamic NAT use cases. Then practise related SOA-C02 NAT questions on configuration and troubleshooting.
What is the key concept behind this question?
Static NAT maps one inside address to one outside address.
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 →
Same concept, more angles
2 more ways this is tested on SOA-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company is using AWS Elastic Beanstalk to deploy a web application. The application requires a custom Amazon Machine Image (AMI) that includes specific software. The administrator creates a custom AMI and configures the Elastic Beanstalk environment to use it. However, new instances launched during scaling use the default platform AMI instead. What is the MOST likely cause?
hard- A.The custom AMI ID is specified in the environment properties instead of the launch configuration.
- B.The custom AMI is encrypted, and the instance profile does not have permissions to decrypt it.
- C.The Elastic Beanstalk platform version is incompatible with the custom AMI.
- ✓ D.The custom AMI is configured in the environment's launch configuration, but the environment has not been updated to replace existing instances.
Why D: Option D is correct because the custom AMI must be specified in the launch configuration or launch template used by the Auto Scaling group, and if the environment is updated, the existing instances may not be replaced. Option A is wrong because the Elastic Beanstalk platform version determines the base AMI, but custom AMIs can override it. Option B is wrong because the AMI ID must be specified in the launch configuration, not the environment properties. Option C is wrong because encryption does not prevent the custom AMI from being used.
Variation 2. A company wants to use AWS Elastic Beanstalk to deploy a web application. The application requires a custom Amazon Linux 2 AMI with specific security agents installed. The company wants to ensure that all environment instances use this custom AMI. Which combination of steps should be taken? (Choose three.)
medium- ✓ A.Configure the Elastic Beanstalk environment to use the custom AMI by specifying the AMI ID in the .ebextensions configuration.
- B.Create a CloudFormation template to deploy the environment with the custom AMI.
- ✓ C.Create a custom AMI using the Elastic Beanstalk platform image as the base.
- D.Create a custom AMI using AWS Image Builder.
- ✓ E.Use a configuration file in the .ebextensions folder to set the AMI ID for the Auto Scaling launch configuration.
Why A: Options B, C, and D are correct. The custom AMI must be built from the Elastic Beanstalk platform image to ensure compatibility, then the AMI ID must be specified in the environment configuration via .ebextensions or the console. Option A is wrong because the company does not need to manage their own AMI builder. Option E is wrong because CloudFormation is not required for this task.
Keep practising
More SOA-C02 practice questions
- A company uses an Amazon DynamoDB table with on-demand capacity mode. The table handles a workload with a steady baselin…
- A company uses Amazon CloudWatch Logs to store application logs. The SysOps administrator needs to count the occurrences…
- A SysOps administrator needs to monitor the CPU utilization of an Amazon EC2 instance and send an alert when it exceeds…
- A SysOps administrator needs to monitor the CPU utilization of an Amazon EC2 instance fleet and send an alert when the a…
- A company's security policy requires that all Amazon S3 buckets must have server-side encryption enabled. The SysOps adm…
- A SysOps administrator uses AWS CloudFormation to deploy a stack that includes an Amazon EC2 instance. The administrator…
Last reviewed: Jun 20, 2026
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.
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.
Sign in to join the discussion.