PCDOE Bootstrapping a Google Cloud organization for DevOps • Complete Question Bank
Complete PCDOE Bootstrapping a Google Cloud organization for DevOps question bank — all 0 questions with answers and detailed explanations.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
CI/CD pipeline
Metrics and alerting
Log management and analysis
Application error aggregation
Real-time code inspection
Drag a concept onto its matching description — or click a concept then click the description.
Cumulative value that only increases
Instantaneous measurement at a point in time
Statistical summary of values over time
Change in a counter over a time interval
Running total from start of observation
Drag a concept onto its matching description — or click a concept then click the description.
Manages desired state for Pods
Stable network endpoint for Pods
External HTTP/S load balancing
Non-sensitive configuration data
Sensitive data like passwords
steps:
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args:
- '-c'
- |
gcloud functions deploy my-function \
--runtime nodejs18 \
--trigger-http \
--allow-unauthenticated{
"name": "projects/my-project/policies/constraints/resourcemanager.allowedProjectParent",
"spec": {
"rules": [
{
"values": {
"allowedValues": [
"folders/12345678"
]
}
}
]
}
}{
"name": "projects/my-project/roles/customDevOpsRole",
"title": "Custom DevOps Role",
"description": "For CI/CD pipelines",
"includedPermissions": [
"cloudbuild.builds.create",
"cloudbuild.builds.get",
"artifactregistry.repositories.downloadArtifacts",
"artifactregistry.repositories.uploadArtifacts",
"run.routes.invoke",
"run.services.update"
]
}``` $ gcloud organizations list ID: 123456789012 $ gcloud projects create my-project --organization=123456789012 ERROR: (gcloud.projects.create) FAILED_PRECONDITION: Project creation is restricted. ```
```
resource "google_project" "my_project" {
name = "My Project"
project_id = "my-project-123"
org_id = "123456789012"
auto_create_network = false
}
resource "google_project_service" "compute" {
project = google_project.my_project.project_id
service = "compute.googleapis.com"
}
```resource "google_organization_policy" "restrict_vm_external_ip" {
org_id = "123456789"
constraint = "constraints/compute.vmExternalIpAccess"
boolean_policy {
enforced = true
}
}