ACE Module 2 Planning and Configuring Cloud Solutions v2.0

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 53

Preparing for Your

Associate Cloud
Engineer Journey

Module 2: Planning and Configuring Cloud Solutions


Proprietary + Confidential

Module 01 Selecting resources for Cymbal Superstore’s


cloud solutions

agenda 02 Diagnostic questions

03 Review and study planning


Proprietary + Confidential

Selecting resources for


Cymbal Superstore’s
cloud solutions
Proprietary + Confidential

The next step: ● Planning and estimating Google Cloud


planning and pricing using the Pricing Calculator
configuring Cymbal ● Planning and configuring
Superstore’s cloud compute resources
solutions ● Planning and configuring
data storage options
● Planning and configuring
network resources
Proprietary + Confidential

Cymbal Superstore’s existing applications

Ecommerce Transportation Management Supply Chain


Cymbal Superstore has an existing web Delivery services is becoming an Cymbal Superstore has decided to
application that provides an interface important aspect of Cymbal migrate their legacy supply chain
for customers to look at and order Superstore’s customer interactions. application to the cloud
products. Cymbal Superstore would like to use
Google Services to keep track of truck
location.

Requirements: Requirements: Requirements:


● Compute: Container architecture ● Dashboard of truck location ● Available local to their HQ
in near real-time
● Data: Relational backend ● Currently implemented in virtual
● Analysis of truck mileage for machines with a LINUX operating
● Networking: Needs to be globally
preventive maintenance system and a LAMP stack
available
● Need analytical capabilities to
inform marketing efforts
Proprietary + Confidential

Cymbal Superstore’s ecommerce solution

Ecommerce Ecommerce
Requirements Cloud Solution

● Compute: Container ● Compute: Google Kubernetes


architecture Engine
● Data: Relational backend ● Data: Spanner
● Networking: Needs to be ● Networking: External http(s)
globally available load balancing
● Need analytical capabilities to ● Feed historic sales data to
inform marketing efforts BigQuery
Proprietary + Confidential

Cymbal Superstore’s
transportation management solution

Transportation Transportation
Management Management
Cloud Solution

Requirements ● Delivery: Pub/Sub


● Dashboard of truck location in ● Compute: Cloud Functions
near real-time ● Orchestration: Dataflow
● Analysis of truck mileage for ● Storage: Bigtable
preventive maintenance
● Network: Regional
Proprietary + Confidential

Cymbal Superstore’s supply chain solution

Supply Supply Chain


Chain Cloud Solution

Cymbal Superstore has decided to ● Compute: Compute Engine


migrate their legacy supply chain ● Data: Cloud SQL
application to the cloud
● Networking:
○ Internal to VPC for backing
Requirements: database
● Available local to their HQ ○ Regional External https
● Currently implemented in virtual access
machines with a LINUX
operating system and a LAMP
stack
Proprietary + Confidential

Diagnostic questions
Proprietary + Confidential

Please complete the


diagnostic questions now
● The diagnostic questions are available in
the workbook.
Proprietary + Confidential

Review and
study planning
Proprietary + Confidential

Your study plan:


Planning and configuring cloud solutions

2.1 Planning and estimating using


the Pricing Calculator

2.2 Planning and configuring


compute resources

2.3 Planning and configuring


data storage options

2.4 Planning and configuring


network resources
Proprietary + Confidential

Planning and estimating


2.1 using the Pricing Calculator
Proprietary + Confidential

2.1 Diagnostic Question 01 Discussion

The projected amount of cloud storage A. Use the pricing calculator to estimate
required for Cymbal Superstore to the costs for 10 TB of regional Standard
enable users to post pictures for storage, 30 TB of regional Coldline storage,
project reviews is 10 TB of immediate and egress charges for reads from storage.
access storage in the US and 30 TB of B. Use the pricing calculator to estimate the price for 10 TB of regional
storage for historical posts in a bucket Standard storage, 30 TB of regional Nearline storage, and ingress
located near Cymbal Superstore’s charges for posts to the bucket.
headquarters. The contents of this
C. Use the pricing calculator to estimate the price for 10 TB of
bucket will need to be accessed once
multi-region standard storage, 30 TB for regional Coldline storage,
every 30 days. You want to estimate
and ingress charges for posts to the bucket.
the cost of these storage resources to
ensure this is economically feasible. D. Use the pricing calculator to estimate the price for 10 TB of
multi-region Standard storage, 30 TB for regional Nearline, and
egress charges for reads from the bucket.
What should you do?
Proprietary + Confidential

2.1 Diagnostic Question 01 Discussion

The projected amount of cloud storage A. Use the pricing calculator to estimate
required for Cymbal Superstore to the costs for 10 TB of regional Standard
enable users to post pictures for storage, 30 TB of regional Coldline storage,
project reviews is 10 TB of immediate and egress charges for reads from storage.
access storage in the US and 30 TB of B. Use the pricing calculator to estimate the price for 10 TB of regional
storage for historical posts in a bucket Standard storage, 30 TB of regional Nearline storage, and ingress
located near Cymbal Superstore’s charges for posts to the bucket.
headquarters. The contents of this
C. Use the pricing calculator to estimate the price for 10 TB of
bucket will need to be accessed once
multi-region standard storage, 30 TB for regional Coldline storage,
every 30 days. You want to estimate
and ingress charges for posts to the bucket.
the cost of these storage resources to
ensure this is economically feasible. D. Use the pricing calculator to estimate the price for 10 TB of
multi-region Standard storage, 30 TB for regional Nearline,
and egress charges for reads from the bucket.
What should you do?
Proprietary + Confidential

Pricing Calculator 1
Select a product from
scrolling list at top of the
form

Form for each product


2 will show expense
variables

Enter target
3
configuration in form

https://cloud.google.com/products/calculator/

Submit each section to


4 add to your overall
estimate
Proprietary + Confidential

Total estimated cost:


Pricing Calculator daily, weekly, monthly,
quarterly, yearly and
3-year increments

Cost is only an estimate

Question to ask:
How closely your
estimated usage
matches your actual
usage?

Not a binding contract,


just a planning tool
Proprietary + Confidential

Planning and estimating


2.1 using the Pricing Calculator

Courses Documentation

Google Cloud Pricing Calculator


Architecting with Google Essential Google Cloud
Compute Engine Infrastructure: Foundation
● M3 Virtual Machines ● M3 Virtual Machines
● M6 Resource
Management = Essential Google Cloud
Infrastructure: Core Services
● M3 Resource
Management
Proprietary + Confidential

Planning and configuring


2.2 compute resources

Considerations include:
● Selecting appropriate compute choices for a given workload
(e.g., Compute Engine, Google Kubernetes Engine, Cloud Run, Cloud Functions)
● Using preemptible VMs and custom machine types as appropriate
Proprietary + Confidential

2.2 Diagnostic Question 02 Discussion

Cymbal Superstore decides to migrate A. Implement an application using containers


their supply chain application to Google on Cloud Run.
Cloud. You need to configure specific B. Implement an application using code on
operating system dependencies. App Engine.
C. Implement an application using containers
What should you do? on Google Kubernetes Engine.
D. Implement an application using virtual
machines on Compute Engine.
Proprietary + Confidential

2.2 Diagnostic Question 02 Discussion

Cymbal Superstore decides to migrate A. Implement an application using containers


their supply chain application to Google on Cloud Run.
Cloud. You need to configure specific B. Implement an application using code on
operating system dependencies. App Engine.
C. Implement an application using containers
What should you do? on Google Kubernetes Engine.
D. Implement an application using virtual
machines on Compute Engine.
Proprietary + Confidential

Infrastructure as a service:

Google Compute Engine Google Kubernetes Engine


Virtual machines running in Logical infrastructure powered by Kubernetes,
Google’s global data centers the open source container orchestration system

● Complete control ● No dependencies on a specific OS


● Ability to make OS level changes ● Increased velocity and operability
Use When You
Need... ● To be able to move to the cloud without ● To manage containers in production
rewriting your code
● To use custom VM images

● Any workload requiring a specific OS or


● Containerized workloads
Typical Use Cases configuration
● On-premises software that you want to ● Cloud-native distributed systems
run in the cloud ● Hybrid applications
Proprietary + Confidential

Platform as a service:

Google App Engine Google Cloud Run Google Cloud Functions


Flexible, zero-ops platform Deploy code or containers that Serverless execution environment for
for building apps listens for requests or events building and connecting cloud services

● To just focus on writing code ● Scales to meet demand ● For event-driven workloads
Use When You ● Developer velocity ● Pay for what you use ● Scales to meet demand
Need...
● To minimize operational overhead ● Supports API endpoints ● Minimal configuration

● Web sites ● Web frameworks ● Statistical analysis


● Apps (of course!) ● Microservices ● Image thumbnail generation
Typical Use Cases
● Gaming back ends ● Post a comment to a Slack channel
after a GitHub commit
● IoT applications
Proprietary + Confidential

2.2 Diagnostic Question 03 Discussion

