What happens when deploying a new version of a web app in Azure?
AOld version is deleted immediately
BUsers are redirected to new version
CBoth versions run simultaneously
DDeployment fails and no changes occur
Explanation
Deploying a new web app version can cause both versions to run until the traffic is fully shifted, ensuring no downtime, while the others are misleading or incorrect.
Q22
Which Azure service would you use for serverless computing?
AAzure Functions
BAzure VMs
CAzure Container Instances
DAzure App Service
Explanation
Azure Functions allows you to run code without provisioning servers; the others require infrastructure management.
Q23
A company needs to securely allow access to Azure resources from on-premises and cloud environments. Which solution is most appropriate?
AVPN Gateway
BTraffic Manager
CApplication Gateway
DTraffic Analytics
Explanation
A VPN Gateway provides secure connectivity; Traffic Manager and Application Gateway offer load balancing, not direct access.
Q24
What happens when you disable a serverless function in Azure Functions?
AIt stops executing immediately
BIt continues running until next trigger
CIt queues up execution requests
DIt enters a dormant state
Explanation
Disabling a function stops it from executing; the other options imply continued execution or queuing, which isn't correct.
Q25
Which Azure service provides centralized monitoring for applications?
AAzure Monitor
BAzure DevOps
CAzure App Service
DAzure Virtual Machines
Explanation
Azure Monitor provides comprehensive monitoring capabilities, while others serve different purposes.
Q26
A company needs to allow access to APIs only for specific users. Which Azure service should they use?
AAzure API Management
BAzure Blob Storage
CAzure Virtual Network
DAzure Logic Apps
Explanation
Azure API Management allows you to enforce access policies, while the others do not primarily focus on API access control.
Q27
You are configuring a function app for consumption in Azure. What happens if you exceed your function execution timeout?
AThe function retries automatically
BThe function will fail immediately
CThe function completes without errors
DThe function runs indefinitely
Explanation
Functions in consumption plan are terminated upon exceeding the timeout, ensuring resource utilization.
Q28
Which service should be used for event-driven applications in Azure?
AAzure Functions
BAzure App Service
CAzure Blob Storage
DAzure Virtual Machines
Explanation
Azure Functions is designed for event-driven scenarios, while the others serve different purposes.
Q29
A company needs to securely manage application secrets. Which Azure service is best suited for this task?
AAzure Key Vault
BAzure SQL Database
CAzure Table Storage
DAzure Cosmos DB
Explanation
Azure Key Vault is specifically designed for storing and managing secrets securely.
Q30
What happens when two Azure resources are configured with the same name in the same resource group?
AAn error occurs during resource creation.
BResources merge into one.
COne resource overrides the other.
DResources are created with unique identifiers.
Explanation
Azure does not allow two resources with the same name in the same resource group, resulting in an error.