0
0
Azurecloud~20 mins

Deploying workloads to AKS in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AKS Deployment Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Pod Scheduling in AKS

You deploy a workload to AKS with a pod that requests 2 CPU cores and 4 GB memory. The cluster has nodes with 1 CPU core and 3 GB memory each. What will happen when you apply the deployment?

AThe pod will remain pending because no single node has enough resources to satisfy the request.
BThe pod will be scheduled but will be throttled to fit the node resources.
CThe pod will be scheduled across multiple nodes to meet the resource request.
DThe pod will be scheduled on a single node because AKS automatically splits resource requests.
Attempts:
2 left
💡 Hint

Think about how Kubernetes schedules pods based on node resources.

Configuration
intermediate
2:00remaining
Correct YAML for Deploying a Container to AKS

Which YAML snippet correctly deploys a single container named webapp using the image nginx:latest in AKS?

A
apiVersion: v1
kind: Pod
metadata:
  name: webapp
spec:
  containers:
  - name: webapp
    image: nginx:latest
B
apiVersion: apps/v1
kind: Deployment
metadata:
  name: webapp
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: webapp
    spec:
      containers:
      - name: webapp
        image: nginx:latest
C
apiVersion: apps/v1
kind: Pod
metadata:
  name: webapp
spec:
  containers:
  - name: webapp
    image: nginx:latest
D
apiVersion: v1
kind: Deployment
metadata:
  name: webapp
spec:
  replicas: 1
  containers:
  - name: webapp
    image: nginx:latest
Attempts:
2 left
💡 Hint

Deployments use apps/v1 and have a template section.

Architecture
advanced
2:00remaining
Designing AKS Cluster for High Availability

You need to design an AKS cluster that remains available even if one node fails. Which configuration best supports this requirement?

ACreate one node pool with 3 nodes all in the same availability zone.
BCreate a single node pool with 1 node and enable auto-scaling.
CCreate three node pools each with 1 node in the same availability zone.
DCreate a single node pool with 3 nodes spread across 3 availability zones.
Attempts:
2 left
💡 Hint

Think about spreading nodes to avoid single points of failure.

security
advanced
2:00remaining
Securing Container Images in AKS

You want to ensure only trusted container images are deployed to your AKS cluster. Which approach enforces this best?

AAllow any image from public registries to speed up deployment.
BManually review images before deployment without automation.
CUse Azure Policy to enforce image source and scan images for vulnerabilities.
DUse Kubernetes Network Policies to restrict image downloads.
Attempts:
2 left
💡 Hint

Consider automated policies and scanning tools.

Best Practice
expert
2:00remaining
Optimizing AKS Cluster Cost and Performance

You manage an AKS cluster with variable workloads. What is the best practice to optimize cost without sacrificing performance?

AUse cluster autoscaler with multiple node pools of different VM sizes and spot instances for non-critical workloads.
BUse a fixed-size node pool with the largest VM size to handle peak loads at all times.
CDisable autoscaling and manually add nodes during high demand periods.
DUse only spot instances for all workloads to minimize cost.
Attempts:
2 left
💡 Hint

Think about balancing cost savings and workload reliability.