Certified Ethical Hacker (CEH) Practice Question

A penetration tester demonstrates that a vulnerable web application running on an EC2 instance can be exploited with an internal SSRF call to http://169.254.169.254/latest/meta-data/ and retrieve the instance's temporary IAM credentials. Which remediation best mitigates this specific cloud-native threat while still allowing legitimate software on the instance to obtain metadata when required?

  • Enable TCP SYN cookies on the Elastic Load Balancer fronting the application.

  • Reconfigure the instance to disable IMDSv1 and require IMDSv2 session tokens for all metadata requests.

  • Place the EC2 instance in a private subnet that has no route to the internet gateway.

  • Increase the randomness of the EC2 instance ID and periodically rotate it.

Certified Ethical Hacker (CEH)
Cloud Computing
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot