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

Chapter 15: Amazon VPC — Subnets, Route Tables, NACL, NAT Gateway and Bastion Host

AWS Cloud

15.1 What is a VPC? Default VPC vs custom VPC

Friends, think of a VPC as a housing society. The society's boundary wall is the VPC – who lives inside, in which wing, where the gate is – the society decides everything. But note: this is only to help you understand. Technically, a VPC is your own network inside an AWS Region, isolated from other customers, and you choose its IP range (CIDR).

A VPC (Virtual Private Cloud) is your own logically isolated virtual network inside one AWS Region. Supported resources such as EC2 instances use addresses from their selected VPC subnets. Other AWS services are accessed through service endpoints. A VPC can contain subnets in multiple Availability Zones (AZs) in its Region. Each subnet lies in exactly one AZ.

A custom VPC with three subnets and an internet gatewayInside the region ap-south-1 sits the VPC 10.0.0.0/16. It contains three subnets in one Availability Zone: web-public-1a 10.0.1.0/24, app-private-1a 10.0.2.0/24 and db-private-1a 10.0.3.0/24. In this design, only the public web placement has a direct internet-gateway route. Actual direct IPv4 access also needs public addressing and permission. Internet HTTP IGW Region ap-south-1 (Mumbai) society-vpc  10.0.0.0/16 AZ ap-south-1a web-public-1a 10.0.1.0/24 · route 0.0.0.0/0 → IGW ✓ Nginx reached app-private-1a 10.0.2.0/24 · no route from the internet db-private-1a 10.0.3.0/24 · no route from the internet

The VPC 10.0.0.0/16 lives in one Region. Inside it, each subnet lives in one Availability Zone. Only the public subnet in this example has a direct route through the internet gateway. Direct IPv4 access also needs suitable public addressing, traffic permissions and a listening service.

Housing society AWS What it really does
The society and its boundary wall VPC An isolated private IP range (CIDR block) in one Region
Wings A, B and C Subnets Smaller IP ranges carved out of the VPC range, each in one AZ
Main gate to the road Internet gateway Connects the VPC to the internet
Direction board near the gate Route table Decides where packets for each destination go next
Security guard at a wing entrance Network ACL Stateless allow and deny rules at the subnet boundary
Lock on each flat's door Security group Stateful allow rules on each instance's network interface

The default VPC

AWS provides a default VPC as a starting configuration in a Region. It can be absent or modified in a particular account. When AWS creates it, the original settings include:

  • the CIDR block 172.31.0.0/16,
  • one default subnet in every AZ of the Region, each a /20 (4,096 addresses),
  • an internet gateway already attached, and a main route table with 0.0.0.0/0 → internet gateway,
  • auto-assign public IPv4 turned on in the default subnets,
  • a default security group that initially allows inbound traffic from the same group, and a default network ACL that initially allows traffic in both directions.

A custom VPC

A custom VPC is one you create. You choose its CIDR block, design the subnets and decide which of them may reach the internet. For a direct internet-gateway path, create or select an attached gateway, configure the relevant route, and check the resource's addressing and network permissions.

Default VPC Custom VPC
Created by AWS, automatically You
IPv4 CIDR 172.31.0.0/16 You choose, from /16 to /28
Subnets One public /20 per AZ Whatever you design (public and private)
Internet gateway Already attached You create and attach it
Public IP on new instances On in default subnets Usually off in nondefault subnets. Check the subnet and the instance launch settings.
Good for Quick tests and learning EC2 Real projects with private web, app and database tiers

Ravindra Bagale's Tip

Many students delete the default VPC as "cleanup", and then no subnet shows up when they launch a new instance. Don't touch the default VPC. If you delete it by mistake, you can recreate it from Your VPCs → Actions → Create default VPC. Keep this in mind!

Lab

Chala, open VPC → Your VPCs and find the VPC marked Default VPC: Yes. If present, note its ID and CIDR. Under Subnets, filter by that VPC and check the default-subnet and Availability Zone fields for each row. Look up the effective route table of one subnet and record the IPv4 default target if present. Make this a read-only inventory.

Write down who should be able to reach each part of the service

A training centre is putting its course timetable online. The public may read class times. A staff member can record an enrolment. The records contain contact details, which should stay behind the application. The team already sees a default network in its AWS account. A colleague asks whether they should use it. Before choosing a network, describe the three kinds of activity in plain words. Visitors read through a web endpoint. The application talks to a database. Staff use an authenticated administrative function. There is no need for a visitor's device to connect to the database or for database credentials to reach the browser.

Write those statements on paper before opening the console. A support person can turn them into checks. A public request for the timetable should work. The web application should reach the database using its intended private name and port. A direct public connection to the database should have no supported path. A staff member with the right identity should be able to record an enrolment through the administrative function. These are separate checks because one passing result supplies evidence about one operation. An empty public welcome page could load while the database is unavailable or the staff identity has been misconfigured.

An IP address is a network address attached to a network interface, rather like a delivery destination. A port identifies which service should handle a connection at that address. It lets several programs make or receive connections through the same interface. A service may choose a familiar port, such as TCP 443 for HTTPS, but defining a port in a plan does not start any program. A hostname such as classes.example can be translated into one or more addresses through DNS. A client still needs an appropriate way to reach the address, permission to make its connection, and a running service that will respond correctly.

The centre wants to decide these things consistently instead of setting up every machine as an isolated special case. The network design is the shared plan for addresses, subnet placement and paths between parts. It also provides points where the team can restrict allowed network traffic. The operating system and application have their own settings and permissions. A useful design names the owners of all those pieces and spells out what each owner has to verify. For example, routing a request to the application gives the app a chance to respond. It never decides whether the person may edit an enrolment record.

We will build a comparison with the same example at every step. First identify the VPC and the scope of the network. Then find out what AWS placed in a default VPC and what a custom design makes you choose. Finally inspect a small set of simulated console records and see what happens when two apparently similar subnets have different settings. The practice keeps your AWS account untouched. If you are authorised to view a learning account you can then compare the same fields without provisioning any cloud resources.

Locate the VPC, the Availability Zone, and the interface

Amazon Virtual Private Cloud lets you define a logically isolated virtual network in an AWS Region. A Region is the geographic AWS service scope shown in the console and APIs, such as Asia Pacific (Mumbai). An Availability Zone, often called an AZ, is a separate infrastructure location within that Region. One VPC can have subnets in multiple AZs of its Region. A subnet is a particular slice of the address range and lives in one AZ. If the centre wants independent application copies in two zones, it needs separate subnet placements for them. Giving a single subnet a name that contains two zone letters cannot change the subnet's location.

When you launch an EC2 virtual machine into a subnet, you choose its initial location and a starting network interface. That interface has a private address from the subnet's range. Picture a row in an inventory with a VPC ID, subnet ID, AZ, private IP address and any relevant public addressing. If you organise the sheet by those columns, you can tell where the machine belongs and what names might be reused elsewhere. The friendliest name tag is chosen by a person. The IDs selected by the deployment and verified in inventory are more reliable when two teams happen to use the same tag.

Imagine the centre chose a VPC with the IPv4 range 10.76.0.0/16. The slash part tells you how many of the address bits have to match. A subnet of 10.76.10.0/24 is a much smaller range inside that plan. The subnet range defines the potential addresses; AWS reserves some of them and resources consume some of the rest. In this lesson we chiefly use ranges to recognise where a destination belongs. An address beginning with 10.76.10 belongs in that example slice. An address beginning with 10.77.10 does not. The address alone cannot tell you the rules, owner, service, or reachable path.

The VPC boundary describes an isolated network. AWS customer resources in one VPC do not gain a route to another VPC merely because their owners entered addresses in the same range. Two VPCs can use matching private addresses while disconnected, much like separate classrooms can both number their seats from one. Connecting networks makes that repetition significant. From a source that must reach both networks, the routing decision needs to distinguish which destination is intended. Plan nonoverlapping ranges with the network owner before adding paths to a branch office, another VPC, or a partner environment.

Many AWS resources use VPC subnets or network interfaces. For example a database service can place instances in suitable subnets and a load balancer can use selected subnets. Other AWS services are consumed through service endpoints. A team can call an Amazon S3 service endpoint without deploying an S3 bucket into its own subnet. Keep two lines in your drawings for those ideas. One line shows the actual customer VPC interface or resource location. Another line shows which service endpoint the application contacts, and along which public or private path. Mixing the two can lead a student to add a subnet for a resource that does not live in one.

To follow a request, pick a concrete source and destination. Record the network and subnet of a source running in AWS. Record the destination IP family, port and intended operation. A laptop will have a different starting network. A staff request routed through a company network may have a different accessible path from a public timetable request. A diagram saying everything is in AWS fails to answer these questions. An AWS account is a boundary for ownership, identity, billing and administration. A VPC is a network boundary in a Region. The two boundaries touch in an inventory, but they answer different questions.

Read the default setup as a starting configuration

A default VPC is an AWS-prepared starting network. Its initial IPv4 block is 172.31.0.0/16. AWS creates a default subnet of size /20 per Availability Zone when it sets up that VPC. Each such block contains 4,096 possible addresses before reservations. AWS attaches an internet gateway and puts a default IPv4 route to that gateway in the main route table. The original default subnets use that table. The default settings make those subnets public. Auto-assignment of public IPv4 at launch is originally enabled in the default subnets, and the VPC is configured to support DNS resolution and public DNS hostnames when appropriate.

This setup removes several steps for the first EC2 exercise. Suppose a learner selects an unchanged default subnet and launches a simple web machine under approved training policy. It has a private IPv4 address, and a compatible launch can obtain a public IPv4 address. The subnet has an internet-gateway route. To visit a page from outside, the learner still needs allowed network traffic, a listening web program, and an appropriate service configuration. Other account or VPC controls can affect access. Seeing a public IP in the instance details confirms addressing. The protected and expected page contents are stronger evidence about the running application.

The initial default security group limits inbound traffic to resources associated with that same group. The initial default network ACL allows traffic in both directions for the relevant IP family. These are two different controls. A network ACL applies at the associated subnet boundary. A security group applies to its associated resource interfaces. A permissive ACL does not add a permission that is absent from the resource's security group. It is reasonable for a new learner to see both controls in the inventory and ask which one explains a particular result. The later security lessons will separate that reasoning carefully.

A default VPC can be changed. An administrator might replace a subnet's route-table association, switch its public address setting, change its rules or delete a default subnet. The console's Default VPC field tells you which kind of VPC you selected, not whether a particular interface can still communicate. A default VPC can contain subnets someone later added. A nondefault subnet in it does not inherit every initial default-subnet attribute. Conversely, the route associated with that added subnet might still happen to point directly to the internet gateway. Read the actual fields instead of concluding from the parent label.

A default VPC can be absent. It may have been deliberately removed in a Region, or the account's history or provisioning policy may be different from the first-use scenario. The absence of a default or of a specific default subnet is a valid inventory outcome. First confirm the selected account and Region and the permission to list the resources. If the network is absent, check the account's approved network arrangement. A custom subnet may be required explicitly when launching. Recreating the original default configuration is a separate change. It cannot restore earlier resource IDs, application machines, custom rules or exact previous address-to-zone placements.

There is also a difference between routine inventory and resource recovery. If you cannot see an expected subnet, list all visible subnets filtered by the specific VPC ID. Then look at the default-for-AZ marker on each subnet. New zones, modifications, and separately created subnets can make a hand-count differ from an assumed regional count. Document which zone and which VPC the evidence applies to. The project needs the identity and placement of the required subnet far more than it needs a number that matches a guessed total.

Turn the project requirements into a custom network

A custom or nondefault VPC starts from address space the team chooses or has assigned from a managed pool. It still receives basic objects such as a main route table, a default security group and a default network ACL. The usual local route represents the ranges belonging to the VPC. A VPC-only creation does not build the web path, application subnets or database deployment. The console can also create a group of resources with the VPC, depending on the options selected. Read what the wizard is about to build. It can include gateways or endpoints with different intended uses and operating costs.

For the centre's first sketch, reserve a public web-placement range in each of two AZs and separate private app and data-placement ranges. This helps the team give those placements different routing decisions. A route table holds instructions that choose a next target from a destination address range. The public placements need a route to the internet gateway for an internet-facing entry configured to use them. The app placement needs a way to reach the database using its private address or name and the planned network permissions. The database needs its useful database connections and any legitimate operations required by the particular service. It does not need a default internet path merely because the diagram has a cloud at its edge.

