Microsoft

AZ-305 Free Practice Questions — Page 9

Question 83

You are developing a sales application that will contain several Azure cloud services and handle different components of a transaction. Different cloud services will process customer orders, billing, payment, inventory, and shipping. You need to recommend a solution to enable the cloud services to asynchronously communicate transaction information by using XML messages. What should you include in the recommendation?

A. Azure Notification Hubs
B. Azure Queue Storage
C. Azure Blob Storage
D. Azure Application Gateway
Show Answer
Correct Answer: B
Explanation:
The requirement is for asynchronous communication between multiple Azure cloud services using XML messages. Azure Queue Storage is a messaging service designed for loosely coupled, asynchronous communication, allowing services to place and retrieve messages independently. It supports storing XML (or any text-based) messages reliably until they are processed. The other options do not provide general-purpose asynchronous service-to-service messaging.

Question 84

You are designing an app that will use Azure Cosmos DB to collate sales from multiple countries. You need to recommend an API for the app. The solution must meet the following requirements: • Support SQL queries. • Support geo-replication. • Store and access data relationally. Which API should you recommend?

A. Apache Cassandra
B. PostgreSQL
C. MongoDB
D. NoSQL
Show Answer
Correct Answer: B
Explanation:
The requirements are SQL query support, geo-replication, and relational data storage. Azure Cosmos DB for PostgreSQL is the only Cosmos DB API that provides a true relational model with full SQL support and built-in geo-replication. Apache Cassandra and MongoDB are NoSQL/document or wide-column stores without a relational model or standard SQL, and 'NoSQL' is not a specific API and does not meet the relational requirement.

Question 85

You need to design a highly available Azure SQL database that meets the following requirements: • Failover between replicas of the database must occur without any data loss. • The database must remain available in the event of a zone outage. • Costs must be minimized. Which deployment option should you use?

A. Azure SQL Database Hyperscale
B. Azure SQL Database Premium
C. Azure SQL Database Standard
D. Azure SQL Managed Instance General Purpose
Show Answer
Correct Answer: B
Explanation:
The requirements demand synchronous replicas with zero data loss (RPO=0) and availability during an availability zone outage. Azure SQL Database Premium (DTU-based) uses the Business Critical architecture with multiple synchronous replicas and supports zone redundancy. Standard tier does not provide this level of HA, Managed Instance General Purpose relies on remote storage and does not meet the zero–data-loss zone-outage requirement, and Hyperscale can meet HA needs but at higher cost. Therefore, Premium satisfies the requirements at the lowest cost among the valid options.

Question 86

You have an Azure Functions microservice app named App1 that is hosted in the Consumption plan. App1 uses an Azure Queue Storage trigger. You plan to migrate App1 to an Azure Kubernetes Service (AKS) cluster. You need to prepare the AKS cluster to support App1. The solution must meet the following requirements: • Use the same scaling mechanism as the current deployment. • Support kubenet and Azure Container Networking Interface (CNI) networking. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.

A. Configure the horizontal pod autoscaler.
B. Install Virtual Kubelet.
C. Configure the AKS cluster autoscaler.
D. Configure the virtual node add-on.
E. Install Kubernetes-based Event Driven Autoscaling (KEDA).
Show Answer
Correct Answer: A, E
Explanation:
Azure Functions on the Consumption plan use event-driven, scale-to-zero behavior based on triggers such as Azure Queue Storage. To replicate the same scaling mechanism on AKS, you must install KEDA, which provides event-driven autoscaling from queue length and other event sources. KEDA works by integrating with the Kubernetes Horizontal Pod Autoscaler, which must be configured to scale pods based on the metrics exposed by KEDA. This combination supports both kubenet and Azure CNI networking and matches the Functions Consumption scaling model.

Question 87

DRAG DROP - You have an on-premises app named App1. Customers use App1 to manage digital images. You plan to migrate App1 to Azure. You need to recommend a data storage solution for App1. The solution must meet the following image storage requirements: • Encrypt images at rest. • Allow files up to 50 MB. • Manage access to the images by using Azure Web Application Firewall (WAF) on Azure Front Door. The solution must meet the following customer account requirements: • Support automatic scale out of the storage. • Maintain the availability of App1 if a datacenter fails. • Support reading and writing data from multiple Azure regions. Which service should you include in the recommendation for each type of data? To answer, drag the appropriate services to the correct type of data. Each service may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct answer is worth one point.

Illustration for AZ-305 question 87
Show Answer
Correct Answer: Image storage: Azure Blob Storage Customer accounts: Azure Cosmos DB
Explanation:
Azure Blob Storage supports encrypted-at-rest large objects, integrates with Azure Front Door + WAF, and scales automatically for image files. Azure Cosmos DB provides automatic scale-out, multi-region read/write, and high availability to maintain service during datacenter failures.

