Microsoft AZ-204 Practice Test Questions and Exam Dumps Part 9 Q161-180

View Full Microsoft AZ-204 Exam Dumps and Practice Test Dumps

 

Q161. Which Azure Storage feature allows an application to process new or updated blob changes incrementally?

1) Blob change feed
2) Storage firewall
3) Blob access tier
4) Storage account key

Correct Answer: 1)

Explanation:

Azure Blob Storage change feed provides a persistent record of changes made to blobs in a storage account. Applications can use this information to identify newly created, updated, or deleted blob-related events without repeatedly scanning the entire storage account. This is useful for scenarios such as analytics pipelines, synchronization processes, auditing, and downstream processing. The change feed helps applications process storage changes incrementally and efficiently. Developers should select this feature when the requirement is to track changes to blob data over time rather than simply storing or retrieving the current version of a blob.

Q162. Which Azure Blob Storage feature helps prevent accidental deletion of blobs by allowing deleted data to be recovered for a configured retention period?

1) Blob indexing
2) Soft delete
3) Static website hosting
4) Access tiers

Correct Answer: 2)

Explanation:

Blob soft delete protects data from accidental deletion by retaining deleted blobs for a configured period. During that retention period, an application or administrator can restore the deleted data. This feature provides an additional recovery mechanism without requiring the application to maintain its own backup process for every deletion. Soft delete is particularly useful when users or automated processes may accidentally remove important objects. Developers should configure an appropriate retention period based on business recovery requirements. It can also be combined with other storage protection features to provide stronger data resilience.

Q163. Which Azure Storage feature can prevent simultaneous modifications to the same blob by acquiring an exclusive lock?

1) Blob lease
2) Blob index tag
3) Storage lifecycle rule
4) Access tier

Correct Answer: 1)

Explanation:

A blob lease provides a mechanism for obtaining an exclusive lock on a blob for a specified duration. Applications can use leases to coordinate access when multiple processes might attempt to modify the same blob concurrently. A process holding the lease can perform operations that require exclusive access, while other processes can be prevented from modifying the leased blob unless they provide the appropriate lease information. This is useful for implementing concurrency control, distributed locking, and coordination scenarios. Developers should ensure that lease acquisition, renewal, and release are handled correctly.

Q164. Which Azure Storage redundancy option replicates data synchronously across multiple availability zones within a region?

1) LRS
2) GRS
3) ZRS
4) RA-GRS

Correct Answer: 3)

Explanation:

Zone-redundant storage, or ZRS, synchronously replicates data across multiple availability zones within an Azure region. This design helps protect storage data against the failure of an individual availability zone while keeping the data within the primary region. ZRS is appropriate when an application requires higher availability and resilience against zone-level infrastructure failures. Local-redundant storage provides fewer copies within a single datacenter or availability zone boundary, while geo-redundant options replicate data to another region. The correct redundancy choice depends on availability, durability, geographic protection, and cost requirements.

Q165. Which Azure Blob Storage access tier is generally appropriate for data that is accessed frequently?

1) Archive
2) Cool
3) Hot
4) Offline

Correct Answer: 3)

Explanation:

The Hot access tier is designed for data that is accessed frequently. It provides lower access costs compared with tiers intended for infrequently accessed or archival data, although storage costs are generally higher than those of the Cool and Archive tiers. Developers can select access tiers according to the expected access pattern of their data. Frequently accessed application assets, active documents, and operational files are common examples of data that may benefit from the Hot tier. Choosing the correct tier can help balance storage expenses and data access costs.

Q166. Which Azure Cosmos DB feature determines how documents are distributed across physical partitions?

1) Consistency level
2) Partition key
3) Time-to-live
4) Indexing mode

Correct Answer: 2)

Explanation:

The partition key determines how Azure Cosmos DB distributes logical data across physical partitions. A well-designed partition key helps distribute requests and storage evenly, supporting scalability and predictable performance. Developers should select a property with sufficient cardinality and an access pattern that avoids concentrating most requests on a small number of partition-key values. Poor partition-key selection can create hot partitions and limit scalability. Because changing the partition-key strategy later can be difficult, it should be considered carefully during application and data-model design.

Q167. Which Azure Cosmos DB consistency level provides the strongest guarantee that reads return the most recently committed write?

1) Eventual
2) Consistent prefix
3) Session
4) Strong

Correct Answer: 4)

Explanation:

