Courseiva

CCNA Event Driven Integration Questions

53 of 128 questions · Page 2/2 · Event Driven Integration · Answers revealed

76
MCQhard

You are architecting a real-time anomaly detection system. Sensor data is ingested into an Azure Event Hub. Due to intermittent network issues between the IoT gateway and Azure, duplicate events are occasionally sent. You need downstream Stream Analytics to process each unique event exactly once within a sliding window. Which Event Hub property should you leverage?

A.Service Bus Duplicate Detection History Window
B.Partition Key
C.Capture Window Size
D.Event Grid Advanced Filtering
AnswerB

Assigning a partition key ensures that events with the same key always land on the same partition, enabling stateful stream processing and deduplication.

Why this answer

Event Hubs supports publisher journaling and offset tracking, but for exact-once processing or deduplication, Stream Analytics utilizes the Event Hub Enqueued Time and Partition ID along with watermark definitions, or you can leverage Event Hubs partition keys to ensure identical events go to the same partition.

77
MCQmedium

You are designing an enterprise messaging solution using Azure Service Bus. You need to ensure that messages published within a transaction (involving multiple messages sent to different queues) either all succeed or all fail together. What feature should you use?

A.Storage Account atomic blob leases
B.Event Grid atomic batch publishing mode
C.Event Hubs transaction coordinator checkpointing
D.Service Bus client transaction scope (TransactionScope in .NET)
AnswerD

Service Bus supports ambient transactions via TransactionScope, ensuring atomic send/receive operations across entities within the same namespace.

Why this answer

Azure Service Bus supports transactions using .NET TransactionScope or SendVia features, allowing multiple messages to be sent transactionally within the same messaging namespace.

78
MCQhard

You are integrating Azure Event Hubs with Apache Spark on Azure Databricks for real-time AI model scoring. You need to configure the Spark connector to read from all partitions of the Event Hub efficiently without missing records or creating duplicate processing bottlenecks. Which consumer property is critical to configure correctly?

A.Setting the Event Grid webhook handshake timeout to 120 seconds.
B.A dedicated Consumer Group and correct starting offset configuration (e.g., startingPosition).
C.Enabling AMQP 1.0 web socket transport mode across all Spark worker nodes.
D.The Service Bus shared access policy connection string with Manage rights.
AnswerB

A dedicated consumer group ensures Spark maintains its own independent read offsets without conflicting with other consumers.

Why this answer

When using the Azure Event Hubs Spark connector, you must configure the Consumer Group and ensure offset management (starting position like `earliest` or `latest`) is correctly set.

79
Multi-Selecthard

You are configuring network security for an enterprise Azure Service Bus Premium namespace. Which THREE networking features can you configure to secure the namespace? (Choose three)

Select 3 answers
A.Private endpoints using Azure Private Link
B.Event Grid MQTT broker certificate authentication
C.IP firewall rules
D.Virtual Network (VNet) service endpoints
E.Blob storage container access policies
AnswersA, C, D

Private endpoints assign a private IP address from your VNet to the Service Bus namespace.

Why this answer

Service Bus Premium supports Virtual Network service endpoints, private endpoints via Azure Private Link, and IP firewall rules. Event Grid MQTT and Express storage are not Service Bus features.

80
Multi-Selecthard

Your application consumes messages from an Azure Service Bus queue using PeekLock mode. Which THREE actions can your worker code perform on a received message object? Each correct answer represents a valid Service Bus SDK operation.

Select 3 answers
A.CommitTransactionAsync() directly on the message instance
B.CaptureToBlobAsync() to archive the message to storage
C.DeadLetterAsync() to move the message to the dead-letter sub-queue
D.AbandonAsync() to release the lock and make the message available again immediately
E.CompleteAsync() to delete the message from the queue successfully
AnswersC, D, E

DeadLetterAsync routes the message to the dead-letter queue for inspection.

Why this answer

Under PeekLock mode, workers can Complete, Abandon, or Dead-letter a message.

81
MCQeasy

Your team is building an AI solution that processes thousands of images uploaded to Azure Blob Storage daily. Each image upload must trigger an immediate Azure Function to invoke Azure Cognitive Services for metadata extraction. Which event-driven messaging service should you choose for this near real-time pub/sub architecture?

A.Azure Service Bus Topics
B.Azure Storage Queues
C.Azure Event Hubs
D.Azure Event Grid
AnswerD

Event Grid is built for reactive event notification with low latency and high scale, perfectly suited for blob storage triggers.

Why this answer

Azure Event Grid is designed for reactive programming and near real-time event routing, making it ideal for triggering serverless functions when blob storage events occur.

82
MCQeasy

Your application publishes events to an Azure Event Grid custom topic. You need to restrict publishing access so that only clients with a specific User-Assigned Managed Identity can send events. How should you secure the topic?

A.Embed the primary SAS access key into the client's application environment variables.
B.Assign the 'Event Grid Data Sender' role to the Managed Identity on the Event Grid topic resource scope.
C.Enable AMQP 1.0 token authentication on the event subscription.
D.Configure an Azure Storage firewall rule on the topic endpoint.
AnswerB

Assigning Azure RBAC roles via Microsoft Entra ID provides secure, keyless authentication for event publishers.

Why this answer

