Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 5: Amazon EC2 (Elastic Compute Cloud)

AWS Cloud

5.7 EC2 best practices

Friends, these rules are not just for interviews – you need them every day on a real server. Once the Amul-style dairy's server is live, check every point below once.

  • Least privilege security groups: Permit each approved connection from its actual source to the required protocol and port. Keep the database and management access on their intended restricted paths.
  • Protect keys: Use individual approved access and protect any private key with the platform’s file or key-store controls. Revoke or rotate affected access under the owner’s process. Keep private keys out of repositories.
  • Use IAM roles for instances instead of storing AWS access keys on the server.
  • Keep the OS patched: Apply approved operating system updates for the selected distribution. Test application changes, choose a maintenance or replacement window and verify the resulting service.
  • Right-size: Choose a measured starting size and track the workload’s CPU, memory, storage, network and dependency behavior. Scale the actual limiting component.
  • Tag everything: Name, Owner, Project, Environment use the account’s agreed keys and trusted owner records. Tags can help inventory and billing when the relevant features are configured.
  • Backups: Choose the appropriate backup policy for EBS, images and managed data. Use automated retention where appropriate and verify an authorized restore.
  • Plan endpoint identity: use an Elastic IP for a requirement for a fixed public IPv4, or a stable DNS name for the approved service endpoint.
  • High availability: Choose the availability pattern for the workload. Multi-AZ application targets and a load balancer can help in suitable designs when data and other dependencies meet the same requirements.
  • Cost hygiene: Review approved resource ownership, usage and retention before removing anything. Check stopped compute, held storage and public IPv4 separately. Set budget alerts if authorized and verify the resulting inventory.
  • Monitor: Use applicable EC2 status checks, needed guest metrics and authorized verification of application outcomes. Give each alarm an owner and response plan.

Ravindra Bagale's Tip

Many students give an instance only a Name tag and forget the Owner and Project tags – then at the end of the month nobody knows which server belongs to whom, and the clean-up never happens. Add tags like Project=mauli-dairy and Environment=dev while launching. Don't forget this at all.

Lab

Review one approved training instance or use the supplied sample. Compare expected network exposure, ownership tags, workload identity, current patch evidence and the applicable protection and restore plan. Keep the review read-only and report which owner would approve an actual change.

Turn a live instance into a service with explicit owners and tests

Mauli Dairy used a disposable instance to learn the launch workflow. A real tracking service has a longer life. Customers expect the site to work tomorrow, employees need records to survive a replacement, and someone must respond when the application fails. A good EC2 operating checklist gives each part a named owner, a reason it exists, a way to verify it, and an agreed time to review it. Treat the checklist as evidence about the workload rather than a list of settings to turn on regardless of context.

Start with the visible operation. A signed-in training customer should locate an approved synthetic order and receive its status within the measured target time. The service depends on a public frontend, private application targets and an approved data store. The app might also need a service role and a deployment process. Create a record for each dependency. If Mauli expands into another zone or replaces an instance, the receiving team can verify the required operation rather than trying to reproduce one old instance's address.

State what a failure means to the owner. A development worker can sometimes be unavailable while its operator reapplies settings. A production order service may need continuing capacity and an agreed recovery or rollback path. Ask about acceptable downtime, acceptable data loss, network exposure and access. Those requirements guide instance type, placement, backup and scaling. Good practice uses a named need, such as a night-time job that must resume without losing completed work, to choose the relevant design.

The exercises on this page work with copied example information or an approved read-only instance. Do not treat a checklist item such as patching, installing an agent or deleting a disk as part of a read-only review. First collect the evidence, then hand an actual change to its authorized owner with an expected result. Keep real identifiers, access settings and private records in the environment's approved documentation.

Limit network reachability to the callers and ports the workload needs

Draw the paths for customers, operators and applications separately. A public Application Load Balancer can accept the intended customer HTTPS traffic. Its target path can connect to private EC2 workers on their approved service and health ports. The instances might also need outbound access to a database, software repository or service endpoints. An administrator should use the management path the organization supplies, such as an approved private network or supported managed session. The app target's private path and an operator's administration path have different callers.