The centre could run an internet-facing load balancer as the dedicated public entry and run its application instances on private addresses. A load balancer accepts the browser connection at a configured endpoint and establishes its own connection toward one of the approved targets. Draw those as separate arrows with separate endpoints. A security group rule for browser-to-entry is not a rule for entry-to-app. The database sees a connection from the app when it reads bookings, not a direct browser connection. Authentication and successful business output still have to be tested on top of those paths.

Start the project worksheet with an owner, account, Region and VPC range. Write all required subnet ranges and zones before accepting a proposed build. Check that ranges are inside the VPC and are disjoint from the other subnets you intend to create. Next list each subnet's planned route table, any default route, and the reason for that route. Record the ingress needs of each role. There are different ways to lay out tiers, and a cost estimate depends on the services and traffic you choose. Listing what is needed before choosing a wizard configuration also makes it easier to notice unused resources.

If a custom VPC has no internet gateway, a standalone interface there has no direct route through that internet gateway. A company may still intentionally provide access through a connected network, a managed private endpoint, or a proxy. Describe the actual connection and its direction. A VPC with an internet gateway attached is also not equivalent to every interface having internet access. Check the source subnet's effective route table and the specific IP family and address arrangement before forming a conclusion. Choose separate plans for direct public access and required outbound access. An update service used by the application is a different destination from the public traffic arriving at the web entry.

A custom plan brings responsibility for maintenance. Decide who can change network objects, who deploys servers and who verifies a ticket. Record what happens when more subnets are needed. Review unused address space and reserve growth room. Track tags and exact IDs so the team can audit where the work went. A plan for a twenty-minute exercise and a plan for a paid service will have different operational expectations. Keep the first exercise small, then reason about availability, ownership, monitoring, cost and dependency changes before copying it into the real project.

Distinguish a route, an address, and permission

There are three useful pieces of evidence for a simple direct IPv4 internet path. First check that the subnet actually uses a route table with an appropriate destination and a target of an attached internet gateway. Second check the interface's addressing. EC2 needs suitable public IPv4 addressing for a direct internet-gateway path over IPv4. An instance can keep a private IPv4 address even in a public subnet, and its launch configuration can differ from the subnet's public-address default. Third inspect the controls and listener along the intended connection. An actual request from a relevant client verifies the combined result better than any one field.

Apply that logic to a specific timetable test. A learner sees the target in a subnet whose route table points to an internet gateway. The instance details show only a private IPv4 address. The app works from another permitted instance using that private address. These facts are consistent. The public subnet route does not give the private address a public IPv4 mapping. If the design calls for a public load balancer, the intended fix may involve the public entry configuration, while keeping the app itself on the private address. Don't change the app simply to make a direct laptop test more convenient.

In another example, the network has a working public entry, but a particular timetable endpoint gives an application error. Check which hostname, port, method and route you called and what the response contains. A response could come from a load balancer or a different virtual site. Confirm the expected endpoint and application marker. If the entry really served an error from the app, collecting that evidence can be a better next move than changing the internet gateway. The default designation has no special effect on which application path runs.

IP families matter. IPv4 and IPv6 addresses use different routes. A design with IPv4 only in a scenario should be assessed as such. If IPv6 is enabled later and assigned to workloads, check its route entries, gateway type, firewall rules, DNS answers and actual client paths independently. Do not treat IPv6 as an implied property of an existing IPv4 route or a default-VPC label. For the centre, list the requirement as one of the design decisions rather than assuming two different address families are interchangeable under the same single rule.

One optional control is VPC Block Public Access. A team may use account-level policy to restrict internet-facing paths with configurable mode and exclusions. A seemingly valid route and addressing are therefore a starting assessment. The operating rules of the account are part of the environment. A newly approved sandbox configuration does not justify an exception in a company account. Route records, policy and real checks each have different uses. Record which category a piece of evidence belongs to when you write up the result.

Follow ownership when more than one account is involved

The centre might place the training application in an account owned by the app team and have another account owned by a networking team. That can be done with separate VPCs and deliberately designed connectivity. There is also VPC subnet sharing. In a supported configuration, a VPC owner can share eligible subnets with accounts in the same AWS Organization. Participants can create supported application resources in the shared placements. This is an account arrangement that reuses selected network infrastructure. Sharing a subnet does not transfer ownership of the VPC or give one participant the right to manage another team's resources.