Azure Event Grid supports Role-Based Access Control (RBAC) using Microsoft Entra ID. You can assign the 'Event Grid Data Sender' role to the Managed Identity on the Event Grid topic scope.

83
MCQhard

Your company's security policy requires that all Azure Event Grid namespaces and topics reside within a virtual network and are not accessible over the public internet. Which feature should you implement?

A.Configure Service Bus Virtual Network rules on a Standard namespace.
B.Enable Storage firewall rules on the Event Grid subscription storage account.
C.Configure Private Endpoints on an Event Grid Premium namespace.
D.Attach an Azure Application Gateway in front of the Event Grid Standard endpoint.
AnswerC

Event Grid Premium supports private endpoints, allowing private IP connectivity from a Virtual Network.

Why this answer

Azure Event Grid Premium supports Virtual Network (VNet) service endpoints and private endpoints to secure ingress traffic.

84
Multi-Selecthard

You are architecting a resilient, high-throughput AI telemetry ingestion pipeline using Azure Event Hubs. The pipeline must support multiple independent downstream AI consumer applications reading the same telemetry stream at different speeds without interfering with one another. Which TWO architectural components or features must you configure? (Choose two)

Select 2 answers
A.Multiple Consumer Groups
B.Azure Service Bus Topics with subscriptions
C.Event Hubs Capture
D.Capture partitioning via Geo-Disaster Recovery
E.Event Grid system topics
AnswersA, C

Consumer groups allow multiple consuming applications to each have a separate view of the event stream and read at their own pace.

Why this answer

To allow multiple independent consumer applications to read the same stream, you must use multiple Consumer Groups. Additionally, throughput is scaled using Throughput Units (or Processing Units in Kafka/Dedicated tiers).

85
MCQmedium

Your organization is implementing strict compliance standards. All event payloads transmitted through Azure Event Grid must be encrypted in transit using TLS 1.3 and encrypted at rest using a customer-managed key (CMK). Which Azure Event Grid tier supports configuring customer-managed keys?

A.Event Grid Standard tier
B.Event Grid Basic tier
C.Event Grid Basic tier with custom schema extensions
D.Event Grid Premium tier
AnswerD

The Event Grid Premium tier supports advanced enterprise features including customer-managed keys (CMK).

Why this answer

Azure Event Grid Standard tier uses Microsoft-managed keys, whereas the Premium tier supports customer-managed keys (CMK) and zone redundancy.

86
MCQhard

You are troubleshooting a high-throughput stream processing pipeline using Azure Event Hubs. Consumers are experiencing lag because messages are accumulating faster than they can be processed. You want to temporarily replay historical events from 2 hours ago without altering the current consumer group offsets permanently. What should you do?

A.Enable Geo-Disaster Recovery to force the secondary region to sync historical logs.
B.Delete the existing consumer group and recreate it with a 2-hour retention limit.
C.Purge all messages from the Event Hub using the Azure CLI az eventhubs purge command.
D.Create a new temporary consumer group and initialize the event receiver with a custom starting offset based on enqueued timestamp.
AnswerD

Creating a new consumer group ensures you do not disrupt the production application's offset pointer while reading historical data.

Why this answer

Event Hubs consumer groups maintain offsets. To replay data, you can create a new consumer group or use the receiver API to specify a starting offset or custom datetime (e.g., via EventPosition.from_enqueued_time).

87
MCQhard

You are designing a message-based architecture in Azure Service Bus where certain high-priority messages must bypass standard messages in the queue and be processed immediately. What feature should you implement?

A.Enable Express Queues to bypass disk I/O for high-priority messages.
B.Configure Event Grid priority routing filters.
C.Implement custom application logic that peeks and receives messages by sequence number, while utilizing multiple queues for high versus low priority.
D.Set the Priority property on the BrokeredMessage header to 10.
AnswerC

Service Bus queues are strict FIFO. True priority messaging requires separate queues or explicit sequence-number retrieval.

Why this answer

Azure Service Bus supports message deferral and dead-lettering, but for out-of-order priority processing, developers can implement message prioritization using multiple queues or retrieve messages by sequence number using Peek/Receive methods.

88
MCQmedium

Your team needs to process high-volume clickstream data from a web application using Apache Kafka protocols while leveraging Azure-managed infrastructure. Which Azure service should you deploy?

A.Azure Event Grid
B.Azure Notification Hubs
C.Azure Service Bus
D.Azure Event Hubs
AnswerD

Event Hubs provides a Kafka-compatible endpoint that supports Apache Kafka client libraries (version 1.0 and later).

Why this answer

Azure Event Hubs provides a native Kafka endpoint, allowing existing Kafka producer and consumer applications to talk to Event Hubs without changing code.

89
MCQeasy

An AI application uses Azure Service Bus queues for task distribution. A background worker receives a message, but needs more time to complete the lengthy AI inference task before the message lock expires. Which method should the worker invoke?

A.AbandonAsync
B.DeadLetterAsync
C.RenewLockAsync
D.CompleteAsync
AnswerC

RenewLockAsync extends the lock on the message, giving the worker more time to complete processing.

Why this answer

The worker should call `RenewLockAsync` on the message receiver to extend the lock duration and prevent other workers from picking up the message.

90
MCQmedium

You are designing an asynchronous AI image classification workflow. Client applications upload images to Azure Blob Storage and need to be notified immediately when processing completes. The notification must include custom metadata generated by the AI worker. Which architecture should you implement?