Question 88

Your company has the divisions shown in the following table. Sub1 contains an Azure App Service web app named App1. App1 uses Azure AD for single-tenant user authentication. Users from contoso.com can authenticate to App1. You need to recommend a solution to enable users in the fabrikam.com tenant to authenticate to App1. What should you recommend?

A. Enable Azure AD pass-through authentication and update the sign-in endpoint.
B. Use Azure AD entitlement management to govern external users.
C. Configure assignments for the fabrikam.com users by using Azure AD Privileged Identity Management (PIM).
D. Configure Azure AD Identity Protection.
Show Answer
Correct Answer: B
Explanation:
App1 is configured for single-tenant Azure AD authentication, so users from another tenant (fabrikam.com) must be invited as external (B2B) users to the contoso tenant. Azure AD entitlement management provides a governed way to invite, assign access, and manage lifecycle for external users so they can authenticate to the app. The other options do not enable cross-tenant authentication for a single-tenant app.

Question 89

You need to design a highly available Azure SQL database that meets the following requirements: • Failover between replicas of the database must occur without any data loss. • The database must remain available in the event of a zone outage. • Costs must be minimized. Which deployment option should you use?

A. Azure SQL Database Basic
B. Azure SQL Database Business Critical
C. Azure SQL Database Standard
D. Azure SQL Managed Instance General Purpose
Show Answer
Correct Answer: B
Explanation:
The requirements demand zero data loss on failover and availability during an availability zone outage. Azure SQL Database Business Critical uses synchronous replicas with Always On Availability Groups, ensuring zero data loss, and it supports zone-redundant configurations so replicas can span availability zones. Basic and Standard tiers do not provide zone redundancy or zero data loss guarantees, and Azure SQL Managed Instance General Purpose (as generally tested) does not provide the required zone-redundant, zero–data-loss architecture. Although Business Critical is more expensive, it is the lowest-cost option that satisfies all requirements.

Question 90

You are developing a sales application that will contain several Azure cloud services and handle different components of a transaction. Different cloud services will process customer orders, billing, payment, inventory, and shipping. You need to recommend a solution to enable the cloud services to asynchronously communicate transaction information by using XML messages. What should you include in the recommendation?

A. Azure Notification Hubs
B. Azure Application Gateway
C. Azure Queue Storage
D. Azure Traffic Manager
Show Answer
Correct Answer: C
Explanation:
The requirement is asynchronous communication between multiple cloud services using messages. Azure Queue Storage is designed for decoupled, asynchronous messaging between application components and can carry XML payloads. Notification Hubs is for push notifications, Application Gateway is a load balancer, and Traffic Manager is for DNS-based routing, none of which provide inter-service messaging.

Question 91

You are developing a sales application that will contain several Azure cloud services and handle different components of a transaction. Different cloud services will process customer orders, billing, payment, inventory, and shipping. You need to recommend a solution to enable the cloud services to asynchronously communicate transaction information by using XML messages. What should you include in the recommendation?

A. Azure Notification Hubs
B. Azure Application Gateway
C. Azure Service Bus
D. Azure Traffic Manager
Show Answer
Correct Answer: C
Explanation:
Azure Service Bus is designed for asynchronous messaging between distributed components. It supports reliable message queues and topics/subscriptions, works well with XML payloads, and decouples cloud services such as order processing, billing, inventory, and shipping. The other options focus on notifications, traffic routing, or load balancing rather than asynchronous inter-service messaging.

Question 92

Your company has the divisions shown in the following table. Sub1 contains an Azure App Service web app named App1. App1 uses Azure AD for single-tenant user authentication. Users from contoso.com can authenticate to App1. You need to recommend a solution to enable users in the fabrikam.com tenant to authenticate to App1. What should you recommend?

A. Configure the Azure AD provisioning service.
B. Enable Azure AD pass-through authentication and update the sign-in endpoint.
C. Configure Supported account types in the application registration and update the sign-in endpoint.
D. Configure Azure AD join.
Show Answer
Correct Answer: C
Explanation:
App1 is currently single-tenant, allowing only users from the contoso.com Azure AD tenant. To allow users from the fabrikam.com tenant to authenticate, the app must be configured as a multi-tenant application. This is done by updating the Supported account types in the Azure AD application registration (for example, to allow accounts in any organizational directory) and updating the sign-in endpoint accordingly. Other options do not enable cross-tenant authentication for an Azure AD–secured web app.

$19

Get all 273 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.