Cymbal Superstore decides to pilot a A. SSH into a Compute Engine VM and


cloud application for their point of sale execute your code.
system in their flagship store. You want B. Package your code to a container
to focus on code and develop your image and post it to Cloud Run.
solution quickly, and you want your
C. Implement a deployment manifest and
code to be portable.
run kubectl apply on it in Google
Kubernetes Engine.
How do you proceed?
D. Code your solution in Cloud Functions.
Proprietary + Confidential

2.2 Diagnostic Question 03 Discussion

Cymbal Superstore decides to pilot a A. SSH into a Compute Engine VM and


cloud application for their point of sale execute your code.
system in their flagship store. You want B. Package your code to a container
to focus on code and develop your image and post it to Cloud Run.
solution quickly, and you want your
C. Implement a deployment manifest and
code to be portable.
run kubectl apply on it in Google
Kubernetes Engine.
How do you proceed?
D. Code your solution in Cloud Functions.
Proprietary + Confidential

2.2 Diagnostic Question 04 Discussion

An application running on a A. Create Compute Engine Virtual


highly-customized version of Ubuntu Machines and migrate the app to
needs to be migrated to Google Cloud. that infrastructure.
You need to do this in the least amount B. Deploy the existing application to
of time with minimal code changes. App Engine.
C. Deploy your application in a
How should you proceed? container image to Cloud Run.
D. Implement a Kubernetes cluster and
create pods to enable your app.
Proprietary + Confidential

2.2 Diagnostic Question 04 Discussion

An application running on a A. Create Compute Engine Virtual


highly-customized version of Ubuntu Machines and migrate the app to
needs to be migrated to Google Cloud. that infrastructure.
You need to do this in the least amount B. Deploy the existing application to
of time with minimal code changes. App Engine.
C. Deploy your application in a
How should you proceed? container image to Cloud Run.
D. Implement a Kubernetes cluster and
create pods to enable your app.
Proprietary + Confidential

2.2 Diagnostic Question 05 Discussion

You want to deploy a microservices A. Cloud Run


application. You need full control of how B. App Engine
you manage containers, reliability, and
C. Google Kubernetes Engine
autoscaling, but don’t want or need to
manage the control plane. D. Compute Engine

Which compute option should you use?


Proprietary + Confidential

2.2 Diagnostic Question 05 Discussion

You want to deploy a microservices A. Cloud Run


application. You need full control of how B. App Engine
you manage containers, reliability, and
C. Google Kubernetes Engine
autoscaling, but don’t want or need to
manage the control plane. D. Compute Engine

Which compute option should you use?


Proprietary + Confidential

Planning and configuring


2.2 compute resources
Courses Skill Badge

Google Cloud Fundamentals: Getting Started with Google


Core Infrastructure Kubernetes Engine Google Cloud

Develop your Google


● M3 Virtual Machines and ● M2 Introduction to Containers Cloud Network
Networks in the Cloud and Kubernetes
● M5 Containers in the Cloud
● M6 Applications in the Cloud

Architecting with Google Essential Google Cloud Documentation


Compute Engine Infrastructure: Foundation Choosing the right compute option in
● M3 Virtual Machines = ● M3 Virtual Machines GCP: a decision tree
Application Hosting Options
Tutorials | Compute Engine
Documentation
Proprietary + Confidential

Planning and configuring


2.3 data storage options

Considerations include:
● Product choice
(e.g., Cloud SQL, BigQuery, Firestore, Spanner, Bigtable)
● Choosing storage options
(e.g., Zonal persistent disk, Regional balanced persistent disk, standard, Nearline,
Coldline, Archive)
Proprietary + Confidential

2.3 Diagnostic Question 06 Discussion

Cymbal Superstore needs to analyze whether A. BigQuery


they met quarterly sales projections. Analysts B. Cloud SQL
assigned to run this query are familiar with SQL.
C. Spanner
D. Firestore

What data solution should they implement?


Proprietary + Confidential

2.3 Diagnostic Question 06 Discussion

Cymbal Superstore needs to analyze whether A. BigQuery


they met quarterly sales projections. Analysts B. Cloud SQL
assigned to run this query are familiar with SQL.
C. Spanner
D. Firestore

What data solution should they implement?


Proprietary + Confidential

Comparing Data Storage and Database Options

Relational Non-relational Object Warehouse

Cloud Cloud
Spanner Firestore Bigtable BigQuery
SQL Storage

Good for: Good for: Good for: Good for: Good for: Good for:
Web RDBMS+scale, Hierarchical, Heavy read + Binary or object data Enterprise data
frameworks HA, HTAP mobile, web write, events warehouse

Such as: Such as: Such as: Such as: Such as: Such as:
CMS, User metadata, User profiles, AdTech, Images, media Analytics, dashboards
eCommerce Ad/Fin/MarTech Game State financial, IoT serving, backups
Proprietary + Confidential

2.3 Diagnostic Question 07 Discussion

Cymbal Superstore’s supply chain A. Archive


application frequently analyzes large B. Coldline
amounts of data to inform business
C. Nearline
processes and operational dashboards.
D. Standard

What storage class would make


sense for this use case?
Proprietary + Confidential

2.3 Diagnostic Question 07 Discussion

Cymbal Superstore’s supply chain A. Archive


application frequently analyzes large B. Coldline
amounts of data to inform business
C. Nearline
processes and operational dashboards.
D. Standard

What storage class would make


sense for this use case?
Proprietary + Confidential

Storage Classes and use cases summary

Standard Nearline Coldline Archive

● No retrieval cost ● Very low cost per GB ● Even lower cost per GB ● Lowest cost per GB
stored and can accept stored and can accept stored and can accept
Use when ● No minimum storage
higher per-operation higher per-operation the highest
you need... duration
costs costs per-operation costs
● 30-day minimum storage ● 90-day minimum storage ● 365-day minimum
duration duration storage duration

“Hot” data and/or stored Infrequently (i.e., no more Very infrequently accessed Data archiving, online
for only brief periods of than once per month) data - ie, once a year. backup, and disaster
Typical use time like data-intensive accessed data. Ideal for Typically this is for disaster recovery
cases
computations back-up and serving long-tail recovery, or for financial data
multimedia content. that has to be kept for a
certain length of time to meet
regulatory needs.
Proprietary + Confidential

2.3 Diagnostic Question 08 Discussion

Cymbal Superstore has a need to populate visual A. BigQuery


dashboards with historical time-based data. This B. Cloud Storage
is an analytical use-case.
C. Firestore
D. Cloud SQL
Which two storage solutions could they use? E. Bigtable
Proprietary + Confidential

2.3 Diagnostic Question 08 Discussion

Cymbal Superstore has a need to populate visual A. BigQuery


dashboards with historical time-based data. This B. Cloud Storage
is an analytical use-case.
C. Firestore
D. Cloud SQL
Which two storage solutions could they use? E. Bigtable
Proprietary + Confidential

Comparing storage options: use cases

Firestore Bigtable Cloud Storage Cloud SQL Spanner BigQuery

NoSQL Relational SQL for Relational SQL for Relational SQL for
Type NoSQL document Blobstore
wide column OLTP OLTP OLAP

Structured and Large-scale


“Flat” data, Heavy Web frameworks, Interactive
Storing, syncing, unstructured database
Best for read/write, events, existing querying, offline
and querying data binary or object applications (> ~2
analytical data applications analytics
data TB)

Mobile, web, and Images, large Whenever high I/O,


AdTech, Financial User credentials,
Use cases server media files, global consistency Data warehousing
and IoT data customer orders
development backups is needed
Proprietary + Confidential

Planning and configuring


2.3 data storage options

Courses Skill Badge Documentation

Cloud Storage Options


Google Cloud Fundamentals:
Core Infrastructure Storage classes
Google Cloud
● M4 Storage in the Cloud Set Up an App Dev Data lifecycle | Cloud Architecture
Environment on Google Cloud Center
Architecting with Google
Compute Engine
● M5 Storage and Database
Services
=
Essential Google Cloud
Infrastructure: Core Services
● M2 Storage and
Database Services
Proprietary + Confidential

Planning and configuring


2.4 network resources

Considerations include:
● Differentiating load balancing options
● Identifying resource locations in a network for availability
● Configuring Cloud DNS
Proprietary + Confidential

2.4 Diagnostic Question 09 Discussion

Cymbal Superstore is piloting an A. Implement a premium tier pass-through


update to its ecommerce app for the external https load balancer connected
flagship store in Minneapolis, to the web tier as the frontend and a regional
Minnesota. The app is implemented as internal load balancer between the web tier and backend.
a three-tier web service with traffic B. Implement a proxied external TCP/UDP network load balancer
originating from the local area and connected to the web tier as the frontend and a premium
resources dedicated for it in network tier ssl load balancer between the web tier and the
us-central1. You need to configure a backend.
secure, low-cost network
C. Configure a standard tier proxied external https load balancer
load-balancing architecture for it.
connected to the web tier as a frontend and a regional
internal load balancer between the web tier and the backend.
How do you proceed? D. Configure a proxied SSL load balancer connected to the web
tier as the frontend and a standard tier internal TCP/UDP load
balancer between the web tier and the backend.
Proprietary + Confidential

