-
web.groovymark@gmail.com
- November 21, 2024
Question 01
What is the main advantage of using Azure Functions with the Consumption Plan?
a) Unlimited execution time
b) Manual scaling of resources
c) Automatic scaling and pay-per-execution billing
d) Requires dedicated virtual machines
Correct Answer: c) Automatic scaling and pay-per-execution billing
Explanation: The Consumption Plan for Azure Functions automatically scales and charges only for the resources consumed during function execution.
Question 02
What Azure Storage tier is most appropriate for long-term, infrequently accessed data?
a) Hot
b) Cool
c) Archive
d) Premium
Correct Answer: c) Archive
Explanation: The Archive tier is designed for long-term storage of data that is rarely accessed and can tolerate slower retrieval times.
Question 03
In Azure Cosmos DB, what consistency level guarantees that all read operations return the most recent committed version of data?
a) Eventual
b) Consistent Prefix
c) Strong
d) Session
Correct Answer: c) Strong
Explanation: Strong consistency ensures that all reads return the most recent committed version of data, providing the highest level of consistency.
Question 04
. What Azure Function trigger type is used for starting a function based on a timer?
a) Blob trigger
b) Event Grid trigger
c) Timer trigger
d) Queue trigger
Correct Answer: c) Timer trigger
Explanation: The Timer trigger allows Azure Functions to execute at specified intervals based on a schedule.
Question 05
. What is the primary use case for Azure Durable Functions?
a) Stateless batch processing
b) Long-running, stateful workflows
c) Real-time data ingestion
d) High-performance computing
Correct Answer: b) Long-running, stateful workflows
Explanation: Azure Durable Functions enable the orchestration of long-running, stateful workflows, such as chaining multiple functions together or running functions in parallel.
Question 06
. In Azure RBAC, what role provides full access to all resources but not user access management?
a) Owner
b) Contributor
c) Reader
d) User Access Administrator
Correct Answer: b) Contributor
Explanation: The Contributor role grants full access to manage resources but does not allow for managing user access or permissions.
Question 07
Which consistency level in Cosmos DB is the default for most applications?
a) Strong
b) Bounded Staleness
c) Session
d) Eventual
Correct Answer: c) Session
Explanation: The Session consistency level is the default for most Cosmos DB applications because it provides a good balance between consistency and performance.
Question 08
In an ARM template, which section allows you to define reusable values like strings or integers?
a) Resources
b) Parameters
c) Variables
d) Outputs
Correct Answer: c) Variables
Explanation: Variables in an ARM template allow you to define reusable values that can be referenced throughout the template.
Question 09
What Azure service is designed for processing real-time data streams from sources like IoT devices?
a) Azure Event Grid
b) Azure Service Bus
c) Azure Event Hubs
d) Azure Logic Apps
Correct Answer: c) Azure Event Hubs
Explanation: Azure Event Hubs is optimized for ingesting large streams of real-time data from sources such as IoT devices and processing them in real time.
Question 10
In Cosmos DB, what is the purpose of a “lease container” when using the change feed processor?
a) To store failed transactions
b) To handle transactional consistency
c) To manage state across multiple consumers
d) To trigger backups of the database
Correct Answer: c) To manage state across multiple consumers
Explanation: The lease container is used by the change feed processor to manage state across multiple consumers, ensuring that data is processed only once.
Question 11
What is the purpose of a stored access policy in Azure Storage?
a) To manage encryption keys
b) To define granular permissions for SAS tokens
c) To control access to Azure AD identities
d) To enable blob versioning
Correct Answer: b) To define granular permissions for SAS tokens
Explanation: Stored access policies allow you to define permissions for shared access signatures (SAS tokens) to control access to Azure Storage resources.
Question 12
What Azure feature allows automatic replication of storage data to another Azure region?
a) Zone Redundant Storage (ZRS)
b) Locally Redundant Storage (LRS)
c) Read-Access Geo-Redundant Storage (RA-GRS)
d) Blob Snapshots
Correct Answer: c) Read-Access Geo-Redundant Storage (RA-GRS)
Explanation: RA-GRS allows for the automatic replication of data to another Azure region, ensuring high availability and disaster recovery capabilities.
Question 13
What feature in Azure Service Bus ensures that messages are processed in the exact order they are received?
a) Message Sessions
b) Dead-letter Queue
c) Partitioned Queues
d) Batch Processing
Correct Answer: a) Message Sessions
Explanation: Message Sessions in Azure Service Bus guarantee that messages are processed in the same order they are received, maintaining FIFO (First-In-First-Out) semantics.
Question 14
What is the purpose of the “x-functions-key” header in an HTTP request to an Azure Function?
a) To pass user data
b) To specify the API version
c) To authenticate the function call
d) To encrypt the payload
Correct Answer: c) To authenticate the function call
Explanation: The "x-functions-key" header is used to pass the function-specific API key, which is required for authenticating HTTP requests to Azure Functions.
Question 15
What does “Time to Live” (TTL) define in Azure Cosmos DB?
a) How long data will be retained before deletion
b) The duration of lease agreements for access keys
c) The latency for write operations
d) The time required for index updates
Correct Answer: a) How long data will be retained before deletion
Explanation: TTL in Cosmos DB defines the period after which data will be automatically deleted, useful for scenarios like expiring temporary data.
Question 16
Which Azure service is used to connect APIs, databases, and other services with workflows and automation?
a) Azure Event Grid
b) Azure Logic Apps
c) Azure Service Bus
d) Azure Functions
Correct Answer: b) Azure Logic Apps
Explanation: Azure Logic Apps enable the automation of workflows that connect APIs, databases, and other services.
Question 17
What API allows you to perform advanced graph traversal queries in Cosmos DB?
a) SQL API
b) Cassandra API
c) Gremlin API
d) Table API
Correct Answer: c) Gremlin API
Explanation: The Gremlin API in Cosmos DB allows you to perform advanced queries on graph-based data using the TinkerPop framework.
Question 18
18. What does the “Purge Protection” feature in Azure Key Vault do?
a) Prevents keys from being soft deleted
b) Ensures that soft-deleted items cannot be permanently deleted until the retention period expires
c) Encrypts all stored keys
d) Enables automatic key rotation
Correct Answer: b) Ensures that soft-deleted items cannot be permanently deleted until the retention period expires
Explanation: Purge Protection prevents the permanent deletion of items in Azure Key Vault until the retention period has passed.
Question 19
What is the main purpose of using Azure Durable Functions?
a) To scale storage capacity
b) To manage long-running, stateful workflows
c) To host serverless APIs
d) To provide secure authentication
Correct Answer: b) To manage long-running, stateful workflows
Explanation: Azure Durable Functions allow developers to manage long-running workflows by providing stateful orchestration of function executions.
Question 20
Which type of partitioning in Cosmos DB ensures that all items share the same partition key?
a) Physical partition
b) Dynamic partition
c) Hot partition
d) Logical partition
Correct Answer: d) Logical partition
Explanation: A logical partition in Cosmos DB ensures that all items within it share the same partition key, facilitating efficient data organization.