Microsoft Azure

Developing Solutions for Microsoft Azure

AZ-204
Popular

The AZ-204 exam assesses your ability to develop solutions on Microsoft Azure.

147 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 21–30 of 147

Q21

What happens when deploying a new version of a web app in Azure?

  • A Old version is deleted immediately
  • B Users are redirected to new version
  • C Both versions run simultaneously
  • D Deployment 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?

  • A Azure Functions
  • B Azure VMs
  • C Azure Container Instances
  • D Azure 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?

  • A VPN Gateway
  • B Traffic Manager
  • C Application Gateway
  • D Traffic 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?

  • A It stops executing immediately
  • B It continues running until next trigger
  • C It queues up execution requests
  • D It 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?

  • A Azure Monitor
  • B Azure DevOps
  • C Azure App Service
  • D Azure 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?

  • A Azure API Management
  • B Azure Blob Storage
  • C Azure Virtual Network
  • D Azure 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?

  • A The function retries automatically
  • B The function will fail immediately
  • C The function completes without errors
  • D The 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?

  • A Azure Functions
  • B Azure App Service
  • C Azure Blob Storage
  • D Azure 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?

  • A Azure Key Vault
  • B Azure SQL Database
  • C Azure Table Storage
  • D Azure 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?

  • A An error occurs during resource creation.
  • B Resources merge into one.
  • C One resource overrides the other.
  • D Resources 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.