Strong consistency provides the strongest read consistency guarantee in Azure Cosmos DB. With strong consistency, a read is guaranteed to return the most recent committed version of the data according to the consistency model. This provides the highest level of read accuracy but can involve trade-offs in availability, latency, and geographic distribution depending on the deployment architecture. Other consistency levels provide different balances between performance and consistency guarantees. Developers should select a consistency level according to application requirements rather than automatically choosing the strongest option for every workload.

Q168. Which Azure Cosmos DB feature automatically removes items after a configured period?

1) TTL
2) Change feed
3) Partition key
4) Request unit

Correct Answer: 1)

Explanation:

Time to Live, or TTL, allows Azure Cosmos DB to automatically delete items after a specified amount of time. This is useful for temporary records, session information, cached data, logs, or other data that should not be retained indefinitely. TTL can be configured at the container level and can also support item-specific expiration behavior. Automatic expiration reduces the need for custom cleanup jobs and helps control data retention. Developers should choose TTL values based on application requirements, storage policies, and the amount of time data must remain available.

Q169. Which Azure Cosmos DB capability allows an application to react to changes in container data?

1) Change feed
2) Access tier
3) Firewall rule
4) Static website

Correct Answer: 1)

Explanation:

Azure Cosmos DB change feed provides an ordered record of changes to items in a container that applications can process. It is commonly used to build event-driven processing systems, synchronize data with other services, perform analytics, and trigger downstream workflows. Instead of repeatedly querying the entire container for changes, an application can consume the change feed and process new or modified items incrementally. Change feed processing can be implemented using Azure Functions, SDKs, or other supported processing approaches. This capability is particularly valuable for scalable data-processing architectures.

Q170. Which Azure SQL Database authentication approach allows an application to authenticate using a managed identity rather than storing a database password?

1) SQL authentication with a hard-coded password
2) Microsoft Entra authentication with managed identity
3) Anonymous authentication
4) FTP authentication

Correct Answer: 2)

Explanation:

Microsoft Entra authentication combined with a managed identity allows an Azure-hosted application to access Azure SQL Database without storing a database password in application configuration. The managed identity is associated with the application resource and can be granted the required database permissions. This reduces the risk associated with long-lived credentials and simplifies credential management. Developers should configure appropriate Microsoft Entra database users and permissions and follow least-privilege principles. This approach is especially useful for applications running on services such as App Service, Functions, or other Azure resources that support managed identities.

Q171. Which Azure SQL Database feature is designed to share resources among multiple databases that have variable and unpredictable workloads?

1) Elastic pool
2) Firewall rule
3) Database audit
4) Query Store

Correct Answer: 1)

Explanation:

Azure SQL Database elastic pools allow multiple databases to share a pool of compute resources. This is useful when individual databases have variable workloads and do not all require their maximum capacity simultaneously. Instead of provisioning each database independently for peak demand, an elastic pool can provide shared resources across databases, improving resource utilization and potentially reducing costs. Elastic pools are particularly suitable for SaaS applications where many databases have similar but unpredictable usage patterns. Developers should monitor pool utilization and choose an appropriate service tier and capacity.

Q172. Which Azure Service Bus feature allows messages to be separated into independent message streams for different consumers?

1) Topics and subscriptions
2) Blob containers
3) Storage queues
4) Event Grid domains

Correct Answer: 1)

Explanation:

Azure Service Bus topics and subscriptions provide a publish-subscribe messaging model. A publisher sends a message to a topic, and multiple subscriptions can independently receive copies of messages that match their configured rules. This allows different applications or services to process the same event without the publisher needing to know the individual consumers. Subscriptions can also use filters to select specific messages. This pattern is useful when several independent components need to react to business events while remaining loosely coupled from the system that produces those events.

Q173. Which Azure Service Bus feature is designed to store messages that cannot be successfully processed after repeated delivery attempts?

1) Session state
2) Dead-letter queue
3) Topic rule
4) Message lock renewal

Correct Answer: 2)

Explanation:

The Service Bus dead-letter queue provides a location for messages that cannot be successfully delivered or processed under the applicable conditions. Messages may be moved there after exceeding delivery attempts or because of other conditions that prevent normal processing. Applications can inspect dead-lettered messages to determine the cause of failure and decide whether they should be repaired, reprocessed, or discarded. Using a dead-letter queue prevents repeatedly failing messages from continuously blocking normal processing. It is an important reliability feature for message-based applications that require operational visibility into failed processing.

Q174. Which Azure Service Bus capability helps ensure that messages with the same session identifier are processed in order?

1) Message sessions
2) Geo-replication
3) Dead-lettering
4) Topic filtering