Draw two separate responsibility columns. The VPC owner manages its VPC network resources, such as subnets, routes and gateways. A participant manages the application resources it owns according to the service's sharing rules and its own permissions. If the app can reach its private colleague but cannot reach an external dependency, find out who owns the relevant network decision. Check the particular requirements for security groups and managed services instead of assuming a rule can be edited from either account. A participant's ability to see the subnet does not establish authority to change it.

The owner cannot share subnets from a default VPC through this mechanism. This can make a nondefault VPC necessary even before deciding anything about public entry. Also record actual Availability Zone IDs when coordinating across accounts. An AZ name such as a Region followed by the letter A can be mapped differently across accounts. AZ IDs provide a common identity for the location. For instance, before the application and networking teams say they are selecting the same physical zone, compare the actual zone IDs in the applicable account views. Picker labels are too weak to use as cross-account evidence.

Keep the decision tied to the access need. Subnet sharing can work where participating applications belong within a compatible trust boundary. If the requirement is to keep two workloads independently governed with very limited cross-network paths, that may point toward separate VPCs and a purposely narrow service connection. If the centre needs on-premises access, agree separately on address ranges, routing responsibility and what traffic should be allowed. It is good to learn this terminology before copying topology diagrams. A jointly owned application has more than one kind of ownership, and one diagram can show each without implying that every participant can make every change.

Decide what to reuse when the original network already has workloads

Suppose the centre has already built a timetable demonstration in a default subnet. Its account also has another class website in a second subnet that uses the main route table. The team wants to place an enrolment worker on a private address without changing the demo or the other website. Removing the main table's internet route would affect both subnets that rely on that table. First list the existing dependants. Then consider whether a new subnet with a dedicated table can provide the intended placement, or whether an independent custom VPC better matches the ownership and isolation goals. A change that meets a single worker's requirement can still cause a different team's outage if it touches shared network objects.

Compare two concrete inventories. In the reuse proposal, the demonstration stays on its old path and the new private subnet receives an explicit association with a table that has no direct internet-gateway route. The learner must still define the worker's allowed access to the data service and its actual external dependencies. The ordinary local route means that placement within the same VPC alone is not a strong network isolation policy. In the separate-network proposal, existing paths are left in place and the new workload gets its own address plan and network owner. The demo cannot automatically call the new private backend. A new approved connection would involve naming, routing and security policy on the relevant sides.

Neither proposal automatically meets the desired application behavior. In the first case, test the old site through its usual endpoint before and after the separate subnet build. Check the new worker travel path to the database and the ability to record a private test enrolment. In the second case, test those same application outcomes and verify whether a cross-network path is truly needed. A person might assume the two applications need to speak to each other when their only common link is a visitor using two different web pages. Write down the process a user follows. That can remove a network connection nobody needs.

There are simple ways to spot a design that has too few facts. If a plan says private worker but cannot name its subnet, route table and database endpoint, ask for those details. If it promises zero downtime but says nothing about workloads already using a table, collect the existing associations. If it assumes staff can reach an internal name from home, decide where staff establish their approved private access and where the name resolves. A test from an administrator's machine inside the VPC does not represent the home user's workflow. Write down a starting location for every important test.

When giving a recommendation, put the decision in one sentence and state the facts that would change it. For example, the team might decide to use a new custom VPC since independent administration and a clean nonoverlapping address range are required, while keeping the first demonstration in place. An approved shared VPC could change the decision if the same networking team owns both paths and supports the required placements. Maintain a list of existing resource IDs and of proposed additions. That list lets a reviewer confirm that the new project can be removed or updated without touching the region's default VPC or another course's website.

Decide what four subnet records actually tell you

Use Python 3 on your own machine and a regular terminal. This offline exercise contains a deliberately small set of example records. There is an original default subnet, an added subnet in the same default VPC, an edge placement in a custom VPC, and a data placement in that custom VPC. Each sample has an explicit route association or uses its VPC's main table. The program selects the effective route table and reports two separate bits of information. One is direct IPv4 default routing through the expected attached internet gateway in this sample. The other is the subnet's public IPv4 auto-assignment setting. No network requests or cloud changes take place.

