General Knowledge Flashcards
APIs enabled by default (14 of them)
BigQuery API BigQuery Storage API Cloud Datastore API Cloud Debugger API Cloud Logging API Cloud Monitoring API Cloud SQL Cloud Storage Cloud Storage API Cloud Trace API Google Cloud APIs Google Cloud Storage JSON API Service Management API Service Usage API
Dataproc and Dataflow
Cloud Dataflow uses the Apache Beam framework and can process streamed data.
Cloud Dataproc is for Spark/Hadoop and doesn’t handle streamed data.
get information about a GKE cluster
kubectl get deployment [Deployment Name] -o yaml
What do you use when dealing with stack traces
Stackdriver Error Reporting
Should you log to stdout and stderr on GCE for Stackdriver
No it is not the recommended way, write to a log file instead and configure Stackdriver to use that.
What role allows modification of an App engine cookie time
App Engine Admin
What is the maximum size of an object in GCS
5 TiB
What the limit to the size of object names.
This limit is 1024 bytes.
Maximum payload size for a GCS JSON API call
10MB.
What are the bandwidth limits for GCS
200 Gbps for each region from Cloud Storage to Google services.
50 Gbps per-project, per-region default bandwidth quota for Google services accessing a bucket
Egress to Cloud CDN is exempt from these quotas.
GCS Minimum storage duration
Standard Storage : None
Nearline Storage : 30 days
Coldline Storage : 90 days
Archive Storage : 365 days
GCS Retrieval Fees
Standard Storage : $0 per GB
Nearline Storage : $0.01 per GB
Coldline Storage : $0.02 per GB
Archive Storage : $0.05 per GB
About Doubles
Sample Storage Fees (differs by region)
Standard Storage: $0.023
Nearline Storage: $0.013 1/2 standard
Coldline Storage: $0.006 .05 of Nearline
Archive Storage: $0.0025 .05 of Archive
If you want to use JSON to send structure logging to Cloud Logging from the command line, what must you do
Pass
–payload-type=json
How do you list the name of the currently active account
gcloud auth lists
How do you linke a project to a billing account?
gcloud beta billing links a project to a billing account, in GUI it is automatic
How are credentials pass to Cloud Functions
As Environment Variables - i.e. key value pairs
What is the minimum number of service accounts an instance needs
The default instance account can be removed from an instance leaving none
What was Cloud Logging previous known by?
previously Stackdriver Logs
What email address is used for the default App Engine service
PROJECT_ID@appspot.gserviceaccount.com
How many keys can you configure for a service account?
You may generate a small number of keys per service account to facilitate key rotation. Primarily used for outside services and so that you can rotate to new keys. 10 is the max.
How do you enable to Compute API
Via the command line but a quicker way is to navigate to the Compute Engine of the console which automatically enables the GCE API.
How do you configure authentication for using Cloud Shell
You do not have to configure authentication to be able to use Cloud Shell
How does the “Defaults” project affect API inheritance
‘There is no such thing as a “defaults” project
What does “Metadata-Flavor: Google” do
This header indicates that the request was sent with the intention of retrieving METADATE VALUES, rather than unintentionally from an insecure source, and lets the metadata server return the data you requested.
What does legacyBucketWriter do
Grants permission to create, replace, list and delete objects
What is the command for generating a Kubernetes Secret from a file of key value pairs
kubectl create secret generic –from-file=.env.staging
What is Data Studio
Visualize your data through highly configurable charts and tables.
Easily connect to a variety of data sources.
Tell your data story with charts, including line, bar, and pie charts, geo maps, area and bubble graphs, paginated data tables, pivot tables, and more.
What is a limitation of roles/compute.storageAdmin
Grants permissions to create, modify, and delete disks, images, and snapshots, but not view the contents of Storage Buckets
What does the following do
kubectl diff -f ./my-manifest.yaml
Compares the current state of a cluster with the contents of the manifest file
Can you expand a IP-Subnet in GCP?
Yes you can, provided there aren’t conflicts.
https://cloud.google.com/sdk/gcloud/reference/compute/networks/subnets/expand-ip-range
What is gvisor
gVisor is a userspace re-implementation of the Linux kernel API that does not need elevated privileges. In conjunction with a container runtime such as containerd , the userspace kernel re-implements the majority of system calls and services them on behalf of the host kernel.
What does Datastore Emulator do and how do you install it
Provides local emulation of the production Datastore environment, installed by
gcloud components install cloud-datastore-emulator
How do you list the components available for installation in gcloud
gcloud components list
How can you manage GKE locally
By installing kubectl locally
gcloud components install kubectl
What does roles/browser allow
To view the hierarchy of the GCP org structure
What does the following do
kubectl config use-context
Allows you to access multiple clusters by using configuration files