Microsoft Certification Azure Developer Associate (AZ-204) 2 — Questions and Answers
Question 1: Which Azure caching service is based on open-source Redis and reduces database load?
- Azure Table Storage
- Azure Cache for Redis (Correct answer)
- Azure CDN
- Azure Blob Storage
Correct answer: Azure Cache for Redis
Azure Cache for Redis is a fully managed in-memory data store based on Redis, used to cache frequently accessed data and reduce backend database load.
Question 2: What is the difference between Azure Queue Storage and Azure Service Bus queues?
- Queue Storage supports larger messages than Service Bus
- Service Bus supports advanced messaging features like dead-letter queues, transactions, and sessions; Queue Storage is simpler (Correct answer)
- Azure Queue Storage is for real-time streaming; Service Bus is for file storage
- There is no difference; they are the same service
Correct answer: Service Bus supports advanced messaging features like dead-letter queues, transactions, and sessions; Queue Storage is simpler
Azure Service Bus provides enterprise messaging features like message sessions, dead-lettering, and transactions, while Queue Storage is a simpler, highly scalable HTTP-based queue.
Question 3: In Azure Functions, what is a 'binding'?
- A security policy applied to a function
- A declarative way to connect a function to data sources or destinations without writing code (Correct answer)
- A pricing tier for function execution
- A way to link two Azure subscriptions
Correct answer: A declarative way to connect a function to data sources or destinations without writing code
Bindings in Azure Functions declaratively connect functions to input data sources or output destinations like Storage, Service Bus, or Cosmos DB without boilerplate code.
Question 4: Which Azure App Service feature enables zero-downtime deployments by swapping staging and production environments?
- Scale out
- Deployment slots (Correct answer)
- WebJobs
- Application Insights
Correct answer: Deployment slots
Deployment slots allow you to deploy a new version to a staging slot, validate it, then swap it with production for zero-downtime releases with instant rollback.
Question 5: What is Managed Identity in Azure, and what problem does it solve?
- A tool to manage user passwords
- An automatically managed identity for Azure resources that eliminates the need for storing credentials in code (Correct answer)
- A service for monitoring resource health
- A backup mechanism for virtual machines
Correct answer: An automatically managed identity for Azure resources that eliminates the need for storing credentials in code
Managed Identity provides Azure services with an auto-managed Azure AD identity, allowing them to authenticate to other Azure services without storing credentials in code or config.
Question 6: What is the purpose of Azure Event Grid?
- Batch data processing at scheduled times
- Routing events from Azure services and custom sources to event handlers in real time (Correct answer)
- Storing time-series metrics
- Providing CDN services for web assets
Correct answer: Routing events from Azure services and custom sources to event handlers in real time
Azure Event Grid is a fully managed event routing service that delivers events from sources like Azure Blob Storage or custom apps to handlers like Azure Functions or webhooks.
Which Azure caching service is based on open-source Redis and reduces database load?