A.Use Azure Service Bus topics with session IDs set to the image hash.
B.Configure an Azure Storage queue that triggers whenever a blob is modified.
C.Poll the Azure Blob Storage container metadata every 5 seconds from the client app.
D.The AI worker publishes a custom event to an Azure Event Grid Topic upon completion.
AnswerD

Event Grid custom topics allow applications to push arbitrary event schemas containing custom metadata to subscribers.

Why this answer

Publishing custom events to an Event Grid custom topic or system topic allows worker functions to emit structured events with custom payload metadata upon completion.

91
MCQmedium

You are building an event-driven architecture where an Azure Function needs to process messages from an Azure Service Bus queue. To optimize cost and resource utilization during quiet periods, you want the Azure Function host to scale down to zero instances when the queue is empty, and scale out rapidly when messages arrive. Which hosting plan should you choose?

A.Azure Functions Premium Plan or Consumption Plan
B.Azure Virtual Machines with autoscale rules
C.Azure App Service Dedicated (App Service Plan - S1 tier)
D.Azure Kubernetes Service with manual pod scaling
AnswerA

Both Consumption and Premium plans support scale-to-zero and event-driven scaling based on queue depth.

Why this answer

Azure Functions Premium Plan or Consumption Plan supports scale-to-zero and scaling based on Azure Service Bus queue length metrics via the Azure Functions Service Bus trigger scaler.

92
MCQmedium

Your team is building an asynchronous order processing pipeline. If a downstream AI service fails to process a message from a Service Bus queue after 5 delivery attempts, the message must be automatically removed from active processing and preserved for manual inspection. What should you configure?

A.Enable Duplicate Detection with a history window of 5 attempts.
B.Configure the Max Delivery Count property on the queue and enable dead-lettering on message expiration or failure.
C.Set the AutoDeleteOnIdle property on the queue to 5 minutes.
D.Implement Event Grid dead-lettering pointing to an Azure Blob Storage container.
AnswerB

Setting max delivery count and dead-lettering ensures poison messages are quarantined automatically.

Why this answer

Azure Service Bus provides a dead-letter queue (DLQ) feature. When max delivery count is exceeded, the message is automatically moved to the DLQ for troubleshooting.

93
MCQmedium

Your enterprise AI application ingests millions of telemetry events per second from IoT devices using Azure Event Hubs. Downstream AI models consume these events via Apache Spark on Azure Databricks. You need to ensure that telemetry from the same device is always processed by the same Spark executor in order to maintain state. How should you partition your Event Hub?

A.Configure a custom partition key containing the device ID when publishing events to the Event Hub.
B.Increase the number of Consumer Groups on the Event Hub to isolate different device streams.
C.Set the Event Hub capture feature to output messages to Azure Data Lake Storage partitioned by device ID.
D.Deploy an Azure Service Bus Topic in front of Event Hubs with session IDs enabled.
AnswerA

Using a partition key derived from the device ID ensures all events from that device land in the same partition and are processed in order.

Why this answer

Event Hubs uses partition keys to ensure events with the same partition key are routed to the same partition, which downstream consumers like Spark can read sequentially.

94
Multi-Selecthard

You are designing an enterprise cloud solution that integrates Azure Event Grid, Azure Service Bus, and Azure Event Hubs. You need to select the appropriate service for three specific event-driven scenarios. Which THREE pairings of Azure messaging service to scenario are correct? (Choose three)

Select 3 answers
A.Azure Service Bus for managing financial transactions requiring strict ordering, sessions, and dead-lettering.
B.Azure Event Hubs for ingesting 500,000 telemetry events per second from smart grid sensors.
C.Azure Event Grid for routing blob-created notifications to serverless AI functions.
D.Azure Event Hubs for triggering real-time serverless webhooks upon user profile updates.
E.Azure Event Grid for streaming continuous IoT sensor telemetry into Azure Databricks.
AnswersA, B, C

Service Bus provides enterprise messaging features like transactions, sessions, and robust dead-lettering.

Why this answer

Event Grid is for reactive discrete events; Event Hubs is for big data telemetry streaming; Service Bus is for enterprise transactional messaging.

95
MCQhard

Your enterprise architecture uses Azure Service Bus Topics and Subscriptions with geo-disaster recovery paired namespaces. A disaster occurs, and you trigger a failover to the secondary region. What happens to the messages currently in the subscriptions of the primary namespace?

A.All queued messages are automatically migrated to the secondary region within 5 seconds.
B.Azure Event Grid automatically replays all lost messages from the storage capture.
C.The primary namespace messages are permanently deleted and cannot be recovered.
D.Messages remaining in the primary namespace are not automatically replicated to the secondary namespace; failover relies on metadata synchronization.
AnswerD

Service Bus geo-disaster recovery replicates namespace metadata, but unconsumed messages in queues/topics are not replicated asynchronously unless active replication is configured.

Why this answer

When performing a geo-disaster recovery failover in Azure Service Bus, metadata is synced, but uncommitted or queued messages in the primary namespace do not automatically replicate to the secondary namespace unless using active-active replication, meaning clients must be designed to handle failover state.

96
MCQmedium

An enterprise AI system uses Azure Service Bus Topics to distribute work items. One of your subscriptions has a high volume of low-priority messages that block high-priority tasks. You want to enable high-priority messages to be processed first without creating separate topics. Which Service Bus feature should you use?

A.Configure Event Grid advanced filters on the Service Bus topic.
B.Enable Service Bus Priority Queueing in the namespace configuration settings.
C.Create multiple subscriptions with SQL filters evaluating a custom 'Priority' property.
D.Enable Auto-forwarding from the low-priority queue to the dead-letter queue.
AnswerC

By defining subscriptions with SQL filters for priority levels, workers can pull high-priority messages first.

Why this answer

Azure Service Bus supports receiving messages by Sequence Number or using message priorities via sessions/filters, but Service Bus queues/subscriptions natively support peek and receive by priority if implemented with multiple subscriptions or SQL filters. However, Service Bus also supports partitioning and sorting. Wait, Service Bus does not have a native integer priority queue out of the box unless implemented via multiple subscriptions with SQL filters checking a Priority property.

97
Multi-Selectmedium

You are deploying an event-driven AI workflow using Azure Service Bus. Which TWO mechanisms help ensure message delivery reliability and prevent data loss during transient outages? Each correct answer represents a valid reliability mechanism.

Select 2 answers
A.Duplicate detection using a configurable time window
B.Event Hubs partition auto-deletion
C.Event Grid webhook retry push loops with infinite retention
D.Storage Queue client-side polling loops
E.Dead-lettering queues for handling poison or unprocessable messages
AnswersA, E

Duplicate detection prevents identical messages from being enqueued multiple times.

Why this answer

Service Bus provides dead-lettering for failed messages and duplicate detection to prevent redundant processing.

98
Multi-Selectmedium

You are designing an enterprise event-driven architecture for AI workloads. Which TWO Azure services provide native support for publishing discrete, reactive event notifications when resources are created or modified? Each correct answer represents a complete solution.

Select 2 answers
A.Azure Notification Hubs
B.Azure Blob Storage (native event notifications)
C.Azure Event Grid
D.Azure Event Hubs
E.Azure Service Bus Queues
AnswersB, C

Blob Storage has native integration with Event Grid to emit blob-created/deleted events.

Why this answer

Azure Event Grid and Azure Logic Apps (via Event Grid connectors or built-in triggers) or storage account notifications natively support discrete event notifications. Specifically, Event Grid and storage native event notifications are designed for this purpose.

99
Multi-Selectmedium

You are architecting an asynchronous machine learning inference pipeline. Which TWO Azure services allow you to decouple event publishers from event consumers using a publish-subscribe (pub/sub) pattern? Each correct answer represents a valid pub/sub architecture service.

Select 2 answers
A.Azure Event Grid
B.Azure Notification Hubs
C.Azure Storage Queues
D.Azure Event Hubs Capture
E.Azure Service Bus Topics
AnswersA, E

Event Grid provides native pub/sub routing for discrete events.

Why this answer

Azure Event Grid and Azure Service Bus (Topics) support the publish-subscribe messaging pattern.

100
Multi-Selecthard

You are designing a big data telemetry ingestion pipeline using Azure Event Hubs. Which THREE configuration options or properties must you consider when planning Event Hubs capacity and scaling? (Choose three)

Select 3 answers
A.Partition Count
B.Service Bus Lock Duration
C.Event Grid Webhook Handshake Timeout
D.Throughput Units (TUs) or Processing Units (PUs)
E.Message Retention Period
AnswersA, D, E

Partition count determines consumer parallelism and cannot be easily changed after creation in standard tiers.

Why this answer

When planning Event Hubs capacity, you must consider Throughput Units (or Processing Units in dedicated clusters), Partition Count, and Message Retention Period.

101
MCQeasy

Your application publishes custom events to an Azure Event Grid topic. You want to ensure that event publishers transmit data over secure HTTPS endpoints only. How should you enforce this?

A.You must install a self-signed SSL certificate on the publisher client machine.
B.Event Grid enforces HTTPS by default for all custom topic publishing endpoints.
C.Configure an Azure Firewall rule allowing port 80 outbound.
D.You must configure an Azure Application Gateway in front of the Event Grid topic.
AnswerB

Event Grid endpoints require secure HTTPS connections for publishing events; plaintext HTTP is rejected.

Why this answer

Event Grid topics support an 'Minimum TLS Version' setting and enforce HTTPS by default for all publishing endpoints.

102
MCQhard

You are designing an AI streaming pipeline using Azure Event Hubs with Apache Kafka enabled. Existing Java producers using the Kafka producer API need to authenticate against Event Hubs securely using Microsoft Entra ID (OAuth 2.0). How should you configure the Kafka producer client properties?

A.Use plain text authentication with the Event Hub root SAS key as the username and password.
B.Deploy an Event Grid webhook proxy between the Kafka producer and Event Hubs.
C.Set the bootstrap.servers property to the Service Bus AMQP connection string.
D.Configure security.protocol=SASL_SSL, sasl.mechanism=OAUTHBEARER, and implement an OAuthBearerTokenCallbackHandler for Microsoft Entra ID token acquisition.
AnswerD

Kafka clients connecting to Event Hubs use SASL_SSL and OAUTHBEARER with Microsoft Entra tokens for secure authentication.

Why this answer

Event Hubs Kafka endpoints support SASL OAuthBearer authentication. You must configure `security.protocol=SASL_SSL`, `sasl.mechanism=OAUTHBEARER`, and supply a custom callback handler to generate Microsoft Entra access tokens.

103
Multi-Selectmedium

Your development team is implementing an event-driven microservices architecture using Azure Service Bus. You need to ensure strict FIFO (First-In, First-Out) message processing order for related financial transaction events in an AI fraud-detection workflow. Which THREE configuration steps are required? (Choose three)

Select 3 answers
A.Implement a MessageSession receiver in your client application to process messages sequentially per session.
B.Set a Session ID on all related messages sent to the queue.
C.Configure partitioning on the Service Bus namespace tier.
D.Enable sessions on the Azure Service Bus queue.
E.Enable duplicate detection with a 10-minute history window.
AnswersA, B, D

Receivers must explicitly accept message sessions (e.g., AcceptMessageSessionAsync) to process messages sequentially for that session.

Why this answer

To enforce strict FIFO ordering in Service Bus, you must enable sessions on the queue, ensure related messages share the same session ID, and use a sequential processing pattern on the receiver side.

104
MCQeasy

Your AI ingestion pipeline ingests millions of clickstream events per second from IoT devices and streams them into an Azure ML training pipeline. Which Azure service is specifically designed for high-throughput, low-latency telemetry ingestion at this scale?

A.Azure Notification Hubs
B.Azure Event Hubs
C.Azure Event Grid
D.Azure Service Bus Queues
AnswerB

Event Hubs is built specifically for high-throughput telemetry ingestion and streaming big data pipelines.

Why this answer

Azure Event Hubs is a big data streaming platform and event ingestion service capable of receiving and processing millions of events per second.

105
MCQhard

You are designing an asynchronous AI inference processing pipeline using Azure Service Bus Premium. Messages contain large payloads exceeding the standard Service Bus message size limit of 256 KB. You need to store the large payload in Azure Blob Storage while passing a reference in the Service Bus message. Which feature should you implement?

A.Enable compression on the Azure Service Bus queue properties to automatically shrink payloads larger than 256 KB before enqueuing.
B.Configure Azure Service Bus auto-forwarding to a secondary queue configured for jumbo messages.
C.Use the Azure Service Bus Claim Check pattern by storing the payload in Azure Blob Storage and sending only the blob URI in the message body.
D.Upgrade the Service Bus namespace to the Enterprise tier to unlock message payloads up to 100 MB.
AnswerC

The claim check pattern involves offloading large payloads to an external store (Blob Storage) and sending a lightweight reference token (claim check) through the messaging bus.

Why this answer

The Azure Service Bus Message Body Broker does not support large payloads natively beyond limits, but the Azure Service Bus client libraries provide the BrokeredMessage / Message helper pattern known as the Large Message Support pattern via Data Bus or manual blob pointer referencing. Alternatively, the Service Bus .NET SDK provides the ServiceBusPayloadUtilities or claim check pattern libraries.

106
MCQmedium

Your organization is building a multi-tenant AI platform. Tenants publish custom events to an Azure Event Grid topic. You need to ensure that tenant A's subscribers only receive events where the event subject starts with "tenant-a/". Which Event Grid feature should you implement on the event subscription?

A.Service Bus Topic Filters and Actions with SQL filter syntax.
B.Event Grid Advanced Filters with a StringBeginsWith operator on the subject property.
C.Event Hubs Capture filtering rules based on partition keys.
D.Azure API Management policies applied to the Event Grid custom topic ingress endpoint.
AnswerB

Subject filtering using StringBeginsWith allows you to isolate events based on naming conventions in the subject field.

Why this answer

Event Grid subscriptions support advanced filters and subject filters (startsWith/endsWith) to selectively route events to specific endpoints.

107
Multi-Selectmedium

When designing an event-driven architecture using Azure Event Grid, which THREE security or delivery mechanisms can be configured on an event subscription? Each correct answer represents a valid configuration option.

Select 3 answers
A.AMQP 1.0 broker transaction coordination
B.Advanced filtering based on event data property values
C.Dead-letter destination pointing to an Azure Blob Storage container
D.Service Bus session lock duration extension
E.Managed Identity for authenticating secure delivery to webhooks
AnswersB, C, E

Event Grid allows advanced filtering on payload property keys and values.

Why this answer

Event Grid subscriptions support managed identity authentication, dead-lettering, and advanced filtering.

108
MCQmedium

Your AI application consumes messages from an Azure Service Bus queue. During peak hours, processing takes longer than expected, and messages are frequently locked out and redelivered prematurely. You want to increase the time a message remains locked by the receiver. Where should you configure this setting?

A.On the Azure Service Bus queue properties by modifying the LockDuration setting.
B.On the Event Grid subscription retry interval settings.
C.On the Event Hubs consumer group retention period.
D.In the Azure Function host.json file under the eventHubs retry policy.
AnswerA

LockDuration determines how long a message lock is held before expiring, configurable up to 5 minutes.

Why this answer

The lock duration can be configured on the Service Bus queue settings (LockDuration property), up to a maximum of 5 minutes.

109
MCQhard

You are designing an enterprise-grade event-driven system where producers send financial transactions to Azure Event Hubs. You must guarantee that every single message is accounted for and that no data is lost even if an entire availability zone suffers a catastrophic failure. Which deployment configuration should you select for your Event Hubs namespace?