2.4 Diagnostic Question 09 Discussion

Cymbal Superstore is piloting an A. Implement a premium tier pass-through


update to its ecommerce app for the external https load balancer connected
flagship store in Minneapolis, to the web tier as the frontend and a regional
Minnesota. The app is implemented as internal load balancer between the web tier and backend.
a three-tier web service with traffic B. Implement a proxied external TCP/UDP network load balancer
originating from the local area and connected to the web tier as the frontend and a premium
resources dedicated for it in network tier ssl load balancer between the web tier and the
us-central1. You need to configure a backend.
secure, low-cost network
C. Configure a standard tier proxied external https load balancer
load-balancing architecture for it.
connected to the web tier as a frontend and a regional
internal load balancer between the web tier and the backend.
How do you proceed? D. Configure a proxied SSL load balancer connected to the web
tier as the frontend and a standard tier internal TCP/UDP load
balancer between the web tier and the backend.
Proprietary + Confidential

Google VPC offers a suite of load balancing options

Global HTTP(S) Global SSL Proxy Global TCP Proxy Regional Regional internal

Layer 4 load balancing of


Layer 7 load balancing Layer 4 load balancing of Load balancing of any Load balancing of traffic
non-HTTPS SSL traffic
based on load non-SSL TCP traffic traffic (TCP, UDP) inside a VPC
based on load

Can route different URLs Supported on any port


Supported on specific port Supported on specific port Use for the internal tiers of
to different backends number
numbers numbers multi-tier applications
Proprietary + Confidential

2.4 Diagnostic Question 10 Discussion

A. Global http(s)
What Google Cloud load balancing option
runs at Layer 7 of the TCP stack? B. Global SSL Proxy
C. Global TCP Proxy
D. Regional Network
Proprietary + Confidential

2.4 Diagnostic Question 10 Discussion

A. Global http(s)
What Google Cloud load balancing option
runs at Layer 7 of the TCP stack? B. Global SSL Proxy
C. Global TCP Proxy
D. Regional Network
Proprietary + Confidential

Summary of load balancers


Global/ External/
Load balancer Traffic type External ports for load balancing
Regional Internal
HTTP(S) HTTP or HTTPS Global External HTTP on 80 or 8080; HTTPS on 443
IPv4
SSL Proxy TCP with SSL offload IPv6 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995,
1883, 5222

TCP Proxy ● TCP without SSL offload 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995,
● Does not preserve client 1883, 5222
IP addresses

Network TCP/UDP ● TCP/UDP without SSL Regional Any


offload IPv4
● Preserves client IP
addresses

Internal TCP/UDP TCP or UDP Internal Any

Internal HTTP(S) HTTP or HTTPS HTTP on 80 or 8080; HTTPS on 443


Proprietary + Confidential

Planning and configuring


2.4 network resources
Courses Documentation

Google Cloud Fundamentals: Core Infrastructure


Cloud Load Balancing overview
● M3 Virtual Machines and Networks in the Cloud
● M4 Storage in the Cloud
Cloud Load Balancing

Architecting with Google Essential Google Cloud


Compute Engine Infrastructure: Foundation
● M2 Virtual Networks ● M2 Virtual Networks
● M5 Storage and Database
Services = Essential Google Cloud
Infrastructure: Core Services
● M9 Load Balancing ● M2 Storage and Database
and Autoscaling Services
Elastic Google Cloud Infrastructure:
Scaling and Automation
● M2 Load Balancing
and Autoscaling
Proprietary + Confidential

Knowledge Check 1
Which storage class is designed for long term storage has a 365
day minimum storage agreement, and a lower storage price as
compared to other storage types?

A. Standard Storage

B. Coldline Storage

C. Nearline Storage

D. Archive storage
Proprietary + Confidential

Knowledge Check 1
Which storage class is designed for long term storage has a 365
day minimum storage agreement, and a lower storage price as
compared to other storage types?

A. Standard Storage

B. Coldline Storage

C. Nearline Storage

D. Archive storage
Proprietary + Confidential

Knowledge Check 2
Which serverless option is based on developing and executing small snippets of code?

A. Cloud Functions

B. Cloud Run

C. BigQuery

D. Dataflow
Proprietary + Confidential

Knowledge Check 2
Which serverless option is based on developing and executing small snippets of code?

A. Cloud Functions

B. Cloud Run

C. BigQuery

D. Dataflow

You might also like