A security group is a stateful network filter for associated resources. When permitting a connection, record its caller or source, destination or direction and actual protocol and port. A target security group can reference the frontend's group in supported scenarios. Its rule belongs to the target's actual port, which might not be the public listener's port. A database path should accept the application that owns the connection under its own scoped rule and service identity. The fact that two resources share a VPC does not determine their allowed traffic.

Review which address family the rule applies to. A permissive IPv4 CIDR and a permissive IPv6 CIDR are different matches. Check actual routes, security groups, relevant subnet controls and intended application policy. The “My IP” selector can be useful for an authorized short direct exercise using one known source. It is not authentication, nor is it a good record of who should have permanent management access. A user key and operating system permission still need to be approved.

Check the resulting path rather than the number of rules. A permitted test might show the frontend returns a correct synthetic result, the app accepts only the intended backend source, and an approved operator can access the worker through the designed path. A broader rule added to diagnose a timeout can mask a mistake without fixing a missing listener or identity. Change the narrow approved cause when the evidence shows which part is missing. Do not widen database or management exposure merely to make a checklist green.

Give the human operator and the workload different identities

A person who can change an EC2 instance through the AWS console needs authorized AWS permissions. A person logging in to the guest needs the selected management path and guest identity. An application that reads a particular S3 prefix needs AWS authorization for that operation. None of these three roles needs every other role's privileges by default. Place the expected identities and actions in separate rows before reviewing the instance.

For human use, AWS recommends federation and temporary credentials where appropriate. The organization's approved identity system can grant access to a role with a defined scope. Keep root user credentials for the limited cases where the account requires them and protect the account according to its policy. For guest login, use the required connection method and protect private keys or short-lived session access. If an employee changes roles, remove or adjust their individual authorized access rather than leaving an unmanaged shared copy in use.

For the application, an EC2 instance profile can attach an IAM role with the supported AWS permissions. The application's toolchain can use temporary credentials rather than storing long-lived access keys on disk. Verify the least scope of actions and resources. A role that reads one object prefix does not need full bucket administration. A service-side policy, encryption key permission and network access can still matter. A successful AWS API call from an operator's terminal does not prove the app role can make it.

Review instance metadata options as part of the launch policy. AWS lets you configure whether the metadata endpoint is enabled and which access mode is required under the chosen settings. Where permitted by the workflow, require and test IMDSv2 compatibility. Some workloads do not need metadata at all, while SDK and bootstrap behavior can depend on it. Make the change under a tested launch or maintenance plan. Keep secrets out of user data, tags, read-only worksheets and verbose logs.

A small identity test confirms both the allowed behavior and the agreed boundary. Use a training object and a role approved for it, check that the intended operation works, and verify the policy scope through the approved review. Do not use unrelated production data as a test. If an access error appears after a release, inspect the effective role and resource policy before attaching broad privileges. A least-privilege plan is complete when the actual workload can do its job and the account owner can review why.

Patch with a maintenance plan and keep deployment choices reproducible

A package update is a change to the running guest. It can restart a service, install a new kernel or modify dependencies. Begin by recording the approved operating system, current image version, package policy, active instances and the business operation that must continue. Choose a maintenance window and test the intended update on a representative instance or approved environment first. Read the distribution's guidance and required restart behavior for the selected change. The command used on one Amazon Linux release might differ from Ubuntu or from another Linux version.

One operating model updates existing workloads with an approved tool and controlled schedule. AWS Systems Manager Patch Manager can install approved patches under documented managed-node prerequisites and policies. Another operating model builds a refreshed image, verifies it, and replaces eligible workers through a controlled rollout. Either method still needs an owner who evaluates and verifies the application. A package report can show patch state. It cannot test whether a particular customer order is handled correctly.

A reproducible launch uses an approved image and configuration, a compatible type and documented bootstrap. Use versioned artifacts or a launch template where the operating plan calls for it. A new worker should not need undocumented changes in the guest to become useful. If classroom installation uses user data, verify what the boot script actually finished, and keep credentials outside it. An expected app version discovered by inspection is more useful than a note saying “software installed.”

