0
0
Azurecloud~5 mins

Service principals for applications in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a service principal in Azure?
A service principal is like a user identity for an application. It allows the app to access Azure resources securely without using a real person's login.
Click to reveal answer
beginner
Why use a service principal instead of a user account for app access?
Service principals provide controlled, limited access to resources. They avoid using personal user credentials, improving security and automation.
Click to reveal answer
intermediate
How do you create a service principal in Azure?
You create a service principal by registering an application in Azure Active Directory and then creating a service principal for it. This can be done via Azure Portal, CLI, or PowerShell.
Click to reveal answer
intermediate
What information do you need to authenticate an application using a service principal?
You need the service principal's Application (client) ID, Tenant ID, and a secret (password) or certificate to authenticate.
Click to reveal answer
intermediate
How can you limit the permissions of a service principal?
Assign only the necessary roles and scopes to the service principal using Azure Role-Based Access Control (RBAC). This follows the principle of least privilege.
Click to reveal answer
What does a service principal represent in Azure?
AAn identity for an application
BA user account for a person
CA virtual machine
DA storage account
Which of these is NOT needed to authenticate with a service principal?
AClient ID
BTenant ID
CClient secret or certificate
DUser password
How do you restrict what a service principal can do?
ABy changing the user password
BBy deleting it
CBy assigning roles with limited permissions
DBy moving it to another subscription
Which tool can you use to create a service principal?
AMicrosoft Word
BAzure CLI
CWindows Explorer
DExcel
Why is using a service principal better than using a user account for app access?
AIt improves security and automation
BIt requires a password change every day
CIt costs more
DIt uses less memory
Explain what a service principal is and why it is important for applications in Azure.
Think about how apps need their own login to access cloud resources safely.
You got /4 concepts.
    Describe the steps and information needed to create and use a service principal for an application.
    Consider the process from app registration to permission assignment.
    You got /4 concepts.