Chapter 1: Networking Fundamentals
Common Mistakes I See Students Make
Friends, this list comes from my classroom – these networking mistakes happen in every batch. Read it once and keep it in mind; it will save you time later on AWS.
मित्रांनो, ही लिस्ट माझ्या क्लासमधली आहे – नेटवर्किंगच्या या चुका प्रत्येक बॅचमध्ये होतात. एकदा वाचून ठेवा, म्हणजे पुढे AWS वर तुमचा वेळ वाचेल.
दोस्तों, ये लिस्ट मेरी क्लास की है – नेटवर्किंग की ये गलतियाँ हर बैच में होती हैं. एक बार पढ़कर रखो, तो आगे AWS पर आपका टाइम बचेगा.
- Confusing IP and port. Opening port 80 in the security group does not give your server a public IP, and a public IPv4 association does not change the network policy. A directly reachable public server needs the intended association, route, policy and listener. A private app can instead serve requests through a public load balancer.
- Opening every port to 0.0.0.0/0 "just to test". Then forgetting to close it. MySQL and MongoDB use configurable ports, commonly 3306 and 27017 respectively. Permit a database connection only from the workload or management path that needs it.
- Thinking 192.168.x.x or 10.x.x.x is reachable from the internet. RFC 1918 addresses are routed within connected private networks, such as a VPN, and are not routed on the public internet.
- Forgetting that the auto-assigned public IP changes after stop/start. Students update their DNS or WordPress URL, stop the instance for the night, and the next day nothing works.
- Using
::twice in an IPv6 address (e.g.2001::1::5) — invalid, because the length becomes ambiguous. - Counting all addresses as usable. An ordinary AWS /24 has 256 total IPv4 values and reserves five, leaving 251 initially available for assignment.
Extended notes for this AWS lesson
Why students get stuck here
AWS pages look simple until three things collide: the service setting, the VPC/security group, and the app configuration. The expansions below separate those layers with real stacks and sample commands.
The same pattern in app stacks
Whether the data store is RDS MySQL, PostgreSQL, or another engine, apps read an endpoint + user + password from the environment.
Java / Spring Boot
spring.datasource.url=jdbc:mysql://ENDPOINT:3306/db with password from Secrets Manager / env.
Python / Django / Flask
HOST from env; never commit settings with real hosts.
Node.js
mysql2/pg clients with process.env.DB_HOST.
.NET
ConnectionStrings via env or Parameter Store.
PHP / Laravel
DB_HOST in .env, not in Git.
Go
database/sql with env-based DSN.
Indian company (sample)
Suppose we are a junior cloud engineer at Swiggy or Razorpay-style infrastructure. A new microservice cannot reach RDS. You check: 1) SG on RDS allows the app SG on 3306/5432. 2) App is in a private subnet with a route to the DB subnet. 3) The secret in Secrets Manager matches the rotated password. 4) You connect with the mysql/psql client from the app host before blaming the ORM.
Global practice
AWS Well-Architected Security and Reliability pillars: scope security groups to the intended callers, select database availability and backup settings based on recovery requirements, and keep internal data paths private.
Everyday analogy
A warehouse (RDS) should not open onto the street. Delivery bikes (app servers) enter through a staff gate (security group) with a badge (password/IAM auth).
Engines and ports
MySQL / MariaDB on RDS
Port 3306. Users and grants like self-managed MySQL.
PostgreSQL on RDS
Port 5432. Prefer scram auth.
SQL Server on RDS
Port 1433. Common with .NET shops.
Amazon Aurora
MySQL or PostgreSQL compatible; learn the endpoint types (cluster vs reader).
Load balancers in one breath
ALB is for HTTP/HTTPS apps (Spring, Node, Django, .NET). NLB handles transport-layer traffic such as TCP or UDP on supported listeners. GWLB helps deploy virtual network appliances. Classic Load Balancer is the previous generation. Choose the frontend and backend encryption design for the workload and use a suitable certificate for every TLS listener.
Common EC2 and Linux mistakes (expanded)
- Plan an approved recovery path before losing access. Systems Manager Session Manager is an option when the instance, role, agent, connectivity and user permissions meet its prerequisites.
- Editing a training server without a recovery plan → identify needed application configuration, data and rebuild instructions, then verify the approved restore process. An AMI and bootstrap script have different roles.
- Opening 0.0.0.0/0 on SSH → restrict to your IP or VPN.
- Forgetting Elastic IP / DNS when testing restarts.
- Growing an EBS volume without checking its partition and filesystem. Inspect the actual partition layout and filesystem type before following the matching expansion procedure.
Common mistakes
- Publicly accessible RDS "for a quick test" left open.
- Mixing Classic LB advice with ALB listener rules.
- Hard-coding IPs instead of DNS names for RDS endpoints.
- Taking snapshots but never testing restore.
Worksheet
- Draw your VPC boxes: public subnet, private subnet, RDS subnet.
- Write the SG rules in a table.
- In an approved lab, verify the expected database connection from the intended application host and record which layer returned the result.
- Write the restore steps for a sample snapshot and state how you would verify a successful restore in a disposable environment.
Recap
- Service + network + app config.
- Private databases.
- Prefer ALB + ACM for web apps.
- Practise restore, not only backup.
Replace “cannot connect” with a reproducible observation
It is the morning of Mauli Dairy's training demo. The instructor tells the group they should be able to open a sample delivery tracking page. One student reports that it is down, another says it works, and a third says they can reach the server but cannot find an order. Before changing an AWS setting, ask each person what exact action they performed, where they performed it and what they observed. Those three descriptions can refer to three different successes or failures on the same system.
Record the client and access path first. The student running a command inside the instance has a different route than a student trying through a browser at home. Write down the intended hostname, protocol, port and request path. Collect the response or error from a test you are allowed to perform. Note the time if other people may be changing configurations. A report such as “approved office client, tracked DNS name, IPv4 HTTPS port 443, at 10:15, connection timed out” gives someone a narrow place to begin.
Make another column for what the successful behavior should be. A private database refusing a direct connection from a public learner's device can mean the network is correctly enforcing its design. The same service rejecting its approved application identity is a different matter. The expected result helps you see the difference between a new fault and a boundary working as intended.
Then move in order through the evidence. A service name should resolve to the expected address family and endpoint. A route should carry the request and reply. Network policy should permit the specified flow. An appropriate listener must be active. TLS and application checks then establish whether the connection delivers the intended operation. If a request fails at an early layer, evidence from a later one may remain unknown. Resist turning every unknown into a change request.
One compact worksheet can use rows for name, address, route, policy, listener, TLS and application outcome. Fill each with expected behavior, observed behavior and the next authorized check. Use documentation values such as 192.0.2.25 in a shared worksheet. Actual secrets, identifiers, customer records and sensitive network information belong in the approved support system.
Separate the address, protocol, port and service
An IP address helps the network deliver traffic toward an interface or endpoint. A transport port lets a machine direct TCP or UDP traffic to the appropriate service or connection. In an ordinary browser request to https://tracking.example.com/healthz, the scheme asks for HTTPS and implies a default destination port unless one is specified. The DNS name is looked up, the connection is directed to the selected address and port, and the server uses the host and request path to handle the application request.
Imagine the console shows an Elastic IP on a test instance. A colleague concluded the tracking page must be working. That association describes the instance's public IPv4 identity for its intended path. The subnet still needs the internet gateway path for this design. The approval rules still need to permit the specific caller's connection. The process still needs to listen or receive requests through a proxy or load balancer. A good check proves each missing part without treating a successfully assigned address as a website test.
Now suppose the trainee authorized TCP 443 to a service, but the only test process listens on port 8080 and on loopback. Port 443 policy may belong to the public listener, while an internal target group uses another port entirely. Look at the process's listening address, protocol and port using the tools approved for that host. A loopback address only accepts the local path. The port in a listener's configuration and the port in the packet's destination need to fit the actual forwarding design.
On Linux, ss -ltn lists listening TCP sockets numerically. A row for 127.0.0.1:8080 gives evidence of an IPv4 loopback listener. A list from the wrong host, container or network namespace cannot establish what is listening on the intended target. Before editing a service, verify where you are using the known host and application context. If a connection succeeds but the application returns 404, shift from listener existence to the expected path or routing rule.
Be equally precise about a protocol label. DNS can use both UDP and TCP. An ICMP echo is not a test of an HTTPS port. The question “can this source connect?” only makes sense when it names the actual service and path. Record those details and a repeatable expected result for anyone who follows your work.
Correct a missing permission without widening the whole network
A student sees a timeout on a database training exercise and asks to open every source and port until the test runs. The problem with that change is technical as much as procedural. It might change several unrelated paths, obscuring whether the app uses the right route or port. If the database still fails because the host name or credentials are wrong, the intended observation does not improve. A temporary wide rule also becomes part of normal configuration unless someone verifies that it was removed.
Start with the permitted caller and expected service port. Suppose a private application is supposed to reach an RDS MySQL endpoint on its configured port. Inspect the account's approved security group attached to the database. Determine whether the permitted source is the application's security group, a defined private source range or another supported control under the intended design. Check what the connection actually uses. A rule authorizing the office's public egress may be irrelevant to an application host that reaches the database inside the VPC.
Next distinguish network access from account access. If the database client receives an authentication error from the intended database, some connection reached that responding service. Inspect the configured identity, current approved credentials and database permissions. Widening a subnet ACL won't repair a rotated password. On a real support ticket keep credential checks within the authorized secret handling system. Do not ask someone to paste a password, private key or full connection string into a public message.
The prefix 0.0.0.0/0 matches any IPv4 address where used as a route or CIDR match. In a security group source rule the same string means eligible traffic can come from any IPv4 source, subject to the remaining protocol, port and path. A default route to an internet gateway and a permissive source rule are separate configuration items. A public web listener can deliberately serve broad public traffic. An admin or database port generally has a narrower intended audience under the project's access controls.
Record the minimal approved test with a specific source, destination and expected result. After a permitted change, repeat the useful application test and inspect the actual policy again. Retain any test-only rule only for its agreed lifetime and owning resource. The better the check is scoped, the easier it is to know which decision fixed the problem.
Use the path that was designed for a private endpoint
A clerk tries to open a private address from home while disconnected from the company network. The browser waits and then gives up. A colleague can open the same named service over the office connection. This is consistent with RFC 1918 addresses being routed within connected private networks and outside ordinary public Internet routing. A VPN or another approved connection can place a remote user onto the intended private path. Adding a public address to the database would solve a different problem and could defeat the design.
Check whether the address you see really belongs to the office or cloud endpoint. The same 192.168.1.50 can mean a home printer on one network and a printer or service somewhere else. Even an approved VPN can have issues if the home and company selected overlapping networks. A route may treat the destination as local to the home or select the wrong path. Ask for the intended name, address and route from the approved company environment instead of testing random private numbers.
DNS visibility can be separate from access. A private resolver might know the application name, while a public resolver cannot return that same private answer. A cached response might have come from the earlier network. In your notes mark which network, resolver and address family the client used. From a permitted client, inspect the selected route and intended network policy. Routing the right IP cannot help a name that resolved to the wrong endpoint.
Create a simple comparison using four boxes: customer phone, office client, public tracking front end and private billing service. Draw one public HTTPS path from the phone. Draw one private path from the office client. Then move the office client home. To keep the private service useful, add the company-approved private access path and leave the public tracking front end where it belongs. A design is clearer when each caller has one intended entry rather than a list of interchangeable IP addresses.
Observe how this changes your troubleshooting question. “The site is not reachable from here” becomes “this approved source is meant to access this endpoint over this type of path.” If the answer is that the caller has no intended route, move the test to the approved location or clarify the requirement. A public route and an application login are decisions the network owner should have explicitly designed before the lab began.
Check the connection address again after an instance changes state
The course's disposable public web instance worked on Friday. The student stopped it, kept the same instance, and started it Monday. The application source, private IPv4 and files on the retained EBS volume can still be the same. The ordinary auto-assigned public IPv4 could have been released during the stop and replaced on start. A bookmark or public DNS record may still use the old number. The stable identity of a training instance and the stable public identity of an endpoint are separate facts.
Make a before-and-after table with instance ID, subnet, private IP, data marker, public association, service state and DNS answer. A private path can help verify the web service under the lab's policy, while the current public endpoint tests a different connection. A changed public address gives a reason to check DNS and callers. It does not tell you whether the application itself started successfully or whether the new allowed path works.
DNS caching makes this situation look inconsistent. One device can be using an older answer while another asks a resolver that knows the new one. A published DNS record has a time to live that affects how long resolvers can ordinarily reuse the value. The previous answer can remain visible briefly after a record change. Check the intended endpoint and affected audience before editing the application repeatedly. A stable name can work after the component address changes when the relevant DNS or load balancer integration is maintained.
An Elastic IP is a stable public IPv4 allocation for a design that requires one. The learner should check its association rather than assuming a named address is automatically used by every current instance. A stable service name pointing to a load balancer can instead use that stable external name while the service moves among targets. Design these choices around the requirement. A third party that only permits a fixed observed IPv4 has a different requirement from a browser user who needs a working hostname.
Keep costs and ownership in the worksheet. Public IPv4 allocation, retained volumes and other resources can still matter after a training instance stops. Before changing or deleting anything, identify resources that were created solely for the class exercise. Follow the authorized cleanup plan. Stopping one EC2 process does not necessarily remove the resources included in its environment.
Use the actual prefix for both address math and IPv6 text
Seeing 10.40.20.0/24 on the console gives you two different questions. How many values does the block contain, and how many can your platform assign? The prefix fixes the first 24 bits of a 32-bit IPv4 address, leaving eight bits for combinations. That yields 256 total addresses. A conventional IPv4 LAN can reserve its network and broadcast values. An ordinary AWS IPv4 subnet reserves five addresses, so the example begins with up to 251 assignable values before actual resource use. Write “total,” “reserved” and “remaining” on separate lines.
When the subnet uses /26, there are six variable bits and 64 values. A subnet in the same range can start on an octet boundary repeated every 64 values, such as 10.40.20.64/26. That block starts at 64 and ends at 127. Its ordinary AWS reserved values are 64, 65, 66, 67 and 127. The .0 shortcut misleads here because the second /26 starts at .64. Read the actual block boundary rather than predicting the network address from the last decimal number alone.
Planning capacity needs the number of available addresses now and how consumption changes. A load balancer, a managed service or a replica can use additional space later. Suppose a training design allocates several roles into a nearly full subnet and claims that the VPC has a large free range. The extra VPC space outside the subnet does not become unused capacity inside it. Check the actual subnet's available IP count and the service's documented placement requirements.
IPv6 text introduces a different error. Even though a written IPv6 address can contain fewer groups, the underlying value has eight 16-bit groups. The :: marker restores a single omitted run of zero groups. In 2001:db8::25 that missing run can be filled unambiguously. In a string with two :: markers, the notation leaves more than one assignment of the missing groups, so the string is invalid. Work from the complete expanded value if a compressed address confuses you.
Case and omitted leading zeroes in a valid group can make two written IPv6 forms appear different without changing the value. Inspect an address parser's normalized output before deciding the device moved or changing a rule. If you specify an IPv6 literal in a URL with a port, put the address inside brackets, for example http://[::1]:8080/. The brackets let the tool distinguish IPv6 group separators from the port delimiter.
Check the route association and the target behind a public frontend
An engineer opens an AWS route table named Public-Training and finds a healthy internet gateway target. The instance in question is in another subnet, and that subnet uses the main table. The route found is real, but it belongs to a different delivery path. The relevant starting point is the actual instance interface and subnet. Follow the association to the table used by that subnet, then compare the longest matching destination and target state.
Assume a valid request reaches the public load balancer. The training backend deploys a new version of its app with a different listening port. The old target group still tries the previous port. This is an example where public DNS, the client path and the load balancer listener can all work, yet the response fails because the target connection is wrong. Inspect the target registration, port, health check and relevant logs instead of changing the public route.
Health checks have scope. If the configured readiness path returns the intended status, the load balancer can mark that target healthy under its settings. A readiness route may test much less than a complete customer checkout or tracking request. Application investigations therefore record both the target status and a request that demonstrates the required operation. These are separate observations.
In a private egress issue the app may connect perfectly to the load balancer and database but fail to contact an outside dependency. Look at the actual source instance and intended outside destination. Check the effective route for that address, applicable gateway mode and the authorized policy. A more specific route can take precedence over the default. The public entry architecture and the outbound vendor path should have separate arrows on the drawing.
Use a status map for a handoff. Mark each component as selected, reached, returned the expected result or still unknown. Start with the smallest change linked to the first failing step. After a known correction validate the intended outcome end to end without relaxing unrelated network controls.
Distinguish an application error from a network failure
Suppose the application target is reachable and the browser receives a response that asks the customer to sign in again. Something has completed the HTTP request. Investigate which component returned that status and the authentication that should apply. A permission denied by a service user profile is a different control from a TCP connection blocked by a cloud network rule. Changing the network rule cannot make the user a member of the intended group.
Likewise, a TLS certificate error identifies a secure connection problem. The browser checks that the certificate is valid for the name it asked to reach, that it can verify the chain under its configured trust, and that timing and other required checks pass. Typing a raw IP can make hostname verification fail even though the right server answered. Use the deployment's approved hostname and certificate chain when testing. Reaching a listener is too early to claim HTTPS is working for the customer.
Imagine the app returns a database error after receiving a valid tracking request. Determine whether it could resolve the configured database endpoint, route to it and establish the intended connection. An explicit database authentication or permission error points you toward credentials or grants. A missing table or an unexpected order record can be a database identity, query or deployment issue. Inspect the approved logs and active configuration fields without printing secrets. The fact that one browser request made it to the app is consistent with several issues further downstream.
Follow the same method when someone suggests one sweeping fix. Updating a load balancer listener can change the public path, but it does not repair a wrong DB endpoint in the app. Restoring access to the approved database can allow a lookup without correcting a stale public certificate. Compare the exact expected and observed result at every boundary. It makes small changes easier to justify and easier to verify afterward.
Reproduce a listener, a wrong path and a correct named request on loopback
This lab needs Python 3, curl and two local terminal windows. It uses a small HTTP server that binds only to IPv4 loopback, with an automatically selected port. The test returns fixed text and reads no user files. Do not put real credentials or production addresses into its requests. The goal is to see three distinct outcomes from the same host and port. You can follow the sample observations on paper if local software installation is unavailable.
python3 - <<'PY'
from http.server import BaseHTTPRequestHandler, HTTPServer
class TrainingHandler(BaseHTTPRequestHandler):
def do_GET(self):
host = self.headers.get("Host", "").split(":", 1)[0]
if self.path == "/healthz":
status, message = 200, "listener ready"
elif self.path != "/tracking/demo":
status, message = 404, "unknown path"
elif host != "tracking.example.com":
status, message = 400, "training hostname required"
else:
status, message = 200, "training order is out for delivery"
data = (message + "\n").encode()
self.send_response(status)
self.send_header("Content-Type", "text/plain; charset=utf-8")
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
with HTTPServer(("127.0.0.1", 0), TrainingHandler) as server:
port = server.server_address[1]
print(f"Loopback port: {port}", flush=True)
try:
server.serve_forever()
except KeyboardInterrupt:
pass
PY
Read the loopback port printed in the first terminal. In the second terminal replace the placeholder with that number before running the lines below. Every request is directed to your own loopback listener. The explicit curl resolve option applies only to this command, so it does not change the system DNS configuration or contact another host. The example uses plain local HTTP to isolate the listener and application path behaviors. TLS adds further hostname and certificate checks in the corresponding public HTTPS design.
LAB_PORT='REPLACE_WITH_PRINTED_PORT'
curl --noproxy '*' -i --max-time 5 "http://127.0.0.1:$LAB_PORT/healthz"
curl --noproxy '*' -i --max-time 5 "http://127.0.0.1:$LAB_PORT/missing"
curl --noproxy '*' -i --max-time 5 "http://127.0.0.1:$LAB_PORT/tracking/demo"
curl --noproxy '*' -i --max-time 5 \
--resolve "tracking.example.com:$LAB_PORT:127.0.0.1" \
"http://tracking.example.com:$LAB_PORT/tracking/demo"
The readiness request returns status 200 with the words “listener ready.” The missing route returns 404 even though curl reached the same process. The raw-address training path returns status 400 with the hostname request message. The final command gives the app the intended request hostname and returns status 200 with the sample tracking line. Write the observed code and plain-language meaning for each row. A 404 or 400 is an application response, whereas you may get no HTTP response at all if the connection can't be established.
If curl says the port number is invalid, confirm you replaced the placeholder. If it cannot reach the service while the first window still runs, verify that you copied the printed port and used the same host. Do not change the server binding to expose it publicly while testing. Stop the server with Control-C in the first window. Repeat the readiness request using the original port while it remains unused. You should now get a connection failure instead of an HTTP status. There is no file or cloud resource to remove.
Verify what is reserved before counting available addresses
Use Python 3 and the prefix 10.40.20.64/26. Compute the number of possible combinations and the start and end values without a tool first. The following worksheet prints the ordinary AWS IPv4 reservation set by position and counts remaining values. It models the documented standard case and does not check an existing AWS subnet's actual allocations.
python3 - <<'PY'
from ipaddress import IPv4Address, IPv4Network
block = IPv4Network("10.40.20.64/26")
first = int(block.network_address)
reserved = [IPv4Address(first + offset) for offset in range(4)]
reserved.append(block.broadcast_address)
print("range:", block.network_address, "through", block.broadcast_address)
print("total:", block.num_addresses)
print("reserved:", ", ".join(str(ip) for ip in reserved))
print("standard AWS assignable:", block.num_addresses - len(reserved))
PY
Expect a range from 10.40.20.64 through 10.40.20.127. Expect 64 total values, five reserved and 59 available before allocation. Use your written output to explain the difference between the actual network boundary at .64 and the default assumption that a network always starts at .0. For a second case, change the input to 10.40.20.128/26 and predict the new boundary values first.
If an input such as 10.40.20.70/26 raises an error that it has host bits set, explain why. It identifies a device-side address with a prefix length, while the constructor in this exercise expects the network's base address. Identify that base by finding the block of 64 that contains 70. In an existing AWS account, the console's available address count is evidence from live allocation, and it can be lower than the calculation. No new subnet or address is needed for this exercise.
Check whether the investigator and the client asked the same DNS question
When a coworker reports a problem from home, someone in the office acts quickly and looks up the tracking name from a workstation. The name produces the expected answer there. Both observations can be correct if the home path and the office path use different resolvers, if one uses an older cached result, or if the actual browser chose IPv6 while the workstation tested IPv4. The question must remain tied to the user's network.
In an authorized test environment, inspect both address records for the actual hostname. A utility such as dig can request a record type explicitly. An A record carries an IPv4 address. An AAAA record carries an IPv6 address. The resolver selected by a command can differ from the resolver path used by the application, especially on a system with private forwarding or application-specific DNS settings. Write down which environment and resolver were used. Test the intended service from that same side when appropriate.
Suppose lookups confirm the correct IPv4 and IPv6 addresses, but only the IPv4 request works. This narrows the problem to the selected path, policy or listener under IPv6. Compare its address association, route and security controls. An IPv4 default route or an IPv4 CIDR security rule does not carry or match IPv6 traffic. Keep the family in your test record. It helps prevent a green IPv4 check from masking a failed IPv6 request.
Be careful with an empty answer. Distinguish the resolver returning a response that does not contain the requested record from the resolver failing to answer at all. A response for that record type can be intentionally empty while another record type works. A failed resolver request says something earlier about the lookup process. Give the DNS owner the requested name and type, time and source network so they can reproduce the correct question.
Understand what a cloud traffic record can establish
Mauli's network owner may have permissions to inspect existing VPC Flow Logs. A flow log can contain information about IP traffic to or from the selected network interfaces. The owner can compare the affected request time and the interface, protocol, addresses and ports available under the selected format. Start from the actual request tuple. Searching for every appearance of a resource name is less precise than searching for the connection the app used.
A traffic record classified as ACCEPT gives evidence that the relevant traffic was accepted under the logged observation. It does not include an application order result. A record classified as REJECT calls for an inspection of the applicable network controls and the flow context. A reject outcome by itself cannot tell you what the intended user permission should be. The record can be combined with route and policy evidence, then with a repeatable application test.
A missing record also requires care. The account might log a different interface, adjust filters, receive records after an aggregation and delivery delay, or record only certain traffic. Some traffic is outside the service's capture coverage. Verify logging was enabled for the relevant resource, time and filter. Useful tests should have scoped access to their own logs and avoid turning on a broad new collection without the environment owner's approval.
Split a teaching incident across three observation locations. The caller recorded a timeout, the network recorded accepted traffic for the forward direction, and the target app wrote nothing. Compare the return path, listener and scope of the logging around that request. The three records may point to a missing listener or wrong destination without proving one exact cause. State what remains unknown and choose the smallest authorized check that distinguishes the likely explanations.
Write a rollback and verification note for a small authorized fix
Say the approved lab uses a load balancer forwarding to a private target port. The latest release listens on a different port on the trained instance. The team has confirmed the intended target port from the application's owner and the test instance. One change option is correcting the application deployment or the target configuration under the agreed design. Whatever the owner approves, identify the exact component, current setting, expected setting and change owner.
Record a reliable comparison that starts before the change. List the customer endpoint's DNS name, the established frontend HTTPS behavior, the target status and a sample application result. Then change the chosen setting only. Repeat the same approved request from the same location and verify the target and application behaviors separately. If a new configuration causes an unrelated failure, recover using the previous approved setting or owned artifact under the lab's change plan. A reliable rollback requires knowing what setting existed before you touched it.
A short note after the test can say, “The frontend worked, but the target group's approved health request went to the old port. After the target owner corrected the training deployment, the teaching request returned the intended status and sample delivery data.” Include any remaining unknowns. Avoid claiming that every service operation is healthy because a small test passed. This kind of handoff helps a classmate understand what the evidence established and safely continue a broader lesson.
Practice turning an assumption into a precise next check
A colleague says, “I opened port 443, so the virtual machine should have a usable public IPv4.” Write a response that identifies address association, subnet route, access policy and listener as separate fields. Pick the one you would inspect first after confirming that the design needs direct internet access. Success should include what observation would move you to the next layer.
One customer reaches a site and another customer using the same name does not. List at least three facts you want from each client, then explain how a difference in IPv6 versus IPv4, DNS answer or caller policy can change the result. You should have a plan that uses the same authorized operation for comparison without altering the service.
The app reached the private database before a password rotation. Now the intended database reports authentication failed. Write the most useful record the database owner needs to see, omitting the password. Your answer should identify the reported identity, time, endpoint and application deployment, and distinguish that evidence from a dropped connection.
Two teams want to learn a
/26calculation. One team counts addresses and the second reads deployment capacity. Write the figures for10.40.20.64/26in a standard AWS subnet, then add the number of addresses consumed by the team's existing instances and any planned service requirement. Explain why the two teams can answer different questions with the same prefix.
Interview questions and worked answers
An instance has an Elastic IP and TCP 443 is permitted. Why might it still fail?
Inspect the actual public address association, route table and gateway path for the intended interface. Then review other path controls, the running listener and the TLS or application settings. One address and one security group rule establish only two properties. The user's request needs a program listening at the correct destination and the other required checks along the path.
How do you interpret a timeout compared with an HTTP 404?
A timeout says a required response did not arrive within the client's time limit. Check which phase timed out before deciding why. A 404 is an HTTP response from a reachable responding component for that request. Check the route, hostname or application path that component used. A 404 alone still does not identify exactly which backend generated it.
Why can a service in a public subnet have only private reachability?
The public subnet classification follows its route to an internet gateway. A particular instance also requires the right public address association for direct IPv4 access, and the policy and listener must allow it. The same private target can be reached through a separate public front end under the deployment's intended controls.
Why do network failures show up after DNS changes or reboot-like activities?
Confirm the actual state transition first. An ordinary EC2 stop and start may change the auto-assigned public IPv4. An ordinary reboot usually keeps it. A stale resolver result or bookmark may still point to the older address. A process can also fail to start, so check endpoint identity and application readiness independently.
Why does an AWS subnet with 256 IPv4 values have fewer assignable addresses?
A standard /24 includes 256 values. In the ordinary AWS IPv4 case, five are reserved for the subnet and AWS networking purposes. That leaves 251 assignable before actual resource use. A capacity estimate also needs the current free count and the resource requirements for replicas, managed interfaces or other growth.
When is a route table entry enough to confirm connectivity?
A route table entry establishes the configured direction for matching traffic when the table actually applies. To confirm connectivity, also check return routing, network and application policy and the actual listener. Then use an authorized request that represents the required operation. The route alone cannot prove the rest of those decisions.
Check which layer each observation confirms
From the approved office the server's intended host returns HTTP 404. Which detail should you check next? A. Request path and routing rule at the responding service. B. Every IP allowed in the VPC. C. Whether IPv4 supports ports.
Show answer
A. The client received an HTTP response, which gives evidence that transport reached a responding component for this request. Verify the host, path and component that routed it. The result does not justify broadening all network policy or prove the target application path exists.
An ordinary AWS
/26starts at10.40.20.64. Which is an initially assignable value before actual resource use? A.10.40.20.64. B.10.40.20.65. C.10.40.20.68.Show answer
C. AWS reserves the first four values of the ordinary subnet and the last value. The first four are .64 through .67. The .68 value is next in range. A live subnet might already have it assigned, which is a separate check.
A learner sees a private IP in the console and a public IP returned by a remote observation endpoint. Which question helps? A. Where were the values observed and did the path use translation? B. Which name should replace every private address? C. Which record should be deleted immediately?
Show answer
A. Two readings can describe different points of one connection. Inspect the locally assigned interface and the source the observer saw. Private callers can be translated at a route boundary. Use a separate row for each observation and preserve the existing configuration during a read-only check.
Which wording correctly describes a private app target behind a public load balancer? A. The load balancer can accept the public connection and reach the private target through its authorized backend path. B. The target must have its own public IPv4. C. The target must listen on every port the client can choose.
Show answer
A. The frontend and application target are two legs. The app needs a reachable listener on its configured target port, not a public address for the customer's first connection. Check the target rules and policy separately.
What is the defect in
2001:db8::1::5? A. It is too private. B. It contains two zero-compression markers. C. The initial digit is 2.Show answer
B. The underlying address has eight groups. A single marker can represent a missing run of groups unambiguously. With two markers the text does not tell you how many zero groups to restore at each location.
Revision cards
- IP and service
- Delivery address, protocol and port identify the connection's network destination. A matching listener and service configuration still matter.
- Private reachability
- A private endpoint can be reached along the connected networks intended for it. Check the caller's actual route and approval.
- Response evidence
- An HTTP status proves a responder answered that request. Use the status, host and route to investigate the specific layer.
- Subnet capacity
- Compute total combinations, subtract the platform's reservations, then inspect actual allocations and growth.
- Lifecycle and names
- Check the private address, public association and DNS answer separately when an instance stops and starts.
- Smallest repair
- Choose the next change from the first failed layer that the evidence establishes. Retest the intended operation from the approved caller.
References
- RFC 1918 private IPv4 addresses
- RFC 4291 IPv6 addressing architecture
- RFC 5952 IPv6 text representation
- RFC 3986 URI syntax and IPv6 literals
- RFC 9499 DNS terminology
- RFC 9110 HTTP semantics and status codes
- AWS subnet sizes and reservations
- AWS route table associations
- Scope and behavior of VPC Flow Logs
- AWS security group behavior
- AWS troubleshooting EC2 instance connections
- AWS EC2 instance lifecycle
- AWS Elastic IP addresses
- Application Load Balancer troubleshooting
- RDS private endpoint and VPC guidance
- Python local HTTP server library
- Python ipaddress reference
- curl command reference