A controlled replacement can start one candidate, check target health and run a synthetic app operation before shifting broader traffic. The current fleet can continue to serve under the approved rollout plan while the owner verifies the replacement. If you must roll back, have the previous known working version and state plan ready. Some database or data format changes cannot simply move back with an old machine image. Verify compatibility and authorized procedure before treating a switch as reversible.

Protect durable data and prove it can be restored

Decide where the application holds authoritative data. EBS can store an operating system or application state, a managed database can hold transactions, and another service can hold documents or large objects. Backup each important data set with the procedure appropriate to its owner and consistency requirement. An AMI helps launch a machine image. An EBS snapshot records volume blocks under its documented semantics. Neither description says the copy contains the last authorized order or can be restored by the current team.

Use the storage encryption and key policy approved for the workload. Amazon EBS encryption can protect supported data, snapshots and volume traffic under its service design. Review which identity can use the configured KMS key and which accounts or Regions are involved in a restore. A successful snapshot owned by one environment might not be usable elsewhere without the intended permissions and service process. Protect keys and backups using their own policies.

A backup plan should state when the copies are created, how long they are retained, and what business loss is acceptable. Recovery time objective is the target window for getting the service usable again. Recovery point objective is the acceptable amount of recent data loss defined by the owner. These guide the schedule, backup scope and resumption steps. A volatile build cache can be rebuilt. A confirmed payment or order uses a different standard.

Reliability includes a test restore. Use a disposable or approved recovery environment with synthetic or permitted data. Restore the relevant files or database under the correct procedure. Verify a representative record and one allowed application operation, measure the time, and record which dependencies were required. If a backup does not meet the target, change the data strategy or execution plan. Do not delete older snapshots simply because they are in a list. Check retention policy, dependencies and ownership first.

Monitor the signals that describe the service and its dependencies

A CloudWatch CPU metric helps show processor use. It does not report memory by default for every guest workload and it cannot tell whether an order belongs to the right person. Decide what symptoms you need to detect. Use EC2's documented status-check and platform metrics for machine signals. Use appropriate guest instrumentation, such as a properly configured CloudWatch agent where approved, for relevant memory, filesystem or log data. Use an application request and response metric to observe user-facing service behavior.

QuestionUseful evidenceWho uses it
Is the EC2 platform or instance reporting an impairment?The selected applicable EC2 status check and timing.The infrastructure or service owner responsible for the affected resource.
Does the app return the intended result within the target time?Authorized synthetic requests, service errors and response-time measurements.The application owner and support team.
Is the guest close to exhausting memory or disk?Approved guest measurements and an observed process or filesystem trend.The operating-system owner who can assess a change.
Can a dependent vendor or database answer the expected operation?Scoped application timing and error observations for the actual dependency.The service and dependency owners.

Set an alarm around a meaningful condition and identify its owner and response. A high CPU alarm for one brief moment can produce regular noise if it coincides with normal work. A longer or correlated observation may be more useful. On a steady app, rising request errors and queue time may reveal a user problem even when CPU is low. Understand metric periods, evaluation and missing data behavior under the alarm's design. Verify the notification path and that an operator knows what to check.

Retain logs under the organization's access and cost policy. Logs can contain IPs, account identities or app details. Collect the needed fields and no unrelated sensitive data. Know which timestamp and source help align observations across components. A bad response in a browser at a specific time is easier to trace if the front end and app share a request identifier in their approved records. The useful record is the one that narrows the next check.

Size and spread capacity for real traffic and agreed failures

Review what each service request actually does. A small order display might use very little CPU but wait on a storage dependency. A batch job might use CPU steadily and need local working storage. A memory-heavy task can slow or fail long before average CPU looks high. Gather the relevant metrics and compare them with representative traffic, including peak periods and background work. A lower-sized lab instance can be appropriate under a measured synthetic workload. It does not prove the same type is correct for a production system.

