ACE Prep - Google
ACE Prep - Google
Solutions Environment
ACE Certification
Overview
Agenda
Section 1.1 - Cloud Projects and
Accounts
Section 1.2 - Billing Management
Create
project_1 project_2
[email protected]
Project Creator
Understanding permission hierarchy
● A policy is set on a resource.
Organization
○ Each policy contains a set of example.com
roles and role members.
Policy Inheritance
● Resources inherit policies from
Project
parent. bookshelf static-assets stream-ingest
○ Resource policies are a union
of parent and resource.
● A less restrictive parent policy Compute App Cloud Cloud Pub/Sub BigQuery
Resources
Engine Engine Storage Storage
overrides a more restrictive
resource policy.
A project can have multiple owners, editors, viewers, and billing administrators.
IAM predefined roles define...
Google Group
✔ compute.instances.delete
✔ compute.instances.get
InstanceAdmin ✔ compute.instances.list
Role ✔ compute.instances.setMachineType
✔ compute.instances.start
✔ compute.instances.stop
project_a ...
Why use pre-defined roles?
● Lowers business risk of accidental or deliberate damage to, or misuse of,
vital data and systems.
● Increases overall system and data security.
● Finer granularity on permissions is considered a best practice.
● Using coarse permissions may allow or cause users to violate regulations.
Managing your Google Cloud admin users
Gmail accounts and Users and groups in your Users and groups in your
Google Groups Workspace domain Cloud Identity domain
There are four ways to interact with Google Cloud
resources and services
App Engine
(flexible and standard BigQuery Datastore
environments)
Google Kubernetes
Pub/Sub Cloud SQL
Engine
The Google Cloud’s Operations Suite Fundamentals Quest will give you hands on
experience monitoring virtual machines, generating logs and alerts, and creating custom
metrics for application data.
It can be accessed at: https://www.qwiklabs.com/quests/35
Understanding billing
● To manage billing accounts and to add projects to them, you must be a billing
administrator.
● To change the billing account for an existing project, you must be an owner on the
project and a billing administrator on the destination billing account.
● When you create a new project, you're prompted to choose which of your billing
accounts you want to link to the project. If you have only one billing account, that
account is automatically linked to your project.
● If you don't have a billing account, you must create one and enable billing for your
project before you can use many Google Cloud features.
Understanding budgets and alerts
Avoid surprises on your bill by creating budgets to monitor all your Google Cloud
charges in one place. After you've set a budget amount, you set budget alert rules
that are used to trigger notifications, so you can stay informed of how your spend is
tracking against your budget.
● To set a budget alert you must be a billing administrator.
● You can apply budget alerts to either a billing account or a project.
● You can set the budget to an amount you specify or match it to the previous
month's spend.
● Setting a budget does not cap API usage. Your services will continue to
operate and accrue costs, even if a budget alert has been triggered.
Google Cloud Console
https://cloud.google.com/products/calculator/
Compute options and use cases
Option Use when you need... Typical use cases
Good for: Good for: Good for: Good for: Good for: Good for:
Web RDBMS+scale, Hierarchical, Heavy read + Binary or object Enterprise data
frameworks HA, HTAP mobile, web write, events data warehouse
Such as: Such as: Such as: Such as: Such as: Such as:
CMS, User metadata, User profiles, AdTech, Images, media Analytics,
eCommerce Ad/Fin/MarTech Game State financial, IoT serving, backups dashboards
Data storage options and use cases
Option Use when you need... Typical use cases
BigQuery A scalable, fully managed enterprise data ● OLAP workloads up to petabyte scale
warehouse (EDW) with SQL and fast ad-hoc ● Big data exploration and processing
queries.
The slides that follow describe the use cases for different types of load balancers.
Deciding on load balancing options
Traffic type is a deciding factor in choosing
a load balancer
The type of traffic you need your load balancer to handle is another factor in
determining which load balancer to use.
● HTTP and HTTPS traffic require global, external load balancing.
● TCP traffic can be handled by global, external load balancing; external,
regional load balancing; or internal, regional load balancing.
● UDP traffic can be handled by external regional load balancing or internal
regional load balancing.
Suggested study resources for this section
Google Cloud pricing overview: https://cloud.google.com/pricing/
Google Cloud Pricing Calculator: https://cloud.google.com/products/calculator/
Compute Engine documentation: https://cloud.google.com/compute/docs/
Choosing the right compute option in Google Cloud:
https://cloud.google.com/blog/products/gcp/choosing-the-right-compute-option-in-gcp-a-
decision-tree
Choosing an application hosting option: https://cloud.google.com/hosting-options
Storage classes: https://cloud.google.com/storage/docs/storage-classes
Cloud Storage products: https://cloud.google.com/products/storage
Load Balancing: https://cloud.google.com/load-balancing/docs/load-balancing-overview
Deploying and
Implementing a
Cloud Solution
Agenda
Section 3.1 - Deploying and Section 3.4 - Deploying and
implementing Compute Engine implementing data solutions
resources
Section 3.5 - Deploying and
Section 3.2 - Deploying and implementing networking
implementing Google Kubernetes resources
Engine resources
Section 3.6 - Deploying a Solution
Section 3.3 - Deploying and using Cloud Marketplace
implementing App Engine and
Cloud Functions resources Section 3.7 - Deploying an
Application using Deployment
Manager
Compute Engine offers managed virtual machines
● No upfront investment.
● Fast and consistent performance.
● Create VMs with the Cloud Console or the
gcloud command-line tool.
● Run images of Linux or Windows Server.
Managed instance groups
Create VMs from instance templates
● Quickly create multiple VMs
from pre-existing
configurations.
● Templates pre-define machine
type, boot disk image, labels
and other properties.
● Create managed instance
groups automatically for
autoscaling.
Creating managed instance groups with templates
What are containers?
OS / Hardware
What are containers?
OS / Hardware
implements
container
interfaces
Containers often implement microservices
MS2
MS1 MS3
MS2
MS1 MS3
Kubernetes
Kubernetes manages your containers
GKE
cluster k1
control
plane node node node
Kubernetes pods
Virtual Ethernet
port port
pod
container container
volume A volume B
Kubernetes pods
API
cluster k1
depl pod
control
plane node node node
App Engine standard environment
● Easily deploy your applications
● Autoscale workloads
● Free daily quota
● Usage-based pricing
● SDKs for development, testing and
deployment
App Engine standard environment
Requirements:
● Specific versions of Java, Python, PHP, and
Go are supported
Sandbox constraints:
● No writing to local files
● All requests time out at 60s
● Limits on third-party software
Example App Engine standard workflow: Web apps
Develop & test the web App Engine automatically App Engine can access
1 3
application locally. scales & reliably serves a variety of services
your web application. using dedicated APIs.
Project
Memcache
App Engine
Task
Use the SDK to deploy to App Servers
queues
2 App Engine. Application
instances Scheduled
tasks
Application
instances Search
Application
instances Logs
Cloud Functions
● Create single-purpose functions that respond to
events without a server or runtime.
○ Event examples: New instance created, file
added to Cloud Storage
● Written in Javascript, Python or Go; execute in
managed Node.js environment on Google Cloud.
Comparing data storage and database options
Relational Non-relational Object Warehouse
Good for: Good for: Good for: Good for: Good for: Good for:
Web RDBMS+scale, Hierarchical, Heavy read + Binary or object Enterprise data
frameworks HA, HTAP mobile, web write, events data warehouse
Such as: Such as: Such as: Such as: Such as: Such as:
CMS, User metadata, User profiles, AdTech, Images, media Analytics,
eCommerce Ad/Fin/MarTech Game State financial, IoT serving, backups dashboards
Comparing storage options: Technical details
Cloud Cloud
Datastore Bigtable Cloud SQL BigQuery
Storage Spanner
Complex
No No No Yes Yes Yes
queries
us-east1
10.0.0.0/24
10.0.0.2 10.0.0.3
Virtual Private Cloud (VPC) Networking
● Each VPC network is contained in a
Google Cloud project.
● You can provision Google Cloud
resources, connect them to each other,
and isolate them from one another.
Creating an automode VPC network with a subnet
Creating a custom mode VPC network with a subnet
Cloud Marketplace gives quick access to solutions
A solution marketplace containing pre-packaged,
ready-to-deploy solutions.
API
cluster k1
depl pod
control
plane node node node
Kubernetes: Make pods publicly available
API
cluster k1
depl service
● Lifecycle conditions
○ Age
○ CreatedBefore
○ isLive
○ MatchesStorageClass
○ NumberOfNewerVersions
Subnet IP management overview
● Each subnet has a primary range, which
does not have to be contiguous with the
secondary range(s).
● All primary and secondary ranges must be
unique.
● You can expand a subnet, but not shrink it,
once it has been created.
● The longest subnet mask you can use is
/29 (eight IP addresses).
Expanding a subnet IP
Built-in monitoring with Cloud Monitoring
Many Google Cloud services have Cloud Monitoring integration built in.
App Engine
(flexible and standard BigQuery Datastore
environments)
Google Kubernetes
Pub/Sub Cloud SQL
Engine
component_2 Service
Account 2
Storage.
objectViewer
bucket_1
Cloud Audit Logs
Three types of audit logs are kept for each of your projects:
● Admin Activity
● System Events
● Data Access
Viewing cloud audit logs in Operations
Cloud audit logs can be viewed
through the Operations interface
from the main Cloud Console
menu.
Viewing Cloud Audit Logs in the Activity menu
You can also access abbreviated versions of your activity logs via the Activity link
on the Home screen.
Suggested study resources for this section
Cloud IAM: https://cloud.google.com/iam/docs/