PCD Deploying applications • Complete Question Bank
Complete PCD Deploying applications question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit. ``` # app.yaml for App Engine standard environment runtime: python39 entrypoint: gunicorn -b :$PORT main:app env_variables: DATABASE_URL: "postgresql://user:pass@localhost/mydb" ```
Refer to the exhibit. ``` ERROR: (gcloud.beta.run.deploy) The user-provided container failed to start and listen on the port defined by the PORT environment variable (8080). Logs for this revision might contain more information. Logs: 2024-03-15 10:23:45.123456 Container called exit(1). 2024-03-15 10:23:45.123789 Fatal error: Unable to bind to port 8080: Permission denied ```
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.
Can create and run Cloud Build builds
Can invoke Cloud Run services
Can list and read objects in a bucket
Can access secret versions
Can invoke Cloud Functions
Drag a concept onto its matching description — or click a concept then click the description.
Remove outdated content from edge caches
Authorize temporary access to private content
Serve content from any HTTP(S) server
Define how to cache different variations of content
Store content closer to users for low latency
Refer to the exhibit.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: app
image: gcr.io/my-project/my-app:v1
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 30
periodSeconds: 30Refer to the exhibit.
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 3
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: gcr.io/my-project/frontend:v2
ports:
- containerPort: 8080
env:
- name: BACKEND_URL
value: "http://backend-service:8080"
terminationGracePeriodSeconds: 30
```Refer to the exhibit.
```
{
"name": "my-deployment",
"replicas": 3,
"template": {
"spec": {
"containers": [{
"name": "my-container",
"image": "gcr.io/my-project/my-image:latest",
"resources": {
"requests": {
"memory": "1Gi",
"cpu": "500m"
},
"limits": {
"memory": "2Gi",
"cpu": "1"
}
}
}]
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxSurge": 1,
"maxUnavailable": 1
}
}
}
```ERROR: (gcloud.run.deploy) PERMISSION_DENIED: Permission 'run.services.create' denied on resource 'projects/my-project/locations/us-central1/services/my-service' (or the resource may not exist).