-
web.groovymark@gmail.com
- November 21, 2024
Question 21
What is the default retention period for deleted keys in Azure Key Vault?
a) 7 days
b) 30 days
c) 90 days
d) 120 days
Correct Answer: c) 90 days
Explanation: Deleted keys in Azure Key Vault are recoverable for up to 90 days by default, allowing for soft deletion and recovery.
Question 22
Which command in Azure CLI is used to start the local functions host for Azure Functions?
a) az func start
b) func host run
c) func start
d) azure func launch
Correct Answer: c) func start
Explanation: The func start command is used to launch the Azure Functions host locally for testing and debugging.
Question 23
What is a key benefit of using Azure Cosmos DB’s “session” consistency level?
a) Best performance for write-heavy workloads
b) Guaranteed global consistency
c) Best balance between performance and consistency for user sessions
d) Ensures no data loss
Correct Answer: c) Best balance between performance and consistency for user sessions
Explanation: The session consistency level provides the best balance of performance and consistency for applications where data is accessed within a user session.
Question 24
What is a synthetic partition key in Cosmos DB?
a) A key created by combining two properties
b) A key used for read operations only
c) A key that changes dynamically
d) A key that is used for storing encrypted data
Correct Answer: a) A key created by combining two properties
Explanation: A synthetic partition key is a compound key created by combining two properties when none of the existing properties is suitable for partitioning.
Question 25
What feature in Azure App Service ensures that the web app remains active and responsive by keeping the app always loaded?
a) Always On
b) Auto-scale
c) Load Balancer
d) Deployment Slots
Correct Answer: a) Always On
Explanation: The "Always On" feature in Azure App Service ensures that the app remains loaded and responsive, even during periods of inactivity.
Question 26
In the context of Azure Functions, what is a durable orchestrator function?
a) A function that executes external APIs
b) A function that coordinates the execution of other functions in a defined sequence
c) A function that runs indefinitely
d) A function that handles HTTP requests
Correct Answer: b) A function that coordinates the execution of other functions in a defined sequence
Explanation: The durable orchestrator function coordinates and manages the execution of other functions in a specific order to achieve complex workflows.
Question 27
What is the typical use case for Azure Event Hubs?
a) Storing relational data
b) Real-time data ingestion and stream processing
c) Hosting static websites
d) Managing virtual machines
Correct Answer: b) Real-time data ingestion and stream processing
Explanation: Azure Event Hubs is optimized for ingesting large streams of real-time data for processing and analytics.
Question 28
Which type of Azure Storage is designed to store large amounts of unstructured data such as images, videos, and documents?
a) Blob Storage
b) Table Storage
c) File Storage
d) Disk Storage
Correct Answer: a) Blob Storage
Explanation: Blob Storage is designed to store large amounts of unstructured data such as images, videos, and backups.
Question 29
In Azure Durable Functions, which pattern executes multiple activity functions in parallel and aggregates the results?
a) Chaining
b) Fan out/fan in
c) Monitor
d) Async HTTP APIs
Correct Answer: b) Fan out/fan in
Explanation: The "Fan out/fan in" pattern runs multiple activity functions in parallel and then aggregates the results into a final outcome.
Question 30
What is the purpose of using the “Event Grid trigger” in an Azure Function?
a) To run the function on a schedule
b) To start the function when a new event is received from Azure Event Grid
c) To trigger the function based on blob storage updates
d) To trigger the function when a message is added to a queue
Correct Answer: b) To start the function when a new event is received from Azure Event Grid
Explanation: The Event Grid trigger starts an Azure Function whenever a relevant event is received from Azure Event Grid.
Question 31
What is the recommended method to connect multiple services in Azure without hard-coding credentials?
a) Managed Identities
b) Shared Access Signatures (SAS)
c) API Keys
d) Static Credentials
Correct Answer: a) Managed Identities
Explanation: Managed Identities allow Azure services to authenticate to other Azure services securely without needing to manage credentials.
Question 32
What is the primary benefit of using Azure Queue Storage?
a) High read/write throughput for large datasets
b) Asynchronous messaging between services
c) Real-time streaming of large files
d) Fast computation for scientific workloads
Correct Answer: b) Asynchronous messaging between services
Explanation: Azure Queue Storage is designed for asynchronous messaging, decoupling components and ensuring reliable communication between services.
Question 33
What is the main difference between Azure Key Vault soft delete and purge protection?
a) Soft delete prevents accidental deletions, while purge protection prevents permanent deletions
b) Purge protection is for encrypted data only
c) Soft delete encrypts keys, while purge protection deletes them after 7 days
d) Purge protection applies only to shared resources
Correct Answer: a) Soft delete prevents accidental deletions, while purge protection prevents permanent deletions
Explanation: Soft delete allows for the recovery of accidentally deleted items, while purge protection prevents the permanent deletion of those items.
Question 34
What is a key difference between using Azure Service Bus and Azure Event Grid?
a) Service Bus supports message queues, while Event Grid is used for event-based architecture
b) Event Grid has better real-time processing capabilities
c) Service Bus is used for file storage
d) Event Grid handles relational data
Correct Answer: a) Service Bus supports message queues, while Event Grid is used for event-based architecture
Explanation: Azure Service Bus is primarily used for messaging queues, whereas Azure Event Grid is used to build event-driven architectures.
Question 35
What is the recommended API for accessing Azure Cosmos DB with a graph-based data structure?
a) SQL API
b) Gremlin API
c) Table API
d) Cassandra API
Correct Answer: b) Gremlin API
Explanation: The Gremlin API is used to access Azure Cosmos DB data using a graph-based structure, which allows for advanced graph traversal queries.
Question 36
In Azure Service Bus, what is the purpose of a dead-letter queue?
a) To hold large files temporarily
b) To store messages that cannot be delivered or processed
c) To manage real-time event streams
d) To create backup copies of messages
Correct Answer: b) To store messages that cannot be delivered or processed
Explanation: The dead-letter queue holds messages that cannot be delivered or processed, ensuring that no data is lost and troubleshooting can be done.
Question 37
How does the Cosmos DB “change feed” feature work?
a) It automatically archives old data
b) It triggers an event when data is inserted or updated
c) It periodically backs up the database
d) It reorganizes partitions dynamically
Correct Answer: b) It triggers an event when data is inserted or updated
Explanation: The change feed in Cosmos DB allows you to track and react to changes (inserts or updates) in the database.
Question 38
In Cosmos DB, what is the result of using a “hot” partition?
a) Improved read performance
b) Overloading the partition with too many requests
c) Reduced latency for write operations
d) Enhanced consistency
Correct Answer: b) Overloading the partition with too many requests
Explanation: A hot partition occurs when most of the requests are directed to a single partition, reaching throughput limits and affecting performance.
Question 39
What is the advantage of using Cosmos DB’s eventual consistency level?
a) Ensures global data consistency
b) Provides the lowest latency and highest availability
c) Guarantees that data is always fresh
d) Ensures that data is only available in one region
Correct Answer: b) Provides the lowest latency and highest availability
Explanation: Eventual consistency offers the highest performance and availability at the cost of consistency, making it ideal for non-critical data.
Question 40
What is the retention policy for Application Insights logs stored in Azure Blob Storage by default?
a) 7 days
b) 30 days
c) 90 days
d) No default retention policy
Correct Answer: d) No default retention policy
Explanation: There is no default retention policy for logs stored in Azure Blob Storage through Application Insight