Essential Cloud Infrastructure: Foundation Flashcards
Which of these are unique and cannot be changed: Project Name, Project ID, Project Number
Project ID and Project Number are globally unique and cannot be changed
Command to set up the project id (switching between multiple projects)
gcloud config set project $PROJECT_ID
Command to list environment variables
gcloud config list
Describe GPC networks
Default, auto-mode, custom mode
Define projects
- Associates objects and services with billings
* Contains networks (quota: max 5)
Define a network
- Has no IP address range
- It is global and spans all available regions
- Contains subnetworks
- Can be default, auto-mode, custom-mode
Can you convert a custom-mode network to auto-mode
No, you can convert default or auto-mode to custom mode, but once custom-mode, always custom-mode
Define a subnetwork
Subnetworks can extend across zones within the same region. The subnet is simply an IP address range, so you can carve up IP addresses within that range. Notice that the first address in the range 10.0.0.1 is reserved for the router address. The last address in the range 10.0.0.255 is reserved for the broadcast address.
IP addresses
2 ip addresses are assigned: internal & external (optional)
What is FQDN
Fully qualified domain name:
[hostname].c.[project-id].internal
How is name resolution handled?
Name resolution is handled by an internal DNS resolver:
what is a route
A route is a mapping of an IP address range to a destination
Every network has
- Routes that let instances within the network to send packets to each other
- Default route that directs packets to destinations outside the network
What parameters compose a firewall rule:
- Direction
- Source or Destination
- Protocol and Port
- Action
- Priority
- Rule Assignment
What is CIDR
CIDR (Classless Inter-Domain Routing, sometimes called supernetting) is a way to allow more flexible allocation of Internet Protocol (IP) addresses than was possible with the original system of IP address classes.