A.Configure Event Grid system topics with auto-delete set to false.
B.Deploy a Basic tier Event Hubs namespace with 30 consumer groups.
C.Use Azure Storage Queues configured with RA-GRS replication.
D.Deploy an Event Hubs namespace in a region supporting Availability Zones with zone redundancy enabled (Premium or Dedicated tier).
AnswerD

Zone-redundant deployments replicate data synchronously across multiple physical availability zones within a region, protecting against datacenter failures.

Why this answer

To achieve high availability across availability zones, you must deploy Event Hubs in a region that supports Availability Zones, and use a Geo-Disaster Recovery or zone-redundant Premium/Dedicated tier namespace.

110
MCQmedium

You are implementing an event-driven architecture where an Azure Function acts as an Event Grid subscriber. Occasionally, the downstream cognitive service is throttled, causing failures. You need to ensure that unprocessable events are not lost and can be inspected later. Where should you configure a dead-letter destination?

A.On the Azure Function trigger binding definition using the deadLetterQueueName property.
B.On the Azure Storage account firewall settings as an IP filter exception.
C.On the Event Grid event subscription, specify an Azure Blob Storage container as the dead-letter endpoint.
D.Inside the Azure Function application configuration settings as an Application Insights error sink.
AnswerC

Event Grid allows dead-lettering undelivered events to an Azure Storage account container for troubleshooting.

Why this answer

Event Grid supports configuring a dead-letter location (typically an Azure Storage blob container) on the event subscription to store events that could not be delivered.

111
MCQmedium

Your application publishes messages to an Azure Service Bus queue. The messages contain sensitive personal data. Enterprise compliance mandates that message payloads are encrypted end-to-end at the application layer before being sent to Service Bus. How should you implement this?

A.Encrypt the message payload in your application code using a key from Azure Key Vault before sending, and decrypt upon receipt.
B.Configure Event Grid advanced filters to redact sensitive keys.
C.Enable Service Bus Premium Geo-Disaster Recovery with encryption enabled.
D.Use Shared Access Signature tokens with 5-minute expirations.
AnswerA

Client-side encryption ensures the broker (Service Bus) never sees plaintext data, satisfying strict zero-trust compliance.

Why this answer

For end-to-end client-side encryption, the application must encrypt the message payload using an encryption key from Azure Key Vault before serializing and sending it to Service Bus, then decrypt it upon receipt.

112
MCQeasy

An AI system uses Azure Service Bus queues for processing text-generation jobs. A specific job causes the worker function to crash repeatedly, leading to the message being redelivered continuously. Which Service Bus feature should you configure to capture these poison messages after a specific delivery count is reached?

A.Duplicate detection
B.Dead-letter queue (DLQ)
C.Autoforwarding
D.Partitioning
AnswerB

The dead-letter queue stores messages that cannot be processed successfully, preventing infinite retry loops (poison messages).

Why this answer

Service Bus provides a dead-letter queue (DLQ) to automatically isolate messages that fail processing repeatedly (poison messages) based on MaxDeliveryCount.

113
MCQmedium

Your team is building an automated image moderation pipeline. When an image is uploaded to Azure Blob Storage, you need to trigger an Azure Function to process it using Azure AI Vision. You want to ensure the lowest latency and native cloud event integration. Which integration approach should you configure?

A.Attach an Azure Event Hubs capture policy to the storage container.
B.Use an Azure Logic Apps polling trigger to check the storage container every minute for new files.
C.Configure an Azure Event Grid system topic and subscription for blob storage events targeting the Azure Function.
D.Write a background worker service that reads the Azure Service Bus queue populated by storage transactions.
AnswerC

Event Grid provides push-based native event notifications for Azure Blob Storage, triggering the function instantly upon blob creation.

Why this answer

Configuring an Azure Event Grid system topic and subscription on the storage account allows blob-created events to push directly to the Azure Function with minimal latency.

114
Multi-Selectmedium

You are troubleshooting an Azure Function triggered by an Azure Event Grid subscription. The function is failing to receive events. Which TWO diagnostic steps should you take in the Azure Portal or via Azure CLI? Each correct answer is a valid troubleshooting action.

Select 2 answers
A.Inspect the configured dead-letter blob storage container for undelivered event files.
B.Verify the AMQP listener port 5671 firewall rules on the function app.
C.Check Event Grid metric charts for delivery failures, dropped events, and matched events.
D.Review Service Bus session lock renewal logs.
E.Check Event Hubs consumer group checkpoint offset status.
AnswersA, C

If dead-lettering is enabled, failed events are archived in the storage container.

Why this answer

You can check Event Grid delivery metrics and inspect the dead-letter container if configured.

115
MCQeasy

Your team is developing an Azure Function that acts as an Event Grid webhook subscriber. You want to test the function locally using the Azure Functions Core Tools CLI. Which command starts the local runtime and enables local event ingestion?

A.func start
B.dotnet watch run-eventgrid
C.az eventgrid topic local-debug
D.az functionapp deployment source config
AnswerA

The `func start` command starts the local Azure Functions host, allowing local webhook endpoints to receive HTTP triggers.

Why this answer

Running `func start` starts the local Azure Functions runtime, exposing port 7071 for local webhook testing.

116
MCQeasy

