MCQs on Managing Secrets, Keys, and Certificates | Azure Key Vault MCQs Questions

This comprehensive set of Azure Key Vault questions and answers covers topics such as managing secrets, cryptographic keys, and certificates, along with their storage, retrieval, and integration. With a focus on generating, importing, exporting, and versioning keys and secrets, these MCQs are designed to help you understand Azure Key Vault for exam preparation and practical applications.


Chapter 2: Managing Secrets, Keys, and Certificates – MCQs

Topic 1: Storing and Retrieving Secrets

  1. What is a primary use case for Azure Key Vault?
    a) Encrypting virtual machine disks
    b) Storing and accessing sensitive information like secrets
    c) Monitoring network traffic
    d) Creating virtual machines
  2. How can applications retrieve secrets from Azure Key Vault?
    a) By using SQL queries
    b) By calling REST APIs or SDKs
    c) By accessing Azure Monitor logs
    d) By querying Azure Storage
  3. What is required to access a secret stored in Azure Key Vault?
    a) An SSL certificate
    b) Proper role-based access control (RBAC) permissions
    c) A public IP address
    d) An Azure subscription ID
  4. Which type of data can Azure Key Vault securely store?
    a) Application logs
    b) Connection strings and passwords
    c) Resource deployment templates
    d) Container images
  5. What is the default encryption algorithm for secrets in Azure Key Vault?
    a) RSA
    b) AES-256
    c) SHA-256
    d) MD5
  6. How can you securely rotate secrets in Azure Key Vault?
    a) Manually update the secret
    b) Use Azure Automation to update secrets periodically
    c) Delete the secret and create a new one
    d) Enable auto-delete for old secrets

Topic 2: Generating and Managing Cryptographic Keys

  1. What is the purpose of a cryptographic key in Azure Key Vault?
    a) To encrypt and decrypt sensitive data
    b) To monitor resource health
    c) To store application configurations
    d) To track API usage
  2. Which key management operation is NOT supported by Azure Key Vault?
    a) Key creation
    b) Key rotation
    c) Key decryption
    d) Key logging
  3. How can you generate a key in Azure Key Vault?
    a) By using Azure CLI, REST API, or the Azure portal
    b) By uploading a script file
    c) By creating a virtual machine
    d) By accessing Azure Monitor
  4. What is the default key type used in Azure Key Vault for encryption?
    a) Symmetric keys
    b) Asymmetric keys
    c) Public keys
    d) Session keys
  5. How can applications securely access cryptographic keys in Azure Key Vault?
    a) By using hard-coded secrets
    b) Through managed identity or service principal authentication
    c) By enabling guest access
    d) By using IP filtering
  6. Which feature allows periodic automatic renewal of cryptographic keys in Azure Key Vault?
    a) Key Expiry Alert
    b) Key Rotation Policy
    c) Managed Key Renewal
    d) Secure Access Configuration

Topic 3: Importing and Exporting Keys

  1. How can you import a cryptographic key into Azure Key Vault?
    a) By uploading it through the Azure portal or CLI
    b) By creating a resource group
    c) By running a PowerShell script
    d) By enabling guest access
  2. Which key format is supported for importing keys into Azure Key Vault?
    a) PEM and PFX
    b) CSV and JSON
    c) XML and YAML
    d) TXT and MD5
  3. What is required to export keys from Azure Key Vault?
    a) Export permissions in the access policy
    b) A service principal with admin rights
    c) A public key certificate
    d) An active Azure subscription
  4. What is a key limitation when exporting keys from Azure Key Vault?
    a) Exported keys can only be symmetric keys
    b) Only hardware-protected keys can be exported
    c) Exporting keys is not allowed for keys marked as non-exportable
    d) Exported keys require re-encryption
  5. How can you securely back up keys in Azure Key Vault?
    a) By exporting them as plain text
    b) By using the backup operation in the Azure portal
    c) By saving them to Azure Storage directly
    d) By enabling monitoring
  6. When importing keys, what option ensures compatibility across applications?
    a) Using standardized key formats like PEM or PFX
    b) Storing keys in unencrypted format
    c) Using custom encoding methods
    d) Disabling access policies