Before running the script, predict the added subnet's two values. It is a nondefault subnet inside the default VPC with a separate route table, and its public IPv4 auto-assignment is off. Then predict the custom edge placement where someone kept auto-assignment off but deliberately associated an internet-gateway route table. A diagram that classifies them by VPC type alone will get at least one result wrong. A diagram that treats auto-assignment as synonymous with routing will also fail. Explain those differences before you compare the table produced by the code.

python3 - <<'PY'
vpcs = {
    'trial': {'default': True, 'main': 'trial-main', 'attached': 'igw-trial'},
    'centre': {'default': False, 'main': 'centre-main', 'attached': 'igw-centre'},
}
tables = {
    'trial-main': {'0.0.0.0/0': 'igw-trial'},
    'trial-isolated': {},
    'centre-main': {},
    'centre-edge': {'0.0.0.0/0': 'igw-centre'},
}
subnets = [
    ('trial-original', 'trial', None, True, True),
    ('trial-added', 'trial', 'trial-isolated', False, False),
    ('centre-edge-a', 'centre', 'centre-edge', False, False),
    ('centre-data-a', 'centre', None, False, False),
]

def describe(entry):
    name, vpc_id, explicit_table, default_for_zone, assign_public = entry
    vpc = vpcs[vpc_id]
    table_name = explicit_table or vpc['main']
    path = tables[table_name].get('0.0.0.0/0')
    via_igw = path is not None and path == vpc['attached']
    return name, vpc['default'], default_for_zone, table_name, via_igw, assign_public

print('Subnet | default VPC | default subnet | table | IGW default | public auto-assign')
observed = [describe(entry) for entry in subnets]
for record in observed:
    print(' | '.join(map(str, record)))
assert [record[-2:] for record in observed] == [
    (True, True), (False, False), (True, False), (False, False),
]

# Change only the explicit association in memory and inspect the consequence.
added = subnets[1]
reassociated = (*added[:2], None, *added[3:])
assert describe(reassociated)[-2:] == (True, False)
assert describe(added)[-2:] == (False, False)
print('Simulated reassociation changed the direct default route, not auto-assignment.')
PY

Read the columns from left to right. The first row starts with both default markers. No explicit table was supplied, so the code selects the main table. The targeted gateway is the one attached to that simulated VPC. This row has two true values in its last columns. In the second row only the default VPC marker is true. The selected route table has no matching default entry. That row could still communicate with permitted resources inside the VPC. The worksheet intentionally omits local routes because the claims are restricted to a direct IPv4 default route.

The third row demonstrates the independent decisions. It belongs to the custom network. Its associated table has the sample direct route, but it does not automatically give public IPv4 addresses to launched interfaces. Whether a particular workload uses public addressing is a separate question. The fourth row uses the custom main table and has neither IPv4 attribute in the sample. It is a sensible starting location for an internal data service with the necessary private connections. Extra routing and security details would be needed to make a reachability claim about the actual service.

In the final change, the code removes a sample explicit table choice from a copy of one row. This exposes the selected VPC's main table in the model. The public address setting stays false. The original row stays untouched, so you can still inspect both versions together. In an actual VPC, a real association edit could affect connections immediately and would need authorisation, a specific objective and a rollback plan. This lab runs no network operations. Its purpose is to make the difference between parent VPC type, table choice and address policy visible on one small worksheet.

Compare the same fields in a permitted AWS console inventory

If you have a learning or company account with appropriate read access, begin by recording the account and selected Region in your private notes. From the VPC console, open Your VPCs and look for the Default VPC value. Record the VPC ID and its associated IPv4 ranges. Use the ID to filter the subnet inventory. For each chosen subnet, inspect the Availability Zone, default-subnet field, CIDR and public IPv4 setting. Separate what you directly observed from what you expected. Today a default VPC might have an additional custom subnet, another address block, or no subnet in one particular zone.

Now open the relevant subnet's route table view. Record the table ID it actually uses. Cross-check that table against the list of VPC route tables and confirm whether it is the main table or explicitly associated. Read the IPv4 default target if present. For testing a direct gateway path, confirm that the gateway is attached to that VPC and that the particular interface has appropriate addressing. This is an inventory exercise. If the expected path is missing, make a note and investigate whether the absence matches the environment's intention. There is no need to add a route, attach a gateway, or launch a machine to complete the exercise.

