Cloud-Security-Engineer Identity And Access Security Practice Question
While investigating an IAM misconfiguration via Prisma Cloud RQL, an engineer wants to find all AWS IAM users who have both console access and active access keys older than 90 days. Which RQL query structure correctly accomplishes 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 resource.type = 'aws-iam-user' and json.rule = "consoleAccess = true and accessKeys.age > 90"
Using the config resource type with filters for cloud type, resource type, and specific JSON path attributes targets user attributes precisely.
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 resource.type = 'aws-iam-user' and json.rule = "consoleAccess = true and accessKeys.age > 90"
Why this is correct
This query correctly specifies the cloud type, IAM user resource type, and JSON rules for console access and key age.
- ✗
event from cloud.audit where service = 'iam' and action = 'CreateAccessKey'
Why it's wrong here
This queries audit logs, not the current configuration state of users and their keys.
- ✗
config from cloud.resource where resource.type = 'aws-s3' and json.rule = "public = true"
Why it's wrong here
This queries S3 bucket public exposure, not IAM user credentials.
- ✗
network from cloud.flow where source.ip = '0.0.0.0/0'
Why it's wrong here
This queries network traffic flows, which is irrelevant to IAM credential attributes.
About these practice questions
One of 216 original Cloud-Security-Engineer 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 →
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.