200-901 Application Deployment and Security • Complete Question Bank
Complete 200-901 Application Deployment and Security question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
```
{
"hostname": "Router1",
"interfaces": [
{
"name": "GigabitEthernet0/0",
"ip": "10.1.1.1",
"mask": "255.255.255.0",
"enabled": true
},
{
"name": "GigabitEthernet0/1",
"ip": "192.168.1.1",
"mask": "255.255.255.0",
"enabled": false
}
]
}
```Refer to the exhibit.
```
Error: EACCES: permission denied, mkdir '/usr/src/app/node_modules/.cache'
at Object.mkdirSync (fs.js:753:3)
at ...
```Refer to the exhibit. ``` interface GigabitEthernet1/0/1 description CONNECTION TO APP SERVER switchport access vlan 10 switchport mode access spanning-tree portfast spanning-tree bpduguard enable ```
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.
Configuration management and automation
API testing and development
Network test automation framework
SSH-based network device interaction
Python automation framework for networking
Drag a concept onto its matching description — or click a concept then click the description.
HTTP library for REST API calls
SSH protocol implementation
NETCONF client for network devices
Validate JSON data structures
Parse and emit YAML files
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
spec:
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
app: webapp
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: web
image: nginx:1.21
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /health
port: 80
initialDelaySeconds: 5
periodSeconds: 10from flask import Flask, request, jsonify
import jwt
app = Flask(__name__)
app.config['SECRET_KEY'] = 'my-secret'
@app.route('/login', methods=['POST'])
def login():
username = request.json.get('username')
password = request.json.get('password')
# Verify username/password (omitted)
token = jwt.encode({'user': username}, app.config['SECRET_KEY'], algorithm='HS256')
return jsonify({'token': token})
@app.route('/protected', methods=['GET'])
def protected():
token = request.headers.get('Authorization')
if not token:
return jsonify({'msg': 'Missing token'}), 401
try:
# token format: "Bearer <token>"
token = token.split()[1]
data = jwt.decode(token, app.config['SECRET_KEY'], algorithms=['HS256'])
return jsonify({'msg': 'Access granted', 'user': data['user']})
except:
return jsonify({'msg': 'Invalid token'}), 401FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt COPY . . EXPOSE 5000 CMD ["python", "app.py"]
configure terminal ip http server ip http secure-server ip http authentication local ip http access-class 23 ! access-list 23 permit 192.168.1.0 0.0.0.255
{
"network": {"id": "N_12345", "name": "Office"},
"vlan": {"id": "1", "subnet": "192.168.1.0/24"},
"groupPolicy": {"name": "Block Social Media", "contentFiltering": {"blockedUrlPatterns": {"id": "456"}}}
}apiVersion: v1
kind: Pod
metadata:
name: webapp
spec:
containers:
- name: webapp
image: myapp:latest
securityContext:
runAsUser: 1000
runAsGroup: 3000
allowPrivilegeEscalation: false
volumeMounts:
- name: config
mountPath: /etc/config
volumes:
- name: config
configMap:
name: app-configip access-list extended APP-SECURITY deny tcp any any eq 8080 permit tcp 192.168.1.0 0.0.0.255 any eq 8080 permit udp any any eq 53
A network administrator is deploying a custom container application on a Cisco Catalyst 9300 switch running IOS XE 16.12. The application is packaged as a .tar file and installed using 'app-hosting install app myapp flash:myapp.tar'. The administrator configures the app-hosting context as follows:
app-hosting app myapp app-default-gateway 192.168.1.1 app-vnic gateway0 guest-interface 0 guest-ipaddress 192.168.1.10 netmask 255.255.255.0 app-resource profile custom cpu 1000 memory 2048 storage 5000
The administrator also creates a virtual port group 'vg0' and assigns it to the management interface. The application fails to start with the error: 'Application failed to start: guest interface not ready'. The administrator verifies that the .tar file is valid, the resources are sufficient, and the gateway is reachable. What is the most likely cause of the failure?