exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 2 question 28 discussion

Actual exam question from Microsoft's AZ-303
Question #: 28
Topic #: 2
[All AZ-303 Questions]

You have an application named App1 that does not support Azure Active Directory (Azure AD) authentication.
You need to ensure that App1 can send messages to an Azure Service Bus queue. The solution must prevent App1 from listening to the queue.
What should you do?

  • A. Configure Access control (IAM) for the Service Bus.
  • B. Add a shared access policy to the queue.
  • C. Modify the locks of the queue.
  • D. Configure Access control (IAM) for the queue.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
There are two ways to authenticate and authorize access to Azure Service Bus resources: Azure Activity Directory (Azure AD) and Shared Access Signatures
(SAS).
Each Service Bus namespace and each Service Bus entity has a Shared Access Authorization policy made up of rules.
Reference:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-authentication-and-authorization https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ingoo
Highly Voted 4 years, 10 months ago
It looks right
upvoted 36 times
us3r
4 years ago
it looks left
upvoted 15 times
kocurbagienny
4 years ago
then it crosses the road
upvoted 23 times
ghostblind
4 years ago
make sure everything is clear remember the policy
upvoted 7 times
Viji30
3 years, 11 months ago
i am in the middle
upvoted 8 times
max_n
3 years, 10 months ago
I'm in the top
upvoted 9 times
...
...
...
...
...
...
Ramkid
Highly Voted 4 years, 2 months ago
In the link below, it is clear that there are only two ways of authorisation to Azure service bus : Active directory or SAS. When Active directory is not supported by the App service in the given situation, there is only other way is SAS. https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-authentication-and-authorization
upvoted 16 times
...
Simon_G
Most Recent 3 years, 5 months ago
B. Add a shared access policy to the queue. "Shared access authorization policies" The rights provided by the policy rule can be a combination of: Send – Gives the right to send messages to the entity Listen – Gives the right to listen or receive to the entity Manage – Gives the right to manage the topology of the namespace, including creation and deletion of entities https://docs.microsoft.com/en-us/azure/event-hubs/authorize-access-shared-access-signature#shared-access-authorization-policies
upvoted 2 times
Simon_G
3 years, 5 months ago
Sorry. wrong link above. Corrected link for Service Bus shared access authorization policy: B. Add a shared access policy to the queue. "Shared access authorization policies" The rights conferred by the policy rule can be a combination of: 'Send' - Confers the right to send messages to the entity 'Listen' - Confers the right to receive (queue, subscriptions) and all related message handling 'Manage' - Confers the right to manage the topology of the namespace, including creating and deleting entities https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas#shared-access-authorization-policies
upvoted 1 times
...
...
quantumray
3 years, 7 months ago
Question appeared On AZ-303 exam on 08/12/2021 - 49 questions, 4Q - Fabrikan case study
upvoted 1 times
...
syu31svc
3 years, 11 months ago
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-authentication-and-authorization Configure Access control (IAM) for the Service Bus - Since App1 does not support Azure AD, we cannot use managed identities. So, configuring access control is not required. Modify the locks of the queue - Locks are used to prevent accidental deletion or modification of Azure resources. Configure Access control (IAM) for the queue - Since App1 does not support Azure AD, we cannot use managed identities. So, configuring access control is not required. B is the answer; shared access policy
upvoted 7 times
...
AAPaul
4 years ago
I had this question in the exam that i took on July 14th 2021
upvoted 2 times
...
Ramkid
4 years, 2 months ago
In the link below, it is clear that there are only two ways of authorisation to Azure service bus : Active directory or SAS. When Active directory is not supported by the App service in the given situation, there is only other way is SAS.
upvoted 1 times
...
gssd4scoder
4 years, 3 months ago
A shared policy that can only send messages
upvoted 2 times
...
Aghora
4 years, 6 months ago
it would be D if AD is supported Not A (narrowest scope ) but the correct answer in the given scenario is - B
upvoted 2 times
...
Blimpy
4 years, 6 months ago
Sorry B is not correct .....SAS is different from a shared access policy which does not apply here. The answer is A (there is a RBAC role called Azure Service Bus Data Sender which can be assigned to an Application) - All the details are here: https://docs.microsoft.com/en-us/azure/service-bus-messaging/authenticate-application
upvoted 3 times
Blimpy
4 years, 6 months ago
Update: However, cant select A due to the Scenario of not supporting Azure AD Auth. Answer B option needs to be written out correctly as SAS
upvoted 3 times
...
...
azurecert2021
4 years, 6 months ago
for given scenario answer is correct based on following description preferred choice is Azure AD which is not available as per question Azure Service Bus supports authorizing access to a Service Bus namespace and its entities using Azure Active Directory (Azure AD). Authorizing users or applications using OAuth 2.0 token returned by Azure AD provides superior security and ease of use over shared access signatures (SAS). With Azure AD, there is no need to store the tokens in your code and risk potential security vulnerabilities. Microsoft recommends using Azure AD with your Azure Service Bus applications when possible.
upvoted 1 times
...
moumugdha
4 years, 7 months ago
shared access will be the correct answer.
upvoted 1 times
...
gcpjay
4 years, 7 months ago
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas he rights conferred by the policy rule can be a combination of: 'Send' - Confers the right to send messages to the entity 'Listen' - Confers the right to listen (relay) or receive (queue, subscriptions) and all related message handling 'Manage' - Confers the right to manage the topology of the namespace, including creating and deleting entities
upvoted 2 times
...
orcruin
4 years, 9 months ago
B, IAM is not supported by the App1 according the question description
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...