AWS Certified Advanced Networking – Specialty ANS-C00 – Question264

You need to find the subnet, the security group and the VPC that your instance is associated with. You only have access to the terminal of an instance with an admin role attached.
What is the first part of the command you would use?

A.
aws ec2 describe-network-acl
B. aws ec2 describe-instances
C. aws vpc describe-all
D. aws ec2 describe-security-groups

Correct Answer: B

Explanation:

Explanation:
aws ec2 describe-instances will tell a significant amount of information about the instances in your account.
Apply a filter to be able to see information about your instance. Describe-security-groups and describe- network-acl would not allow you to see which group is associated with your instance and aws vpc describe- all doesn’t exist.