An event subscriber endpoint hosted on an Azure App Service web app is failing to receive events from an Azure Event Grid system topic. Upon investigation, you discover Event Grid received a handshake validation failure. What is the most likely cause?

A.The event payload exceeded the 1 megabyte size limit.
B.The Service Bus connection string was incorrectly formatted.
C.The web app did not correctly handle and echo back the validation code during the Webhook handshake.
D.The App Service pricing tier does not support HTTPS connections.
AnswerC

Webhook endpoints must respond to the validation OPTIONS/POST request by returning the validation response handshake.

Why this answer

When creating an Event Grid subscription, Event Grid sends a Subscription Validation event with a validation code. The endpoint must respond with the validation code to prove ownership before events are delivered.

117
MCQhard

You are designing a multi-tenant AI ingestion pipeline using Azure Event Hubs. You need to ensure that low-priority tenants cannot starve high-priority tenants of partition resources. Which feature should you implement?

A.Set the Capture interval to 60 seconds for low-priority partitions.
B.Deploy separate Event Hubs namespaces for high-priority and low-priority tenants.
C.Configure RBAC permissions to restrict low-priority tenants to Reader roles.
D.Enable Azure DDoS Protection Standard on the Event Hubs consumer group.
AnswerB

Separate namespaces provide complete physical and resource isolation, preventing noisy-neighbor problems.

Why this answer

Event Hubs Dedicated clusters support capacity management and partitioning strategies, but for fine-grained client isolation, developers can use Partition Key isolation or separate namespaces.

118
MCQeasy

An application publishes custom events to an Azure Event Grid custom topic. You need to route events dynamically based on the event's 'department' property in the event payload. Which filtering mechanism should you configure on the Event Grid subscription?

A.Event Hubs Capture filters
B.Advanced Filters
C.Subject Begins With/Ends With filters
D.Service Bus Correlation Filters
AnswerB

Advanced filters evaluate operators like stringBeginsWith, numberIn, and stringContains on specific JSON payload fields.

Why this answer

Event Grid supports Advanced Filters, which allow you cube or filter events based on specific JSON path properties in the data payload or event schema.

119
Multi-Selectmedium

Your enterprise application uses Azure Event Grid. Which TWO event schemas are natively supported when publishing events to an Event Grid custom topic? (Choose two)

Select 2 answers
A.Apache Kafka record batch binary schema
B.AMQP 1.0 binary stream envelope
C.SOAP 1.2 XML messaging schema
D.CloudEvents 1.0 schema
E.Azure Event Grid schema
AnswersD, E

Event Grid natively supports CloudEvents 1.0 JSON schema format.

Why this answer

Azure Event Grid natively supports the Event Grid Schema and the CloudEvents 1.0 Schema.

120
MCQhard

You are designing an IoT data ingestion architecture using Azure Event Hubs. Devices occasionally send malformed JSON payloads that cause stream processing jobs to crash. You need to route these invalid messages to a separate error container without stopping the main ingestion stream. What should you implement?

A.Enable Event Hubs Capture with the JSON validation flag set to strict.
B.Set up an Event Grid system topic filter for 'MalformedEvent'.
C.Configure the Service Bus dead-letter queue on the Event Hub producer client.
D.Use Azure Stream Analytics with an error output data stream configured for malformed events.
AnswerD

Azure Stream Analytics supports error handling configurations on data outputs, allowing streaming errors to be redirected to a separate blob storage sink.

Why this answer

Event Hubs does not have a native bad-record-routing queue per se, but stream processing engines like Azure Stream Analytics or custom consumers can implement try-catch error handling patterns and output invalid records to an error sink.

121
MCQeasy

Your organization uses Azure Event Grid to route cloud events across different departments. Security auditors require that all event traffic destined for a webhook endpoint is authenticated using Azure Active Directory (Microsoft Entra ID) bearer tokens. How should you configure the event subscription?

A.Enable IP firewall rules on the Event Grid topic to restrict traffic.
B.Use Basic Authentication with a static API key stored in App Settings.
C.Configure a Managed Identity on the event subscription and select the target audience.
D.Embed a Shared Access Signature (SAS) token directly in the webhook URL query parameters.
AnswerC

Using a managed identity allows Event Grid to securely authenticate against protected webhook endpoints using Microsoft Entra tokens.

Why this answer

Event Grid allows you to configure Managed Identity (System-assigned or User-assigned) for webhook subscriptions so that Event Grid attaches a Microsoft Entra ID bearer token in the authorization header when invoking the webhook.

122
MCQeasy

You are configuring Azure Event Grid to send events to an Azure Logic App. Which built-in trigger should you use in your Logic App workflow to receive these events seamlessly?

A.When messages arrive in a Service Bus queue
B.When a resource event occurs (Azure Event Grid trigger)
C.When a blob is added or modified (V2)
D.When an HTTP request is received
AnswerB

This trigger integrates natively with Event Grid, managing the subscription handshake and payload parsing automatically.

Why this answer

Azure Logic Apps provides a native 'When a resource event occurs' trigger (powered by Event Grid) that automatically provisions the webhook subscription behind the scenes.

123
Multi-Selectmedium

You are architecting an event-driven AI ingestion pipeline using Azure Event Hubs. Which TWO features or capabilities are native to Azure Event Hubs? (Choose two)