Topic 4: Certificate Management and Integration

  1. What is a common use case for managing certificates in Azure Key Vault?
    a) Encrypting resource groups
    b) Securing web application traffic with SSL/TLS certificates
    c) Tracking resource utilization
    d) Monitoring database queries
  2. How can Azure Key Vault automatically renew certificates?
    a) By integrating with certificate authorities (CAs)
    b) By running Azure Automation scripts
    c) By enabling manual renewal notifications
    d) By using third-party tools
  3. What is the role of a certificate authority in Azure Key Vault?
    a) To manage access control policies
    b) To validate and issue certificates
    c) To monitor virtual machines
    d) To encrypt database data
  4. Which integration enables Azure App Service to use certificates from Azure Key Vault?
    a) Direct certificate binding
    b) Certificate references in application settings
    c) Importing certificates into Azure Storage
    d) Using network security groups
  5. What is a certificate policy in Azure Key Vault?
    a) A set of rules defining how certificates are issued and managed
    b) A method for encrypting secret data
    c) A policy for monitoring certificates
    d) A backup strategy for SSL certificates
  6. Which protocol is commonly used to secure certificates in transit?
    a) HTTP
    b) TLS/SSL
    c) FTP
    d) SCP

Topic 5: Versioning of Keys, Secrets, and Certificates

  1. How does Azure Key Vault handle versioning of keys?
    a) By overwriting older keys with new ones
    b) By assigning unique identifiers to each version
    c) By storing only the latest key version
    d) By creating snapshots
  2. What happens when you delete a version of a key in Azure Key Vault?
    a) The key becomes inactive
    b) The key version is permanently removed
    c) The latest key version is also deleted
    d) Older versions remain unaffected
  3. How can you access a specific version of a secret in Azure Key Vault?
    a) By specifying the version identifier in the API call
    b) By navigating to the Azure Resource Manager
    c) By using Azure Service Health
    d) By enabling diagnostic settings
  4. Which benefit does versioning of certificates provide in Azure Key Vault?
    a) Ability to track updates and maintain history
    b) Automatic scaling of certificates
    c) Simplified user authentication
    d) Increased application performance
  5. How can you restore a previous version of a key or secret in Azure Key Vault?
    a) By creating a new version from the backup
    b) By deleting all subsequent versions
    c) By selecting the previous version in the Azure portal
    d) By exporting it from diagnostic logs
  6. Why is versioning important for secrets in Azure Key Vault?
    a) To maintain a secure audit trail of changes
    b) To increase access permissions
    c) To allow manual updates only
    d) To encrypt additional resources

Answer Key

QnoAnswer
1b) Storing and accessing sensitive information like secrets
2b) By calling REST APIs or SDKs
3b) Proper role-based access control (RBAC) permissions
4b) Connection strings and passwords
5b) AES-256
6b) Use Azure Automation to update secrets periodically
7a) To encrypt and decrypt sensitive data
8d) Key logging
9a) By using Azure CLI, REST API, or the Azure portal
10b) Asymmetric keys
11b) Through managed identity or service principal authentication
12b) Key Rotation Policy
13a) By uploading it through the Azure portal or CLI
14a) PEM and PFX
15a) Export permissions in the access policy
16c) Exporting keys is not allowed for keys marked as non-exportable
17b) By using the backup operation in the Azure portal
18a) Using standardized key formats like PEM or PFX
19b) Securing web application traffic with SSL/TLS certificates
20a) By integrating with certificate authorities (CAs)
21b) To validate and issue certificates
22b) Certificate references in application settings
23a) A set of rules defining how certificates are issued and managed
24b) TLS/SSL
25b) By assigning unique identifiers to each version
26b) The key version is permanently removed
27a) By specifying the version identifier in the API call
28a) Ability to track updates and maintain history
29c) By selecting the previous version in the Azure portal
30a) To maintain a secure audit trail of changes

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top