Use a larger type where the approved workload genuinely needs more memory, CPU, network or storage. Use several workers when the application can share traffic and its data and identity design allow replacements. Test the actual runtime and architecture before switching families. A change can affect CPU credits, instance-store availability or supported features. Record cost per useful operation when comparing choices, as well as response time and reliability.

For an important service, decide which outages the design must tolerate. Placing app targets in multiple Availability Zones behind a load balancer can improve availability in a suitable architecture. Confirm that the data tier, egress path and other required services support the same design and capacity. A single-zone dependency can still prevent a multi-zone set of workers from completing the important operation. Resource location is part of the evidence, whereas tested recovery or redundancy supplies the useful result.

Write a planned scale test in an authorized environment: which synthetic request it uses, the rate, expected response time, errors, startup delay and safe scale-in conditions. A scaling automation should verify whether targets become ready before sending production traffic. If a failed instance needs replacement, know whether active work is safely retried or served elsewhere. A cloud resource count does not establish useful working capacity.

Track who owns each allocation and whether it should still exist

A predictable naming and tag convention helps the team identify resources. An instance can carry names such as project, environment, owner and retention date under the account's policy. Tags can help group inventory and costs when the relevant billing features are configured. A friendly tag does not prove an item is unused, and a missed tag does not make a resource safe to delete. Verify the actual resource record and accountable owner.

During an approved cost review, distinguish an underused instance from its attached or separate resources. The instance may be stopped or replaced. Data volumes, snapshots, public IPv4 allocations, NAT gateways, load balancers and log storage can stay independently. Check charges and operational needs before deleting anything. A detached volume might be a planned recovery copy. An EIP missing an EC2 instance ID might belong to a gateway. An old image may be a selected rollout fallback. Use the approved retention and dependency evidence to identify genuinely removable items.

Estimate and monitor actual cost. AWS Budgets can alert designated owners about usage and forecasts based on the configured view. Budget alerts have their own timing and behavior and should not be treated as a hard spend ceiling. An account can use additional policy and permitted resource choices to manage exposure. Follow current program eligibility and pricing. Avoid a generic “free-tier instance” assumption for storage, networking or services held around the instance.

Report cleanup with the exact owned scope. If one disposable training instance is no longer needed, identify it and the relevant attachments, then verify the expected state after any authorized action. A transferred or age-based cleanup can include old copies if policy and data owners approve it. An empty account screen is not a success condition. The state or retention of each known resource is evidence, while the billing history verifies the separate cost question under its normal update schedule.

Run an offline operations review against a sample launch record

Use Python 3 or a worksheet. The sample organization expects a private worker with an approved app role and IMDSv2 required. It will allow a recent verified restore and a documented owner. These conditions belong to the synthetic exercise. Actual requirements should come from the environment's operating policy and documented compatibility. The program compares two example observations and prints missing review items. It cannot access or change an AWS resource.

python3 - <<'PY'
records = [
    {
        "name": "blue training",
        "public_ipv4": False,
        "profile": "mauli-app-reader",
        "metadata_tokens": "required",
        "approved_restore_test": True,
        "owner": "delivery-training",
    },
    {
        "name": "green training",
        "public_ipv4": True,
        "profile": "mauli-app-reader",
        "metadata_tokens": "optional",
        "approved_restore_test": False,
        "owner": "",
    },
]
for record in records:
    checks = [
        (not record["public_ipv4"], "review public address"),
        (record["profile"] == "mauli-app-reader", "review workload identity"),
        (record["metadata_tokens"] == "required", "review metadata mode"),
        (record["approved_restore_test"], "verify approved restore"),
        (bool(record["owner"]), "identify owner"),
    ]
    findings = [finding for passed, finding in checks if not passed]
    print(record["name"] + ": " + (", ".join(findings) if findings else "record meets worksheet checks"))
PY

The Blue record should meet the stated worksheet checks. Green should flag a public address, metadata mode, restore evidence and missing owner. Its role label matches the supplied example, but the name alone does not prove the role grants correct actions. Both rows still need application verification. Describe what extra evidence you would ask for on each finding and who is authorized to make a change.

