Chapter 5: Amazon EC2 (Elastic Compute Cloud)
Interview Questions
These EC2 questions are almost always asked in interviews. Don't learn the answers by heart – remember our the Amul-style dairy lab and answer in your own words; then the answer will sound confident on its own.
इंटरव्ह्यूमध्ये EC2 वर हे प्रश्न नक्की विचारतात. उत्तरं पाठांतर करू नका – आपला the Amul-style dairy चा लॅब आठवून स्वतःच्या शब्दांत सांगा, मग उत्तर आपोआप कॉन्फिडंट वाटेल.
इंटरव्यू में EC2 पर ये सवाल ज़रूर पूछे जाते हैं. जवाब रटो मत – हमारी the Amul-style dairy वाली लैब याद करके अपने शब्दों में बताओ, फिर जवाब अपने आप कॉन्फ़िडेंट लगेगा.
- Q1. What is an AMI?
- An Amazon Machine Image provides the launch information for a compatible EC2 instance. An EBS-backed AMI uses an EBS snapshot for its root volume template and includes a block device mapping. Select the approved publisher, Region and architecture.
- Q2. What is a security group? Is it stateful?
- A security group is a stateful control for incoming and outgoing traffic to associated resources. It allows matching return traffic for eligible flows. Routing, network ACLs and the service listener have their own roles.
- Q3. What is the difference between stopping and terminating an instance?
- Stop pauses a supported EBS-backed instance and normally retains its EBS volumes. Its ordinary auto-assigned public IPv4 is released. Termination permanently ends the instance. Each EBS volume follows its deletion setting, and separate resources can remain.
- Q4. Explain EC2 pricing models.
- On-Demand compute has no long-term commitment. Savings Plans and Reserved Instances provide benefits for qualifying usage under their own terms. Spot is interruptible spare capacity. Dedicated Hosts and Dedicated Instances provide different tenancy choices. Compare exact rates, flexibility and capacity requirements.
- Q5. How do you connect to a Linux EC2 instance from Windows?
- Use the approved client and network path. For OpenSSH, choose the actual guest user and secured key file, check its Windows permissions and verify the server host key. PuTTY uses its supported format. Managed access such as Session Manager has different prerequisites.
- Q6. What is user data?
- User data supplies launch configuration, such as a script or cloud-init input. Supported Linux images commonly process the script as root during initial boot. Behavior depends on the image and configuration. Verify the startup result separately and keep secrets out of user data.
- Q7. What is the instance metadata service?
- The instance metadata service can expose instance configuration and supported temporary role credentials to configured guest workloads. Access depends on account settings, the image and launch options. IMDSv2 uses a session token. A simple login check does not need credential or metadata output.
Explain an EC2 decision using a requirement, mechanism and useful proof
The interviewer asks why Mauli would use EC2 for a training shop. Start with the actual workload: it needs a known Linux environment and a process that serves a permitted order request. Then explain what the launch provides and which duties stay with the owner. Finally name the evidence that makes a sample instance useful. This frame works for broader questions about pricing, identity and recovery as well as for definitions.
Use one example throughout. A public frontend sends a request to a private Linux worker. The worker uses approved identity to read synthetic data. Its root volume boots the system, and its main data can outlive a single instance. The owner can replace a worker while monitoring how the front end serves users. When the interviewer changes the story to one directly exposed training machine, state that the assumptions changed. That one machine has its own address and network path, and it offers no second target if stopped.
For each question, give a brief first answer and expand on the follow-up. Cloud terms are often easy to memorize but prove little on their own. Show that you understand how two related controls differ. An image and instance type provide different launch inputs. A role and guest user have different permissions. A stopped state and resource retention produce different billing observations. State which field or test would distinguish them.
Practice with documentation values and fictional records. The questions do not require access to a real account or sharing IDs. If a prompt asks for a current rate, default, eligibility or supported type, say how you would confirm the documented account and Region conditions. Specific details can be accurate in one example and change in another. A confident answer describes the mechanism and the evidence needed for the real configuration.
Scenario questions with model answers and follow-ups
1. Why might a workload use EC2 rather than its existing on-premises cluster?
Model answer. EC2 provides on-demand compute choices under a cloud operating model. It can fit a workload that needs a configurable guest and variable capacity without waiting to acquire more hardware itself. An existing on-premises cluster may already provide suitable capacity, operations staff and local connectivity. Compare the workload, availability, costs and placement rather than assuming one model always wins.
Follow the example. Mauli needs two baseline workers and four extra during a short rush. Additional EC2 capacity can be scheduled and removed after the rush if the workload starts and scales reliably. Include type availability, startup time and capacity of shared dependencies. A workload running at the same steady level all year might value its already-supported fleet or a measured commitment option. Compare equivalent service goals.
Follow-up. Ask which responsibilities move. AWS operates the underlying cloud infrastructure for EC2. The customer still manages its guest operating system, application, approved configuration and data. Moving the virtual machine to a cloud does not automatically patch the app or build a recovery plan. State who would verify an important software update and how they would test it.
2. What is an AMI, and which facts must match at launch?
Model answer. An Amazon Machine Image is the launch template for the guest operating environment, including the relevant boot and storage mapping information. A common EBS-backed AMI uses an EBS snapshot for its root volume template. It is selected in a Region and needs a compatible instance type and architecture. The image's publisher and application support also matter.
Follow the example. Mauli has a current Amazon Linux 2023 image and a compiled app. If the build is Arm-only, choose an approved arm64 AMI and compatible Graviton-backed type. More memory on an x86-only type cannot make it boot an Arm image. If you move to another Region, find the approved image there and record the specific ID. Matching image names can have different identifiers.
Follow-up. Explain the difference between an image and a production backup. An image helps create a new instance with the appropriate starting environment. It may not contain data written later or held on another service. Name the data you need to preserve and how you would test restoration. If the instance-specific bootstrap installs a separate application release, the image alone does not identify the running application version.
3. How would you choose or change an instance type?
Model answer. Measure the workload's CPU, memory, network, data movement and dependencies under representative requests. Pick a compatible instance type and test the intended cost, performance and features. A size name and CPU count are not sufficient to predict the entire operation. Some applications are limited by their database or external connection rather than the compute worker.
Follow the example. The app uses only a small fraction of CPU, but warehouse updates arrive slowly. Inspect the relevant dependency timings and write or query path. If spending time waiting on an external response is the problem, a larger CPU size may not raise throughput. If the app cannot hold its data structure in memory, evaluate a suitable memory choice or change how data is served.
Follow-up. Explain burstable capacity. A supported burstable type earns or consumes credits under its baseline and settings. A brief peak and sustained high CPU demand can have different behavior or charges. Verify the actual credit mode and workload measurements. Changing family can also change architecture, local storage or supported features, so test compatibility before a live change.
4. What does a security group allow, and why does stateful matter?
Model answer. A security group controls permitted network traffic for associated resources. Its rules describe direction, protocol, ports and sources or destinations. It is stateful, so applicable response traffic for an allowed connection can follow without a special security group rule only for that reply. Network ACLs and actual routes have separate effects.
Follow the example. The public frontend accepts the required HTTPS traffic. The worker accepts the intended backend connection from the load balancer's group on the configured port where that reference is supported. The database accepts its permitted app source and credentials. Putting the same unrestricted rule on all three components would not express the intended callers. Verify the actual attached groups and the route through the environment.
Follow-up. A tester moved from office Wi-Fi to a different hotspot and now times out over direct SSH. Confirm the approved SSH path, source, destination and listener. Check whether the existing source rule still fits and who can modify it. A timeout is an observation to narrow the cause. It does not justify opening all sources or assuming that a private managed path uses the same rule.
5. How is user data different from an AMI or a running service?
Model answer. An AMI sets the initial guest environment. User data supplies launch-time instructions or configuration the image can process. A cloud-init Linux image commonly runs user data scripts during initial setup, using its configured privileges and behavior. A running application needs its own startup and runtime evidence. User data execution depends on the image, network and permissions it uses.
Follow the example. Mauli selects a compatible Linux image and supplies a small approved script that writes a synthetic readiness file. A running state can appear before the script completes. If the file is missing, inspect the approved startup output and actual script conditions. If the file exists but a local HTTP request fails, check the listener rather than assuming the script never ran.
Follow-up. Most default first-boot scripts should not be treated as something that reruns on every reboot. If the service needs to return after a restart, configure it under the approved service manager or deployment process. Keep credentials out of user data. A versioned bootstrap can choose the expected app release and use permitted identities for dependencies without embedding long-lived secrets.
6. How do Region, Availability Zone, subnet and EBS placement relate?
Model answer. A Region is a geographic AWS scope containing Availability Zones. A VPC is regional and each ordinary subnet belongs to one zone. Selecting the subnet places the instance. EBS volumes are zonal storage and their normal attachment requires the instance to be in the same zone. A Region selection also affects applicable AMIs, account resources and service availability.
Follow the example. The class worker was built in Zone A. An operator creates a replacement in Zone B to practice availability, then attempts to attach the original data volume directly. The volumes can both belong to the same Region and still be in different placement scopes. Design an approved recovery copy or use a suitable shared data service rather than ignoring the error. Verify the data sources, permissions, network path and intended application result on the replacement.
Follow-up. An Elastic IP has a Region and network border group requirement on supported targets. It is not a general handle that follows a volume or image into every region. Ask for each resource's placement scope before moving the application. A friendly name or matching tag across two regions cannot establish compatibility or ownership.
7. How would you connect securely to a Linux instance from Windows?
Model answer. Start with the approved connection method. Use the required client, account and network path. When using OpenSSH, select the correct private key and remote username and apply the required Windows file permissions. Verify the host key fingerprint through an approved source before trusting the server. PuTTY is another client with its own supported key format and configuration. Managed sessions may use a different access path.
Follow the example. The verified Amazon Linux image expects its configured user, commonly ec2-user for the lab. Use the actual destination from your instance record rather than an old bookmark. A PowerShell key path can contain spaces, and file access uses an NTFS ACL rather than a POSIX file mode. A correct terminal command still needs route and network permission for its listener. Confirm the real host and key rather than accepting a warning blindly.
Follow-up. Compare a timeout with a rejected public key. A timeout says a required response did not arrive for a connection phase. A public-key refusal means a responding SSH server reached the user authentication decision. Inspect the guest username, selected key and current authorization for that case. An unexpected host key is a distinct identity issue and must be verified before login.
8. What lets a private instance use a managed access path?
Model answer. Systems Manager Session Manager uses a managed instance's supported agent and identity and the applicable network path to its services. The operator needs session permission. It can avoid a direct incoming SSH port for the ordinary managed session. EC2 Instance Connect uses a different SSH and IAM flow, with supported guest setup and a route to the SSH listener.
Follow the example. A private EC2 training worker has no ordinary public IPv4. The instructor provides an approved Session Manager role and network path. If the worker doesn't appear as connected, check agent registration, permissions and needed service connectivity with the owner. Opening public SSH would not provide those parts. If the environment uses an EC2 Instance Connect Endpoint instead, inspect that endpoint and guest permission under its documented path.
Follow-up. Tell the interviewer how you prove the intended session worked. Verify that you selected the expected account, Region and instance. Run read-only commands to show the hostname, user and Linux release, and compare to the design. Exit and note the result. These commands identify the guest, while closing the session has no necessary effect on whether the instance keeps running.
9. Why is a workload’s AWS role separate from a human login credential?
Model answer. An EC2 instance profile can associate a role for applications running on the instance. AWS tooling can use temporary credentials under that role's scoped permissions. Guest authentication and human AWS permissions are separate. A person might be able to log in or list the instance without having the app's access, and an app need not know a human's private key.
Follow the example. Mauli's worker reads a training object under a dedicated role. An app permission failure calls for checking the actual principal, action, resource policy and supporting endpoints. A successful request from the operator's administrator profile does not prove the app's role works. A service denying the expected identity has returned a different kind of failure from a request that cannot reach the endpoint.
Follow-up. If asked about instance metadata, explain it can provide information and a source of temporary credentials for configured workflows. Access settings and IMDSv2 requirements can vary according to account, AMI and launch settings. Keep secret material out of user data and support notes. Name the approved SDK or application access path and test the least-privilege role using the intended synthetic operation.
10. Compare an EC2 reboot, stop and start, hibernation and termination.
Model answer. Reboot restarts the guest on the same instance. Ordinary stop pauses a supported EBS-backed instance and clears process memory, while its EBS volumes can stay attached. Starting may give it a different auto-assigned public IPv4. Hibernation saves memory to an encrypted EBS boot volume under supported conditions. Termination permanently ends the instance and applies device retention settings.
Follow the example. Mauli wants to pause its class worker overnight while keeping its test files. It can stop and later start the same EBS-backed resource under the approved plan. The test marker on the EBS volume should persist in that case. Existing remote sessions will not survive an ordinary stop. If the public address was ephemeral, reconnect through the updated approved endpoint. Verify the real app process after restart.
Follow-up. If asked which operation removes everything, answer in terms of assets. Termination ends the instance. EBS volumes with deletion disabled, snapshots, Elastic IP allocations and supporting network services can remain. Inspect the exact flags and independent resources. A restored instance built from a snapshot is a replacement, not a resumed terminated instance ID.
11. When is an Elastic IP useful and what should you verify before release?
Model answer. An Elastic IP gives an account a stable public IPv4 allocation for supported associations. It can meet a fixed IPv4 requirement for an approved direct design or supported egress resource. A stable public service name can use a load balancer when that addresses the actual requirement. Allocation belongs to a Region and network border group.
Follow the example. The training instance has a movable public IPv4 so Priya can switch between two prepared app targets. Before moving it, verify the replacement service, port, interface, allowed path and record of the prior target. Verify the association and an expected client request after the change. An active session can be interrupted even when the numeric address remains unchanged.
Follow-up. A console row with no EC2 instance ID can still belong to a supported gateway or another resource. Check association and ownership, and whether any DNS or partner requirements still use the address. Disassociating can leave it allocated and billed. Releasing gives up the allocation and recovery may not be possible. Release only the approved unused resource.
12. When might On-Demand, commitment pricing or Spot fit an EC2 workload?
Model answer. On-Demand is useful for temporary or unknown use without an upfront commitment for EC2 compute. Savings Plans and Reserved Instances can offer billing benefits for eligible longer-term use under their specific terms. Spot uses spare capacity and can be interrupted. Its suitability depends on whether the app handles interruptions. Dedicated options address specific placement or licensing requirements.
Follow the example. Mauli has a one-day test and a queue of independent report jobs. The one-day experiment can use its approved On-Demand setup or eligible account resources. An interruptible report worker may fit Spot if it can checkpoint or retry safely. The expected baseline for a long-running service should be measured before considering commitments. A quoted discount is not proof that the exact usage will be covered.
Follow-up. Compute rate and capacity availability are separate choices. A discount can reduce the price of eligible use. It does not necessarily reserve the needed capacity in a particular zone. Review the actual offer and whether you also need a documented reservation mechanism. Include storage, network and public address costs after compute and check current account Free Tier or credits where relevant.
13. What does instance state tell you about application availability?
Model answer. State tells you where the EC2 resource is in its lifecycle. Applicable EC2 status checks provide particular system, instance, storage and supported additional health observations. A guest service, target health check and useful application operation are separate. Verify the check that reflects the actual requirement instead of reporting a universal number of passing checks.
Follow the example. EC2 says running and the relevant platform checks look good. A load balancer's target readiness path also works. Customers still cannot complete a permitted order lookup. The successful health check demonstrates its configured operation. Look at the selected hostname and path, app logs, intended guest service identity and database operation. Something can fail after the successful check.
Follow-up. If the app starts slowly after launch, separate instance creation, boot output, target registration and actual response. Measure the time of each. A scale policy can bring up more instances without providing useful capacity immediately. If the next release depends on fast scale-out, include readiness and dependency throughput in the test plan.
14. Why can an EBS volume be bigger while the app still reports no free space?
Model answer. Cloud volume size is block-device capacity. The operating system may still have an old partition boundary or filesystem size. Identify the exact guest device, mount and filesystem, then use the AWS-documented procedure for that configuration. Hardware or volume type also affects how a device appears inside the guest.
Follow the example. A change increases a lab volume. The console records its new capacity. A read-only Linux block listing and filesystem view show the block device changed and the mounted filesystem did not. That is a reason to check the approved extension steps for the actual volume and partition, not to format a disk. A different mount can also produce the same observation if you examined the wrong path.
Follow-up. Ask what the recovery plan is before an operation that changes existing storage structures. Verify the required data and actual tested backup. Volume persistence after a stop will not undo an unintended format or remove a corrupted file. A retained snapshot might fill the recovery requirement, if it contains the approved data and can be restored.
15. Which responsibilities belong to the backup, rollout and runtime teams?
Model answer. The backup plan preserves the required business state with known recovery objectives. The rollout plan introduces known application and infrastructure changes and verifies the required behavior. Runtime owners monitor and operate the current service. One team may fill several roles, but the checks and required access remain distinct.
Follow the example. Mauli updates its app workers from a new AMI and changes one database setting. A machine image can recreate the prior software environment, while the database has its own schema and data. Before rolling back the worker, check whether the new data is compatible with the old version. A successful snapshot completion is a storage event, and an authorized restore and representative operation demonstrate recoverability.
Follow-up. To recover from a zone-related issue, check placement and permissions for the intended restore destination. Start with agreed recovery time and data-loss objectives. Measure whether the procedure meets them. Do not choose an assumed redundancy claim in place of testing what happens to the data and service path during the failure the owner cares about.
16. What happens if a member of an Auto Scaling group is manually stopped?
Model answer. First determine which automation owns the instance lifecycle. An Auto Scaling group can maintain its desired capacity and replace an unhealthy member based on selected checks. A manual stop may trigger replacement rather than reducing the group's intended capacity. Use an approved group maintenance, Standby or rollout workflow appropriate for the service.
Follow the example. An instructor's two active app targets meet the required traffic load. An operator wants to patch one. Identify whether the group should add replacement capacity during maintenance, how the frontend stops using the old target, and when the patched target is approved to serve again. An instance marked standby and the group's desired capacity represent separate observations. Validate the important operation while changing target membership.
Follow-up. Termination protection and instance scale-in protection have distinct documented scope. Neither guarantees a node against every replacement path. Design a worker that can be replaced under approved conditions, and verify where durable state lives. Use the managed service's lifecycle and the intended availability model instead of relying on a manual protection toggle.
17. How would you investigate a bill after an instance was stopped?
Model answer. Confirm the exact resource, interval and billing category. Ordinary running compute usage can stop while retained EBS, snapshots, allocated IPv4 or supporting services remain. Commitments and licenses can have separate terms. Inventory the resources and account eligibility independently.
Follow the example. In a 24-hour worksheet the training instance runs for four hours and remains stopped afterward. Its lab EIP and EBS root stay allocated all day. Compute and allocation time differ. Do not treat a low CloudWatch CPU reading as evidence of no billing. A resource can be allocated or running independently of how many useful requests it serves.
Follow-up. Identify which items the lesson actually owns. If a network service or backup supports another class or app, retain it unless its owner authorizes a change. Verify disposal or retention by resource identifier, and review the appropriate billing view under its update schedule. A budget alert notifies the owner. It does not prove the change happened or that the bill is zero.
18. Does the word instance always mean a virtual machine?
Model answer. No. Amazon EC2 provides compute resources called instances, which include ordinary virtual instances and supported bare-metal options. A virtual instance uses a guest environment provided on AWS infrastructure. Some bare-metal types give the supported direct hardware access needed for specialized use cases. The customer still has an operating system and workload responsibility under the selected model.
Follow the example. A routine Mauli web worker wants an operating system to run a small package and serve HTTP. It can work with a compatible ordinary EC2 type. A different application might have vendor requirements for particular hardware access, specialized features or licensing. Confirm the precise requirement before selecting bare metal, dedicated tenancy or another model. These choices can have different cost, capacity and operational effects.
Follow-up. Keep three words distinct: instance type describes chosen resources, purchase or tenancy option describes relevant operating and billing terms, and AMI provides the starting machine environment. One compatible choice doesn't prove the others fit. State what you would verify for the intended workload, and then plan an approved test that checks both startup and the specialized requirement rather than relying on a name.
19. How do stop protection and termination protection differ from recovery?
Model answer. Protection settings can block particular supported actions while enabled. EC2 documents their behavior and exceptions, including the role of automated management and instance-initiated shutdown settings. A protected instance can still suffer an application failure or contain a damaged data file. Recovery needs separate copies, documented infrastructure and a procedure that proves a working service.
Follow the example. The instructor wants to prevent accidental removal of a practice server during the week, while allowing a planned pause outside class. Verify the intended account roles and covered protection settings. Read them in the console instead of attempting an actual destructive request to see if it fails. If an automated group manages the instance, inspect its lifecycle policies before concluding the manual protection applies.
Follow-up. A student suggests turning protections off and operating by friendly Name tag. The next answer should name verified scope and authorization. Use the exact resource, maintenance requirement and data retention plan. Test recovery without changing a shared workload. Protection against a mistaken click is useful, but it does not turn an untested backup into a working replacement or authorize a change on another resource.
20. How would you choose between a cold restore and a prepared standby?
Model answer. Start with the acceptable time to resume operation and acceptable data-loss window. A cold restore can create resources from verified copies after an incident, which can take time. A prepared standby can have part of the stack already ready, but has its own costs, software state, access and data consistency requirements. Test the chosen recovery path with an approved scenario.
Follow the example. Mauli's disposable tutorial could rebuild from an approved image and a retained synthetic data copy. The actual order service may need a different plan to meet its agreed recovery objectives. A standby host, copy of data or existing frontend only helps if the next request can use it and the restored data matches the requirements. Know how the application identity and database become usable at the target location. Measure how long each step takes.
Follow-up. If a colleague proposes shifting an Elastic IP to a standby, verify that the association can move in its placement scope and that the standby is already ready. The address can stay stable without preserving every existing connection or updating the data. Recovery includes confirming the intended operation and checking that any writes during the transition are handled under the owner's design.
Rehearse a closed-account interview using the Mauli training workload
Use paper, a timer, and the fictional launch record. One learner explains, while another changes one fact at each step. Start with a private Linux worker that reads a training object, serves traffic behind a public frontend and has EBS root storage. Label the intended Region, subnet, architecture, profile and app operation. The example only uses the concepts covered in this chapter. It does not require an AWS account or any deployment.
Minute one. Explain why the application needs EC2 and choose an image and type. The partner says its package is Arm-only. A useful response confirms both image and hardware compatibility before discussing size.
Minute two. Draw the management path versus the app's AWS identity. The partner says the instance has no public IPv4. Identify a documented private or managed path, guest checks and least-privilege app identity. Do not confuse a person logging in with the app's permission to its object.
Minute three. Predict one ordinary reboot and one stop/start. Note which public associations and EBS or process states change. The partner changes the request to termination. Which recovery copies and deletion flags must the owner confirm before it can proceed?
Minute four. The frontend returns an error even though the current target appears healthy. State the last verified operation and the next approved check. Give a reason a health probe can pass while the business operation fails.
Minute five. Close the worksheet with an allocation review. The compute is stopped, an EIP is still held and a volume has important data. Give an expected cost or ownership observation for each and identify the safe endpoint for cleanup.
The expected outcome is a readable diagram, one capacity or compatibility decision, three independent identity and readiness observations, and a verified retention plan. If you get stuck, state the case's assumptions and write what evidence would remove the uncertainty. This is a discussion exercise. Remove only your own scratch notes when finished.
In a practice score, give a separate point for identifying the applicable assumption. Launching a common EBS-backed instance, using a public IPv4 example, or working under an On-Demand plan are scoped cases. If the question is about hibernation, check support at launch. If it concerns a bare-metal type, check what the hardware access changes. If it concerns a price or Region, confirm the real terms. This small habit avoids confidently applying a settings table from last year to an environment your interviewer just changed. It also gives you a natural way to ask which details the question expects before supplying a prescription.
Defend one change when the interviewer gives you a different symptom
Start with an instance that you intended to launch from a compatible approved image. A student sees an empty view. The first answer should check the exact instance and account and Region selection. Now change the symptom: the instance is confirmed in the right environment and reports running, but the brand new guest cannot start its app. The next answer should inspect the image and startup outcome. Finally it writes the expected training file, but its application role cannot reach or read its object. The relevant identity or path needs separate evidence.
Ask a partner to read out one observation at a time. After each, say which earlier conditions have been confirmed. Do not recite the entire launch checklist again unless the new evidence contradicts it. A correct response when the guest rejects a key will differ from one when the startup script fails before listening. Give the reason for the difference, and name who can provide the next approved fact. This helps the interviewer see how you keep an investigation scoped.
Score three features of each answer: accurate description of the observed layer, a concrete next check, and a verification condition for the actual operation after any approved change. For full credit, mention that each observation could have multiple causes when appropriate. “Timeout means security group” leaves out routing, endpoint and guest state. “Review the exact address and approved path, then confirm its policy and actual listener” gives an evidence-driven progression. The practice uses no accounts or changes.
Choose the best technical follow-up for each answer
Which should match an application build that supports only Arm? A. An Arm image and supported type. B. Any x86 image with enough memory. C. A tag containing the word arm.
Show answer
A. The launched operating environment and instruction set must be supported by the app. Image and type supply different requirements. A larger incompatible machine cannot boot the image as required.
Which observation proves that a configured service responds to a training request? A. The instance is running. B. The image name is valid. C. An approved request returns the expected result.
Show answer
C. The useful response exercises the actual application path. Lifecycle and catalog observations come earlier and do not check the whole operation.
EC2 charges stopped but a lab bill remains. What next? A. Inspect resource allocation separately. B. Assume every associated resource is free. C. Delete all regional volumes.
Show answer
A. EBS volumes, IP allocations, snapshots or other services can remain under their own lifetime and pricing. Establish exact ownership and intended retention before cleanup.
The app receives a permission error from S3 after an operator logs in by SSH. Which identity is relevant? A. The site's public IPv4 alone. B. The workload's actual AWS principal. C. Every administrator's public key.
Show answer
B. AWS checks the actor performing the API request and relevant policies. Guest login and public networking are different controls. Check the required action and resource scope.
Which operation can retain the supported in-memory guest state while stopped? A. Hibernation when properly supported and enabled. B. Ordinary termination. C. A DNS record update.
Show answer
A. Hibernation stores the guest memory state on the configured encrypted EBS root volume. The app still needs to verify external connections and behavior after resume.
Which evidence is most useful after a claimed recovery? A. A backup tag exists. B. A permitted restore proves the required data and app operation. C. The old worker used a fixed IP.
Show answer
B. An application recovery check observes the required output and protected data in the approved environment. A tag or public address does not demonstrate a readable and correct restore.
Revision cards
- Launch inputs
- Image, compatible type, location, storage, identity and network each supply different requirements.
- Readiness milestone
- Check current instance state, startup, target path and useful application operation independently.
- Separate identities
- Human AWS access, guest login and workload API access have separate authorization decisions.
- Storage lifecycle
- Compare EBS persistence, deletion settings, instance store behavior and recoverable backups.
- Price and capacity
- Confirm actual usage and terms. A pricing commitment and available capacity solve separate needs.
- Scope before change
- Verify Region, ownership, dependent resources and the exact action before a shared system changes.
References
- Amazon EC2 concepts
- AWS shared responsibility
- Amazon Machine Images
- EC2 instance type compatibility
- EC2 burstable performance
- AWS instance purchase options
- EC2 user data behavior
- EC2 metadata options
- VPC security groups
- AWS SSH connection guidance
- AWS Session Manager prerequisites
- EC2 Instance Connect methods
- IAM roles for EC2
- EC2 instance lifecycle
- EC2 stop protection
- EC2 termination protection scope
- EC2 hibernation requirements
- Elastic IP associations and placement
- EC2 status checks
- AWS Linux filesystem and partition extension guidance
- EBS attachment zone scope
- EC2 Auto Scaling Standby
- AWS recovery objectives
- AWS public IPv4 and VPC pricing