MCQs on Setting Up AKS | Creating and Configuring AKS Clusters

Introduction: Master the fundamentals of Azure Kubernetes Service (AKS) with this collection of 30 multiple-choice questions. These questions cover the prerequisites, cluster setup, kubectl configuration, AAD integration, and networking/storage options for AKS.

Topics Covered:

  • Prerequisites for AKS setup
  • Creating AKS clusters using Azure Portal & CLI
  • Setting up kubectl for AKS
  • Azure Active Directory integration
  • Cluster networking and storage options

MCQs on Setting Up AKS

Prerequisites for AKS setup

  1. Which of the following is necessary to set up an AKS cluster?
    • A) Azure Subscription
    • B) Azure CLI
    • C) Docker Desktop
    • D) Both A and B
  2. Before setting up AKS, which service must be enabled on Azure?
    • A) Azure Active Directory
    • B) Azure Kubernetes Service
    • C) Azure Storage
    • D) Azure Blob Storage
  3. Which Azure service provides the underlying virtual machines for AKS?
    • A) Virtual Machines (VMs)
    • B) Azure Container Instances
    • C) Virtual Networks (VNets)
    • D) Azure Compute
  4. Which Azure role is required to create and manage an AKS cluster?
    • A) Owner
    • B) Contributor
    • C) Reader
    • D) AKS Manager
  5. What Azure subscription model is recommended for AKS deployment?
    • A) Pay-As-You-Go
    • B) Enterprise Agreement
    • C) Azure for Students
    • D) Both A and B

Creating an AKS Cluster using Azure Portal and Azure CLI

  1. Which Azure CLI command is used to create a new AKS cluster?
    • A) az aks create
    • B) az aks cluster-create
    • C) az aks deploy
    • D) az aks init
  2. Which resource group type is used to organize resources in Azure?
    • A) Shared Resource Group
    • B) AKS Resource Group
    • C) Custom Resource Group
    • D) Default Resource Group
  3. When creating an AKS cluster, which of the following should you configure to define the region for your deployment?
    • A) Azure Location
    • B) Azure Region
    • C) Cluster Region
    • D) Deployment Region
  4. What is the minimum number of nodes required when setting up an AKS cluster in the Azure CLI?
    • A) 1
    • B) 2
    • C) 3
    • D) 4
  5. Which of the following is an optional configuration when creating an AKS cluster?
    • A) Virtual Network
    • B) DNS Configuration
    • C) Ingress Controller
    • D) All of the above

Setting up kubectl for AKS

  1. After creating an AKS cluster, which command is used to configure kubectl to access the cluster?
    • A) az aks get-credentials
    • B) kubectl set-context
    • C) kubectl configure
    • D) az aks configure
  2. Which file does kubectl use to store cluster configuration?
    • A) kubeconfig.yaml
    • B) .kube/config
    • C) kubectl.yaml
    • D) kube-cluster.json
  3. How do you verify the connection to an AKS cluster using kubectl?
    • A) kubectl status
    • B) kubectl cluster-info
    • C) kubectl get-cluster
    • D) kubectl list-nodes
  4. What does the az aks get-credentials command do?
    • A) Creates a new cluster
    • B) Configures kubectl for the AKS cluster
    • C) Deploys applications to AKS
    • D) Initializes Kubernetes
  5. Which kubectl command retrieves a list of nodes in an AKS cluster?
    • A) kubectl get nodes
    • B) kubectl show nodes
    • C) kubectl list nodes
    • D) kubectl cluster-nodes

Configuring Azure Active Directory Integration

  1. What is the purpose of Azure Active Directory (AAD) integration in AKS?
    • A) To manage Kubernetes cluster settings
    • B) To control user access to the AKS cluster
    • C) To enable automatic scaling
    • D) To monitor cluster health
  2. What is required to enable Azure Active Directory (AAD) integration in AKS?
    • A) Azure AD tenant
    • B) A valid subscription
    • C) A storage account
    • D) A dedicated resource group
  3. Which authentication method is supported when using Azure Active Directory with AKS?
    • A) Certificate-based Authentication
    • B) Managed Identity Authentication
    • C) Azure AD Token Authentication
    • D) None of the above
  4. When setting up AAD integration, which Azure service is required to handle authentication?
    • A) Azure AD B2C
    • B) Azure AD Premium
    • C) Azure AD Free
    • D) Azure Identity Services
  5. What role is required for a user to manage Azure Active Directory integration in AKS?
    • A) Azure AD Administrator
    • B) AKS Administrator
    • C) Contributor
    • D) Reader

Cluster Networking and Storage Options

  1. What is the default networking mode for an AKS cluster?
    • A) Bridge Networking
    • B) Kubernetes Networking
    • C) Azure CNI
    • D) Calico Networking
  2. Which service is used to provide persistent storage in AKS clusters?
    • A) Azure Blob Storage
    • B) Azure Disks
    • C) Azure Files
    • D) Azure Storage Accounts
  3. What type of IP address is used for the Kubernetes API server in AKS?
    • A) Private IP
    • B) Public IP
    • C) Internal IP
    • D) Both A and B
  4. Which of the following can be used for securing traffic between AKS nodes and services?
    • A) Azure Network Security Groups
    • B) Azure Firewall
    • C) Kubernetes Network Policies
    • D) All of the above
  5. When configuring networking in AKS, which option allows pods to get IP addresses directly from Azure’s virtual network?
    • A) Kubenet
    • B) Azure CNI
    • C) Calico
    • D) Kubernetes Network Mode
  6. What does the az aks enable-addons command do in AKS?
    • A) Enables Azure Active Directory integration
    • B) Installs Kubernetes add-ons
    • C) Sets up storage for AKS
    • D) Configures network policies
  7. What type of load balancer is used by default in AKS for external access to services?
    • A) Application Gateway
    • B) Internal Load Balancer
    • C) External Load Balancer
    • D) Azure Load Balancer
  8. Which of the following is used to monitor and troubleshoot AKS cluster networking?
    • A) Azure Monitor
    • B) Kubernetes Dashboard
    • C) Azure Network Watcher
    • D) Azure Log Analytics
  9. What storage option is recommended for managing stateful applications in AKS?
    • A) Azure Disk Storage
    • B) Azure Blob Storage
    • C) Azure File Storage
    • D) None of the above
  10. Which Azure service provides a fully managed service to store container images for AKS?
    • A) Azure Container Registry
    • B) Azure Blob Storage
    • C) Azure App Services
    • D) Azure Key Vault

Answer Key

QnoAnswer
1D) Both A and B
2B) Azure Kubernetes Service
3A) Virtual Machines (VMs)
4B) Contributor
5D) Both A and B
6A) az aks create
7B) AKS Resource Group
8A) Azure Location
9A) 1
10D) All of the above
11A) az aks get-credentials
12B) .kube/config
13B) kubectl cluster-info
14B) Configures kubectl for the AKS cluster
15A) kubectl get nodes
16B) To control user access to the AKS cluster
17A) Azure AD tenant
18C) Azure AD Token Authentication
19B) Azure AD Premium
20A) Azure AD Administrator
21C) Azure CNI
22B) Azure Disks
23D) Both A and B
24D) All of the above
25B) Azure CNI
26B) Installs Kubernetes add-ons
27C) External Load Balancer
28C) Azure Network Watcher
29A) Azure Disk Storage
30A) Azure Container Registry

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top