Courseiva
Cloud And Hybrid Infrastructure SecurityeasyMultiple ChoiceObjective-mapped

CPENT Cloud And Hybrid Infrastructure Security Practice Question

An Azure penetration tester identifies a Virtual Machine with public IP access that has an incoming Network Security Group (NSG) rule allowing TCP port 3389 (RDP) from any source ('Any' or 'Internet'). What is the recommended remediation?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Restrict the NSG rule source IP to trusted administrative networks or implement Azure Bastion for secure management.

Exposing RDP directly to the internet is a high risk; remediation involves restricting the source IP range or using Azure Bastion.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Restrict the NSG rule source IP to trusted administrative networks or implement Azure Bastion for secure management.

    Why this is correct

    Restricting RDP source IPs or using Azure Bastion mitigates brute-force attacks.

  • Disable the Azure Key Vault service across the subscription.

    Why it's wrong here

    Key Vault has no direct relationship with VM RDP exposure.

  • Enable Azure Active Directory Pass-Through Authentication on the VM guest OS.

    Why it's wrong here

    PTA applies to Azure AD hybrid identities, not local VM RDP.

  • Attach an AWS IAM instance profile to the Azure Virtual Machine.

    Why it's wrong here

    AWS IAM profiles cannot be attached to Azure VMs.

About these practice questions

One of 274 original CPENT practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official EC-Council exam blueprint

This CPENT practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CPENT exam.