Multiple choice practice

Microsoft Azure MCQ questions

Take a short practice test with instant feedback, then revise every question with its answer and the reason behind it.

Questions
52
From lessons
32
Your last test
—

Practice test

Microsoft Azure practice testMultiple choice Question 1 of 10

Which layer handles every create, update and delete request in Azure?

Score so far: 0/0

All questions with answers

  1. Which model gives you the most control over the operating system?

    • ASaaS
    • BPaaS
    • CIaaS
    • DFaaS
    Show answer

    Answer: C. IaaS

    With IaaS (e.g. virtual machines) you manage the OS and above.

  2. Which service hosts web apps and APIs without managing servers?

    • AAzure Virtual Machines
    • BAzure App Service
    • CAzure Disk Storage
    • DAzure Bastion
    Show answer

    Answer: B. Azure App Service

    App Service is a PaaS for web workloads.

  3. What is a resource group?

    • AA billing account
    • BA logical container for related resources
    • CA virtual network
    • DA user group in Entra ID
    Show answer

    Answer: B. A logical container for related resources

    Deleting a resource group deletes everything in it.

  4. Which service runs event-driven code that scales automatically?

    • AAzure Functions
    • BAzure Batch
    • CAzure Files
    • DAzure DNS
    Show answer

    Answer: A. Azure Functions

    Functions run on triggers such as HTTP, timers and queues.

  5. Which storage service is designed for unstructured objects like images?

    • ATable Storage
    • BBlob Storage
    • CQueue Storage
    • DDisk Storage
    Show answer

    Answer: B. Blob Storage

    Blobs live in containers inside a storage account.

  6. Which blob tier is cheapest to store but slowest to read?

    • AHot
    • BCool
    • CCold
    • DArchive
    Show answer

    Answer: D. Archive

    Archive data must be rehydrated before it can be read.

  7. Which service stores secrets, keys and certificates?

    • AKey Vault
    • BApp Configuration
    • CStorage Queue
    • DMonitor
    Show answer

    Answer: A. Key Vault

    Apps read secrets using their managed identity.

  8. Which identity type is tied to a single resource’s lifecycle?

    • AUser-assigned managed identity
    • BSystem-assigned managed identity
    • CService principal with a secret
    • DGuest user
    Show answer

    Answer: B. System-assigned managed identity

    It is deleted when the resource is deleted.

  9. Which database is a globally distributed NoSQL service?

    • AAzure SQL Database
    • BAzure Cosmos DB
    • CAzure Database for MySQL
    • DSQL Server on VM
    Show answer

    Answer: B. Azure Cosmos DB

    Cosmos DB offers multiple APIs and multi-region writes.

  10. Which service collects metrics and logs across Azure?

    • AAzure Monitor
    • BAzure Advisor
    • CAzure Policy
    • DAzure Arc
    Show answer

    Answer: A. Azure Monitor

    Application Insights and Log Analytics are part of Azure Monitor.

  11. Which query language is used in Log Analytics?

    • ASQL
    • BKQL
    • CGraphQL
    • DLINQ
    Show answer

    Answer: B. KQL

    Kusto Query Language: requests | where resultCode == 500.

  12. What filters network traffic to resources in a subnet?

    • ANetwork Security Group
    • BRoute table only
    • CAzure DNS
    • DTraffic Manager
    Show answer

    Answer: A. Network Security Group

    NSGs contain allow/deny rules by port, protocol and address.

  13. Which registry stores private container images in Azure?

    • ADocker Hub
    • BAzure Container Registry
    • CGitHub Packages only
    • DAzure Artifacts only
    Show answer

    Answer: B. Azure Container Registry

    ACR integrates with AKS, Container Apps and App Service.

  14. Which service gives a managed Kubernetes control plane?

    • AAzure Container Instances
    • BAKS
    • CService Fabric
    • DAzure Batch
    Show answer

    Answer: B. AKS

    Azure Kubernetes Service.

  15. Which App Service feature allows zero-downtime swaps?

    • ADeployment slots
    • BBackups
    • CKudu
    • DCustom domains
    Show answer

    Answer: A. Deployment slots

    Deploy to a slot, warm up, then swap.

  16. Which tool helps set spending limits and alerts?

    • ACost Management budgets
    • BAzure Monitor metrics
    • CAzure Policy
    • DDefender for Cloud
    Show answer

    Answer: A. Cost Management budgets

    Budgets send alerts when thresholds are reached.

  17. Which language is Azure’s native infrastructure-as-code DSL?

    • ATerraform HCL
    • BBicep
    • CYAML pipelines
    • DPowerShell DSC
    Show answer

    Answer: B. Bicep

    Bicep compiles to ARM templates.

  18. What is wrong with this App Service setting?

    Shell Illustrative
    az webapp config appsettings set -g shop-rg -n shop-api \
      --settings "Db__Password=P@ssw0rd123"
    
    • ANothing
    • BA secret is stored in plain text instead of a Key Vault reference or managed identity
    • CConnection strings cannot be app settings
    • DPorts must be specified
    Show answer

    Answer: B. A secret is stored in plain text instead of a Key Vault reference or managed identity

    Use a Key Vault reference or, better, passwordless auth with a managed identity.

  19. Which pair forms Azure’s highest availability inside one region?

    • ATwo VMs on the same host
    • BResources spread across availability zones
    • CTwo resource groups
    • DTwo subscriptions
    Show answer

    Answer: B. Resources spread across availability zones

    Zones are separate datacentres with independent power and networking.

  20. Which service hosts static front ends with PR preview environments?

    • AAzure Static Web Apps
    • BAzure Front Door only
    • CAzure Batch
    • DAzure Files
    Show answer

    Answer: A. Azure Static Web Apps

    Static Web Apps integrates with GitHub Actions and Azure DevOps.

  21. What does an App Service plan determine?

    • AThe programming language
    • BThe compute resources and pricing tier
    • CThe domain name
    • DThe database engine
    Show answer

    Answer: B. The compute resources and pricing tier

    The plan defines region, instance size, instance count and pricing tier.

    From the lesson: Azure App Service
  22. Deployment slots allow swapping staging into production without downtime.

    • ATrue
    • BFalse
    Show answer

    Answer: A. True

    Slot swaps warm up the new version before routing production traffic to it.

    From the lesson: Azure App Service
  23. With PaaS, who patches the operating system?

    • AYou
    • BThe cloud provider
    • CNobody
    • DThe end users
    Show answer

    Answer: B. The cloud provider

    In PaaS the provider manages the OS and runtime; you manage your application and data.

    From the lesson: Introduction to Cloud Computing
  24. What does “elasticity” mean?

    • AContracts can be cancelled
    • BResources scale up and down with demand
    • CData is stored twice
    • DPrices never change
    Show answer

    Answer: B. Resources scale up and down with demand

    Elasticity is automatic scaling to match demand.

    From the lesson: Introduction to Cloud Computing
  25. Which layer handles every create, update and delete request in Azure?

    • AAzure DNS
    • BAzure Resource Manager
    • CAzure Monitor
    • DMicrosoft Entra ID
    Show answer

    Answer: B. Azure Resource Manager

    All management operations go through Azure Resource Manager.

    From the lesson: Azure Fundamentals