Microsoft Certification Microsoft Azure Developer (AZ-204) 2 — Questions and Answers
Question 1: What is Azure Cosmos DB?
- A relational SQL database service
- A globally distributed, multi-model NoSQL database service (Correct answer)
- A file storage service
- A data warehousing solution
Correct answer: A globally distributed, multi-model NoSQL database service
Azure Cosmos DB is a globally distributed, multi-model NoSQL database service that guarantees low-latency access and high availability worldwide.
Question 2: What does managed identity in Azure allow an application to do?
- Authenticate users with MFA
- Authenticate to Azure services without storing credentials in code (Correct answer)
- Monitor application performance
- Deploy containers automatically
Correct answer: Authenticate to Azure services without storing credentials in code
Managed Identity provides Azure apps with an automatically managed identity in Azure AD, allowing them to authenticate to Azure services without storing credentials.
Question 3: What is the purpose of Azure Event Grid?
- Storing event logs
- Routing events from sources to handlers for event-driven architectures (Correct answer)
- Running scheduled batch jobs
- Managing API rate limits
Correct answer: Routing events from sources to handlers for event-driven architectures
Azure Event Grid is an event routing service that enables event-driven architectures by connecting event sources to event handlers reliably.
Question 4: Which Azure SDK authentication class is recommended for production applications?
- ClientSecretCredential only
- DefaultAzureCredential (Correct answer)
- InteractiveBrowserCredential
- EnvironmentCredential only
Correct answer: DefaultAzureCredential
DefaultAzureCredential automatically tries multiple authentication methods in order, making it ideal for production applications across different environments.
Question 5: What is Azure Cache for Redis used for?
- Storing large binary files
- Providing a fast, in-memory data store for caching and session management (Correct answer)
- Hosting relational databases
- Managing DNS records
Correct answer: Providing a fast, in-memory data store for caching and session management
Azure Cache for Redis is a fully managed in-memory cache service based on Redis, used for improving application performance through caching.
Question 6: What is the difference between Azure Service Bus queues and topics?
- Queues support multiple publishers; topics support only one
- Queues support one-to-one messaging; topics support one-to-many pub/sub messaging (Correct answer)
- Topics are only for cloud-to-device messages
- There is no functional difference
Correct answer: Queues support one-to-one messaging; topics support one-to-many pub/sub messaging
Service Bus queues enable point-to-point messaging, while topics with subscriptions enable publish/subscribe patterns for delivering messages to multiple receivers.
What is Azure Cosmos DB?