Cloud-Security-Engineer Cloud Security Posture Management Practice Question
An administrator needs to write an RQL query to identify AWS IAM users who have access keys that have been active and unchanged for over 365 days. Which RQL query correctly evaluates access key age?
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-iam-user' and jmespath accessKeys[].status == 'Active' and accessKeys[].createDate < '365d'
IAM access key creation and rotation dates can be evaluated using config resource RQL targeting IAM user access key metadata.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
identity from cloud.user where passwordAge > 365
Why it's wrong here
User identity queries track user attributes, but access key arrays are evaluated via resource config RQL.
- ✗
network from vpc.flow where protocol = 'IAM' and duration > 365
Why it's wrong here
Network flow queries analyze packet data, not IAM key metadata.
- ✓
config from cloud.resource where cloud.type = 'aws' and api.name = 'aws-iam-user' and jmespath accessKeys[].status == 'Active' and accessKeys[].createDate < '365d'
Why this is correct
This RQL queries IAM users and evaluates active access key creation dates against a time threshold.
- ✗
event from cloud.audit where operation = 'CreateAccessKey' and age > 365
Why it's wrong here
Audit events track creation actions, whereas configuration queries evaluate current metadata properties.
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.