Cloud-Security-Engineer Cloud Security Posture Management Practice Question
Your security team needs to identify AWS EC2 instances that have been assigned public IP addresses and are accessible from the internet on any port. Which RQL query accurately detects this?
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
✓
config from cloud.resource where cloud.type = 'aws' and api.name = 'aws-ec2-instance' and public is true
EC2 instances with public exposure can be queried using cloud config RQL evaluating public IP assignment and associated security groups.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
config from cloud.resource where cloud.type = 'aws' and api.name = 'aws-s3-bucket' and public is true
Why it's wrong here
This query checks S3 buckets, not EC2 instances.
- ✓
config from cloud.resource where cloud.type = 'aws' and api.name = 'aws-ec2-instance' and public is true
Why this is correct
The 'public is true' modifier in Prisma Cloud resource RQL identifies resources with direct internet exposure.
- ✗
network from vpc.flow where bytes > 10000 and source.ip = '0.0.0.0/0'
Why it's wrong here
Network flow queries analyze traffic packets rather than static asset exposure status.
- ✗
event from cloud.audit where operation = 'RunInstances' and public = true
Why it's wrong here
Audit events track instance creation API calls, not current state exposure.
About these practice questions
Courseiva writes every Cloud-Security-Engineer question from scratch — 216 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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 Palo Alto Networks exam blueprint
This Cloud-Security-Engineer practice question is part of Courseiva's free Palo Alto Networks 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 Cloud-Security-Engineer exam.