Module 2 - Cloud Infra Flashcards
What are the 4 areas of Cloud Infrastructure?
- Foundation
- Core Services
- Scaling and Automation
- Container and Services
What is under Cloud Infrastructure - Foundation?
- Intro to GCP
- VPC Networking
- VMs
What falls under Infrastructure - Core Services?
- Cloud IAM
- Data Storage Services
- Resource Management
- Resource Monitoring
What falls under Cloud Infra - Scaling and Automation?
- Interconnected Networks
- Load Balancing
- Autoscaling
- Infra automation with Cloud API
- Infra Automation with Deployment Manager
- Managed Services
What comes under Cloud Infrastructure - Container and Srvices?
- Application Infrastructure Services
- Application Development Services
- Containers
Is there usually more than one solution fo a task or application in GCP?
YES
What are 2 common tools allow you to interact with GCP?
- Cloud Console which is a web based, GUI that you access through console.cloud.google.com
- Google Cloud SDK which is a command-line interface that can be installed locally or accessed through Cloud Shell.
What is the difference between Cloud Console and Cloud Shell?
Cloud shell is a command line tool, Cloud Console is a GUI
How would you define GCP’s networking?
GCP uses software defined network that is built on a global fiber infrastructure that makes GCP one of the largest and fastest.
How should one think about resources in GCP?
Thinking resources as services as opposed to hardware - will help with options available and their behavior
What are VPCs objects?
- Projects
- Networks
- Default, auto mode, custom
- Subnetworks
- Regions
- Zones
- IP Addresses
- Internal, external, range
- VMs
- Routes
- Firewall rules
What can you do with a VPC?
With Google Cloud Platform VPC, you can provision your GCP resources, connect them to each other and isolate them from one another in a virtual private cloud
How would you describe a VPC?
Essentially, VPC is a comprehensive set of Google managed networking objects
What are different modes of networks in VPC?
Default
Auto
Custom
What do sub-networks help accomplish?
Sub-networks let you divide and segregate your resources.
What is the key organizer of the infrastructure resources?
Project
What is a key role played by the project?
A project associates objects and services with Billing
How many networks(VPCs) can a project have?
Five
How would you describe a VPC?
A VPC network is somply a construct of all of the individial IP addresses, or services that are within that network
What are some features of a network?
- No IP address range
- Is global and spans all available regions
- Contains sub-networks
- Can be of type default, auto or custom
What is one feature of auto network?
Auto networks can be promoted to custom, but once custom they stay custom.
How do things get isolated using networks(VPC)
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/761/611/a_image_thumb.png?1551759406)
How do sub-networks cross zones?
- Subnetworks can extend across zones in the same region
- One VM and an alternate VM can be on the same subnet but in different zones
- A single firewall rule can apply to both VMs even though they are in different zones
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/761/767/a_image_thumb.png?1551759831)
What are subnetworks mostly designed for?
Subnetworks are for managing resources.
- Networks have no IP range, so subnetworks don’t need to fit into an address hierarchy
- Instead, subnetworks can be used to groop and manage resources.
- They can represent departments, business dunctions or systems
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/761/928/a_image_thumb.png?1551761482)
What kind of IPs can a VM get?
Internal
External
How are the internal IP assigned to a VM?
An internal IP is allocated from a subnet range to VMs by DHCP
How often do the DHCP lease renews?
Every 24 hours
How does the network scoped DNS find the VMs?
VM name & IP are registered with network scoped DNS
- We do in local host files(?)
How are the external IPs assigned to a VM?
Assigned from a pool. Ephemeral
How can I get the external IP of the VM?
VMs don’t know the external IP. It’s mapped to an internal IP
The mapping is done by VPC
How does DNS resolution for internal addresses work?
Each instance has a hostname that can be resolved to an internal IP address:
- The hostname is same as the instance name
- FQDN is [hostname].c.[project-id[.internal.
Example: guestbook-test.c.guesbook-151617.inernal
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/763/055/a_image_thumb.jpg?1551763784)
What do hostnames resolve to?
Hostnames resolve to Internal IPs
Hostname is same as….
Instance name
What is the FQDN of a hostname of a VM?
[hostname].c.[project-id].internal
How is the name resolution handled for a VM?
By an internal DNS resolver
- which is configured on instance via DHCP
- as address - 169.254.169.254
What is a meta DNS server for a VM?
Each instance has a meta DNS server that acts as a DNS resolver for that instance
- The meta data server handles all DNS queries for local network resources and routes all other queries to Google’s public DNS servers for public name resolution
Think on this one…
DNS name always points to a specific instance no matter what the internal IP is.
How is DNS for external addresses managed?
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/764/148/a_image_thumb.jpg?1551764683)
What are range of IP addresses for VMs?
You can assign a range of IP addresses as aliases to a VM’s primary network interface using alias IP ranges
-
![](https://s3.amazonaws.com/brainscape-prod/system/cm/269/764/454/a_image_thumb.png?1551765028)
What are default routes in a network?
- Every network has a default route - which indicates how the VMs talk to each other in the network
- By default, every network has routes that let instances in the network send traffic directly to each other even across subnetworks
- Every network has default route that directs packets to destinations that are outside network