Select 2 answers
A.Automatic dead-letter queue routing after max delivery count
B.Apache Kafka protocol endpoint compatibility
C.Event Hubs Capture for automated data archiving into Azure Blob Storage
D.Webhook event schema subscription validation handshakes
E.AMQP 1.0 message session management for FIFO per session ID
AnswersB, C

Event Hubs provides a native Kafka endpoint so standard Kafka clients can produce and consume without code changes.

Why this answer

Azure Event Hubs natively supports Apache Kafka protocol endpoints and Event Hubs Capture for long-term storage archiving. Event Grid topics and Service Bus queues are separate services.

124
Multi-Selecthard

You are configuring authentication and authorization across Azure messaging and eventing services. Which THREE statements regarding security features are correct? (Choose three)

Select 3 answers
A.Event Grid custom topics require SQL database credentials for publisher authentication.
B.Shared Access Signature (SAS) tokens can be generated with specific permissions and expiration times.
C.Azure Service Bus and Event Hubs support Microsoft Entra ID RBAC for data plane access.
D.Azure Event Grid webhook subscriptions support Managed Identity authentication for secure target invocation.
E.Azure Service Bus queues require public anonymous access to be enabled for client SDK connections.
AnswersB, C, D

SAS keys and tokens provide time-bound, scoped access to messaging namespaces.

Why this answer

Azure messaging services support Microsoft Entra ID RBAC, Managed Identities for webhooks, and SAS keys. They do not support anonymous access by default, and certificates are used for specific MQTT/X.509 scenarios, not basic connection strings.

125
MCQhard

You are configuring geo-disaster recovery for an Azure Service Bus Premium namespace containing critical financial transactions. A regional outage occurs. After initiating a failover to the secondary region, what happens to the alias pointing to the namespace?

A.The secondary namespace remains in Read-Only mode until manually unlocked.
B.The alias becomes invalid, and you must deploy a new Service Bus namespace from scratch.
C.Unreplicated messages in the primary queue are automatically migrated in real-time.
D.The alias automatically points to the secondary namespace, and pairing is broken.
AnswerD

Once failed over, the secondary namespace becomes primary, and the alias resolves to it. The old primary must be reconfigured and re-paired later.

Why this answer

Service Bus Geo-DR uses an alias. When failover is triggered, the alias is remapped to point to the secondary namespace, allowing clients to reconnect automatically without changing connection strings if they use the alias.

126
MCQeasy

Your application emits custom events to an Azure Event Grid topic. You want to test your webhook endpoint locally during development without deploying your code to Azure. Which tool should you use to receive events directly from Event Grid?

A.Use Azure Bastion to connect your localhost to the Event Grid topic.
B.Deploy the Event Grid Viewer sample web app to an accessible public URL or use ngrok to tunnel your local port.
C.Configure a local SQL Server Express trigger.
D.Attach an Azure Service Bus queue directly as a local debugging breakpoint.
AnswerB

Tunneling tools like ngrok expose your localhost to the internet, allowing Event Grid to deliver test webhooks directly to your development machine.

Why this answer

Azure Event Grid provides native integration with Azure Relay or tools like Webhook.site, but for local development, Microsoft provides the Event Grid Viewer sample or Azure CLI commands to tunnel events.

127
MCQmedium

You are writing a C# .NET console application that sends batch messages to an Azure Service Bus queue. To maximize performance and avoid exceeding payload size limits, how should you construct and send the batch?

A.Use individual SendMessageAsync calls inside a parallel Task.WhenAll loop.
B.Compress the entire list of messages into a single string and send it as an Event Grid webhook payload.
C.Use ServiceBusSender.CreateMessageBatchAsync() to dynamically package messages up to the maximum batch size limit.
D.Add all 10,000 messages into a single List<ServiceBusMessage> and call SendMessagesAsync directly.
AnswerC

CreateMessageBatchAsync creates a batch container that validates the size constraint as you add messages.

Why this answer

Using `ServiceBusSender.CreateMessageBatchAsync()` allows you to safely add messages to a batch until the maximum size limit (e.g., 1 MB for Standard/Premium) is reached, preventing `ArgumentException` or payload size errors.

128
MCQhard

You are designing an event-driven AI document processing pipeline. Incoming PDF documents are uploaded to Azure Blob Storage, triggering an Event Grid event. The event triggers an Azure Function that downloads the PDF, processes it with Azure AI Document Intelligence, and saves results to Azure Cosmos DB. Under high load, duplicate events are occasionally received by the function, causing duplicate Cosmos DB records. How should you design the Azure Function to handle idempotency?

A.Implement idempotency in the Azure Function by checking if the document record already exists in Cosmos DB or using an upsert operation with a deterministic ID.
B.Set the Event Grid retry count to zero.
C.Deploy an Azure Service Bus queue in front of Blob Storage to serialize all requests into a single partition.
D.Configure Event Grid delivery mode to 'Exactly-Once' in the subscription settings.
AnswerA

Upsert operations or existence checks ensure that processing the same event multiple times yields the exact same state without duplication.

Why this answer

Because event-driven architectures guarantee 'at-least-once' delivery, consumers must be idempotent. The Azure Function should check if the document ID or event ID already exists in Cosmos DB before processing or use an upsert operation.

← PreviousPage 2 of 2 · 128 questions total

Ready to test yourself?

Try a timed practice session using only Event Driven Integration questions.