Change Green to include an approved owner but keep it public. The missing-owner finding should disappear independently. A change in one property doesn't repair the other. If Green intentionally serves a complete public frontend under an approved design, the private worker's expected policy was applied to the wrong role. Review the environment's intended paths before interpreting an automated flag. The exercise's checks are simple matches against stated requirements, not a universal validator. There are no local or cloud resources to remove.

Review the actual settings of one permitted training instance

Use a sandbox with permission only for the relevant read operations. At the console verify account, Region and exact instance, then record its image, instance type, private or public paths, instance profile and metadata settings. Check the listed groups and volume mapping at the level your role can view. If tags are in scope, note only the expected owner and role fields in your private worksheet. Inspect related resources separately. Skip any field you are not authorized to read.

The following read-only CLI query returns a compact projection for the permitted training instance after you replace the placeholders. It does not return credentials or modify settings. The projection includes cloud settings that still need to be interpreted beside the approved launch plan.

LAB_PROFILE='REPLACE_WITH_TRAINING_PROFILE'
LAB_REGION='REPLACE_WITH_TRAINING_REGION'
LAB_INSTANCE='REPLACE_WITH_TRAINING_INSTANCE_ID'

aws ec2 describe-instances \
  --profile "$LAB_PROFILE" --region "$LAB_REGION" \
  --instance-ids "$LAB_INSTANCE" \
  --query 'Reservations[].Instances[].{State:State.Name,Image:ImageId,Type:InstanceType,Public:PublicIpAddress,Profile:IamInstanceProfile.Arn,MetadataTokens:MetadataOptions.HttpTokens,Groups:SecurityGroups[].GroupId,Volumes:BlockDeviceMappings[].Ebs.VolumeId}' \
  --output json

A known private worker can show no ordinary public IPv4. The profile and group values show associations, not their effective permissions. The metadata tokens and volume ID help identify what configuration or storage to inspect next. A successful query does not establish that any backup was restored or that the app is patch-current. Those are independent checks from their respective owners or tools. Read approved status and release records if the worksheet asks for them.

Complete the exercise with one finding described accurately. For example, “The training worker has the intended private association and approved role name, but there is no verified restore for the current test configuration.” That does not instruct you to make a live restore. Record who owns it and what a successful authorized training test would prove. Cloud access errors and absent values should be reported separately. The read-only exercise creates no resource and has no cloud cleanup.

Turn a finding into a small change with a test

Suppose a team discovers that a deployment role can read far more objects than Mauli's app needs. Before changing access, record the exact intended operations, the app release, its current credentials and the approved storage path. Work with its owner to establish a narrower policy and confirm that the essential request still works in a representative training environment. If a deploy process also uses that role for tasks outside the app's scope, plan how to separate those responsibilities rather than silently removing required access.

Apply the same method to an instance sizing or patch issue. Establish the expected current behavior, choose the smallest change consistent with the owner's need, and identify which checks would show side effects. Keep an approved previous configuration or recovery method. Recheck actual settings and service behavior after the test. A successful test helps expand the rollout under the approved plan. A failed test returns useful evidence without justifying account-wide changes.

Use the issue record to distinguish the priority. Unexpected public reachability for private records needs review with the security and service owner. A missing descriptive tag can be resolved safely under a different schedule depending on policy. A backup that has never been restored leaves an important unknown for critical data. The risk comes from the business impact and exposure, not from the visual size of the warning in a checklist.

Limit what the application process can do inside the guest

IAM permissions and security groups govern different parts of the environment from Linux user permissions. An app running on EC2 gets some of its ability from the local account that starts the process. That account can access particular files, ports and processes according to the guest's configuration. Even an application with a narrow AWS role can run with broad local privileges if the host is configured that way. Review both sets of permissions. A policy on one system does not automatically constrain the other.