Correct Answer: 1)

Explanation:

Service Bus message sessions provide a mechanism for grouping related messages and maintaining ordered processing within a session. A session-enabled queue or subscription can associate messages with a session identifier, allowing a consumer to process messages belonging to that session sequentially. This is useful for workflows where order matters, such as processing events associated with a particular customer, transaction, or business process. Sessions can also provide a convenient mechanism for maintaining state associated with a group of related messages. Developers should enable sessions when ordered processing is an explicit application requirement.

Q175. Which Azure Event Grid feature can restrict event delivery so that subscribers receive only events matching specified properties?

1) Event filtering
2) Access tiers
3) Blob leases
4) Storage lifecycle management

Correct Answer: 1)

Explanation:

Event Grid filtering allows subscribers to receive only events that match defined conditions. Filters can be based on event properties, subject information, event types, or other supported criteria. This helps reduce unnecessary event processing because subscribers do not need to receive every event generated by a source. For example, an application might subscribe only to events associated with a specific resource or event type. Filtering is useful in event-driven architectures because it helps maintain loose coupling while ensuring that each consumer receives only the events relevant to its responsibilities.

Q176. Which Azure Event Grid feature allows failed event deliveries to be retained for later investigation or processing?

1) Dead-letter destination
2) Access key rotation
3) Application setting
4) Deployment slot

Correct Answer: 1)

Explanation:

An Event Grid dead-letter destination provides a location where events can be stored when delivery cannot be completed successfully according to the configured delivery and retry behavior. This prevents failed events from simply disappearing and gives operators or applications an opportunity to inspect and process them later. A dead-letter destination can be useful for troubleshooting endpoint failures, malformed processing logic, or temporary service problems. Developers should monitor dead-lettered events and establish an operational process for investigating and reprocessing them when appropriate.

Q177. Which Azure Monitor component provides a centralized workspace for collecting and querying logs from multiple Azure resources?

1) Log Analytics workspace
2) App Service deployment slot
3) Azure CDN
4) Azure Container Registry

Correct Answer: 1)

Explanation:

A Log Analytics workspace provides centralized storage and querying capabilities for log data collected from supported Azure resources and applications. Developers and administrators can use Kusto Query Language, or KQL, to analyze logs, identify patterns, troubleshoot problems, and create monitoring solutions. Centralizing logs makes it easier to investigate issues across multiple components instead of examining each resource independently. Log Analytics is commonly integrated with Azure Monitor and Application Insights. Proper workspace organization, retention configuration, access control, and data collection rules can help maintain useful and manageable monitoring data.

Q178. Which Application Insights capability helps identify calls between an application and external dependencies such as databases or APIs?

1) Dependency tracking
2) Storage lifecycle management
3) Container image scanning
4) DNS resolution

Correct Answer: 1)

Explanation:

Application Insights dependency tracking helps monitor interactions between an application and external components such as databases, HTTP services, and other dependencies. This information can help developers identify slow calls, failed dependency requests, and performance bottlenecks. When distributed applications communicate across multiple services, dependency information can also contribute to tracing requests through different components. By examining application requests together with dependency telemetry, developers can more quickly determine whether a performance or reliability issue originates within the application or in an external service it depends upon.

Q179. Which Azure App Service feature allows developers to test a new application version in a separate environment before directing production traffic to it?

1) Deployment slot
2) Access restriction
3) Custom domain
4) Health Check

Correct Answer: 1)

Explanation:

App Service deployment slots provide separate environments within the same App Service application. Developers can deploy a new version to a staging slot, validate its behavior, and then swap the slot with production when the application is ready. This approach helps reduce deployment risk because testing can occur before production traffic is redirected. Slots can also support configuration settings that should remain specific to an environment. Deployment slots are especially useful for continuous delivery scenarios where applications need controlled releases, validation, and rapid rollback through slot swaps.

Q180. Which Azure App Service capability can distribute incoming requests between application instances according to configured traffic percentages?

1) Traffic routing
2) Blob versioning
3) Queue trigger
4) Key Vault secret rotation

Correct Answer: 1)

Explanation:

App Service traffic routing can direct a specified percentage of application traffic to different deployment slots. This capability supports gradual releases and testing strategies where only a portion of users should receive a new application version initially. For example, developers can route a small percentage of traffic to a staging slot, monitor application behavior, and increase the percentage after confirming that the new version performs correctly. Traffic routing provides a controlled alternative to switching all users to a new version immediately and can help reduce the risk associated with production deployments.