A permissions error means the query or view failed for that identity. Clear the difference between an authorised empty inventory and a request that was denied. If a default VPC is missing, confirm whether the particular account intentionally uses custom or shared networks. Check the visible list of VPCs, the target Region and the approved architecture information. Compare two nearby Region names carefully before drawing a conclusion. Collect just the relevant fields and omit credentials and sensitive account information from training submissions. No extra accounts or cloud resources are needed for offline practice.

Once the inventory is done, write a six-line decision for the centre. Explain the VPC scope, which subnet placements need direct public entry, which do not, whether any accounts share network infrastructure, what needs private name resolution, and who verifies the ordinary timetable and staff operations. You can read your note to another learner. They should be able to tell exactly which evidence they would inspect next. If they cannot tell what traffic starts where, refine the plan before selecting resources.

Explain your decision without relying on the VPC label

Is a default VPC safe for a quick learning project?

It is a prepared starting configuration, so I would first confirm that the project is authorised in that account and inspect the actual subnet, addressing and network controls. It may be convenient for a simple exercise. An unchanged default route and addressing can support a public IPv4 path when the necessary controls and listener also fit. I would keep realistic work with restricted data and defined private placement in the appropriate planned network and verify the access requirements. The word default supplies useful history, while my deployment decision is based on the current configuration.

Can one VPC cover two Availability Zones?

Yes. A VPC belongs to a Region and can contain subnets in more than one Availability Zone. A subnet is bound to one zone. A layout spreading the timetable application across two zones needs suitable placements and actual application capacity in both. The extra subnet is only one part of availability. I would also test how traffic reaches a healthy application and what happens when a supporting dependency cannot be reached.

A custom public subnet shows public IPv4 auto-assignment off. Can that be consistent?

Yes. The subnet's routes and its default public-address setting are different fields. A direct route to an attached internet gateway can exist in that subnet even when the standard launch setting is off. Actual public IPv4 reachability still depends on the target's own addressing, policy and service. For example the custom edge could be reserved for a managed public entry, while workloads remain privately addressed behind it.

Can staff share network infrastructure while keeping separate AWS accounts?

They can use supported VPC subnet sharing with eligible accounts in the same AWS Organization, when the network and trust requirements fit. The owner manages the selected network infrastructure. The participants manage supported resources they own. They must check sharing, relevant service permissions and actual AZ IDs. A default VPC subnet cannot be shared in this way. Separate VPCs with deliberate connectivity are another design when teams need stronger traffic or administration boundaries.

Check what each observation establishes

  1. You see a subnet tagged public-edge. Which fields establish the sample direct IPv4 default route?

    Answer and reasoning

    Find the actual subnet route table, its entry for the IPv4 default destination and the attached internet gateway it targets. The tag is a hint about intention. It supplies no routing behavior by itself.

  2. An added subnet in the default VPC has a private table and public auto-assignment off. Is that a contradiction?

    Answer and reasoning

    No. The default VPC can contain subnets a team adds later. The effective route table and subnet address settings control different properties, and both can differ from the original default subnet configuration.

  3. A participant can describe a shared subnet. Who updates its route-table association?

    Answer and reasoning

    Coordinate with the VPC owner and verify the correct owner-side permissions. Seeing an eligible shared resource gives the participant information for placement. It does not transfer ownership of network configuration.

  4. An outside browser accesses the timetable through a load balancer. What confirms that the application can read a booking?

    Answer and reasoning

    Use an authorised request with an expected booking result that depends on the application and database path. Compare the observed business response. The existence of a public HTTPS listener or a successful static page alone does not exercise the booking operation.

Revision cards for reading a VPC inventory

VPC, subnet, zone

A VPC is Regional. A subnet occupies one Availability Zone and takes a slice of address space. Record the identifiers before reading routing or address settings.

Default is the initial plan

Look at the real default marker, effective route table, addressing, policy and listener. A prepared network can be modified or absent.

Three direct-path conditions

Check the route and attached gateway, the particular interface's address family and mapping, and the applicable network rules and listening service.

Share placement and retain ownership

Read the current AWS Organizations and service requirements. Use AZ IDs across accounts and check whether the VPC owner or participant controls each resource.

Official references