Use an application service account when the operating design calls for it. Give it read access to the installed code and approved configuration, and write access only where its runtime genuinely needs it. The deployment user may need to install or replace files that the web process itself should only read. Keep temporary output, durable data and executable code in distinct locations under the app's approved ownership. If folders are writable to everyone, inspect the actual need before setting broad permissions to fix an application error.

In a test environment, identify the effective user using the local service and process records the owner permits. Verify directory permissions for the specific paths the deployment and runtime use. If a file is unreadable, check the caller's user, group and the permissions on the containing directories before changing any mode. A command that works using an administrator role can still fail as the app's actual user. Test the same app operation from its real runtime identity and document the successful file or network access without collecting secrets.

Some workloads need specialized system privileges, access to local hardware or a managed agent. Review those permissions as specific requirements with the operating-system owner. Keep a small and understandable change record. When a service launches on a replacement host, verify that any required paths, runtime user, file ownership and granted permissions were captured in the deployment artifact. Manual changes on only one running host create inconsistent behavior after scaling or replacement.

Measure a useful service goal instead of treating every alert alike

Mauli defines a synthetic request that reads a training order and produces a known response shape. The team measures this request in an approved window: 1,000 operations, of which five fail to complete as expected. The observation yields a 0.5 percent failure proportion in that sample, and 99.5 percent of the measured operations succeeded. Averages can hide which caller, zone or type of request failed. Inspect the scope of the sample before describing the entire service.

Set separate observations for success and speed. For example, a request can respond within a short time with a clear application error. Another can succeed but take too long. Decide which outcomes count toward the service goal and which metric systems capture them. An alarm should show affected environment, period, operation and relevant links or approved records. This lets the operator locate the symptoms without exposing full application payloads or customer details in a notification.

Now imagine one of the two target groups reported a brief error burst while deployment moved traffic. Inspect the deployment time, target set and actual response codes. Ask whether failures came from customer entry, application startup or a shared data dependency. Do not interpret the failure count without understanding what got measured. A working infrastructure health check is consistent with an application returning slow or invalid results. A monitored service is easier to operate when each signal has an expected audience and verification step.

Build the first-response checklist from the evidence you expect to see. For high application errors with normal EC2 status checks, look at application dependency timings and relevant deployment changes. For EC2 status impairment with some target traffic still working, inspect the affected resource and group coverage. For a usage alarm, match charge categories to resource inventory before changing workload capacity. A review that makes these conditions explicit helps operators choose the right tool under time pressure.

Rehearse an operator handoff when a resource owner is unavailable

The instructor is called away after creating Mauli's training resources. A second operator needs to determine which configuration is current and which resources should stay until the next lab. Practice with a record that has one tagged running worker, a detached EBS volume described as recovery-test data, an older AMI labelled as a previous approved version, and an EIP attached to a gateway shared by two exercises. The fact that the departing instructor created an item does not tell you who depends on it now.

For each resource, state the owner, expected role, retention rule and verification step. The running worker may be intended for the next exercise. The detached volume needs a documented decision about data protection and restore evidence. The older AMI may be needed until the current deployment is verified. The EIP belongs to the shared path while the gateway uses it. No resource should be deleted in this rehearsal. A correct worksheet shows what has to be confirmed with the account's authorized owner.

Now imagine a potential urgent risk. The worker was preparing a demo that should be private, and the account view shows an unexpected public endpoint. Record the instance and approved intent, then involve the relevant service and network owner. Review actual route and allowed exposure before making the narrow authorized correction. Another alert, such as a missing label, can be recorded for routine follow-up. Handle the difference based on exposure and service impact instead of simply fixing whichever item appeared first on a console screen.

Finish with a handoff entry of useful evidence. Name the verified current state, any approved tests and what is unknown. Indicate which update or backup decision still belongs to the resource owner. Record a specific time or review event rather than leaving “clean up later” without an owner. The goal is for a qualified teammate to continue work without searching for your private tool session or guessing what the last person changed.

