Operational Responsibilities and a Safe Sandbox
Objectives
- Assign customer and AWS responsibilities for EC2 and RDS.
- Identify the account, Region, access, and spending safeguards needed for sandbox practice.
- Select an operational response from stated scenario constraints.
1. Start with the workload, not the service name
An operator needs two maps: where requests travel and who must act when a component needs attention. Consider this teaching workload: an application on EC2 sends SQL queries to a standard Amazon RDS PostgreSQL DB instance. The application and database run in a dedicated practice account. This is a conceptual example, not an instruction to deploy resources.
AWS maintains the infrastructure beneath these services, including physical facilities and the host and virtualization layers. On EC2, you still maintain the guest operating system, installed software, and security-group rules. Moving the database to RDS transfers routine database infrastructure administration to AWS; it does not transfer ownership of your application's behavior or data-access decisions. [S2][S4]
Read the workload diagram as a responsibility map as well as a request path. The customer owns the EC2 application and guest OS. AWS operates the standard RDS software platform; the customer chooses access controls and tunes workload-specific queries. [S2][S4]
Check yourself: A slow SQL query appears immediately after an application change. Does using RDS make query tuning an AWS task? No. RDS runs the managed platform, but the customer still owns query tuning and application optimization. [S4]
2. Assign responsibilities at the right layer
Avoid answers such as “AWS handles patching” without naming the layer and service. AWS patches underlying infrastructure, while EC2 guest OS and customer-installed application patches belong to the customer. Standard RDS moves OS and database software maintenance into the managed service. These statements describe standard RDS, not every specialized deployment option. [S2][S4]
| Operational task | Application or self-managed database on EC2 | Standard Amazon RDS database |
|---|---|---|
| Physical server maintenance and host infrastructure | AWS | AWS |
| Guest OS installation and patching | Customer | AWS |
| Database engine installation and software patching | Customer, if a database is installed | AWS performs managed maintenance |
| Application code and query optimization | Customer | Customer |
| IAM permissions and allowed network access | Customer configures access | Customer configures access |
| Backup and recovery operation | Customer arranges and operates it | AWS provides managed backup and restore mechanisms; customer selects settings and validates recovery needs |
The infrastructure and software distinctions follow the shared responsibility model and RDS management comparison. RDS supports automated backups, manual snapshots, and restoration, but those mechanisms must be selected and used to meet the workload's requirements. [S2][S4] Customers remain responsible for recovery procedures and actual recovery testing. [S5]
A managed capability is not the same as a completed operational outcome. For example, RDS can provide Multi-AZ redundancy and failover when you choose an appropriate deployment. That is different from restoring an earlier database state from a backup. Do not treat failover as protection against every logical data error. [S4]
Check yourself: Assign an owner to each action: patch the EC2 application's guest OS; replace a failed physical host; tune an RDS query; decide which application can connect to RDS. Answer: customer, AWS, customer, customer. [S2][S4]
3. Define a sandbox boundary before making changes
For this course, use the following recommended practice boundary. It is a course safety policy, not a claim that a separate account makes every action safe.
- Account: Use an explicitly authorized, nonproduction practice account. Record its account ID and compare it with your active console or CLI identity before changes. If the account is ambiguous, stop. Do not experiment in an employer's or another person's account without permission.
- Region: Choose one approved Region, record it, and use it consistently. Before choosing an RDS configuration, check that the engine, version, and required features are available there. Availability varies by Region and engine version. [S4]
- Access: Use an approved, narrowly scoped practice role rather than a broad administrative identity. Do not use the root identity for exercises. Prefer temporary sessions, protect the sign-in path with MFA, and keep credentials out of course notes and code. The principle behind this boundary is that customers own IAM and workload security configuration. [S2]
- Network and data: Use synthetic data only. For the illustrated workload, plan database access from the application's security group rather than general internet access. RDS supports security-group rules that limit access to the intended EC2 application. [S4]
- Exit conditions: Record a session end time, resource owner, resource inventory, and cleanup plan before provisioning. Tracking ownership and decommissioning resources are lifecycle cost controls. [S10]
The Bash example below is an optional read-only identity check for an already configured AWS CLI profile named sandbox. It creates nothing and does not configure credentials. Inspect the returned Account and Arn; an identity result alone does not prove that your permissions are safe. Compare the values with the account and role approved for your practice. The example Region is illustrative, not a required course location.
If a command fails, do not fix it by requesting unrestricted access. Diagnose the principal, requested action, resource, and applicable policy layers; an access-denied message can reveal only part of the authorization problem. [S36]
Check yourself: The console is in the sandbox account, but the CLI identity belongs to a production account. May you continue with a CLI deployment? No. Resolve the identity mismatch first.
4. Treat spending alerts as warnings, not a shutdown switch
Before creating anything, agree on an affordable spending allowance and review the selected services' pricing and account eligibility. Do not assume a tutorial, small instance, or Free Tier label guarantees zero cost. RDS eligibility and supported configurations have specific conditions and can change. [S4]
For a teaching example, suppose the approved monthly practice allowance is USD 10. You might configure actual-cost alerts at USD 5 and USD 8 and a forecast alert for exceeding USD 10. These are illustrative thresholds, not prices, required amounts, or a promise of protection. Confirm that the intended recipient can receive the notification and that the budget covers the intended account and charges.
AWS Budgets can notify through email or SNS using actual or forecast costs. Its information updates up to three times daily, typically 8–12 hours after the previous update, and billing delays can allow costs to exceed a threshold before notification arrives. A notification does not immediately stop resources or enforce a hard cap. [S7]
Optional budget actions can apply a policy restricting additional provisioning. That is a separate control, not a property of an ordinary alert, and blocking new provisioning is not the same as eliminating charges from resources already running. [S7]
Use layered safeguards: an approved small resource inventory, narrowly scoped provisioning access, a short practice window, alerts, and deliberate cleanup. Assign an owner to inspect usage and act on warnings rather than treating a budget as unattended insurance. Ownership, budgeting, and resource lifecycle management are complementary cost practices. [S10]
Check yourself: A budget has no alert yet. Does that establish that current spending is below your allowance? No. Budget information and notifications can lag usage. [S7]
5. Select a response using all scenario constraints
Original course practice question—not an official AWS exam item. The certification assesses operating, monitoring, securing, and remediating AWS workloads; this question practices operational judgment within that scope. [S20]
A sandbox has one EC2 application server and a standard RDS PostgreSQL DB instance. The EC2 guest OS has a critical vulnerability. Application latency also increased after a release; investigation identifies an inefficient SQL query. The practice window ends in 30 minutes. All data is disposable, the inventory is known, no backups need to be retained, and the operator is authorized to remove the practice resources. A cost budget sends notifications only. Which response best satisfies the constraints?
A. Wait for AWS to patch both services and optimize the SQL query; leave the resources running until the budget stops them.
B. Make the database publicly accessible so troubleshooting is faster; request administrator access to avoid delays.
C. Patch or replace the EC2 guest OS through the approved procedure, correct and test the query, and remove the authorized practice resources before the window ends, checking for residual resources.
D. Enable RDS Multi-AZ as the primary fix for the vulnerable EC2 OS and inefficient query; stop cleanup until a budget notification arrives.
Best answer: C. The EC2 guest OS is the customer's responsibility, and RDS query tuning remains a customer task. [S2][S4] C also respects the explicit lifecycle and spending constraints instead of waiting for a delayed notification. [S7][S10]
- Why not A? It assigns customer work to AWS and invents automatic budget enforcement. [S2][S4][S7]
- Why not B? It expands access without addressing either diagnosed cause. Customers must deliberately configure workload access; authorization troubleshooting should not default to broad permissions. [S2][S36]
- Why not D? Multi-AZ supplies redundancy and failover, not EC2 guest OS patching or query optimization. A budget alert is not a cleanup trigger you can safely wait for. [S2][S4][S7]
Change one constraint: If the database contained required records, immediate deletion would no longer satisfy the scenario. First confirm authorized retention and a tested recovery path. An operational answer must fit the stated requirements, not just sound economical. [S5][S10]
6. Close the loop: cleanup and a two-minute readiness check
For later hands-on exercises, make cleanup a verified outcome rather than a final button click. Resource lifecycle management includes decommissioning and deliberate data retention. [S10]
Use this recommended closeout procedure only for resources you own and are authorized to remove:
- Reconfirm the account, Region, and exercise inventory before destructive actions.
- Decide which data and recovery artifacts must be retained. For disposable exercises, follow the approved no-retention plan; for real workloads, do not delete required recovery copies merely to reduce cost. [S5][S10]
- Remove the exercise resources using their service-specific procedures. Inventory attached or related storage, snapshots, logs, and networking components separately rather than assuming one deletion removes everything. Snapshot and storage lifecycle management matter to cost control. [S10]
- Read back each service's resource inventory in every Region used by the exercise. Record anything intentionally retained, its owner, and its removal date. Do not equate stopping compute with completing decommissioning.
- Review billing information again after usage has been processed. Do not interpret an immediate unchanged budget display as proof of zero remaining charges. [S7]
No deployment is required to finish this lesson. Write a short readiness note containing your approved account, chosen Region, practice role, spending allowance, alert recipient, session deadline, and cleanup owner. Keep credentials and secrets out of it. If you cannot establish these boundaries, continue with diagram-based exercises instead of provisioning.
Exit check: Can you name the customer owner for EC2 OS patching and RDS query tuning? Can you distinguish an alert from a cap? Can you explain why C is correct using both responsibility boundaries and the cleanup deadline? If yes, you are ready to move into least-privilege access diagnosis.
# Read-only checks; requires an existing, authorized sandbox profile.
aws sts get-caller-identity --profile sandbox --region us-east-1
aws configure list --profile sandbox
Key takeaways
- AWS operates underlying infrastructure; EC2 guest OS and application maintenance remain customer work. [S2]
- Standard RDS manages database platform maintenance, but query tuning and customer access decisions remain yours. [S4]
- Before practice, establish an approved account, Region, role, spending allowance, time boundary, and cleanup owner.
- AWS Budgets notifications can lag usage and do not impose an immediate spending cap. [S7]
- Choose scenario responses by matching ownership, diagnosed causes, authorization, and retention constraints.
- Cleanup needs an inventory check and deliberate retention decisions, not just an assumption that resources disappeared. [S10]
Common mistakes
- Saying that AWS patches everything because the workload is in the cloud.: Name the service and layer: AWS maintains the infrastructure; the customer patches the EC2 guest OS and applications. Standard RDS shifts platform maintenance to AWS. [S2][S4]
- Assuming a managed database includes automatic application or query optimization.: Treat query tuning and application behavior as customer-owned work, even with RDS. [S4]
- Treating a budget notification as a real-time spending limit.: Plan for delayed information, inspect usage, control provisioning, and clean up deliberately. Ordinary alerts do not stop resources. [S7]
- Starting CLI changes after checking only the console account.: Check the identity and Region of the actual interface you will use. Stop if either differs from the authorized practice boundary.
- Deleting everything without considering retained data or recovery needs.: Apply the scenario's retention requirements first, then verify resource removal and document intentional leftovers. [S5][S10]
References
- AWS Shared Responsibility Model, Amazon Web Services
- What is Amazon Relational Database Service (Amazon RDS)?, Amazon Web Services
- Managing your costs with AWS Budgets, Amazon Web Services
- Cost Optimization Pillar – AWS Well-Architected Framework, Amazon Web Services
- Reliability Pillar – AWS Well-Architected Framework, Amazon Web Services
- Troubleshoot access denied error messages, Amazon Web Services
- AWS Certified CloudOps Engineer - Associate (SOA-C03), Amazon Web Services
See the full course: AWS CloudOps Engineer – Associate: Operational Essentials