Prepare an operations handoff for a second owner

  1. Write three permission rows for a customer, a guest operator and an app calling S3. Name the path and authorization for each. Explain the verification you want from the actual actor and why another actor's successful request cannot replace it.

  2. Plan a test rollout for a guest patch that requires restart. Include the current app operation, an approved candidate or maintenance instance, the expected version, a controlled regression check and a workable rollback or recovery plan. State what is measured on the instance and what is measured at the app endpoint.

  3. Build a sample inventory with two EBS copies, an EIP, a security group and a worker. Give each an owner and retention reason. Propose a verified cleanup for the one item the lab no longer needs. Show how you would protect any shared service and confirm the outcome by identifier.

  4. Prepare one useful notification for a failure of the synthetic order operation. Select its metric or check, timing and owner. Write the exact first check the owner should make. Include an explanation of what can fail with normal CPU readings.

Interview questions and worked answers

How do you define least privilege for an EC2 workload?

Write the allowed actions, protected resources, identity and network path for the service. Use the approved role for workload AWS access and distinct permissions for operators. Verify the app can perform its intended operation under those controls without granting broader unrelated access.

What should you check before applying patches to a running instance?

Identify the exact OS and package policy, affected service and expected restart requirements. Verify a representative instance or managed rollout, confirm maintenance scope and protect recovery. After the change verify the installed software and the user's actual application operation.

Why is a snapshot not proof that the app can be recovered?

A snapshot is a storage copy under its documented semantics. Verify that it contains the needed data, can be restored by the authorized owner, and supports the required application result within the agreed objectives. Other services and configurations may also be needed.

What does right-sizing need besides a CPU chart?

Use representative workload throughput, response time, errors and the actual memory, disk, network and dependency behavior as relevant. A workload can be blocked by another tier while CPU is low. Review availability, compatibility and price when evaluating a size.

How should a budget alert influence cleanup?

It informs the owner about a usage or forecast condition. Use the approved inventory and resource lifetimes to identify causes and independently verify which resources are shared or retained. A notification does not remove resources or replace permission to make changes.

Check the evidence behind each operating decision

  1. The app cannot read its approved S3 object after a release. Which permission belongs in the first review? A. The guest's entire administrative role. B. The actual workload's approved AWS role and relevant resource policies. C. Everyone's SSH key.

    Show answer

    B. Find the identity that sent the request and the policies for the object and action. An operator login or a different person's key does not determine workload permission.

  2. What best demonstrates that a backup meets Mauli's requirement? A. The snapshot exists by name. B. The IAM user can see the volume list. C. An authorized restore proves the specified data and sample operation.

    Show answer

    C. The restore tests actual usability and recovery scope. A snapshot listing or read permission gives earlier evidence and cannot prove that part of the recovery goal.

  3. Average CPU is low but application response time is high. What should you inspect? A. Relevant waiting time and dependency behavior along the actual operation. B. Only the instance label. C. Immediately choose a much larger CPU size.

    Show answer

    A. A delayed database, network dependency or other bottleneck can produce slow requests while the guest CPU remains available. Measure the failing stage before sizing.

  4. An EIP has no displayed instance ID. What comes before cleanup? A. Review association, service use and ownership. B. Release it immediately. C. Change every associated DNS record in the account.

    Show answer

    A. An address can belong to another supported service or an approved reserve. Verify relevant dependencies and delete only the specific authorized resource if no longer needed.

  5. Which fact is enough to demonstrate the app's representative operation? A. The instance reports running. B. An approved synthetic request returns the expected result within the stated check. C. A restrictive network rule exists.

    Show answer

    B. The expected application request adds evidence about the full tested behavior. Instance state and policy alone cover earlier conditions and may be correct even when an app dependency fails.

Revision cards

Identity by actor
Operators, app roles and customers get distinct authorized actions and evidence.
Network scope
Permit the actual path, protocol, port and source. Check guest and application identity separately.
Maintenance verification
Test the approved release or patch and verify a representative operation, not only the package state.
Restore proof
Verify current permitted data can be restored and used within the agreed recovery objectives.
Measure the bottleneck
Use guest, platform and application evidence to guide sizing and alerts.
Ownership before cleanup
Check shared services, retention, exact resource IDs and applicable charges before an approved removal.

References